{"type": "func", "start": 5371360896, "end": 5371361011, "name": "GameManager::safePopScene", "pseudocode": "// \n// GameManager::safePopScene from 0x140287680 to 0x1402876f3 (115 bytes)\n// \n// 8 xrefs:\n// > LeaderboardsLayer::onBack @ 0x1403dd3ef\n// > LevelBrowserLayer::onBack @ 0x1403e6cd9\n// > LevelInfoLayer::onBack @ 0x1404265b0\n// > LevelListLayer::onBack @ 0x14042f2fa\n// > LevelSearchLayer::onBack @ 0x14043a350\n// > <???> @ 0x1408ae9e8\n// > <???> @ 0x1408ae9f8\n// > <???> @ 0x14091d12c\n// \n// This function is hookable on this platform (idp: pc, 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 11:29:02 +0000\n// \n\nchar __fastcall GameManager::safePopScene(__int64 a1)\n{\n  cocos2d::CCDirector *v1; // rax\n  __int64 v2; // rcx\n  struct cocos2d::CCScene *v3; // rax\n  struct cocos2d::CCScene *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  __int64 v8; // rax\n  __int64 v9; // rdx\n\n  v1 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  if ( (int)cocos2d::CCDirector::sceneCount(v1) > 1 )\n  {\n    v8 = cocos2d::CCDirector::sharedDirector(v2);\n    return cocos2d::CCDirector::popSceneWithTransition(v8, v9, 0);\n  }\n  else\n  {\n    v3 = (struct cocos2d::CCScene *)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 0x140287680 to 0x1402876f3 (115 bytes)\n; \n; 8 xrefs:\n; > LeaderboardsLayer::onBack @ 0x1403dd3ef\n; > LevelBrowserLayer::onBack @ 0x1403e6cd9\n; > LevelInfoLayer::onBack @ 0x1404265b0\n; > LevelListLayer::onBack @ 0x14042f2fa\n; > LevelSearchLayer::onBack @ 0x14043a350\n; > <???> @ 0x1408ae9e8\n; > <???> @ 0x1408ae9f8\n; > <???> @ 0x14091d12c\n; \n; This function is hookable on this platform (idp: pc, 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 11:29:02 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x140287680\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4, 0x140287684\nmov     rcx, rax                                                       ; +0xa, 0x14028768a\ncall    cs:?sceneCount@CCDirector@cocos2d@@QEAAHXZ; cocos2d::CCDirector::sceneCount(void) ; +0xd, 0x14028768d\ncmp     eax, 1                                                         ; +0x13, 0x140287693\njg      short loc_1402876D4                                            ; +0x16, 0x140287696\nxor     ecx, ecx                                                       ; +0x18, 0x140287698\nmov     [rsp+28h+var_8], rbx                                           ; +0x1a, 0x14028769a\ncall    MenuLayer__scene                                               ; +0x1f, 0x14028769f\nmovss   xmm0, cs:dword_140834F20                                       ; +0x24, 0x1402876a4\nmov     rdx, rax                                                       ; +0x2c, 0x1402876ac\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x2f, 0x1402876af\nmov     rbx, rax                                                       ; +0x35, 0x1402876b5\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x1402876b8\nmov     rcx, rax                                                       ; +0x3e, 0x1402876be\nmov     rdx, rbx                                                       ; +0x41, 0x1402876c1\nmov     rbx, [rsp+28h+var_8]                                           ; +0x44, 0x1402876c4\nadd     rsp, 28h                                                       ; +0x49, 0x1402876c9\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x4d, 0x1402876cd\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x54, 0x1402876d4\nmovss   xmm1, cs:dword_140834F20                                       ; +0x5a, 0x1402876da\nxor     r8d, r8d                                                       ; +0x62, 0x1402876e2\nmov     rcx, rax                                                       ; +0x65, 0x1402876e5\nadd     rsp, 28h                                                       ; +0x68, 0x1402876e8\njmp     cs:?popSceneWithTransition@CCDirector@cocos2d@@QEAA_NMW4PopTransition@2@@Z; cocos2d::CCDirector::popSceneWithTransition(float,cocos2d::PopTransition) ; +0x6c, 0x1402876ec", "xrefs": ["LeaderboardsLayer::onBack @ 0x1403dd3ef", "LevelBrowserLayer::onBack @ 0x1403e6cd9", "LevelInfoLayer::onBack @ 0x1404265b0", "LevelListLayer::onBack @ 0x14042f2fa", "LevelSearchLayer::onBack @ 0x14043a350", "<???> @ 0x1408ae9e8", "<???> @ 0x1408ae9f8", "<???> @ 0x14091d12c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}