{"type": "func", "start": 13405820, "end": 13406012, "name": "EditorSoundBrowserLayer::onClose", "pseudocode": "// \n// EditorSoundBrowserLayer::onClose from 0xcc8e7c to 0xcc8f3c (192 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0xc65c8\n// > <???> @ 0x14fdda8\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 13:06:22 +0000\n// \n\n__int64 __fastcall EditorSoundBrowserLayer::onClose(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v4; // x0\n  FLAlertLayer *v5; // x0\n  char *v6; // x1\n  size_t v7; // x2\n  __int64 v8; // x0\n\n  v4 = (GameLevelManager *)GameLevelManager::sharedState(this);\n  if ( v4\n    && *(EditorSoundBrowserLayer **)(GameLevelManager::sharedState(v4) + 1328) == (EditorSoundBrowserLayer *)((char *)this + 1016) )\n  {\n    *(_QWORD *)(GameLevelManager::sharedState((EditorSoundBrowserLayer *)((char *)this + 1016)) + 1328) = 0;\n  }\n  v5 = *((FLAlertLayer **)this + 149);\n  if ( v5 )\n    FLAlertLayer::requestRebuild(v5);\n  if ( !*((_BYTE *)this + 1188) )\n  {\n    dword_154850C = *((_DWORD *)this + 262);\n    if ( &qword_155F230 != (__int64 *)((char *)this + 1120) )\n    {\n      if ( (*((_BYTE *)this + 1120) & 1) != 0 )\n      {\n        v6 = *((char **)this + 142);\n        v7 = *((_QWORD *)this + 141);\n      }\n      else\n      {\n        v6 = (char *)this + 1121;\n        v7 = *((_BYTE *)this + 1120) >> 1;\n      }\n      std::string::assign(&qword_155F230, v6, v7);\n    }\n  }\n  v8 = *((_QWORD *)this + 132);\n  if ( v8 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 536LL))(v8);\n    *((_QWORD *)this + 132) = 0;\n  }\n  return SetupTriggerPopup::onClose((GameObject **)this, a2);\n}", "assembly": "; \n; EditorSoundBrowserLayer::onClose from 0xcc8e7c to 0xcc8f3c (192 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0xc65c8\n; > <???> @ 0x14fdda8\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 13:06:22 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xcc8e7c\nMOV             X29, SP                                                ; +0x4, 0xcc8e80\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xcc8e84\nMOV             X19, X0                                                ; +0xc, 0xcc8e88\nMOV             X20, X1                                                ; +0x10, 0xcc8e8c\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x14, 0xcc8e90\nCBZ             X0, loc_CC8EAC                                         ; +0x18, 0xcc8e94\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x1c, 0xcc8e98\nLDR             X1, [X0,#0x530]                                        ; +0x20, 0xcc8e9c\nADD             X0, X19, #0x3F8; this                                  ; +0x24, 0xcc8ea0\nCMP             X1, X0                                                 ; +0x28, 0xcc8ea4\nB.EQ            loc_CC8F24                                             ; +0x2c, 0xcc8ea8\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x30, 0xcc8eac\nCBZ             X0, loc_CC8EB8                                         ; +0x34, 0xcc8eb0\nBL              _ZN12FLAlertLayer14requestRebuildEv; FLAlertLayer::requestRebuild(void) ; +0x38, 0xcc8eb4\nLDRB            W0, [X19,#0x4A4]                                       ; +0x3c, 0xcc8eb8\nCBNZ            W0, loc_CC8EF8                                         ; +0x40, 0xcc8ebc\nADRP            X2, #dword_154850C@PAGE                                ; +0x44, 0xcc8ec0\nADRP            X0, #qword_155F230@PAGE                                ; +0x48, 0xcc8ec4\nLDR             W4, [X19,#0x418]                                       ; +0x4c, 0xcc8ec8\nADD             X3, X19, #0x460                                        ; +0x50, 0xcc8ecc\nADD             X1, X0, #qword_155F230@PAGEOFF                         ; +0x54, 0xcc8ed0\nSTR             W4, [X2,#dword_154850C@PAGEOFF]                        ; +0x58, 0xcc8ed4\nCMP             X1, X3                                                 ; +0x5c, 0xcc8ed8\nB.EQ            loc_CC8EF8                                             ; +0x60, 0xcc8edc\nLDRB            W2, [X19,#0x460]                                       ; +0x64, 0xcc8ee0\nTBZ             W2, #0, loc_CC8F30                                     ; +0x68, 0xcc8ee4\nLDR             X1, [X19,#0x470]; int                                  ; +0x6c, 0xcc8ee8\nLDR             X2, [X19,#0x468]; size_t                               ; +0x70, 0xcc8eec\nADD             X0, X0, #qword_155F230@PAGEOFF; int                    ; +0x74, 0xcc8ef0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x78, 0xcc8ef4\nLDR             X0, [X19,#0x420]                                       ; +0x7c, 0xcc8ef8\nCBZ             X0, loc_CC8F10                                         ; +0x80, 0xcc8efc\nLDR             X1, [X0]                                               ; +0x84, 0xcc8f00\nLDR             X1, [X1,#0x218]                                        ; +0x88, 0xcc8f04\nBLR             X1                                                     ; +0x8c, 0xcc8f08\nSTR             XZR, [X19,#0x420]                                      ; +0x90, 0xcc8f0c\nMOV             X0, X19; this                                          ; +0x94, 0xcc8f10\nMOV             X1, X20; cocos2d::CCObject *                           ; +0x98, 0xcc8f14\nLDP             X19, X20, [SP,#var_s10]                                ; +0x9c, 0xcc8f18\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xa0, 0xcc8f1c\nB               _ZN17SetupTriggerPopup7onCloseEPN7cocos2d8CCObjectE; SetupTriggerPopup::onClose(cocos2d::CCObject *) ; +0xa4, 0xcc8f20\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0xa8, 0xcc8f24\nSTR             XZR, [X0,#0x530]                                       ; +0xac, 0xcc8f28\nB               loc_CC8EAC                                             ; +0xb0, 0xcc8f2c\nADD             X1, X19, #0x461                                        ; +0xb4, 0xcc8f30\nUBFX            X2, X2, #1, #7                                         ; +0xb8, 0xcc8f34\nB               loc_CC8EF0                                             ; +0xbc, 0xcc8f38", "xrefs": ["<???> @ 0xc65c8", "<???> @ 0x14fdda8"], "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"}