{"type": "func", "start": 4298233868, "end": 4298233968, "name": "GameManager::safePopScene", "pseudocode": "// \n// GameManager::safePopScene from 0x10031d80c to 0x10031d870 (100 bytes)\n// \n// 4 xrefs:\n// > LevelInfoLayer::onBack @ 0x100028c94\n// > LevelSearchLayer::onBack @ 0x100054368\n// > LeaderboardsLayer::onBack @ 0x1003b17e8\n// > LevelBrowserLayer::onBack @ 0x100418f64\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\nbool __fastcall GameManager::safePopScene(GameManager *a1)\n{\n  cocos2d::CCDirector *v1; // x0\n  int v2; // w20\n  cocos2d::CCDirector *v3; // x0\n  cocos2d::CCDirector *v4; // x19\n  cocos2d::CCScene *v5; // x0\n  cocos2d::CCTransitionFade *v6; // x1\n\n  v1 = cocos2d::CCDirector::sharedDirector();\n  v2 = cocos2d::CCDirector::sceneCount(v1);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = v3;\n  if ( v2 > 1 )\n    return cocos2d::CCDirector::popSceneWithTransition(v3, 0.5, kPopTransitionFade);\n  v5 = MenuLayer::scene(0);\n  v6 = cocos2d::CCTransitionFade::create_1(0.5, v5);\n  return cocos2d::CCDirector::replaceScene(v4, v6);\n}", "assembly": "; \n; GameManager::safePopScene from 0x10031d80c to 0x10031d870 (100 bytes)\n; \n; 4 xrefs:\n; > LevelInfoLayer::onBack @ 0x100028c94\n; > LevelSearchLayer::onBack @ 0x100054368\n; > LeaderboardsLayer::onBack @ 0x1003b17e8\n; > LevelBrowserLayer::onBack @ 0x100418f64\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, 0x10031d80c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10031d810\nADD             X29, SP, #0x10                                         ; +0x8, 0x10031d814\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xc, 0x10031d818\nBL              cocos2d__CCDirector__sceneCount                        ; +0x10, 0x10031d81c\nMOV             X20, X0                                                ; +0x14, 0x10031d820\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x18, 0x10031d824\nMOV             X19, X0                                                ; +0x1c, 0x10031d828\nCMP             W20, #1                                                ; +0x20, 0x10031d82c\nB.GT            loc_10031D858                                          ; +0x24, 0x10031d830\nMOV             W0, #0                                                 ; +0x28, 0x10031d834\nBL              MenuLayer__scene                                       ; +0x2c, 0x10031d838\nFMOV            S0, #0.5                                               ; +0x30, 0x10031d83c\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x34, 0x10031d840\nMOV             X1, X0; lpsrc                                          ; +0x38, 0x10031d844\nMOV             X0, X19; int                                           ; +0x3c, 0x10031d848\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x10031d84c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x10031d850\nB               cocos2d__CCDirector__replaceScene                      ; +0x48, 0x10031d854\nFMOV            S0, #0.5                                               ; +0x4c, 0x10031d858\nMOV             X0, X19                                                ; +0x50, 0x10031d85c\nMOV             W1, #0                                                 ; +0x54, 0x10031d860\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x10031d864\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x10031d868\nB               cocos2d__CCDirector__popSceneWithTransition            ; +0x60, 0x10031d86c", "xrefs": ["LevelInfoLayer::onBack @ 0x100028c94", "LevelSearchLayer::onBack @ 0x100054368", "LeaderboardsLayer::onBack @ 0x1003b17e8", "LevelBrowserLayer::onBack @ 0x100418f64"], "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"}