{"type": "func", "start": 5372851824, "end": 5372851999, "name": "SecretLayer4::onBack", "pseudocode": "// \n// SecretLayer4::onBack from 0x1403f3670 to 0x1403f371f (175 bytes)\n// \n// 3 xrefs:\n// > SecretLayer4::keyBackClicked @ 0x1403f3729\n// > SecretLayer4::init @ 0x1403f0767\n// > <???> @ 0x1406d81d4\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 SecretLayer4::onBack(SecretLayer4 *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 = LevelSelectLayer::scene(23);\n  v5 = cocos2d::CCTransitionFade::create(0.5, v4);\n  v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);\n  cocos2d::CCDirector::replaceScene(v7, v5);\n  a1->m_exiting = 1;\n}", "assembly": "; \n; SecretLayer4::onBack from 0x1403f3670 to 0x1403f371f (175 bytes)\n; \n; 3 xrefs:\n; > SecretLayer4::keyBackClicked @ 0x1403f3729\n; > SecretLayer4::init @ 0x1403f0767\n; > <???> @ 0x1406d81d4\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403f3670\npush    rdi                                                            ; +0x5, 0x1403f3675\nsub     rsp, 20h                                                       ; +0x6, 0x1403f3676\nmov     rdi, rcx                                                       ; +0xa, 0x1403f367a\nmov     rcx, [rcx+1C8h]                                                ; +0xd, 0x1403f367d\nmov     rax, [rcx]                                                     ; +0x14, 0x1403f3684\nxor     edx, edx                                                       ; +0x17, 0x1403f3687\ncall    qword ptr [rax+3F8h]                                           ; +0x19, 0x1403f3689\nmov     rax, [rdi]                                                     ; +0x1f, 0x1403f368f\nxor     edx, edx                                                       ; +0x22, 0x1403f3692\nmov     rcx, rdi                                                       ; +0x24, 0x1403f3694\ncall    qword ptr [rax+3D0h]                                           ; +0x27, 0x1403f3697\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x2d, 0x1403f369d\ntest    rcx, rcx                                                       ; +0x34, 0x1403f36a4\njnz     short loc_1403F36D8                                            ; +0x37, 0x1403f36a7\nmov     ecx, 668h; Size                                                ; +0x39, 0x1403f36a9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3e, 0x1403f36ae\nmov     [rsp+28h+arg_0], rax                                           ; +0x43, 0x1403f36b3\nmov     rcx, rax                                                       ; +0x48, 0x1403f36b8\ncall    sub_14017AB00                                                  ; +0x4b, 0x1403f36bb\nnop                                                                    ; +0x50, 0x1403f36c0\nmov     cs:qword_1406C2ED8, rax                                        ; +0x51, 0x1403f36c1\nmov     rdx, [rax]                                                     ; +0x58, 0x1403f36c8\nmov     rcx, rax                                                       ; +0x5b, 0x1403f36cb\ncall    qword ptr [rdx+48h]                                            ; +0x5e, 0x1403f36ce\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x61, 0x1403f36d1\ncall    GameManager__fadeInMenuMusic                                   ; +0x68, 0x1403f36d8\nmov     ecx, 17h                                                       ; +0x6d, 0x1403f36dd\ncall    LevelSelectLayer__scene                                        ; +0x72, 0x1403f36e2\nmov     rdx, rax                                                       ; +0x77, 0x1403f36e7\nmovss   xmm0, cs:dword_140622B08                                       ; +0x7a, 0x1403f36ea\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x82, 0x1403f36f2\nmov     rbx, rax                                                       ; +0x88, 0x1403f36f8\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8b, 0x1403f36fb\nmov     rcx, rax                                                       ; +0x91, 0x1403f3701\nmov     rdx, rbx                                                       ; +0x94, 0x1403f3704\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x97, 0x1403f3707\nmov     byte ptr [rdi+1E8h], 1                                         ; +0x9d, 0x1403f370d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa4, 0x1403f3714\nadd     rsp, 20h                                                       ; +0xa9, 0x1403f3719\npop     rdi                                                            ; +0xad, 0x1403f371d\nretn                                                                   ; +0xae, 0x1403f371e", "xrefs": ["SecretLayer4::keyBackClicked @ 0x1403f3729", "SecretLayer4::init @ 0x1403f0767", "<???> @ 0x1406d81d4"], "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"}