{"type": "func", "start": 4298687104, "end": 4298687201, "name": "GameManager::safePopScene", "pseudocode": "// \n// GameManager::safePopScene from 0x10038c280 to 0x10038c2e1 (97 bytes)\n// \n// 8 xrefs:\n// > LevelInfoLayer::onBack @ 0x1002c234b\n// > LevelBrowserLayer::onBack @ 0x100491101\n// > LeaderboardsLayer::onBack @ 0x1005136c1\n// > LeaderboardsLayer::keyBackClicked @ 0x100514221\n// > sub_100514230 @ 0x10051427b\n// > LevelSearchLayer::onBack @ 0x10062b553\n// > LevelSearchLayer::keyBackClicked @ 0x10062c9d3\n// > sub_10062CA00 @ 0x10062ca20\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; // rax\n  int v2; // r14d\n  cocos2d::CCDirector *v3; // rax\n  cocos2d::CCDirector *v4; // rbx\n  cocos2d::CCScene *v5; // rax\n  cocos2d::CCTransitionFade *v6; // rax\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 0x10038c280 to 0x10038c2e1 (97 bytes)\n; \n; 8 xrefs:\n; > LevelInfoLayer::onBack @ 0x1002c234b\n; > LevelBrowserLayer::onBack @ 0x100491101\n; > LeaderboardsLayer::onBack @ 0x1005136c1\n; > LeaderboardsLayer::keyBackClicked @ 0x100514221\n; > sub_100514230 @ 0x10051427b\n; > LevelSearchLayer::onBack @ 0x10062b553\n; > LevelSearchLayer::keyBackClicked @ 0x10062c9d3\n; > sub_10062CA00 @ 0x10062ca20\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    rbp                                                            ; +0x0, 0x10038c280\nmov     rbp, rsp                                                       ; +0x1, 0x10038c281\npush    r14                                                            ; +0x4, 0x10038c284\npush    rbx                                                            ; +0x6, 0x10038c286\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x7, 0x10038c287\nmov     rdi, rax                                                       ; +0xc, 0x10038c28c\ncall    cocos2d__CCDirector__sceneCount                                ; +0xf, 0x10038c28f\nmov     r14d, eax                                                      ; +0x14, 0x10038c294\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x17, 0x10038c297\nmov     rbx, rax                                                       ; +0x1c, 0x10038c29c\ncmp     r14d, 1                                                        ; +0x1f, 0x10038c29f\njg      short loc_10038C2CB                                            ; +0x23, 0x10038c2a3\nxor     edi, edi                                                       ; +0x25, 0x10038c2a5\ncall    MenuLayer__scene                                               ; +0x27, 0x10038c2a7\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x2c, 0x10038c2ac\nmov     rdi, rax                                                       ; +0x34, 0x10038c2b4\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x37, 0x10038c2b7\nmov     rdi, rbx                                                       ; +0x3c, 0x10038c2bc\nmov     rsi, rax                                                       ; +0x3f, 0x10038c2bf\npop     rbx                                                            ; +0x42, 0x10038c2c2\npop     r14                                                            ; +0x43, 0x10038c2c3\npop     rbp                                                            ; +0x45, 0x10038c2c5\njmp     cocos2d__CCDirector__replaceScene                              ; +0x46, 0x10038c2c6\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x4b, 0x10038c2cb\nmov     rdi, rbx                                                       ; +0x53, 0x10038c2d3\nxor     esi, esi                                                       ; +0x56, 0x10038c2d6\npop     rbx                                                            ; +0x58, 0x10038c2d8\npop     r14                                                            ; +0x59, 0x10038c2d9\npop     rbp                                                            ; +0x5b, 0x10038c2db\njmp     cocos2d__CCDirector__popSceneWithTransition                    ; +0x5c, 0x10038c2dc", "xrefs": ["LevelInfoLayer::onBack @ 0x1002c234b", "LevelBrowserLayer::onBack @ 0x100491101", "LeaderboardsLayer::onBack @ 0x1005136c1", "LeaderboardsLayer::keyBackClicked @ 0x100514221", "sub_100514230 @ 0x10051427b", "LevelSearchLayer::onBack @ 0x10062b553", "LevelSearchLayer::keyBackClicked @ 0x10062c9d3", "sub_10062CA00 @ 0x10062ca20"], "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"}