{"type": "func", "start": 5372769776, "end": 5372769943, "name": "LevelAreaLayer::onBack", "pseudocode": "// \n// LevelAreaLayer::onBack from 0x1403df5f0 to 0x1403df697 (167 bytes)\n// \n// 3 xrefs:\n// > LevelAreaLayer::keyBackClicked @ 0x1403df6f9\n// > LevelAreaLayer::init @ 0x1403dd7ff\n// > <???> @ 0x140924da0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall LevelAreaLayer::onBack(_BYTE *a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rdx\n  __int64 v4; // r8\n  struct cocos2d::CCScene *v5; // rax\n  struct cocos2d::CCScene *v6; // rbx\n  __int64 v7; // rcx\n  cocos2d::CCDirector *v8; // rax\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  if ( !a1[432] )\n  {\n    (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v9 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    GameManager::fadeInMenuMusic(v2);\n    a1[433] = 1;\n    v5 = (struct cocos2d::CCScene *)LevelSelectLayer::scene(22, v3, v4);\n    v6 = cocos2d::CCTransitionFade::create(0.5, v5);\n    v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);\n    cocos2d::CCDirector::replaceScene(v8, v6);\n  }\n}", "assembly": "; \n; LevelAreaLayer::onBack from 0x1403df5f0 to 0x1403df697 (167 bytes)\n; \n; 3 xrefs:\n; > LevelAreaLayer::keyBackClicked @ 0x1403df6f9\n; > LevelAreaLayer::init @ 0x1403dd7ff\n; > <???> @ 0x140924da0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:40 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403df5f0\nsub     rsp, 20h                                                       ; +0x2, 0x1403df5f2\nmov     rbx, rcx                                                       ; +0x6, 0x1403df5f6\ncmp     byte ptr [rcx+1B0h], 0                                         ; +0x9, 0x1403df5f9\njnz     loc_1403DF691                                                  ; +0x10, 0x1403df600\nmov     rax, [rcx]                                                     ; +0x16, 0x1403df606\nxor     edx, edx                                                       ; +0x19, 0x1403df609\ncall    qword ptr [rax+3E0h]                                           ; +0x1b, 0x1403df60b\nmov     rcx, cs:qword_14090BFD0                                        ; +0x21, 0x1403df611\ntest    rcx, rcx                                                       ; +0x28, 0x1403df618\njnz     short loc_1403DF64F                                            ; +0x2b, 0x1403df61b\nmov     ecx, 6E8h; Size                                                ; +0x2d, 0x1403df61d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x32, 0x1403df622\nmov     [rsp+28h+arg_0], rax                                           ; +0x37, 0x1403df627\nmov     rcx, rax                                                       ; +0x3c, 0x1403df62c\ncall    GameManager__GameManager                                       ; +0x3f, 0x1403df62f\nnop                                                                    ; +0x44, 0x1403df634\nmov     cs:qword_14090BFD0, rax                                        ; +0x45, 0x1403df635\nmov     rcx, [rax]                                                     ; +0x4c, 0x1403df63c\nmov     rdx, [rcx+48h]                                                 ; +0x4f, 0x1403df63f\nmov     rcx, rax                                                       ; +0x53, 0x1403df643\ncall    rdx                                                            ; +0x56, 0x1403df646\nmov     rcx, cs:qword_14090BFD0                                        ; +0x58, 0x1403df648\ncall    GameManager__fadeInMenuMusic                                   ; +0x5f, 0x1403df64f\nmov     byte ptr [rbx+1B1h], 1                                         ; +0x64, 0x1403df654\nmov     ecx, 16h                                                       ; +0x6b, 0x1403df65b\ncall    LevelSelectLayer__scene                                        ; +0x70, 0x1403df660\nmov     rdx, rax                                                       ; +0x75, 0x1403df665\nmovss   xmm0, cs:dword_140834F20                                       ; +0x78, 0x1403df668\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x80, 0x1403df670\nmov     rbx, rax                                                       ; +0x86, 0x1403df676\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x89, 0x1403df679\nmov     rcx, rax                                                       ; +0x8f, 0x1403df67f\nmov     rdx, rbx                                                       ; +0x92, 0x1403df682\nadd     rsp, 20h                                                       ; +0x95, 0x1403df685\npop     rbx                                                            ; +0x99, 0x1403df689\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x9a, 0x1403df68a\nadd     rsp, 20h                                                       ; +0xa1, 0x1403df691\npop     rbx                                                            ; +0xa5, 0x1403df695\nretn                                                                   ; +0xa6, 0x1403df696", "xrefs": ["LevelAreaLayer::keyBackClicked @ 0x1403df6f9", "LevelAreaLayer::init @ 0x1403dd7ff", "<???> @ 0x140924da0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}