{"type": "func", "start": 5373060304, "end": 5373060539, "name": "LevelInfoLayer::onBack", "pseudocode": "// \n// LevelInfoLayer::onBack from 0x1404264d0 to 0x1404265bb (235 bytes)\n// \n// 4 xrefs:\n// > LevelInfoLayer::FLAlert_Clicked @ 0x140426039\n// > LevelInfoLayer::keyBackClicked @ 0x1404265c9\n// > LevelInfoLayer::init @ 0x14041db14\n// > <???> @ 0x14092699c\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:32:11 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall LevelInfoLayer::onBack(__int64 a1)\n{\n  __int64 v2; // rdx\n  __int64 v3; // rcx\n  __int64 v4; // r8\n  __int64 v5; // r9\n  __int64 v6; // rcx\n  struct cocos2d::CCScene *v7; // rax\n  struct cocos2d::CCScene *v8; // rbx\n  __int64 v9; // rcx\n  cocos2d::CCDirector *v10; // rax\n  void *v11; // [rsp+30h] [rbp+8h]\n  void *v12; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n    if ( *(_BYTE *)(*(_QWORD *)(a1 + 504) + 721LL) )\n    {\n      v6 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v11 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager((__int64)v11);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v6 = qword_14090BFD0;\n      }\n      v7 = (struct cocos2d::CCScene *)GauntletLayer::scene(*(unsigned int *)(v6 + 1116), v2, v4, v5);\n      v8 = cocos2d::CCTransitionFade::create(0.5, v7);\n      v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);\n      cocos2d::CCDirector::replaceScene(v10, v8);\n    }\n    else\n    {\n      if ( !qword_14090BFD0 )\n      {\n        v12 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager((__int64)v12);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      }\n      GameManager::safePopScene(v3);\n    }\n  }\n}", "assembly": "; \n; LevelInfoLayer::onBack from 0x1404264d0 to 0x1404265bb (235 bytes)\n; \n; 4 xrefs:\n; > LevelInfoLayer::FLAlert_Clicked @ 0x140426039\n; > LevelInfoLayer::keyBackClicked @ 0x1404265c9\n; > LevelInfoLayer::init @ 0x14041db14\n; > <???> @ 0x14092699c\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:32:11 +0000\n; \npush    rbx                                                            ; +0x0, 0x1404264d0\nsub     rsp, 20h                                                       ; +0x2, 0x1404264d2\nmov     rbx, rcx                                                       ; +0x6, 0x1404264d6\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x9, 0x1404264d9\njnz     loc_1404265B5                                                  ; +0x10, 0x1404264e0\nmov     rax, [rcx]                                                     ; +0x16, 0x1404264e6\nxor     edx, edx                                                       ; +0x19, 0x1404264e9\ncall    qword ptr [rax+3E0h]                                           ; +0x1b, 0x1404264eb\nmov     rax, [rbx+1F8h]                                                ; +0x21, 0x1404264f1\ncmp     byte ptr [rax+2D1h], 0                                         ; +0x28, 0x1404264f8\njz      short loc_140426576                                            ; +0x2f, 0x1404264ff\nmov     rcx, cs:qword_14090BFD0                                        ; +0x31, 0x140426501\ntest    rcx, rcx                                                       ; +0x38, 0x140426508\njnz     short loc_14042653F                                            ; +0x3b, 0x14042650b\nmov     ecx, 6E8h; Size                                                ; +0x3d, 0x14042650d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x42, 0x140426512\nmov     [rsp+28h+arg_0], rax                                           ; +0x47, 0x140426517\nmov     rcx, rax                                                       ; +0x4c, 0x14042651c\ncall    GameManager__GameManager                                       ; +0x4f, 0x14042651f\nnop                                                                    ; +0x54, 0x140426524\nmov     cs:qword_14090BFD0, rax                                        ; +0x55, 0x140426525\nmov     rcx, [rax]                                                     ; +0x5c, 0x14042652c\nmov     rdx, [rcx+48h]                                                 ; +0x5f, 0x14042652f\nmov     rcx, rax                                                       ; +0x63, 0x140426533\ncall    rdx                                                            ; +0x66, 0x140426536\nmov     rcx, cs:qword_14090BFD0                                        ; +0x68, 0x140426538\nmov     ecx, [rcx+45Ch]                                                ; +0x6f, 0x14042653f\ncall    GauntletLayer__scene                                           ; +0x75, 0x140426545\nmov     rdx, rax                                                       ; +0x7a, 0x14042654a\nmovss   xmm0, cs:dword_140834F20                                       ; +0x7d, 0x14042654d\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x85, 0x140426555\nmov     rbx, rax                                                       ; +0x8b, 0x14042655b\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8e, 0x14042655e\nmov     rcx, rax                                                       ; +0x94, 0x140426564\nmov     rdx, rbx                                                       ; +0x97, 0x140426567\nadd     rsp, 20h                                                       ; +0x9a, 0x14042656a\npop     rbx                                                            ; +0x9e, 0x14042656e\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x9f, 0x14042656f\ncmp     cs:qword_14090BFD0, 0                                          ; +0xa6, 0x140426576\njnz     short loc_1404265AB                                            ; +0xae, 0x14042657e\nmov     ecx, 6E8h; Size                                                ; +0xb0, 0x140426580\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb5, 0x140426585\nmov     [rsp+28h+arg_0], rax                                           ; +0xba, 0x14042658a\nmov     rcx, rax                                                       ; +0xbf, 0x14042658f\ncall    GameManager__GameManager                                       ; +0xc2, 0x140426592\nnop                                                                    ; +0xc7, 0x140426597\nmov     cs:qword_14090BFD0, rax                                        ; +0xc8, 0x140426598\nmov     rcx, [rax]                                                     ; +0xcf, 0x14042659f\nmov     rdx, [rcx+48h]                                                 ; +0xd2, 0x1404265a2\nmov     rcx, rax                                                       ; +0xd6, 0x1404265a6\ncall    rdx                                                            ; +0xd9, 0x1404265a9\nadd     rsp, 20h                                                       ; +0xdb, 0x1404265ab\npop     rbx                                                            ; +0xdf, 0x1404265af\njmp     GameManager__safePopScene                                      ; +0xe0, 0x1404265b0\nadd     rsp, 20h                                                       ; +0xe5, 0x1404265b5\npop     rbx                                                            ; +0xe9, 0x1404265b9\nretn                                                                   ; +0xea, 0x1404265ba", "xrefs": ["LevelInfoLayer::FLAlert_Clicked @ 0x140426039", "LevelInfoLayer::keyBackClicked @ 0x1404265c9", "LevelInfoLayer::init @ 0x14041db14", "<???> @ 0x14092699c"], "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"}