{"type": "func", "start": 5370783392, "end": 5370783574, "name": "GauntletSelectLayer::onBack", "pseudocode": "// \n// GauntletSelectLayer::onBack from 0x1401fa6a0 to 0x1401fa756 (182 bytes)\n// \n// 3 xrefs:\n// > GauntletSelectLayer::keyBackClicked @ 0x1401fa769\n// > GauntletSelectLayer::init @ 0x1401f92d8\n// > <???> @ 0x1406cc9d8\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 GauntletSelectLayer::onBack(GauntletSelectLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\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_playing && !a1->m_locked )\n  {\n    v3 = 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 = qword_1406C2ED8;\n    }\n    *(_DWORD *)(v3 + 1052) = 1;\n    *(_WORD *)&a1->m_exiting = 257;\n    a1->setKeypadEnabled(a1, 0);\n    v4 = CreatorLayer::scene();\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; GauntletSelectLayer::onBack from 0x1401fa6a0 to 0x1401fa756 (182 bytes)\n; \n; 3 xrefs:\n; > GauntletSelectLayer::keyBackClicked @ 0x1401fa769\n; > GauntletSelectLayer::init @ 0x1401f92d8\n; > <???> @ 0x1406cc9d8\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, 0x1401fa6a0\nsub     rsp, 20h                                                       ; +0x2, 0x1401fa6a2\nmov     rbx, rcx                                                       ; +0x6, 0x1401fa6a6\ncmp     byte ptr [rcx+1D9h], 0                                         ; +0x9, 0x1401fa6a9\njnz     loc_1401FA750                                                  ; +0x10, 0x1401fa6b0\ncmp     byte ptr [rcx+201h], 0                                         ; +0x16, 0x1401fa6b6\njnz     loc_1401FA750                                                  ; +0x1d, 0x1401fa6bd\nmov     rax, cs:qword_1406C2ED8                                        ; +0x23, 0x1401fa6c3\ntest    rax, rax                                                       ; +0x2a, 0x1401fa6ca\njnz     short loc_1401FA6FE                                            ; +0x2d, 0x1401fa6cd\nmov     ecx, 668h; Size                                                ; +0x2f, 0x1401fa6cf\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x34, 0x1401fa6d4\nmov     [rsp+28h+arg_0], rax                                           ; +0x39, 0x1401fa6d9\nmov     rcx, rax                                                       ; +0x3e, 0x1401fa6de\ncall    sub_14017AB00                                                  ; +0x41, 0x1401fa6e1\nnop                                                                    ; +0x46, 0x1401fa6e6\nmov     cs:qword_1406C2ED8, rax                                        ; +0x47, 0x1401fa6e7\nmov     rdx, [rax]                                                     ; +0x4e, 0x1401fa6ee\nmov     rcx, rax                                                       ; +0x51, 0x1401fa6f1\ncall    qword ptr [rdx+48h]                                            ; +0x54, 0x1401fa6f4\nmov     rax, cs:qword_1406C2ED8                                        ; +0x57, 0x1401fa6f7\nmov     dword ptr [rax+41Ch], 1                                        ; +0x5e, 0x1401fa6fe\nmov     word ptr [rbx+1D8h], 101h                                      ; +0x68, 0x1401fa708\nmov     rax, [rbx]                                                     ; +0x71, 0x1401fa711\nxor     edx, edx                                                       ; +0x74, 0x1401fa714\nmov     rcx, rbx                                                       ; +0x76, 0x1401fa716\ncall    qword ptr [rax+3D0h]                                           ; +0x79, 0x1401fa719\ncall    CreatorLayer__scene                                            ; +0x7f, 0x1401fa71f\nmov     rdx, rax                                                       ; +0x84, 0x1401fa724\nmovss   xmm0, cs:dword_140622B08                                       ; +0x87, 0x1401fa727\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x8f, 0x1401fa72f\nmov     rbx, rax                                                       ; +0x95, 0x1401fa735\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x98, 0x1401fa738\nmov     rcx, rax                                                       ; +0x9e, 0x1401fa73e\nmov     rdx, rbx                                                       ; +0xa1, 0x1401fa741\nadd     rsp, 20h                                                       ; +0xa4, 0x1401fa744\npop     rbx                                                            ; +0xa8, 0x1401fa748\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xa9, 0x1401fa749\nadd     rsp, 20h                                                       ; +0xb0, 0x1401fa750\npop     rbx                                                            ; +0xb4, 0x1401fa754\nretn                                                                   ; +0xb5, 0x1401fa755", "xrefs": ["GauntletSelectLayer::keyBackClicked @ 0x1401fa769", "GauntletSelectLayer::init @ 0x1401f92d8", "<???> @ 0x1406cc9d8"], "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"}