{"type": "func", "start": 5372780160, "end": 5372780316, "name": "SecretLayer::onBack", "pseudocode": "// \n// SecretLayer::onBack from 0x1403e1e80 to 0x1403e1f1c (156 bytes)\n// \n// 3 xrefs:\n// > SecretLayer::keyBackClicked @ 0x1403e1f29\n// > SecretLayer::init @ 0x1403ddc2e\n// > <???> @ 0x1406d7eec\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 SecretLayer::onBack(SecretLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  struct cocos2d::CCScene *v4; // rax\n  struct cocos2d::CCTransitionFade *v5; // rbx\n  __int64 v6; // rcx\n  cocos2d::CCDirector *v7; // rax\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  a1->m_searchInput->onClickTrackNode(a1->m_searchInput, 0);\n  a1->setKeypadEnabled(a1, 0);\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v8 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::fadeInMenuMusic(v3);\n  v4 = MenuLayer::scene(0);\n  v5 = cocos2d::CCTransitionFade::create(0.5, v4);\n  v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);\n  cocos2d::CCDirector::replaceScene(v7, v5);\n}", "assembly": "; \n; SecretLayer::onBack from 0x1403e1e80 to 0x1403e1f1c (156 bytes)\n; \n; 3 xrefs:\n; > SecretLayer::keyBackClicked @ 0x1403e1f29\n; > SecretLayer::init @ 0x1403ddc2e\n; > <???> @ 0x1406d7eec\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    rbx                                                            ; +0x0, 0x1403e1e80\nsub     rsp, 20h                                                       ; +0x2, 0x1403e1e82\nmov     rbx, rcx                                                       ; +0x6, 0x1403e1e86\nmov     rcx, [rcx+1C0h]                                                ; +0x9, 0x1403e1e89\nmov     rax, [rcx]                                                     ; +0x10, 0x1403e1e90\nxor     edx, edx                                                       ; +0x13, 0x1403e1e93\ncall    qword ptr [rax+3F8h]                                           ; +0x15, 0x1403e1e95\nmov     rax, [rbx]                                                     ; +0x1b, 0x1403e1e9b\nxor     edx, edx                                                       ; +0x1e, 0x1403e1e9e\nmov     rcx, rbx                                                       ; +0x20, 0x1403e1ea0\ncall    qword ptr [rax+3D0h]                                           ; +0x23, 0x1403e1ea3\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x29, 0x1403e1ea9\ntest    rcx, rcx                                                       ; +0x30, 0x1403e1eb0\njnz     short loc_1403E1EE4                                            ; +0x33, 0x1403e1eb3\nmov     ecx, 668h; Size                                                ; +0x35, 0x1403e1eb5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x1403e1eba\nmov     [rsp+28h+arg_0], rax                                           ; +0x3f, 0x1403e1ebf\nmov     rcx, rax                                                       ; +0x44, 0x1403e1ec4\ncall    sub_14017AB00                                                  ; +0x47, 0x1403e1ec7\nnop                                                                    ; +0x4c, 0x1403e1ecc\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4d, 0x1403e1ecd\nmov     rdx, [rax]                                                     ; +0x54, 0x1403e1ed4\nmov     rcx, rax                                                       ; +0x57, 0x1403e1ed7\ncall    qword ptr [rdx+48h]                                            ; +0x5a, 0x1403e1eda\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5d, 0x1403e1edd\ncall    GameManager__fadeInMenuMusic                                   ; +0x64, 0x1403e1ee4\nxor     ecx, ecx                                                       ; +0x69, 0x1403e1ee9\ncall    MenuLayer__scene                                               ; +0x6b, 0x1403e1eeb\nmov     rdx, rax                                                       ; +0x70, 0x1403e1ef0\nmovss   xmm0, cs:dword_140622B08                                       ; +0x73, 0x1403e1ef3\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x7b, 0x1403e1efb\nmov     rbx, rax                                                       ; +0x81, 0x1403e1f01\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x84, 0x1403e1f04\nmov     rcx, rax                                                       ; +0x8a, 0x1403e1f0a\nmov     rdx, rbx                                                       ; +0x8d, 0x1403e1f0d\nadd     rsp, 20h                                                       ; +0x90, 0x1403e1f10\npop     rbx                                                            ; +0x94, 0x1403e1f14\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x95, 0x1403e1f15", "xrefs": ["SecretLayer::keyBackClicked @ 0x1403e1f29", "SecretLayer::init @ 0x1403ddc2e", "<???> @ 0x1406d7eec"], "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"}