{"type": "func", "start": 4300676752, "end": 4300676864, "name": "GauntletSelectLayer::onBack", "pseudocode": "// \n// GauntletSelectLayer::onBack from 0x100571e90 to 0x100571f00 (112 bytes)\n// \n// 1 xrefs:\n// > GauntletSelectLayer::init @ 0x100571a09\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\nvoid __fastcall GauntletSelectLayer::onBack(GauntletSelectLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCDirector *v2; // rbx\n  cocos2d::CCScene *v3; // rax\n  cocos2d::CCTransitionFade *v4; // rax\n\n  if ( !a1->m_playing && !a1->m_locked )\n  {\n    GameManager::sharedState()->m_currentGauntlet = 1;\n    *(_WORD *)&a1->m_exiting = 257;\n    ((void (__fastcall *)(GauntletSelectLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = CreatorLayer::scene();\n    v4 = cocos2d::CCTransitionFade::create_1(0.5, v3);\n    cocos2d::CCDirector::replaceScene(v2, v4);\n  }\n}", "assembly": "; \n; GauntletSelectLayer::onBack from 0x100571e90 to 0x100571f00 (112 bytes)\n; \n; 1 xrefs:\n; > GauntletSelectLayer::init @ 0x100571a09\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\ncmp     byte ptr [rdi+1D9h], 0                                         ; +0x0, 0x100571e90\njnz     short locret_100571EA2                                         ; +0x7, 0x100571e97\ncmp     byte ptr [rdi+201h], 0                                         ; +0x9, 0x100571e99\njz      short loc_100571EA3                                            ; +0x10, 0x100571ea0\nretn                                                                   ; +0x12, 0x100571ea2\npush    rbp                                                            ; +0x13, 0x100571ea3\nmov     rbp, rsp                                                       ; +0x14, 0x100571ea4\npush    rbx                                                            ; +0x17, 0x100571ea7\npush    rax                                                            ; +0x18, 0x100571ea8\nmov     rbx, rdi                                                       ; +0x19, 0x100571ea9\ncall    GameManager__sharedState                                       ; +0x1c, 0x100571eac\nmov     dword ptr [rax+3FCh], 1                                        ; +0x21, 0x100571eb1\nmov     word ptr [rbx+1D8h], 101h                                      ; +0x2b, 0x100571ebb\nmov     rax, [rbx]                                                     ; +0x34, 0x100571ec4\nmov     rdi, rbx                                                       ; +0x37, 0x100571ec7\nxor     esi, esi                                                       ; +0x3a, 0x100571eca\ncall    qword ptr [rax+420h]                                           ; +0x3c, 0x100571ecc\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x42, 0x100571ed2\nmov     rbx, rax                                                       ; +0x47, 0x100571ed7\ncall    CreatorLayer__scene                                            ; +0x4a, 0x100571eda\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x4f, 0x100571edf\nmov     rdi, rax                                                       ; +0x57, 0x100571ee7\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x5a, 0x100571eea\nmov     rdi, rbx                                                       ; +0x5f, 0x100571eef\nmov     rsi, rax                                                       ; +0x62, 0x100571ef2\nadd     rsp, 8                                                         ; +0x65, 0x100571ef5\npop     rbx                                                            ; +0x69, 0x100571ef9\npop     rbp                                                            ; +0x6a, 0x100571efa\njmp     cocos2d__CCDirector__replaceScene                              ; +0x6b, 0x100571efb", "xrefs": ["GauntletSelectLayer::init @ 0x100571a09"], "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"}