{"type": "func", "start": 4296798344, "end": 4296798468, "name": "GauntletSelectLayer::onBack", "pseudocode": "// \n// GauntletSelectLayer::onBack from 0x1001bf088 to 0x1001bf104 (124 bytes)\n// \n// 3 xrefs:\n// > GauntletSelectLayer::keyBackClicked @ 0x1001bffbc\n// > sub_1001BFFC0 @ 0x1001bffc4\n// > GauntletSelectLayer::init @ 0x1001becb4\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 *v3; // x19\n  cocos2d::CCScene *v4; // x0\n  cocos2d::CCTransitionFade *v5; // x1\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    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = CreatorLayer::scene();\n    v5 = cocos2d::CCTransitionFade::create_1(0.5, v4);\n    cocos2d::CCDirector::replaceScene(v3, v5);\n  }\n}", "assembly": "; \n; GauntletSelectLayer::onBack from 0x1001bf088 to 0x1001bf104 (124 bytes)\n; \n; 3 xrefs:\n; > GauntletSelectLayer::keyBackClicked @ 0x1001bffbc\n; > sub_1001BFFC0 @ 0x1001bffc4\n; > GauntletSelectLayer::init @ 0x1001becb4\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001bf088\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001bf08c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001bf090\nLDRB            W8, [X0,#0x1D9]                                        ; +0xc, 0x1001bf094\nTBNZ            W8, #0, loc_1001BF0A8                                  ; +0x10, 0x1001bf098\nMOV             X19, X0                                                ; +0x14, 0x1001bf09c\nLDRB            W8, [X0,#0x201]                                        ; +0x18, 0x1001bf0a0\nTBZ             W8, #0, loc_1001BF0B4                                  ; +0x1c, 0x1001bf0a4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x20, 0x1001bf0a8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x24, 0x1001bf0ac\nRET                                                                    ; +0x28, 0x1001bf0b0\nBL              GameManager__sharedState                               ; +0x2c, 0x1001bf0b4\nMOV             W8, #1                                                 ; +0x30, 0x1001bf0b8\nSTR             W8, [X0,#0x3FC]                                        ; +0x34, 0x1001bf0bc\nMOV             W8, #0x101                                             ; +0x38, 0x1001bf0c0\nSTRH            W8, [X19,#0x1D8]                                       ; +0x3c, 0x1001bf0c4\nLDR             X8, [X19]                                              ; +0x40, 0x1001bf0c8\nLDR             X8, [X8,#0x420]                                        ; +0x44, 0x1001bf0cc\nMOV             X0, X19                                                ; +0x48, 0x1001bf0d0\nMOV             W1, #0                                                 ; +0x4c, 0x1001bf0d4\nBLR             X8                                                     ; +0x50, 0x1001bf0d8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x54, 0x1001bf0dc\nMOV             X19, X0                                                ; +0x58, 0x1001bf0e0\nBL              CreatorLayer__scene                                    ; +0x5c, 0x1001bf0e4\nFMOV            S0, #0.5                                               ; +0x60, 0x1001bf0e8\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x64, 0x1001bf0ec\nMOV             X1, X0; lpsrc                                          ; +0x68, 0x1001bf0f0\nMOV             X0, X19; int                                           ; +0x6c, 0x1001bf0f4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x1001bf0f8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x74, 0x1001bf0fc\nB               cocos2d__CCDirector__replaceScene                      ; +0x78, 0x1001bf100", "xrefs": ["GauntletSelectLayer::keyBackClicked @ 0x1001bffbc", "sub_1001BFFC0 @ 0x1001bffc4", "GauntletSelectLayer::init @ 0x1001becb4"], "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"}