{"type": "func", "start": 5372853296, "end": 5372854332, "name": "LevelEditorLayer::updateCustomSFXMappings", "pseudocode": "// \n// LevelEditorLayer::updateCustomSFXMappings from 0x1403f3c30 to 0x1403f403c (1036 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::saveLevel @ 0x1403ff22d\n// > LevelEditorLayer::doAutoSave @ 0x14040921d\n// > LevelEditorLayer::doAutoBackup @ 0x140409675\n// > <???> @ 0x140925478\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:49 +0000\n// \n\n// Hidden C++ exception states: #wind=8\nvoid __fastcall LevelEditorLayer::updateCustomSFXMappings(__int64 a1)\n{\n  __int64 v1; // rsi\n  _QWORD *v2; // rdi\n  __int64 v3; // rcx\n  _QWORD *v4; // rbx\n  void *v5; // rcx\n  bool GameVariable; // bl\n  __int64 v7; // rcx\n  void **v8; // r9\n  __int64 v9; // rdx\n  __int64 v10; // rcx\n  __int64 v11; // r14\n  int CustomSFXCount; // eax\n  __int64 v13; // rcx\n  __int64 v14; // rax\n  _QWORD *v15; // rax\n  _QWORD *v16; // rdi\n  _QWORD *v17; // rbx\n  void *v18; // rcx\n  void *v19; // rcx\n  void *v20; // [rsp+30h] [rbp-19h]\n  void *v21; // [rsp+30h] [rbp-19h]\n  void *v22; // [rsp+30h] [rbp-19h]\n  void *v23; // [rsp+30h] [rbp-19h]\n  void *v24; // [rsp+30h] [rbp-19h]\n  void *v25; // [rsp+30h] [rbp-19h]\n  _QWORD *v26; // [rsp+38h] [rbp-11h] BYREF\n  __int64 v27; // [rsp+40h] [rbp-9h]\n  void *Block[2]; // [rsp+48h] [rbp-1h] BYREF\n  __int64 v29; // [rsp+58h] [rbp+Fh]\n  _BYTE v30[32]; // [rsp+60h] [rbp+17h] BYREF\n\n  v1 = *(_QWORD *)(a1 + 3528);\n  if ( v1 )\n  {\n    *(_OWORD *)Block = 0;\n    v29 = 0;\n    LevelEditorLayer::getSFXUsagePairs(a1, (__int64)Block);\n    v27 = 0;\n    v2 = operator new(0x20u);\n    *v2 = v2;\n    v2[1] = v2;\n    v2[2] = v2;\n    *((_WORD *)v2 + 12) = 257;\n    v26 = v2;\n    v3 = qword_14090BFD0;\n    if ( *(_DWORD *)(v1 + 696) )\n    {\n      if ( !qword_14090BFD0 )\n      {\n        v20 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager((__int64)v20);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v2 = v26;\n        v3 = qword_14090BFD0;\n      }\n      if ( *(_DWORD *)(v1 + 696) == *(_DWORD *)(v3 + 692) - *(_DWORD *)(v3 + 696) && &v26 != (_QWORD **)(v1 + 704) )\n      {\n        v4 = (_QWORD *)v2[1];\n        while ( !*((_BYTE *)v4 + 25) )\n        {\n          sub_1400BD500((__int64)&v26, (__int64)&v26, v4[2]);\n          v5 = v4;\n          v4 = (_QWORD *)*v4;\n          j_j_free(v5);\n        }\n        v2[1] = v2;\n        *v2 = v2;\n        v2[2] = v2;\n        v27 = 0;\n        sub_1400BD880(&v26, (_QWORD *)(v1 + 704));\n        v3 = qword_14090BFD0;\n      }\n    }\n    if ( !v3 )\n    {\n      v21 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v21);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v3 = qword_14090BFD0;\n    }\n    GameVariable = GameManager::getGameVariable(v3, \"0233\");\n    v7 = qword_14090C070;\n    if ( !qword_14090C070 )\n    {\n      v22 = operator new(0x3D0u);\n      qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v22);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n      v7 = qword_14090C070;\n    }\n    v8 = (void **)&v26;\n    if ( !GameVariable )\n      v8 = nullptr;\n    MusicDownloadManager::rebuildCustomSFXMappings(v7, Block, v1 + 648, v8);\n    if ( *(_DWORD *)(v1 + 696) )\n    {\n      v9 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v23 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager((__int64)v23);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v9 = qword_14090BFD0;\n      }\n      if ( *(_DWORD *)(v1 + 696) == *(_DWORD *)(v9 + 692) - *(_DWORD *)(v9 + 696) && *(_QWORD *)(v1 + 712) )\n      {\n        v10 = qword_14090C070;\n        if ( !qword_14090C070 )\n        {\n          v24 = operator new(0x3D0u);\n          qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v24);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n          v10 = qword_14090C070;\n        }\n        v11 = v1 + 704;\n        CustomSFXCount = MusicDownloadManager::getCustomSFXCount(v10, v1 + 704);\n        if ( CustomSFXCount <= 0 || CustomSFXCount > 1000 )\n        {\n          *(_DWORD *)(v1 + 720) = (CustomSFXCount <= 1000) + 1;\n          v15 = (_QWORD *)(v1 + 664);\n          *(_QWORD *)(v1 + 680) = 0;\n          if ( *(_QWORD *)(v1 + 688) > 0xFu )\n            v15 = (_QWORD *)*v15;\n          *(_BYTE *)v15 = 0;\n          *(_DWORD *)(v1 + 696) = 0;\n          v16 = *(_QWORD **)v11;\n          v17 = *(_QWORD **)(*(_QWORD *)v11 + 8LL);\n          while ( !*((_BYTE *)v17 + 25) )\n          {\n            sub_1400BD500(v1 + 704, v1 + 704, v17[2]);\n            v18 = v17;\n            v17 = (_QWORD *)*v17;\n            j_j_free(v18);\n          }\n          v16[1] = v16;\n          *v16 = v16;\n          v16[2] = v16;\n          *(_QWORD *)(v1 + 712) = 0;\n        }\n        else\n        {\n          v13 = qword_14090C070;\n          if ( !qword_14090C070 )\n          {\n            v25 = operator new(0x3D0u);\n            qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v25);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n            v13 = qword_14090C070;\n          }\n          v14 = MusicDownloadManager::encodeCustomSFX(v13, v30, v1 + 704);\n          sub_140059C40(v1 + 664, v14);\n          sub_14003D310((__int64)v30);\n        }\n      }\n    }\n    sub_1400BD560((void **)&v26, (__int64)&v26);\n    v19 = Block[0];\n    if ( Block[0] )\n    {\n      if ( ((v29 - (unsigned __int64)Block[0]) & 0xFFFFFFFFFFFFFFF8uLL) >= 0x1000 )\n      {\n        v19 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v19);\n    }\n  }\n}", "assembly": "; \n; LevelEditorLayer::updateCustomSFXMappings from 0x1403f3c30 to 0x1403f403c (1036 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::saveLevel @ 0x1403ff22d\n; > LevelEditorLayer::doAutoSave @ 0x14040921d\n; > LevelEditorLayer::doAutoBackup @ 0x140409675\n; > <???> @ 0x140925478\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:49 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x1403f3c30\nmov     [rsp-8+arg_10], rsi                                            ; +0x5, 0x1403f3c35\nmov     [rsp-8+arg_18], rdi                                            ; +0xa, 0x1403f3c3a\npush    rbp                                                            ; +0xf, 0x1403f3c3f\npush    r14                                                            ; +0x10, 0x1403f3c40\npush    r15                                                            ; +0x12, 0x1403f3c42\nlea     rbp, [rsp-47h]                                                 ; +0x14, 0x1403f3c44\nsub     rsp, 90h                                                       ; +0x19, 0x1403f3c49\nmov     rax, cs:__security_cookie                                      ; +0x20, 0x1403f3c50\nxor     rax, rsp                                                       ; +0x27, 0x1403f3c57\nmov     [rbp+57h+var_20], rax                                          ; +0x2a, 0x1403f3c5a\nmov     rsi, [rcx+0DC8h]                                               ; +0x2e, 0x1403f3c5e\ntest    rsi, rsi                                                       ; +0x35, 0x1403f3c65\njz      loc_1403F4013                                                  ; +0x38, 0x1403f3c68\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x1403f3c6e\nmovdqu  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x41, 0x1403f3c71\nxor     r15d, r15d                                                     ; +0x46, 0x1403f3c76\nmov     [rbp+57h+var_48], r15                                          ; +0x49, 0x1403f3c79\nlea     rdx, [rbp+57h+Block]                                           ; +0x4d, 0x1403f3c7d\ncall    LevelEditorLayer__getSFXUsagePairs                             ; +0x51, 0x1403f3c81\nmov     [rbp+57h+var_68], r15                                          ; +0x56, 0x1403f3c86\nmov     [rbp+57h+var_60], r15                                          ; +0x5a, 0x1403f3c8a\nmov     ecx, 20h ; ' '; Size                                           ; +0x5e, 0x1403f3c8e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x63, 0x1403f3c93\nmov     rdi, rax                                                       ; +0x68, 0x1403f3c98\nmov     [rax], rax                                                     ; +0x6b, 0x1403f3c9b\nmov     [rax+8], rax                                                   ; +0x6e, 0x1403f3c9e\nmov     [rax+10h], rax                                                 ; +0x72, 0x1403f3ca2\nmov     word ptr [rax+18h], 101h                                       ; +0x76, 0x1403f3ca6\nmov     [rbp+57h+var_68], rax                                          ; +0x7c, 0x1403f3cac\nmov     rcx, cs:qword_14090BFD0                                        ; +0x80, 0x1403f3cb0\ncmp     [rsi+2B8h], r15d                                               ; +0x87, 0x1403f3cb7\njz      loc_1403F3D79                                                  ; +0x8e, 0x1403f3cbe\ntest    rcx, rcx                                                       ; +0x94, 0x1403f3cc4\njnz     short loc_1403F3CFE                                            ; +0x97, 0x1403f3cc7\nmov     ecx, 6E8h; Size                                                ; +0x99, 0x1403f3cc9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9e, 0x1403f3cce\nmov     [rbp+57h+var_70], rax                                          ; +0xa3, 0x1403f3cd3\nmov     rcx, rax                                                       ; +0xa7, 0x1403f3cd7\ncall    GameManager__GameManager                                       ; +0xaa, 0x1403f3cda\nnop                                                                    ; +0xaf, 0x1403f3cdf\nmov     cs:qword_14090BFD0, rax                                        ; +0xb0, 0x1403f3ce0\nmov     rcx, [rax]                                                     ; +0xb7, 0x1403f3ce7\nmov     rdx, [rcx+48h]                                                 ; +0xba, 0x1403f3cea\nmov     rcx, rax                                                       ; +0xbe, 0x1403f3cee\ncall    rdx                                                            ; +0xc1, 0x1403f3cf1\nmov     rdi, [rbp+57h+var_68]                                          ; +0xc3, 0x1403f3cf3\nmov     rcx, cs:qword_14090BFD0                                        ; +0xc7, 0x1403f3cf7\nmov     eax, [rcx+2B4h]                                                ; +0xce, 0x1403f3cfe\nsub     eax, [rcx+2B8h]                                                ; +0xd4, 0x1403f3d04\ncmp     [rsi+2B8h], eax                                                ; +0xda, 0x1403f3d0a\njnz     short loc_1403F3D79                                            ; +0xe0, 0x1403f3d10\nlea     r14, [rsi+2C0h]                                                ; +0xe2, 0x1403f3d12\nlea     rax, [rbp+57h+var_68]                                          ; +0xe9, 0x1403f3d19\ncmp     rax, r14                                                       ; +0xed, 0x1403f3d1d\njz      short loc_1403F3D79                                            ; +0xf0, 0x1403f3d20\nmov     rbx, [rdi+8]                                                   ; +0xf2, 0x1403f3d22\ncmp     byte ptr [rbx+19h], 0                                          ; +0xf6, 0x1403f3d26\njnz     short loc_1403F3D57                                            ; +0xfa, 0x1403f3d2a\nnop     dword ptr [rax+00h]                                            ; +0xfc, 0x1403f3d2c\nmov     r8, [rbx+10h]                                                  ; +0x100, 0x1403f3d30\nlea     rdx, [rbp+57h+var_68]                                          ; +0x104, 0x1403f3d34\nlea     rcx, [rbp+57h+var_68]                                          ; +0x108, 0x1403f3d38\ncall    sub_1400BD500                                                  ; +0x10c, 0x1403f3d3c\nmov     rcx, rbx; Block                                                ; +0x111, 0x1403f3d41\nmov     rbx, [rbx]                                                     ; +0x114, 0x1403f3d44\nmov     edx, 20h ; ' '                                                 ; +0x117, 0x1403f3d47\ncall    j_j_free                                                       ; +0x11c, 0x1403f3d4c\ncmp     byte ptr [rbx+19h], 0                                          ; +0x121, 0x1403f3d51\njz      short loc_1403F3D30                                            ; +0x125, 0x1403f3d55\nmov     [rdi+8], rdi                                                   ; +0x127, 0x1403f3d57\nmov     [rdi], rdi                                                     ; +0x12b, 0x1403f3d5b\nmov     [rdi+10h], rdi                                                 ; +0x12e, 0x1403f3d5e\nmov     [rbp+57h+var_60], r15                                          ; +0x132, 0x1403f3d62\nmov     rdx, r14                                                       ; +0x136, 0x1403f3d66\nlea     rcx, [rbp+57h+var_68]                                          ; +0x139, 0x1403f3d69\ncall    sub_1400BD880                                                  ; +0x13d, 0x1403f3d6d\nmov     rcx, cs:qword_14090BFD0                                        ; +0x142, 0x1403f3d72\ntest    rcx, rcx                                                       ; +0x149, 0x1403f3d79\njnz     short loc_1403F3DAF                                            ; +0x14c, 0x1403f3d7c\nmov     ecx, 6E8h; Size                                                ; +0x14e, 0x1403f3d7e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x153, 0x1403f3d83\nmov     [rbp+57h+var_70], rax                                          ; +0x158, 0x1403f3d88\nmov     rcx, rax                                                       ; +0x15c, 0x1403f3d8c\ncall    GameManager__GameManager                                       ; +0x15f, 0x1403f3d8f\nnop                                                                    ; +0x164, 0x1403f3d94\nmov     cs:qword_14090BFD0, rax                                        ; +0x165, 0x1403f3d95\nmov     rcx, [rax]                                                     ; +0x16c, 0x1403f3d9c\nmov     rdx, [rcx+48h]                                                 ; +0x16f, 0x1403f3d9f\nmov     rcx, rax                                                       ; +0x173, 0x1403f3da3\ncall    rdx                                                            ; +0x176, 0x1403f3da6\nmov     rcx, cs:qword_14090BFD0                                        ; +0x178, 0x1403f3da8\nlea     rdx, a0233; \"0233\"                                             ; +0x17f, 0x1403f3daf\ncall    GameManager__getGameVariable                                   ; +0x186, 0x1403f3db6\nmovzx   ebx, al                                                        ; +0x18b, 0x1403f3dbb\nmov     rcx, cs:qword_14090C070                                        ; +0x18e, 0x1403f3dbe\ntest    rcx, rcx                                                       ; +0x195, 0x1403f3dc5\njnz     short loc_1403F3DFB                                            ; +0x198, 0x1403f3dc8\nmov     ecx, 3D0h; Size                                                ; +0x19a, 0x1403f3dca\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19f, 0x1403f3dcf\nmov     [rbp+57h+var_70], rax                                          ; +0x1a4, 0x1403f3dd4\nmov     rcx, rax                                                       ; +0x1a8, 0x1403f3dd8\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x1ab, 0x1403f3ddb\nnop                                                                    ; +0x1b0, 0x1403f3de0\nmov     cs:qword_14090C070, rax                                        ; +0x1b1, 0x1403f3de1\nmov     rcx, [rax]                                                     ; +0x1b8, 0x1403f3de8\nmov     rdx, [rcx+48h]                                                 ; +0x1bb, 0x1403f3deb\nmov     rcx, rax                                                       ; +0x1bf, 0x1403f3def\ncall    rdx                                                            ; +0x1c2, 0x1403f3df2\nmov     rcx, cs:qword_14090C070                                        ; +0x1c4, 0x1403f3df4\nlea     r9, [rbp+57h+var_68]                                           ; +0x1cb, 0x1403f3dfb\ntest    bl, bl                                                         ; +0x1cf, 0x1403f3dff\ncmovz   r9, r15                                                        ; +0x1d1, 0x1403f3e01\nlea     r8, [rsi+288h]                                                 ; +0x1d5, 0x1403f3e05\nlea     rdx, [rbp+57h+Block]                                           ; +0x1dc, 0x1403f3e0c\ncall    MusicDownloadManager__rebuildCustomSFXMappings                 ; +0x1e0, 0x1403f3e10\ncmp     dword ptr [rsi+2B8h], 0                                        ; +0x1e5, 0x1403f3e15\njz      loc_1403F3FB5                                                  ; +0x1ec, 0x1403f3e1c\nmov     rdx, cs:qword_14090BFD0                                        ; +0x1f2, 0x1403f3e22\ntest    rdx, rdx                                                       ; +0x1f9, 0x1403f3e29\njnz     short loc_1403F3E5F                                            ; +0x1fc, 0x1403f3e2c\nmov     ecx, 6E8h; Size                                                ; +0x1fe, 0x1403f3e2e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x203, 0x1403f3e33\nmov     [rbp+57h+var_70], rax                                          ; +0x208, 0x1403f3e38\nmov     rcx, rax                                                       ; +0x20c, 0x1403f3e3c\ncall    GameManager__GameManager                                       ; +0x20f, 0x1403f3e3f\nnop                                                                    ; +0x214, 0x1403f3e44\nmov     cs:qword_14090BFD0, rax                                        ; +0x215, 0x1403f3e45\nmov     rcx, [rax]                                                     ; +0x21c, 0x1403f3e4c\nmov     rdx, [rcx+48h]                                                 ; +0x21f, 0x1403f3e4f\nmov     rcx, rax                                                       ; +0x223, 0x1403f3e53\ncall    rdx                                                            ; +0x226, 0x1403f3e56\nmov     rdx, cs:qword_14090BFD0                                        ; +0x228, 0x1403f3e58\nmov     eax, [rdx+2B4h]                                                ; +0x22f, 0x1403f3e5f\nsub     eax, [rdx+2B8h]                                                ; +0x235, 0x1403f3e65\ncmp     [rsi+2B8h], eax                                                ; +0x23b, 0x1403f3e6b\njnz     loc_1403F3FB5                                                  ; +0x241, 0x1403f3e71\ncmp     qword ptr [rsi+2C8h], 0                                        ; +0x247, 0x1403f3e77\njz      loc_1403F3FB5                                                  ; +0x24f, 0x1403f3e7f\nmov     rcx, cs:qword_14090C070                                        ; +0x255, 0x1403f3e85\ntest    rcx, rcx                                                       ; +0x25c, 0x1403f3e8c\njnz     short loc_1403F3EC2                                            ; +0x25f, 0x1403f3e8f\nmov     ecx, 3D0h; Size                                                ; +0x261, 0x1403f3e91\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x266, 0x1403f3e96\nmov     [rbp+57h+var_70], rax                                          ; +0x26b, 0x1403f3e9b\nmov     rcx, rax                                                       ; +0x26f, 0x1403f3e9f\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x272, 0x1403f3ea2\nnop                                                                    ; +0x277, 0x1403f3ea7\nmov     cs:qword_14090C070, rax                                        ; +0x278, 0x1403f3ea8\nmov     rcx, [rax]                                                     ; +0x27f, 0x1403f3eaf\nmov     rdx, [rcx+48h]                                                 ; +0x282, 0x1403f3eb2\nmov     rcx, rax                                                       ; +0x286, 0x1403f3eb6\ncall    rdx                                                            ; +0x289, 0x1403f3eb9\nmov     rcx, cs:qword_14090C070                                        ; +0x28b, 0x1403f3ebb\nlea     r14, [rsi+2C0h]                                                ; +0x292, 0x1403f3ec2\nmov     rdx, r14                                                       ; +0x299, 0x1403f3ec9\ncall    MusicDownloadManager__getCustomSFXCount                        ; +0x29c, 0x1403f3ecc\nmov     edx, eax                                                       ; +0x2a1, 0x1403f3ed1\ntest    eax, eax                                                       ; +0x2a3, 0x1403f3ed3\njle     short loc_1403F3F41                                            ; +0x2a5, 0x1403f3ed5\ncmp     eax, 3E8h                                                      ; +0x2a7, 0x1403f3ed7\njg      short loc_1403F3F41                                            ; +0x2ac, 0x1403f3edc\nmov     rcx, cs:qword_14090C070                                        ; +0x2ae, 0x1403f3ede\ntest    rcx, rcx                                                       ; +0x2b5, 0x1403f3ee5\njnz     short loc_1403F3F1B                                            ; +0x2b8, 0x1403f3ee8\nmov     ecx, 3D0h; Size                                                ; +0x2ba, 0x1403f3eea\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2bf, 0x1403f3eef\nmov     [rbp+57h+var_70], rax                                          ; +0x2c4, 0x1403f3ef4\nmov     rcx, rax                                                       ; +0x2c8, 0x1403f3ef8\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x2cb, 0x1403f3efb\nnop                                                                    ; +0x2d0, 0x1403f3f00\nmov     cs:qword_14090C070, rax                                        ; +0x2d1, 0x1403f3f01\nmov     rcx, [rax]                                                     ; +0x2d8, 0x1403f3f08\nmov     rdx, [rcx+48h]                                                 ; +0x2db, 0x1403f3f0b\nmov     rcx, rax                                                       ; +0x2df, 0x1403f3f0f\ncall    rdx                                                            ; +0x2e2, 0x1403f3f12\nmov     rcx, cs:qword_14090C070                                        ; +0x2e4, 0x1403f3f14\nmov     r8, r14                                                        ; +0x2eb, 0x1403f3f1b\nlea     rdx, [rbp+57h+var_40]                                          ; +0x2ee, 0x1403f3f1e\ncall    MusicDownloadManager__encodeCustomSFX                          ; +0x2f2, 0x1403f3f22\nlea     rcx, [rsi+298h]                                                ; +0x2f7, 0x1403f3f27\nmov     rdx, rax                                                       ; +0x2fe, 0x1403f3f2e\ncall    sub_140059C40                                                  ; +0x301, 0x1403f3f31\nlea     rcx, [rbp+57h+var_40]                                          ; +0x306, 0x1403f3f36\ncall    sub_14003D310                                                  ; +0x30a, 0x1403f3f3a\njmp     short loc_1403F3FB5                                            ; +0x30f, 0x1403f3f3f\nmov     eax, r15d                                                      ; +0x311, 0x1403f3f41\ncmp     edx, 3E8h                                                      ; +0x314, 0x1403f3f44\nsetle   al                                                             ; +0x31a, 0x1403f3f4a\ninc     eax                                                            ; +0x31d, 0x1403f3f4d\nmov     [rsi+2D0h], eax                                                ; +0x31f, 0x1403f3f4f\nlea     rax, [rsi+298h]                                                ; +0x325, 0x1403f3f55\nmov     [rax+10h], r15                                                 ; +0x32c, 0x1403f3f5c\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x330, 0x1403f3f60\njbe     short loc_1403F3F6A                                            ; +0x335, 0x1403f3f65\nmov     rax, [rax]                                                     ; +0x337, 0x1403f3f67\nmov     byte ptr [rax], 0                                              ; +0x33a, 0x1403f3f6a\nmov     [rsi+2B8h], r15d                                               ; +0x33d, 0x1403f3f6d\nmov     rdi, [r14]                                                     ; +0x344, 0x1403f3f74\nmov     rbx, [rdi+8]                                                   ; +0x347, 0x1403f3f77\ncmp     byte ptr [rbx+19h], 0                                          ; +0x34b, 0x1403f3f7b\njnz     short loc_1403F3FA6                                            ; +0x34f, 0x1403f3f7f\nmov     r8, [rbx+10h]                                                  ; +0x351, 0x1403f3f81\nmov     rdx, r14                                                       ; +0x355, 0x1403f3f85\nmov     rcx, r14                                                       ; +0x358, 0x1403f3f88\ncall    sub_1400BD500                                                  ; +0x35b, 0x1403f3f8b\nmov     rcx, rbx; Block                                                ; +0x360, 0x1403f3f90\nmov     rbx, [rbx]                                                     ; +0x363, 0x1403f3f93\nmov     edx, 20h ; ' '                                                 ; +0x366, 0x1403f3f96\ncall    j_j_free                                                       ; +0x36b, 0x1403f3f9b\ncmp     byte ptr [rbx+19h], 0                                          ; +0x370, 0x1403f3fa0\njz      short loc_1403F3F81                                            ; +0x374, 0x1403f3fa4\nmov     [rdi+8], rdi                                                   ; +0x376, 0x1403f3fa6\nmov     [rdi], rdi                                                     ; +0x37a, 0x1403f3faa\nmov     [rdi+10h], rdi                                                 ; +0x37d, 0x1403f3fad\nmov     [r14+8], r15                                                   ; +0x381, 0x1403f3fb1\nlea     rdx, [rbp+57h+var_68]                                          ; +0x385, 0x1403f3fb5\nlea     rcx, [rbp+57h+var_68]                                          ; +0x389, 0x1403f3fb9\ncall    sub_1400BD560                                                  ; +0x38d, 0x1403f3fbd\nnop                                                                    ; +0x392, 0x1403f3fc2\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x393, 0x1403f3fc3\ntest    rcx, rcx                                                       ; +0x397, 0x1403f3fc7\njz      short loc_1403F4013                                            ; +0x39a, 0x1403f3fca\nmov     rdx, [rbp+57h+var_48]                                          ; +0x39c, 0x1403f3fcc\nsub     rdx, rcx                                                       ; +0x3a0, 0x1403f3fd0\nand     rdx, 0FFFFFFFFFFFFFFF8h                                        ; +0x3a3, 0x1403f3fd3\nmov     rax, rcx                                                       ; +0x3a7, 0x1403f3fd7\ncmp     rdx, 1000h                                                     ; +0x3aa, 0x1403f3fda\njb      short loc_1403F400E                                            ; +0x3b1, 0x1403f3fe1\nadd     rdx, 27h ; '''                                                 ; +0x3b3, 0x1403f3fe3\nmov     rcx, [rcx-8]                                                   ; +0x3b7, 0x1403f3fe7\nsub     rax, rcx                                                       ; +0x3bb, 0x1403f3feb\nsub     rax, 8                                                         ; +0x3be, 0x1403f3fee\ncmp     rax, 1Fh                                                       ; +0x3c2, 0x1403f3ff2\njbe     short loc_1403F400E                                            ; +0x3c6, 0x1403f3ff6\nmov     [rsp+0A0h+Reserved], r15; Reserved                             ; +0x3c8, 0x1403f3ff8\nxor     r9d, r9d; LineNo                                               ; +0x3cd, 0x1403f3ffd\nxor     r8d, r8d; FileName                                             ; +0x3d0, 0x1403f4000\nxor     edx, edx; FunctionName                                         ; +0x3d3, 0x1403f4003\nxor     ecx, ecx; Expression                                           ; +0x3d5, 0x1403f4005\ncall    cs:_invoke_watson                                              ; +0x3d7, 0x1403f4007\nalign 2                                                                ; +0x3dd, 0x1403f400d\ncall    j_j_free                                                       ; +0x3de, 0x1403f400e\nmov     rcx, [rbp+57h+var_20]                                          ; +0x3e3, 0x1403f4013\nxor     rcx, rsp; StackCookie                                          ; +0x3e7, 0x1403f4017\ncall    __security_check_cookie                                        ; +0x3ea, 0x1403f401a\nlea     r11, [rsp+0A0h+var_10]                                         ; +0x3ef, 0x1403f401f\nmov     rbx, [r11+28h]                                                 ; +0x3f7, 0x1403f4027\nmov     rsi, [r11+30h]                                                 ; +0x3fb, 0x1403f402b\nmov     rdi, [r11+38h]                                                 ; +0x3ff, 0x1403f402f\nmov     rsp, r11                                                       ; +0x403, 0x1403f4033\npop     r15                                                            ; +0x406, 0x1403f4036\npop     r14                                                            ; +0x408, 0x1403f4038\npop     rbp                                                            ; +0x40a, 0x1403f403a\nretn                                                                   ; +0x40b, 0x1403f403b", "xrefs": ["LevelEditorLayer::saveLevel @ 0x1403ff22d", "LevelEditorLayer::doAutoSave @ 0x14040921d", "LevelEditorLayer::doAutoBackup @ 0x140409675", "<???> @ 0x140925478"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}