{"type": "func", "start": 5371852192, "end": 5371852377, "name": "GauntletSelectLayer::onBack", "pseudocode": "// \n// GauntletSelectLayer::onBack from 0x1402ff5a0 to 0x1402ff659 (185 bytes)\n// \n// 3 xrefs:\n// > GauntletSelectLayer::keyBackClicked @ 0x1402ff669\n// > GauntletSelectLayer::init @ 0x1402fe0ee\n// > <???> @ 0x14091e44c\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:30:07 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GauntletSelectLayer::onBack(__int64 a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCScene *v3; // rax\n  struct cocos2d::CCScene *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 473) && !*(_BYTE *)(a1 + 513) )\n  {\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v7 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    *(_DWORD *)(v2 + 1116) = 1;\n    *(_WORD *)(a1 + 472) = 257;\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n    v3 = (struct cocos2d::CCScene *)CreatorLayer::scene();\n    v4 = cocos2d::CCTransitionFade::create(0.5, v3);\n    v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n    cocos2d::CCDirector::replaceScene(v6, v4);\n  }\n}", "assembly": "; \n; GauntletSelectLayer::onBack from 0x1402ff5a0 to 0x1402ff659 (185 bytes)\n; \n; 3 xrefs:\n; > GauntletSelectLayer::keyBackClicked @ 0x1402ff669\n; > GauntletSelectLayer::init @ 0x1402fe0ee\n; > <???> @ 0x14091e44c\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:30:07 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402ff5a0\nsub     rsp, 20h                                                       ; +0x2, 0x1402ff5a2\nmov     rbx, rcx                                                       ; +0x6, 0x1402ff5a6\ncmp     byte ptr [rcx+1D9h], 0                                         ; +0x9, 0x1402ff5a9\njnz     loc_1402FF653                                                  ; +0x10, 0x1402ff5b0\ncmp     byte ptr [rcx+201h], 0                                         ; +0x16, 0x1402ff5b6\njnz     loc_1402FF653                                                  ; +0x1d, 0x1402ff5bd\nmov     rax, cs:qword_14090BFD0                                        ; +0x23, 0x1402ff5c3\ntest    rax, rax                                                       ; +0x2a, 0x1402ff5ca\njnz     short loc_1402FF601                                            ; +0x2d, 0x1402ff5cd\nmov     ecx, 6E8h; Size                                                ; +0x2f, 0x1402ff5cf\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x34, 0x1402ff5d4\nmov     [rsp+28h+arg_0], rax                                           ; +0x39, 0x1402ff5d9\nmov     rcx, rax                                                       ; +0x3e, 0x1402ff5de\ncall    GameManager__GameManager                                       ; +0x41, 0x1402ff5e1\nnop                                                                    ; +0x46, 0x1402ff5e6\nmov     cs:qword_14090BFD0, rax                                        ; +0x47, 0x1402ff5e7\nmov     rcx, [rax]                                                     ; +0x4e, 0x1402ff5ee\nmov     rdx, [rcx+48h]                                                 ; +0x51, 0x1402ff5f1\nmov     rcx, rax                                                       ; +0x55, 0x1402ff5f5\ncall    rdx                                                            ; +0x58, 0x1402ff5f8\nmov     rax, cs:qword_14090BFD0                                        ; +0x5a, 0x1402ff5fa\nmov     dword ptr [rax+45Ch], 1                                        ; +0x61, 0x1402ff601\nmov     word ptr [rbx+1D8h], 101h                                      ; +0x6b, 0x1402ff60b\nmov     rax, [rbx]                                                     ; +0x74, 0x1402ff614\nxor     edx, edx                                                       ; +0x77, 0x1402ff617\nmov     rcx, rbx                                                       ; +0x79, 0x1402ff619\ncall    qword ptr [rax+3E0h]                                           ; +0x7c, 0x1402ff61c\ncall    CreatorLayer__scene                                            ; +0x82, 0x1402ff622\nmov     rdx, rax                                                       ; +0x87, 0x1402ff627\nmovss   xmm0, cs:dword_140834F20                                       ; +0x8a, 0x1402ff62a\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x92, 0x1402ff632\nmov     rbx, rax                                                       ; +0x98, 0x1402ff638\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9b, 0x1402ff63b\nmov     rcx, rax                                                       ; +0xa1, 0x1402ff641\nmov     rdx, rbx                                                       ; +0xa4, 0x1402ff644\nadd     rsp, 20h                                                       ; +0xa7, 0x1402ff647\npop     rbx                                                            ; +0xab, 0x1402ff64b\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xac, 0x1402ff64c\nadd     rsp, 20h                                                       ; +0xb3, 0x1402ff653\npop     rbx                                                            ; +0xb7, 0x1402ff657\nretn                                                                   ; +0xb8, 0x1402ff658", "xrefs": ["GauntletSelectLayer::keyBackClicked @ 0x1402ff669", "GauntletSelectLayer::init @ 0x1402fe0ee", "<???> @ 0x14091e44c"], "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"}