{"type": "func", "start": 7872868, "end": 7872978, "name": "EditorSoundBrowserLayer::onClose", "pseudocode": "// \n// EditorSoundBrowserLayer::onClose from 0x782164 to 0x7821d2 (110 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:29 +0000\n// \n\nint __fastcall EditorSoundBrowserLayer::onClose(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v4; // r0\n  EditorSoundBrowserLayer **v5; // r0\n  FLAlertLayer *v6; // r0\n  int v7; // r0\n\n  v4 = (GameLevelManager *)GameLevelManager::sharedState(this);\n  if ( v4 )\n  {\n    v5 = (EditorSoundBrowserLayer **)GameLevelManager::sharedState(v4);\n    if ( v5[218] == (EditorSoundBrowserLayer *)((char *)this + 712) )\n      *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v5) + 872) = 0;\n  }\n  v6 = *((FLAlertLayer **)this + 202);\n  if ( v6 )\n    FLAlertLayer::requestRebuild(v6);\n  if ( !*((_BYTE *)this + 804) )\n  {\n    dword_D1E2CC = *((_DWORD *)this + 182);\n    std::string::operator=((unsigned __int8 *)&dword_D2E30C, (unsigned __int8 *)this + 768);\n  }\n  v7 = *((_DWORD *)this + 184);\n  if ( v7 )\n  {\n    (*(void (__fastcall **)(int))(*(_DWORD *)v7 + 268))(v7);\n    *((_DWORD *)this + 184) = 0;\n  }\n  return SetupTriggerPopup::onClose(this, a2);\n}", "assembly": "; \n; EditorSoundBrowserLayer::onClose from 0x782164 to 0x7821d2 (110 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:29 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x782164\nMOV             R4, R0                                                 ; +0x2, 0x782166\nMOV             R5, R1                                                 ; +0x4, 0x782168\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x6, 0x78216a\nCBZ             R0, loc_782180                                         ; +0xa, 0x78216e\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0xc, 0x782170\nADD.W           R3, R4, #0x2C8                                         ; +0x10, 0x782174\nLDR.W           R2, [R0,#0x368]                                        ; +0x14, 0x782178\nCMP             R2, R3                                                 ; +0x18, 0x78217c\nBEQ             loc_7821C6                                             ; +0x1a, 0x78217e\nLDR.W           R0, [R4,#0x328]; this                                  ; +0x1c, 0x782180\nCBZ             R0, loc_78218A                                         ; +0x20, 0x782184\nBL              _ZN12FLAlertLayer14requestRebuildEv; FLAlertLayer::requestRebuild(void) ; +0x22, 0x782186\nLDRB.W          R3, [R4,#0x324]                                        ; +0x26, 0x78218a\nCBNZ            R3, loc_7821A6                                         ; +0x2a, 0x78218e\nLDR             R3, =(dword_D1E2CC - 0x7821A0)                         ; +0x2c, 0x782190\nADD.W           R1, R4, #0x300                                         ; +0x2e, 0x782192\nLDR.W           R2, [R4,#0x2D8]                                        ; +0x32, 0x782196\nLDR             R0, =(dword_D2E30C - 0x7821A2)                         ; +0x36, 0x78219a\nADD             R3, PC; dword_D1E2CC                                   ; +0x38, 0x78219c\nADD             R0, PC; dword_D2E30C                                   ; +0x3a, 0x78219e\nSTR             R2, [R3]                                               ; +0x3c, 0x7821a0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x3e, 0x7821a2\nLDR.W           R0, [R4,#0x2E0]                                        ; +0x42, 0x7821a6\nCBZ             R0, loc_7821BA                                         ; +0x46, 0x7821aa\nLDR             R3, [R0]                                               ; +0x48, 0x7821ac\nLDR.W           R3, [R3,#0x10C]                                        ; +0x4a, 0x7821ae\nBLX             R3                                                     ; +0x4e, 0x7821b2\nMOVS            R3, #0                                                 ; +0x50, 0x7821b4\nSTR.W           R3, [R4,#0x2E0]                                        ; +0x52, 0x7821b6\nMOV             R0, R4; this                                           ; +0x56, 0x7821ba\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x58, 0x7821bc\nPOP.W           {R3-R5,LR}                                             ; +0x5a, 0x7821be\nB.W             _ZN17SetupTriggerPopup7onCloseEPN7cocos2d8CCObjectE; SetupTriggerPopup::onClose(cocos2d::CCObject *) ; +0x5e, 0x7821c2\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x62, 0x7821c6\nMOVS            R3, #0                                                 ; +0x66, 0x7821ca\nSTR.W           R3, [R0,#0x368]                                        ; +0x68, 0x7821cc\nB               loc_782180                                             ; +0x6c, 0x7821d0", "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"}