{"type": "func", "start": 5371856688, "end": 5371856917, "name": "LevelInfoLayer::onBack", "pseudocode": "// \n// LevelInfoLayer::onBack from 0x140300730 to 0x140300815 (229 bytes)\n// \n// 4 xrefs:\n// > LevelInfoLayer::FLAlert_Clicked @ 0x140300304\n// > LevelInfoLayer::keyBackClicked @ 0x140300829\n// > LevelInfoLayer::init @ 0x1402f8d19\n// > <???> @ 0x1406d4340\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=2\nvoid LevelInfoLayer::onBack(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  __int64 v4; // rcx\n  struct cocos2d::CCScene *v5; // rax\n  struct cocos2d::CCTransitionFade *v6; // rbx\n  __int64 v7; // rcx\n  cocos2d::CCDirector *v8; // rax\n  void *v9; // [rsp+30h] [rbp+8h]\n  void *v10; // [rsp+30h] [rbp+8h]\n\n  if ( !a1->m_isBusy )\n  {\n    a1->setKeypadEnabled(a1, 0);\n    if ( a1->m_level->m_gauntletLevel )\n    {\n      v4 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v9 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v9);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v4 = qword_1406C2ED8;\n      }\n      v5 = GauntletLayer::scene((GauntletType)*(_DWORD *)(v4 + 1052));\n      v6 = cocos2d::CCTransitionFade::create(0.5, v5);\n      v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);\n      cocos2d::CCDirector::replaceScene(v8, v6);\n    }\n    else\n    {\n      if ( !qword_1406C2ED8 )\n      {\n        v10 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v10);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      }\n      GameManager::safePopScene(v3);\n    }\n  }\n}", "assembly": "; \n; LevelInfoLayer::onBack from 0x140300730 to 0x140300815 (229 bytes)\n; \n; 4 xrefs:\n; > LevelInfoLayer::FLAlert_Clicked @ 0x140300304\n; > LevelInfoLayer::keyBackClicked @ 0x140300829\n; > LevelInfoLayer::init @ 0x1402f8d19\n; > <???> @ 0x1406d4340\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, 0x140300730\nsub     rsp, 20h                                                       ; +0x2, 0x140300732\nmov     rbx, rcx                                                       ; +0x6, 0x140300736\ncmp     byte ptr [rcx+1E0h], 0                                         ; +0x9, 0x140300739\njnz     loc_14030080F                                                  ; +0x10, 0x140300740\nmov     rax, [rcx]                                                     ; +0x16, 0x140300746\nxor     edx, edx                                                       ; +0x19, 0x140300749\ncall    qword ptr [rax+3D0h]                                           ; +0x1b, 0x14030074b\nmov     rax, [rbx+1F0h]                                                ; +0x21, 0x140300751\ncmp     byte ptr [rax+2C9h], 0                                         ; +0x28, 0x140300758\njz      short loc_1403007D3                                            ; +0x2f, 0x14030075f\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x31, 0x140300761\ntest    rcx, rcx                                                       ; +0x38, 0x140300768\njnz     short loc_14030079C                                            ; +0x3b, 0x14030076b\nmov     ecx, 668h; Size                                                ; +0x3d, 0x14030076d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x42, 0x140300772\nmov     [rsp+28h+arg_0], rax                                           ; +0x47, 0x140300777\nmov     rcx, rax                                                       ; +0x4c, 0x14030077c\ncall    sub_14017AB00                                                  ; +0x4f, 0x14030077f\nnop                                                                    ; +0x54, 0x140300784\nmov     cs:qword_1406C2ED8, rax                                        ; +0x55, 0x140300785\nmov     rdx, [rax]                                                     ; +0x5c, 0x14030078c\nmov     rcx, rax                                                       ; +0x5f, 0x14030078f\ncall    qword ptr [rdx+48h]                                            ; +0x62, 0x140300792\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x65, 0x140300795\nmov     ecx, [rcx+41Ch]                                                ; +0x6c, 0x14030079c\ncall    GauntletLayer__scene                                           ; +0x72, 0x1403007a2\nmov     rdx, rax                                                       ; +0x77, 0x1403007a7\nmovss   xmm0, cs:dword_140622B08                                       ; +0x7a, 0x1403007aa\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x82, 0x1403007b2\nmov     rbx, rax                                                       ; +0x88, 0x1403007b8\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8b, 0x1403007bb\nmov     rcx, rax                                                       ; +0x91, 0x1403007c1\nmov     rdx, rbx                                                       ; +0x94, 0x1403007c4\nadd     rsp, 20h                                                       ; +0x97, 0x1403007c7\npop     rbx                                                            ; +0x9b, 0x1403007cb\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x9c, 0x1403007cc\ncmp     cs:qword_1406C2ED8, 0                                          ; +0xa3, 0x1403007d3\njnz     short loc_140300805                                            ; +0xab, 0x1403007db\nmov     ecx, 668h; Size                                                ; +0xad, 0x1403007dd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb2, 0x1403007e2\nmov     [rsp+28h+arg_0], rax                                           ; +0xb7, 0x1403007e7\nmov     rcx, rax                                                       ; +0xbc, 0x1403007ec\ncall    sub_14017AB00                                                  ; +0xbf, 0x1403007ef\nnop                                                                    ; +0xc4, 0x1403007f4\nmov     cs:qword_1406C2ED8, rax                                        ; +0xc5, 0x1403007f5\nmov     rdx, [rax]                                                     ; +0xcc, 0x1403007fc\nmov     rcx, rax                                                       ; +0xcf, 0x1403007ff\ncall    qword ptr [rdx+48h]                                            ; +0xd2, 0x140300802\nadd     rsp, 20h                                                       ; +0xd5, 0x140300805\npop     rbx                                                            ; +0xd9, 0x140300809\njmp     GameManager__safePopScene                                      ; +0xda, 0x14030080a\nadd     rsp, 20h                                                       ; +0xdf, 0x14030080f\npop     rbx                                                            ; +0xe3, 0x140300813\nretn                                                                   ; +0xe4, 0x140300814", "xrefs": ["LevelInfoLayer::FLAlert_Clicked @ 0x140300304", "LevelInfoLayer::keyBackClicked @ 0x140300829", "LevelInfoLayer::init @ 0x1402f8d19", "<???> @ 0x1406d4340"], "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"}