{"type": "func", "start": 4295148284, "end": 4295148416, "name": "LevelInfoLayer::onBack", "pseudocode": "// \n// LevelInfoLayer::onBack from 0x10002c2fc to 0x10002c380 (132 bytes)\n// \n// 4 xrefs:\n// > LevelInfoLayer::onDelete @ 0x10002e2c8\n// > LevelInfoLayer::keyBackClicked @ 0x10002e720\n// > sub_10002E724 @ 0x10002e728\n// > LevelInfoLayer::init @ 0x100028f00\n// \n// This function is hookable on this platform (idp: arm, 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 10:57:28 +0000\n// \n\n_BYTE *__fastcall LevelInfoLayer::onBack(_BYTE *result)\n{\n  _BYTE *v1; // x19\n  __int64 v2; // x0\n  __int64 v3; // x0\n  int v4; // w19\n  __int64 v5; // x0\n  __int64 v6; // x0\n  void *v7; // x1\n  __int64 v8; // x0\n\n  if ( (result[488] & 1) == 0 )\n  {\n    v1 = result;\n    v2 = (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 1072LL))(result, 0);\n    if ( *(_BYTE *)(*((_QWORD *)v1 + 63) + 649LL) == 1 )\n    {\n      v3 = cocos2d::CCDirector::sharedDirector(v2);\n      v4 = v3;\n      v5 = GameManager::sharedState(v3);\n      v6 = GauntletLayer::scene(*(unsigned int *)(v5 + 1084));\n      v7 = (void *)cocos2d::CCTransitionFade::create_1(v6, 0.5);\n      return (_BYTE *)cocos2d::CCDirector::replaceScene(v4, v7);\n    }\n    else\n    {\n      v8 = GameManager::sharedState(v2);\n      return (_BYTE *)GameManager::safePopScene(v8);\n    }\n  }\n  return result;\n}", "assembly": "; \n; LevelInfoLayer::onBack from 0x10002c2fc to 0x10002c380 (132 bytes)\n; \n; 4 xrefs:\n; > LevelInfoLayer::onDelete @ 0x10002e2c8\n; > LevelInfoLayer::keyBackClicked @ 0x10002e720\n; > sub_10002E724 @ 0x10002e728\n; > LevelInfoLayer::init @ 0x100028f00\n; \n; This function is hookable on this platform (idp: arm, 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 10:57:28 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10002c2fc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10002c300\nADD             X29, SP, #0x10                                         ; +0x8, 0x10002c304\nLDRB            W8, [X0,#0x1E8]                                        ; +0xc, 0x10002c308\nTBZ             W8, #0, loc_10002C31C                                  ; +0x10, 0x10002c30c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x14, 0x10002c310\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x18, 0x10002c314\nRET                                                                    ; +0x1c, 0x10002c318\nMOV             X19, X0                                                ; +0x20, 0x10002c31c\nLDR             X8, [X0]                                               ; +0x24, 0x10002c320\nLDR             X8, [X8,#0x430]                                        ; +0x28, 0x10002c324\nMOV             W1, #0                                                 ; +0x2c, 0x10002c328\nBLR             X8                                                     ; +0x30, 0x10002c32c\nLDR             X8, [X19,#0x1F8]                                       ; +0x34, 0x10002c330\nLDRB            W8, [X8,#0x289]                                        ; +0x38, 0x10002c334\nCMP             W8, #1                                                 ; +0x3c, 0x10002c338\nB.NE            loc_10002C370                                          ; +0x40, 0x10002c33c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x44, 0x10002c340\nMOV             X19, X0                                                ; +0x48, 0x10002c344\nBL              GameManager__sharedState                               ; +0x4c, 0x10002c348\nLDR             W0, [X0,#0x43C]                                        ; +0x50, 0x10002c34c\nBL              GauntletLayer__scene                                   ; +0x54, 0x10002c350\nFMOV            S0, #0.5                                               ; +0x58, 0x10002c354\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x5c, 0x10002c358\nMOV             X1, X0; lpsrc                                          ; +0x60, 0x10002c35c\nMOV             X0, X19; int                                           ; +0x64, 0x10002c360\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x10002c364\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x10002c368\nB               cocos2d__CCDirector__replaceScene                      ; +0x70, 0x10002c36c\nBL              GameManager__sharedState                               ; +0x74, 0x10002c370\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x78, 0x10002c374\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x7c, 0x10002c378\nB               GameManager__safePopScene                              ; +0x80, 0x10002c37c", "xrefs": ["LevelInfoLayer::onDelete @ 0x10002e2c8", "LevelInfoLayer::keyBackClicked @ 0x10002e720", "sub_10002E724 @ 0x10002e728", "LevelInfoLayer::init @ 0x100028f00"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}