{"type": "func", "start": 4579104, "end": 4579172, "name": "CustomSongLayer::onClose", "pseudocode": "// \n// CustomSongLayer::onClose from 0x45df20 to 0x45df64 (68 bytes)\n// \n// 1 xrefs:\n// > CustomSongLayer::keyBackClicked @ 0x45df66\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CustomSongLayer::onClose(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  CustomSongLayerDelegate *m_delegate; // r0\n  FMODAudioEngine *v4; // r0\n\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    ((void (__fastcall *)(CustomSongLayerDelegate *, cocos2d::CCObject *))m_delegate->customSongLayerClosed)(\n      m_delegate,\n      a2);\n  a1->m_songIDInput->onClickTrackNode(a1->m_songIDInput, 0);\n  v4 = FMODAudioEngine::sharedEngine();\n  FMODAudioEngine::stopAllMusic(v4, (bool)&dword_0 + 1);\n  a1->setKeypadEnabled(a1, 0);\n  a1->removeFromParentAndCleanup(a1, 1);\n}", "assembly": "; \n; CustomSongLayer::onClose from 0x45df20 to 0x45df64 (68 bytes)\n; \n; 1 xrefs:\n; > CustomSongLayer::keyBackClicked @ 0x45df66\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4,LR}                                                ; +0x0, 0x45df20\nMOV             R4, R0                                                 ; +0x2, 0x45df22\nLDR.W           R0, [R0,#0x208]                                        ; +0x4, 0x45df24\nCBZ             R0, loc_45DF30                                         ; +0x8, 0x45df28\nLDR             R3, [R0]                                               ; +0xa, 0x45df2a\nLDR             R3, [R3]                                               ; +0xc, 0x45df2c\nBLX             R3                                                     ; +0xe, 0x45df2e\nLDR.W           R0, [R4,#0x200]                                        ; +0x10, 0x45df30\nMOVS            R1, #0                                                 ; +0x14, 0x45df34\nLDR             R3, [R0]                                               ; +0x16, 0x45df36\nLDR.W           R3, [R3,#0x23C]                                        ; +0x18, 0x45df38\nBLX             R3                                                     ; +0x1c, 0x45df3c\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x1e, 0x45df3e\nMOVS            R1, #(dword_0+1); p                                    ; +0x22, 0x45df42\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x24, 0x45df44\nLDR             R3, [R4]                                               ; +0x28, 0x45df48\nMOV             R0, R4                                                 ; +0x2a, 0x45df4a\nMOVS            R1, #0                                                 ; +0x2c, 0x45df4c\nLDR.W           R3, [R3,#0x210]                                        ; +0x2e, 0x45df4e\nBLX             R3                                                     ; +0x32, 0x45df52\nLDR             R3, [R4]                                               ; +0x34, 0x45df54\nMOV             R0, R4                                                 ; +0x36, 0x45df56\nMOVS            R1, #1                                                 ; +0x38, 0x45df58\nPOP.W           {R4,LR}                                                ; +0x3a, 0x45df5a\nLDR.W           R3, [R3,#0x100]                                        ; +0x3e, 0x45df5e\nBX              R3                                                     ; +0x42, 0x45df62", "xrefs": ["CustomSongLayer::keyBackClicked @ 0x45df66"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}