{"type": "func", "start": 7883548, "end": 7883728, "name": "EditorSoundConfigInfoLayer::onClose", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onClose from 0x784b1c to 0x784bd0 (180 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:31 +0000\n// \n\nint __fastcall EditorSoundConfigInfoLayer::onClose(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v4; // r0\n  GameLevelManager *v5; // r0\n  GameLevelManager *v6; // r0\n  cocos2d::CCArray **v7; // r0\n  int v8; // r1\n  int v9; // r2\n  int v10; // r3\n  cocos2d::CCNode **v11; // r0\n  FLAlertLayer *v12; // r0\n\n  v4 = (GameLevelManager *)GameLevelManager::sharedState(this);\n  if ( v4 )\n  {\n    v5 = (GameLevelManager *)GameLevelManager::sharedState(v4);\n    if ( *((EditorSoundConfigInfoLayer **)v5 + 219) == (EditorSoundConfigInfoLayer *)((char *)this + 712) )\n    {\n      v5 = (GameLevelManager *)GameLevelManager::sharedState(v5);\n      *((_DWORD *)v5 + 219) = 0;\n    }\n    v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);\n    if ( *((EditorSoundConfigInfoLayer **)v6 + 220) == (EditorSoundConfigInfoLayer *)((char *)this + 716) )\n    {\n      v6 = (GameLevelManager *)GameLevelManager::sharedState(v6);\n      *((_DWORD *)v6 + 220) = 0;\n    }\n    v4 = (GameLevelManager *)GameLevelManager::sharedState(v6);\n    if ( *((EditorSoundConfigInfoLayer **)v4 + 222) == (EditorSoundConfigInfoLayer *)((char *)this + 736) )\n    {\n      v4 = (GameLevelManager *)GameLevelManager::sharedState(v4);\n      *((_DWORD *)v4 + 222) = 0;\n    }\n  }\n  v7 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(v4);\n  MusicDownloadManager::removeMusicDownloadDelegate(v7, (EditorSoundConfigInfoLayer *)((char *)this + 744));\n  v10 = *((_DWORD *)this + 205);\n  if ( v10 )\n  {\n    *(_DWORD *)(v10 + 420) = 0;\n    (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 205) + 580))(*((_DWORD *)this + 205), 0);\n    *((_DWORD *)this + 205) = 0;\n  }\n  v11 = *((cocos2d::CCNode ***)this + 190);\n  if ( v11 )\n    LoadingCircle::fadeAndRemove(v11, v8, v9);\n  v12 = *((FLAlertLayer **)this + 189);\n  *((_DWORD *)this + 190) = 0;\n  if ( v12 && (unsigned int)(*((_DWORD *)this + 188) - 1) <= 1 )\n    EditorSoundBrowserLayer::onConfigListChanged(v12);\n  return SetupTriggerPopup::onClose(this, a2);\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onClose from 0x784b1c to 0x784bd0 (180 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:31 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x784b1c\nMOV             R4, R0                                                 ; +0x2, 0x784b1e\nMOV             R6, R1                                                 ; +0x4, 0x784b20\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x6, 0x784b22\nCBZ             R0, loc_784B76                                         ; +0xa, 0x784b26\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0xc, 0x784b28\nADD.W           R3, R4, #0x2C8                                         ; +0x10, 0x784b2c\nLDR.W           R2, [R0,#0x36C]                                        ; +0x14, 0x784b30\nCMP             R2, R3                                                 ; +0x18, 0x784b34\nBNE             loc_784B42                                             ; +0x1a, 0x784b36\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x1c, 0x784b38\nMOVS            R3, #0                                                 ; +0x20, 0x784b3c\nSTR.W           R3, [R0,#0x36C]                                        ; +0x22, 0x784b3e\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x26, 0x784b42\nADD.W           R3, R4, #0x2CC                                         ; +0x2a, 0x784b46\nLDR.W           R2, [R0,#0x370]                                        ; +0x2e, 0x784b4a\nCMP             R2, R3                                                 ; +0x32, 0x784b4e\nBNE             loc_784B5C                                             ; +0x34, 0x784b50\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x36, 0x784b52\nMOVS            R3, #0                                                 ; +0x3a, 0x784b56\nSTR.W           R3, [R0,#0x370]                                        ; +0x3c, 0x784b58\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x40, 0x784b5c\nADD.W           R3, R4, #0x2E0                                         ; +0x44, 0x784b60\nLDR.W           R2, [R0,#0x378]                                        ; +0x48, 0x784b64\nCMP             R2, R3                                                 ; +0x4c, 0x784b68\nBNE             loc_784B76                                             ; +0x4e, 0x784b6a\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x50, 0x784b6c\nMOVS            R3, #0                                                 ; +0x54, 0x784b70\nSTR.W           R3, [R0,#0x378]                                        ; +0x56, 0x784b72\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x5a, 0x784b76\nADD.W           R1, R4, #0x2E8; MusicDownloadDelegate *                ; +0x5e, 0x784b7a\nBL              _ZN20MusicDownloadManager27removeMusicDownloadDelegateEP21MusicDownloadDelegate; MusicDownloadManager::removeMusicDownloadDelegate(MusicDownloadDelegate *) ; +0x62, 0x784b7e\nLDR.W           R3, [R4,#0x334]                                        ; +0x66, 0x784b82\nCBZ             R3, loc_784BA0                                         ; +0x6a, 0x784b86\nMOVS            R5, #0                                                 ; +0x6c, 0x784b88\nSTR.W           R5, [R3,#0x1A4]                                        ; +0x6e, 0x784b8a\nLDR.W           R0, [R4,#0x334]                                        ; +0x72, 0x784b8e\nMOV             R1, R5                                                 ; +0x76, 0x784b92\nLDR             R3, [R0]                                               ; +0x78, 0x784b94\nLDR.W           R3, [R3,#0x244]                                        ; +0x7a, 0x784b96\nBLX             R3                                                     ; +0x7e, 0x784b9a\nSTR.W           R5, [R4,#0x334]                                        ; +0x80, 0x784b9c\nLDR.W           R0, [R4,#0x2F8]; this                                  ; +0x84, 0x784ba0\nCBZ             R0, loc_784BAA                                         ; +0x88, 0x784ba4\nBL              _ZN13LoadingCircle13fadeAndRemoveEv; LoadingCircle::fadeAndRemove(void) ; +0x8a, 0x784ba6\nLDR.W           R0, [R4,#0x2F4]; this                                  ; +0x8e, 0x784baa\nMOVS            R3, #0                                                 ; +0x92, 0x784bae\nSTR.W           R3, [R4,#0x2F8]                                        ; +0x94, 0x784bb0\nCBZ             R0, loc_784BC4                                         ; +0x98, 0x784bb4\nLDR.W           R3, [R4,#0x2F0]                                        ; +0x9a, 0x784bb6\nSUBS            R3, #1                                                 ; +0x9e, 0x784bba\nCMP             R3, #1                                                 ; +0xa0, 0x784bbc\nBHI             loc_784BC4                                             ; +0xa2, 0x784bbe\nBL              _ZN23EditorSoundBrowserLayer19onConfigListChangedEv; EditorSoundBrowserLayer::onConfigListChanged(void) ; +0xa4, 0x784bc0\nMOV             R0, R4; this                                           ; +0xa8, 0x784bc4\nMOV             R1, R6; cocos2d::CCObject *                            ; +0xaa, 0x784bc6\nPOP.W           {R4-R6,LR}                                             ; +0xac, 0x784bc8\nB.W             _ZN17SetupTriggerPopup7onCloseEPN7cocos2d8CCObjectE; SetupTriggerPopup::onClose(cocos2d::CCObject *) ; +0xb0, 0x784bcc", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}