{"type": "func", "start": 5371617984, "end": 5371618148, "name": "LevelAreaLayer::onBack", "pseudocode": "// \n// LevelAreaLayer::onBack from 0x1402c62c0 to 0x1402c6364 (164 bytes)\n// \n// 3 xrefs:\n// > LevelAreaLayer::keyBackClicked @ 0x1402c63c9\n// > LevelAreaLayer::init @ 0x1402c454c\n// > <???> @ 0x1406d2b4c\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\n// Hidden C++ exception states: #wind=1\nvoid LevelAreaLayer::onBack(LevelAreaLayer *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  if ( !a1->m_enteringTower )\n  {\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    a1->m_exiting = 1;\n    v4 = LevelSelectLayer::scene(22);\n    v5 = cocos2d::CCTransitionFade::create(0.5, v4);\n    v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);\n    cocos2d::CCDirector::replaceScene(v7, v5);\n  }\n}", "assembly": "; \n; LevelAreaLayer::onBack from 0x1402c62c0 to 0x1402c6364 (164 bytes)\n; \n; 3 xrefs:\n; > LevelAreaLayer::keyBackClicked @ 0x1402c63c9\n; > LevelAreaLayer::init @ 0x1402c454c\n; > <???> @ 0x1406d2b4c\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, 0x1402c62c0\nsub     rsp, 20h                                                       ; +0x2, 0x1402c62c2\nmov     rbx, rcx                                                       ; +0x6, 0x1402c62c6\ncmp     byte ptr [rcx+1B0h], 0                                         ; +0x9, 0x1402c62c9\njnz     loc_1402C635E                                                  ; +0x10, 0x1402c62d0\nmov     rax, [rcx]                                                     ; +0x16, 0x1402c62d6\nxor     edx, edx                                                       ; +0x19, 0x1402c62d9\ncall    qword ptr [rax+3D0h]                                           ; +0x1b, 0x1402c62db\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x21, 0x1402c62e1\ntest    rcx, rcx                                                       ; +0x28, 0x1402c62e8\njnz     short loc_1402C631C                                            ; +0x2b, 0x1402c62eb\nmov     ecx, 668h; Size                                                ; +0x2d, 0x1402c62ed\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x32, 0x1402c62f2\nmov     [rsp+28h+arg_0], rax                                           ; +0x37, 0x1402c62f7\nmov     rcx, rax                                                       ; +0x3c, 0x1402c62fc\ncall    sub_14017AB00                                                  ; +0x3f, 0x1402c62ff\nnop                                                                    ; +0x44, 0x1402c6304\nmov     cs:qword_1406C2ED8, rax                                        ; +0x45, 0x1402c6305\nmov     rdx, [rax]                                                     ; +0x4c, 0x1402c630c\nmov     rcx, rax                                                       ; +0x4f, 0x1402c630f\ncall    qword ptr [rdx+48h]                                            ; +0x52, 0x1402c6312\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x55, 0x1402c6315\ncall    GameManager__fadeInMenuMusic                                   ; +0x5c, 0x1402c631c\nmov     byte ptr [rbx+1B1h], 1                                         ; +0x61, 0x1402c6321\nmov     ecx, 16h                                                       ; +0x68, 0x1402c6328\ncall    LevelSelectLayer__scene                                        ; +0x6d, 0x1402c632d\nmov     rdx, rax                                                       ; +0x72, 0x1402c6332\nmovss   xmm0, cs:dword_140622B08                                       ; +0x75, 0x1402c6335\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x7d, 0x1402c633d\nmov     rbx, rax                                                       ; +0x83, 0x1402c6343\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x86, 0x1402c6346\nmov     rcx, rax                                                       ; +0x8c, 0x1402c634c\nmov     rdx, rbx                                                       ; +0x8f, 0x1402c634f\nadd     rsp, 20h                                                       ; +0x92, 0x1402c6352\npop     rbx                                                            ; +0x96, 0x1402c6356\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x97, 0x1402c6357\nadd     rsp, 20h                                                       ; +0x9e, 0x1402c635e\npop     rbx                                                            ; +0xa2, 0x1402c6362\nretn                                                                   ; +0xa3, 0x1402c6363", "xrefs": ["LevelAreaLayer::keyBackClicked @ 0x1402c63c9", "LevelAreaLayer::init @ 0x1402c454c", "<???> @ 0x1406d2b4c"], "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"}