{"type": "func", "start": 4296295840, "end": 4296295956, "name": "CustomSongLayer::onClose", "pseudocode": "// \n// CustomSongLayer::onClose from 0x1001445a0 to 0x100144614 (116 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::keyBackClicked @ 0x100144d1c\n// > sub_100144D20 @ 0x100144d24\n// > CustomSongLayer::init @ 0x100143c34\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 __fastcall CustomSongLayer::onClose(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  CustomSongLayerDelegate *m_delegate; // x0\n  FMODAudioEngine *v4; // x0\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  ((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_songIDInput->onClickTrackNode)(a1->m_songIDInput, 0);\n  v4 = FMODAudioEngine::sharedEngine();\n  FMODAudioEngine::stopAllMusic(v4, 1);\n  ((void (__fastcall *)(CustomSongLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(CustomSongLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; CustomSongLayer::onClose from 0x1001445a0 to 0x100144614 (116 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::keyBackClicked @ 0x100144d1c\n; > sub_100144D20 @ 0x100144d24\n; > CustomSongLayer::init @ 0x100143c34\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001445a0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001445a4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001445a8\nMOV             X19, X0                                                ; +0xc, 0x1001445ac\nLDR             X0, [X0,#0x2A8]                                        ; +0x10, 0x1001445b0\nCBZ             X0, loc_1001445C4                                      ; +0x14, 0x1001445b4\nLDR             X8, [X0]                                               ; +0x18, 0x1001445b8\nLDR             X8, [X8]                                               ; +0x1c, 0x1001445bc\nBLR             X8                                                     ; +0x20, 0x1001445c0\nLDR             X0, [X19,#0x298]                                       ; +0x24, 0x1001445c4\nLDR             X8, [X0]                                               ; +0x28, 0x1001445c8\nLDR             X8, [X8,#0x478]                                        ; +0x2c, 0x1001445cc\nMOV             W1, #0                                                 ; +0x30, 0x1001445d0\nBLR             X8                                                     ; +0x34, 0x1001445d4\nBL              FMODAudioEngine__sharedEngine                          ; +0x38, 0x1001445d8\nMOV             W1, #1                                                 ; +0x3c, 0x1001445dc\nBL              FMODAudioEngine__stopAllMusic                          ; +0x40, 0x1001445e0\nLDR             X8, [X19]                                              ; +0x44, 0x1001445e4\nLDR             X8, [X8,#0x420]                                        ; +0x48, 0x1001445e8\nMOV             X0, X19                                                ; +0x4c, 0x1001445ec\nMOV             W1, #0                                                 ; +0x50, 0x1001445f0\nBLR             X8                                                     ; +0x54, 0x1001445f4\nLDR             X8, [X19]                                              ; +0x58, 0x1001445f8\nLDR             X2, [X8,#0x200]                                        ; +0x5c, 0x1001445fc\nMOV             X0, X19                                                ; +0x60, 0x100144600\nMOV             W1, #1                                                 ; +0x64, 0x100144604\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x100144608\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x10014460c\nBR              X2                                                     ; +0x70, 0x100144610", "xrefs": ["CustomSongLayer::keyBackClicked @ 0x100144d1c", "sub_100144D20 @ 0x100144d24", "CustomSongLayer::init @ 0x100143c34"], "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"}