{"type": "func", "start": 9953424, "end": 9953548, "name": "CustomSongLayer::onClose", "pseudocode": "// \n// CustomSongLayer::onClose from 0x97e090 to 0x97e10c (124 bytes)\n// \n// 4 xrefs:\n// > CustomSongLayer::keyBackClicked @ 0x97e110\n// > <???> @ 0x9c2f8\n// > CustomSongLayer::init @ 0x9808f8\n// > <???> @ 0x15444f0\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 12:57:49 +0000\n// \n\n__int64 __fastcall CustomSongLayer::onClose(CustomSongLayer *this, cocos2d::CCObject *a2)\n{\n  void (__fastcall ***v3)(_QWORD); // x0\n  FMODAudioEngine *v4; // x0\n  FMODAudioEngine *v5; // x0\n\n  v3 = *((void (__fastcall ****)(_QWORD))this + 88);\n  if ( v3 )\n    (**v3)(v3);\n  v4 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 86) + 1160LL))(\n                            *((_QWORD *)this + 86),\n                            0);\n  v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4);\n  FMODAudioEngine::stopAllMusic(v5, 1);\n  (*(void (__fastcall **)(CustomSongLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);\n  return (*(__int64 (__fastcall **)(CustomSongLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);\n}", "assembly": "; \n; CustomSongLayer::onClose from 0x97e090 to 0x97e10c (124 bytes)\n; \n; 4 xrefs:\n; > CustomSongLayer::keyBackClicked @ 0x97e110\n; > <???> @ 0x9c2f8\n; > CustomSongLayer::init @ 0x9808f8\n; > <???> @ 0x15444f0\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 12:57:49 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x97e090\nMOV             X29, SP                                                ; +0x4, 0x97e094\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x97e098\nMOV             X19, X0                                                ; +0xc, 0x97e09c\nLDR             X0, [X0,#0x2C0]                                        ; +0x10, 0x97e0a0\nCBZ             X0, loc_97E0B4                                         ; +0x14, 0x97e0a4\nLDR             X1, [X0]                                               ; +0x18, 0x97e0a8\nLDR             X1, [X1]                                               ; +0x1c, 0x97e0ac\nBLR             X1                                                     ; +0x20, 0x97e0b0\nLDR             X2, [X19,#0x2B0]                                       ; +0x24, 0x97e0b4\nMOV             W1, #0                                                 ; +0x28, 0x97e0b8\nMOV             X0, X2                                                 ; +0x2c, 0x97e0bc\nLDR             X2, [X2]                                               ; +0x30, 0x97e0c0\nLDR             X2, [X2,#0x488]                                        ; +0x34, 0x97e0c4\nBLR             X2                                                     ; +0x38, 0x97e0c8\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x3c, 0x97e0cc\nMOV             W1, #1; bool                                           ; +0x40, 0x97e0d0\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x44, 0x97e0d4\nLDR             X2, [X19]                                              ; +0x48, 0x97e0d8\nMOV             X0, X19                                                ; +0x4c, 0x97e0dc\nMOV             W1, #0                                                 ; +0x50, 0x97e0e0\nLDR             X2, [X2,#0x430]                                        ; +0x54, 0x97e0e4\nBLR             X2                                                     ; +0x58, 0x97e0e8\nLDR             X2, [X19]                                              ; +0x5c, 0x97e0ec\nMOV             X0, X19                                                ; +0x60, 0x97e0f0\nMOV             W1, #1                                                 ; +0x64, 0x97e0f4\nLDR             X2, [X2,#0x210]                                        ; +0x68, 0x97e0f8\nBLR             X2                                                     ; +0x6c, 0x97e0fc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x70, 0x97e100\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x74, 0x97e104\nRET                                                                    ; +0x78, 0x97e108", "xrefs": ["CustomSongLayer::keyBackClicked @ 0x97e110", "<???> @ 0x9c2f8", "CustomSongLayer::init @ 0x9808f8", "<???> @ 0x15444f0"], "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"}