{"type": "func", "start": 4304377248, "end": 4304377588, "name": "EditorSoundConfigInfoLayer::onClose", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onClose from 0x1008f95a0 to 0x1008f96f4 (340 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bb5ff0\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 12:37:59 +0000\n// \n\n__int64 __fastcall EditorSoundConfigInfoLayer::onClose(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rax\n  __int64 v4; // rdx\n  _QWORD *v5; // rdi\n  __int64 v6; // rdi\n  __int64 v7; // rdi\n\n  if ( GameLevelManager::sharedState() )\n  {\n    if ( *(_QWORD *)(GameLevelManager::sharedState() + 1336) == a1 + 1016 )\n    {\n      *(_QWORD *)(GameLevelManager::sharedState() + 1336) = 0;\n      if ( *(_QWORD *)(GameLevelManager::sharedState() + 1344) != a1 + 1024 )\n      {\nLABEL_4:\n        if ( *(_QWORD *)(GameLevelManager::sharedState() + 1360) != a1 + 1064 )\n          goto LABEL_5;\nLABEL_15:\n        *(_QWORD *)(GameLevelManager::sharedState() + 1360) = 0;\n        goto LABEL_5;\n      }\n    }\n    else if ( *(_QWORD *)(GameLevelManager::sharedState() + 1344) != a1 + 1024 )\n    {\n      goto LABEL_4;\n    }\n    *(_QWORD *)(GameLevelManager::sharedState() + 1344) = 0;\n    if ( *(_QWORD *)(GameLevelManager::sharedState() + 1360) != a1 + 1064 )\n      goto LABEL_5;\n    goto LABEL_15;\n  }\nLABEL_5:\n  v3 = MusicDownloadManager::sharedState();\n  MusicDownloadManager::removeMusicDownloadDelegate(v3, a1 + 1080);\n  v5 = *(_QWORD **)(a1 + 1232);\n  if ( v5 )\n  {\n    v5[73] = 0;\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*v5 + 1160LL))(v5, 0);\n    *(_QWORD *)(a1 + 1232) = 0;\n  }\n  v6 = *(_QWORD *)(a1 + 1112);\n  if ( v6 )\n    LoadingCircle::fadeAndRemove(v6);\n  *(_QWORD *)(a1 + 1112) = 0;\n  v7 = *(_QWORD *)(a1 + 1104);\n  if ( v7 && (unsigned int)(*(_DWORD *)(a1 + 1096) - 1) <= 1 )\n    sub_1008F18A0(v7);\n  return SetupTriggerPopup::onClose(a1, a2, v4);\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onClose from 0x1008f95a0 to 0x1008f96f4 (340 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bb5ff0\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 12:37:59 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008f95a0\nmov     rbp, rsp                                                       ; +0x1, 0x1008f95a1\npush    r14                                                            ; +0x4, 0x1008f95a4\npush    rbx                                                            ; +0x6, 0x1008f95a6\nmov     rbx, rsi                                                       ; +0x7, 0x1008f95a7\nmov     r14, rdi                                                       ; +0xa, 0x1008f95aa\ncall    GameLevelManager__sharedState                                  ; +0xd, 0x1008f95ad\ntest    rax, rax                                                       ; +0x12, 0x1008f95b2\njz      short loc_1008F9602                                            ; +0x15, 0x1008f95b5\ncall    GameLevelManager__sharedState                                  ; +0x17, 0x1008f95b7\nlea     rcx, [r14+3F8h]                                                ; +0x1c, 0x1008f95bc\ncmp     [rax+538h], rcx                                                ; +0x23, 0x1008f95c3\njz      loc_1008F968D                                                  ; +0x2a, 0x1008f95ca\ncall    GameLevelManager__sharedState                                  ; +0x30, 0x1008f95d0\nlea     rcx, [r14+400h]                                                ; +0x35, 0x1008f95d5\ncmp     [rax+540h], rcx                                                ; +0x3c, 0x1008f95dc\njz      loc_1008F96B6                                                  ; +0x43, 0x1008f95e3\ncall    GameLevelManager__sharedState                                  ; +0x49, 0x1008f95e9\nlea     rcx, [r14+428h]                                                ; +0x4e, 0x1008f95ee\ncmp     [rax+550h], rcx                                                ; +0x55, 0x1008f95f5\njz      loc_1008F96DF                                                  ; +0x5c, 0x1008f95fc\ncall    MusicDownloadManager__sharedState                              ; +0x62, 0x1008f9602\nlea     rsi, [r14+438h]                                                ; +0x67, 0x1008f9607\nmov     rdi, rax                                                       ; +0x6e, 0x1008f960e\ncall    MusicDownloadManager__removeMusicDownloadDelegate              ; +0x71, 0x1008f9611\nmov     rdi, [r14+4D0h]                                                ; +0x76, 0x1008f9616\ntest    rdi, rdi                                                       ; +0x7d, 0x1008f961d\njz      short loc_1008F9643                                            ; +0x80, 0x1008f9620\nmov     qword ptr [rdi+248h], 0                                        ; +0x82, 0x1008f9622\nmov     rax, [rdi]                                                     ; +0x8d, 0x1008f962d\nxor     esi, esi                                                       ; +0x90, 0x1008f9630\ncall    qword ptr [rax+488h]                                           ; +0x92, 0x1008f9632\nmov     qword ptr [r14+4D0h], 0                                        ; +0x98, 0x1008f9638\nmov     rdi, [r14+458h]                                                ; +0xa3, 0x1008f9643\ntest    rdi, rdi                                                       ; +0xaa, 0x1008f964a\njz      short loc_1008F9654                                            ; +0xad, 0x1008f964d\ncall    LoadingCircle__fadeAndRemove                                   ; +0xaf, 0x1008f964f\nmov     qword ptr [r14+458h], 0                                        ; +0xb4, 0x1008f9654\nmov     rdi, [r14+450h]                                                ; +0xbf, 0x1008f965f\ntest    rdi, rdi                                                       ; +0xc6, 0x1008f9666\njz      short loc_1008F967E                                            ; +0xc9, 0x1008f9669\nmov     eax, [r14+448h]                                                ; +0xcb, 0x1008f966b\ndec     eax                                                            ; +0xd2, 0x1008f9672\ncmp     eax, 1                                                         ; +0xd4, 0x1008f9674\nja      short loc_1008F967E                                            ; +0xd7, 0x1008f9677\ncall    sub_1008F18A0                                                  ; +0xd9, 0x1008f9679\nmov     rdi, r14                                                       ; +0xde, 0x1008f967e\nmov     rsi, rbx                                                       ; +0xe1, 0x1008f9681\npop     rbx                                                            ; +0xe4, 0x1008f9684\npop     r14                                                            ; +0xe5, 0x1008f9685\npop     rbp                                                            ; +0xe7, 0x1008f9687\njmp     SetupTriggerPopup__onClose                                     ; +0xe8, 0x1008f9688\ncall    GameLevelManager__sharedState                                  ; +0xed, 0x1008f968d\nmov     qword ptr [rax+538h], 0                                        ; +0xf2, 0x1008f9692\ncall    GameLevelManager__sharedState                                  ; +0xfd, 0x1008f969d\nlea     rcx, [r14+400h]                                                ; +0x102, 0x1008f96a2\ncmp     [rax+540h], rcx                                                ; +0x109, 0x1008f96a9\njnz     loc_1008F95E9                                                  ; +0x110, 0x1008f96b0\ncall    GameLevelManager__sharedState                                  ; +0x116, 0x1008f96b6\nmov     qword ptr [rax+540h], 0                                        ; +0x11b, 0x1008f96bb\ncall    GameLevelManager__sharedState                                  ; +0x126, 0x1008f96c6\nlea     rcx, [r14+428h]                                                ; +0x12b, 0x1008f96cb\ncmp     [rax+550h], rcx                                                ; +0x132, 0x1008f96d2\njnz     loc_1008F9602                                                  ; +0x139, 0x1008f96d9\ncall    GameLevelManager__sharedState                                  ; +0x13f, 0x1008f96df\nmov     qword ptr [rax+550h], 0                                        ; +0x144, 0x1008f96e4\njmp     loc_1008F9602                                                  ; +0x14f, 0x1008f96ef", "xrefs": ["<???> @ 0x100bb5ff0"], "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"}