{"type": "func", "start": 4300030656, "end": 4300030876, "name": "EditorSoundConfigInfoLayer::onClose", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onClose from 0x1004d42c0 to 0x1004d439c (220 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100988ff8\n// \n// This function is hookable on this platform (idp: arm, 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:06:30 +0000\n// \n\n__int64 __fastcall EditorSoundConfigInfoLayer::onClose(__int64 a1)\n{\n  __int64 v2; // x0\n  _QWORD *v3; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n\n  if ( GameLevelManager::sharedState() )\n  {\n    if ( *(_QWORD *)(GameLevelManager::sharedState() + 1336) == a1 + 1016 )\n      *(_QWORD *)(GameLevelManager::sharedState() + 1336) = 0;\n    if ( *(_QWORD *)(GameLevelManager::sharedState() + 1344) == a1 + 1024 )\n      *(_QWORD *)(GameLevelManager::sharedState() + 1344) = 0;\n    if ( *(_QWORD *)(GameLevelManager::sharedState() + 1360) == a1 + 1064 )\n      *(_QWORD *)(GameLevelManager::sharedState() + 1360) = 0;\n  }\n  v2 = MusicDownloadManager::sharedState();\n  MusicDownloadManager::removeMusicDownloadDelegate(v2, a1 + 1080);\n  v3 = *(_QWORD **)(a1 + 1232);\n  if ( v3 )\n  {\n    v3[73] = 0;\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*v3 + 1160LL))(v3, 0);\n    *(_QWORD *)(a1 + 1232) = 0;\n  }\n  v4 = *(_QWORD *)(a1 + 1112);\n  if ( v4 )\n    LoadingCircle::fadeAndRemove(v4);\n  *(_QWORD *)(a1 + 1112) = 0;\n  v5 = *(_QWORD *)(a1 + 1104);\n  if ( v5 && (unsigned int)(*(_DWORD *)(a1 + 1096) - 1) <= 1 )\n    j_FLAlertLayer::requestRebuild(v5);\n  return SetupTriggerPopup::onClose(a1);\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onClose from 0x1004d42c0 to 0x1004d439c (220 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100988ff8\n; \n; This function is hookable on this platform (idp: arm, 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:06:30 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1004d42c0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1004d42c4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1004d42c8\nMOV             X19, X1                                                ; +0xc, 0x1004d42cc\nMOV             X20, X0                                                ; +0x10, 0x1004d42d0\nBL              GameLevelManager__sharedState                          ; +0x14, 0x1004d42d4\nCBZ             X0, loc_1004D4330                                      ; +0x18, 0x1004d42d8\nBL              GameLevelManager__sharedState                          ; +0x1c, 0x1004d42dc\nLDR             X8, [X0,#0x538]                                        ; +0x20, 0x1004d42e0\nADD             X9, X20, #0x3F8                                        ; +0x24, 0x1004d42e4\nCMP             X8, X9                                                 ; +0x28, 0x1004d42e8\nB.NE            loc_1004D42F8                                          ; +0x2c, 0x1004d42ec\nBL              GameLevelManager__sharedState                          ; +0x30, 0x1004d42f0\nSTR             XZR, [X0,#0x538]                                       ; +0x34, 0x1004d42f4\nBL              GameLevelManager__sharedState                          ; +0x38, 0x1004d42f8\nLDR             X8, [X0,#0x540]                                        ; +0x3c, 0x1004d42fc\nADD             X9, X20, #0x400                                        ; +0x40, 0x1004d4300\nCMP             X8, X9                                                 ; +0x44, 0x1004d4304\nB.NE            loc_1004D4314                                          ; +0x48, 0x1004d4308\nBL              GameLevelManager__sharedState                          ; +0x4c, 0x1004d430c\nSTR             XZR, [X0,#0x540]                                       ; +0x50, 0x1004d4310\nBL              GameLevelManager__sharedState                          ; +0x54, 0x1004d4314\nLDR             X8, [X0,#0x550]                                        ; +0x58, 0x1004d4318\nADD             X9, X20, #0x428                                        ; +0x5c, 0x1004d431c\nCMP             X8, X9                                                 ; +0x60, 0x1004d4320\nB.NE            loc_1004D4330                                          ; +0x64, 0x1004d4324\nBL              GameLevelManager__sharedState                          ; +0x68, 0x1004d4328\nSTR             XZR, [X0,#0x550]                                       ; +0x6c, 0x1004d432c\nBL              MusicDownloadManager__sharedState                      ; +0x70, 0x1004d4330\nADD             X1, X20, #0x438                                        ; +0x74, 0x1004d4334\nBL              MusicDownloadManager__removeMusicDownloadDelegate      ; +0x78, 0x1004d4338\nLDR             X0, [X20,#0x4D0]                                       ; +0x7c, 0x1004d433c\nCBZ             X0, loc_1004D435C                                      ; +0x80, 0x1004d4340\nSTR             XZR, [X0,#0x248]                                       ; +0x84, 0x1004d4344\nLDR             X8, [X0]                                               ; +0x88, 0x1004d4348\nLDR             X8, [X8,#0x488]                                        ; +0x8c, 0x1004d434c\nMOV             W1, #0                                                 ; +0x90, 0x1004d4350\nBLR             X8                                                     ; +0x94, 0x1004d4354\nSTR             XZR, [X20,#0x4D0]                                      ; +0x98, 0x1004d4358\nLDR             X0, [X20,#0x458]                                       ; +0x9c, 0x1004d435c\nCBZ             X0, loc_1004D4368                                      ; +0xa0, 0x1004d4360\nBL              LoadingCircle__fadeAndRemove                           ; +0xa4, 0x1004d4364\nSTR             XZR, [X20,#0x458]                                      ; +0xa8, 0x1004d4368\nLDR             X0, [X20,#0x450]                                       ; +0xac, 0x1004d436c\nCBZ             X0, loc_1004D4388                                      ; +0xb0, 0x1004d4370\nLDR             W8, [X20,#0x448]                                       ; +0xb4, 0x1004d4374\nSUB             W8, W8, #1                                             ; +0xb8, 0x1004d4378\nCMP             W8, #1                                                 ; +0xbc, 0x1004d437c\nB.HI            loc_1004D4388                                          ; +0xc0, 0x1004d4380\nBL              j_FLAlertLayer__requestRebuild                         ; +0xc4, 0x1004d4384\nMOV             X0, X20                                                ; +0xc8, 0x1004d4388\nMOV             X1, X19                                                ; +0xcc, 0x1004d438c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xd0, 0x1004d4390\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xd4, 0x1004d4394\nB               SetupTriggerPopup__onClose                             ; +0xd8, 0x1004d4398", "xrefs": ["<???> @ 0x100988ff8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}