{"type": "func", "start": 4297152688, "end": 4297152790, "name": "CustomSongLayer::onClose", "pseudocode": "// \n// CustomSongLayer::onClose from 0x1002158b0 to 0x100215916 (102 bytes)\n// \n// 1 xrefs:\n// > CustomSongLayer::init @ 0x100214e5a\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; // rdi\n  FMODAudioEngine *v4; // rax\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 0x1002158b0 to 0x100215916 (102 bytes)\n; \n; 1 xrefs:\n; > CustomSongLayer::init @ 0x100214e5a\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    rbp                                                            ; +0x0, 0x1002158b0\nmov     rbp, rsp                                                       ; +0x1, 0x1002158b1\npush    rbx                                                            ; +0x4, 0x1002158b4\npush    rax                                                            ; +0x5, 0x1002158b5\nmov     rbx, rdi                                                       ; +0x6, 0x1002158b6\nmov     rdi, [rdi+2A8h]                                                ; +0x9, 0x1002158b9\ntest    rdi, rdi                                                       ; +0x10, 0x1002158c0\njz      short loc_1002158CA                                            ; +0x13, 0x1002158c3\nmov     rax, [rdi]                                                     ; +0x15, 0x1002158c5\ncall    qword ptr [rax]                                                ; +0x18, 0x1002158c8\nmov     rdi, [rbx+298h]                                                ; +0x1a, 0x1002158ca\nmov     rax, [rdi]                                                     ; +0x21, 0x1002158d1\nxor     esi, esi                                                       ; +0x24, 0x1002158d4\ncall    qword ptr [rax+478h]                                           ; +0x26, 0x1002158d6\ncall    FMODAudioEngine__sharedEngine                                  ; +0x2c, 0x1002158dc\nmov     rdi, rax                                                       ; +0x31, 0x1002158e1\nmov     esi, 1                                                         ; +0x34, 0x1002158e4\ncall    FMODAudioEngine__stopAllMusic                                  ; +0x39, 0x1002158e9\nmov     rax, [rbx]                                                     ; +0x3e, 0x1002158ee\nmov     rdi, rbx                                                       ; +0x41, 0x1002158f1\nxor     esi, esi                                                       ; +0x44, 0x1002158f4\ncall    qword ptr [rax+420h]                                           ; +0x46, 0x1002158f6\nmov     rax, [rbx]                                                     ; +0x4c, 0x1002158fc\nmov     rax, [rax+200h]                                                ; +0x4f, 0x1002158ff\nmov     rdi, rbx                                                       ; +0x56, 0x100215906\nmov     esi, 1                                                         ; +0x59, 0x100215909\nadd     rsp, 8                                                         ; +0x5e, 0x10021590e\npop     rbx                                                            ; +0x62, 0x100215912\npop     rbp                                                            ; +0x63, 0x100215913\njmp     rax                                                            ; +0x64, 0x100215914", "xrefs": ["CustomSongLayer::init @ 0x100214e5a"], "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"}