{"type": "func", "start": 5370323808, "end": 5370323923, "name": "GameManager::safePopScene", "pseudocode": "// \n// GameManager::safePopScene from 0x14018a360 to 0x14018a3d3 (115 bytes)\n// \n// 9 xrefs:\n// > LeaderboardsLayer::onBack @ 0x1402c413c\n// > LevelBrowserLayer::onBack @ 0x1402ccf06\n// > LevelInfoLayer::onBack @ 0x14030080a\n// > LevelListLayer::onBack @ 0x140307518\n// > LevelSearchLayer::onBack @ 0x140311c3d\n// > <???> @ 0x140678548\n// > <???> @ 0x140678558\n// > <???> @ 0x1406cb6ac\n// > <???> @ 0x1406cb6b8\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 GameManager::safePopScene(GameManager *a1)\n{\n  cocos2d::CCDirector *v1; // rax\n  __int64 v2; // rcx\n  struct cocos2d::CCScene *v3; // rax\n  struct cocos2d::CCTransitionFade *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  cocos2d::CCDirector *v8; // rax\n\n  v1 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  if ( (int)cocos2d::CCDirector::sceneCount(v1) > 1 )\n  {\n    v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);\n    return cocos2d::CCDirector::popSceneWithTransition(v8, 0.5, kPopTransitionFade);\n  }\n  else\n  {\n    v3 = MenuLayer::scene(0);\n    v4 = cocos2d::CCTransitionFade::create(0.5, v3);\n    v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n    return cocos2d::CCDirector::replaceScene(v6, v4);\n  }\n}", "assembly": "; \n; GameManager::safePopScene from 0x14018a360 to 0x14018a3d3 (115 bytes)\n; \n; 9 xrefs:\n; > LeaderboardsLayer::onBack @ 0x1402c413c\n; > LevelBrowserLayer::onBack @ 0x1402ccf06\n; > LevelInfoLayer::onBack @ 0x14030080a\n; > LevelListLayer::onBack @ 0x140307518\n; > LevelSearchLayer::onBack @ 0x140311c3d\n; > <???> @ 0x140678548\n; > <???> @ 0x140678558\n; > <???> @ 0x1406cb6ac\n; > <???> @ 0x1406cb6b8\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\nsub     rsp, 28h                                                       ; +0x0, 0x14018a360\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4, 0x14018a364\nmov     rcx, rax                                                       ; +0xa, 0x14018a36a\ncall    cs:?sceneCount@CCDirector@cocos2d@@QEAAHXZ; cocos2d::CCDirector::sceneCount(void) ; +0xd, 0x14018a36d\ncmp     eax, 1                                                         ; +0x13, 0x14018a373\njg      short loc_14018A3B4                                            ; +0x16, 0x14018a376\nxor     ecx, ecx                                                       ; +0x18, 0x14018a378\nmov     [rsp+28h+var_8], rbx                                           ; +0x1a, 0x14018a37a\ncall    MenuLayer__scene                                               ; +0x1f, 0x14018a37f\nmovss   xmm0, cs:dword_140622B08                                       ; +0x24, 0x14018a384\nmov     rdx, rax                                                       ; +0x2c, 0x14018a38c\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x2f, 0x14018a38f\nmov     rbx, rax                                                       ; +0x35, 0x14018a395\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x14018a398\nmov     rcx, rax                                                       ; +0x3e, 0x14018a39e\nmov     rdx, rbx                                                       ; +0x41, 0x14018a3a1\nmov     rbx, [rsp+28h+var_8]                                           ; +0x44, 0x14018a3a4\nadd     rsp, 28h                                                       ; +0x49, 0x14018a3a9\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x4d, 0x14018a3ad\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x54, 0x14018a3b4\nmovss   xmm1, cs:dword_140622B08                                       ; +0x5a, 0x14018a3ba\nxor     r8d, r8d                                                       ; +0x62, 0x14018a3c2\nmov     rcx, rax                                                       ; +0x65, 0x14018a3c5\nadd     rsp, 28h                                                       ; +0x68, 0x14018a3c8\njmp     cs:?popSceneWithTransition@CCDirector@cocos2d@@QEAA_NMW4PopTransition@2@@Z; cocos2d::CCDirector::popSceneWithTransition(float,cocos2d::PopTransition) ; +0x6c, 0x14018a3cc", "xrefs": ["LeaderboardsLayer::onBack @ 0x1402c413c", "LevelBrowserLayer::onBack @ 0x1402ccf06", "LevelInfoLayer::onBack @ 0x14030080a", "LevelListLayer::onBack @ 0x140307518", "LevelSearchLayer::onBack @ 0x140311c3d", "<???> @ 0x140678548", "<???> @ 0x140678558", "<???> @ 0x1406cb6ac", "<???> @ 0x1406cb6b8"], "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"}