{"type": "func", "start": 5745948, "end": 5746016, "name": "CustomSongLayer::onClose", "pseudocode": "// \n// CustomSongLayer::onClose from 0x57ad1c to 0x57ad60 (68 bytes)\n// \n// 1 xrefs:\n// > CustomSongLayer::keyBackClicked @ 0x57ad62\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:52:48 +0000\n// \n\nint __fastcall CustomSongLayer::onClose(CustomSongLayer *this, cocos2d::CCObject *a2)\n{\n  void (__fastcall ***v3)(_DWORD, cocos2d::CCObject *); // r0\n  FMODAudioEngine *v4; // r0\n  FMODAudioEngine *v5; // r0\n\n  v3 = *((void (__fastcall ****)(_DWORD, cocos2d::CCObject *))this + 135);\n  if ( v3 )\n    (**v3)(v3, a2);\n  v4 = (FMODAudioEngine *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 133) + 580))(\n                            *((_DWORD *)this + 133),\n                            0);\n  v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4);\n  FMODAudioEngine::stopAllMusic(v5, 1);\n  (*(void (__fastcall **)(CustomSongLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);\n  return (*(int (__fastcall **)(CustomSongLayer *, int))(*(_DWORD *)this + 264))(this, 1);\n}", "assembly": "; \n; CustomSongLayer::onClose from 0x57ad1c to 0x57ad60 (68 bytes)\n; \n; 1 xrefs:\n; > CustomSongLayer::keyBackClicked @ 0x57ad62\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:52:48 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x57ad1c\nMOV             R4, R0                                                 ; +0x2, 0x57ad1e\nLDR.W           R0, [R0,#0x21C]                                        ; +0x4, 0x57ad20\nCBZ             R0, loc_57AD2C                                         ; +0x8, 0x57ad24\nLDR             R3, [R0]                                               ; +0xa, 0x57ad26\nLDR             R3, [R3]                                               ; +0xc, 0x57ad28\nBLX             R3                                                     ; +0xe, 0x57ad2a\nLDR.W           R0, [R4,#0x214]                                        ; +0x10, 0x57ad2c\nMOVS            R1, #0                                                 ; +0x14, 0x57ad30\nLDR             R3, [R0]                                               ; +0x16, 0x57ad32\nLDR.W           R3, [R3,#0x244]                                        ; +0x18, 0x57ad34\nBLX             R3                                                     ; +0x1c, 0x57ad38\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x1e, 0x57ad3a\nMOVS            R1, #1; bool                                           ; +0x22, 0x57ad3e\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x24, 0x57ad40\nLDR             R3, [R4]                                               ; +0x28, 0x57ad44\nMOV             R0, R4                                                 ; +0x2a, 0x57ad46\nMOVS            R1, #0                                                 ; +0x2c, 0x57ad48\nLDR.W           R3, [R3,#0x218]                                        ; +0x2e, 0x57ad4a\nBLX             R3                                                     ; +0x32, 0x57ad4e\nLDR             R3, [R4]                                               ; +0x34, 0x57ad50\nMOV             R0, R4                                                 ; +0x36, 0x57ad52\nMOVS            R1, #1                                                 ; +0x38, 0x57ad54\nPOP.W           {R4,LR}                                                ; +0x3a, 0x57ad56\nLDR.W           R3, [R3,#0x108]                                        ; +0x3e, 0x57ad5a\nBX              R3                                                     ; +0x42, 0x57ad5e", "xrefs": ["CustomSongLayer::keyBackClicked @ 0x57ad62"], "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"}