{"type": "func", "start": 4298880168, "end": 4298880268, "name": "GameManager::safePopScene", "pseudocode": "// \n// GameManager::safePopScene from 0x1003bb4a8 to 0x1003bb50c (100 bytes)\n// \n// 4 xrefs:\n// > LevelInfoLayer::onBack @ 0x10002c37c\n// > sub_10005CB50 @ 0x10005cb78\n// > LeaderboardsLayer::onBack @ 0x1004587c8\n// > LevelBrowserLayer::onBack @ 0x10049a3e8\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 11:03:59 +0000\n// \n\n__int64 GameManager::safePopScene()\n{\n  __int64 v0; // x0\n  int v1; // w20\n  __int64 v2; // x0\n  __int64 v3; // x19\n  _DWORD *v4; // x0\n  char *v5; // x1\n\n  v0 = cocos2d::CCDirector::sharedDirector();\n  v1 = cocos2d::CCDirector::sceneCount(v0);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = v2;\n  if ( v1 > 1 )\n    return cocos2d::CCDirector::popSceneWithTransition(v2, 0, 0.5);\n  v4 = MenuLayer::scene(0);\n  v5 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.5);\n  return cocos2d::CCDirector::replaceScene(v3, v5);\n}", "assembly": "; \n; GameManager::safePopScene from 0x1003bb4a8 to 0x1003bb50c (100 bytes)\n; \n; 4 xrefs:\n; > LevelInfoLayer::onBack @ 0x10002c37c\n; > sub_10005CB50 @ 0x10005cb78\n; > LeaderboardsLayer::onBack @ 0x1004587c8\n; > LevelBrowserLayer::onBack @ 0x10049a3e8\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 11:03:59 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003bb4a8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003bb4ac\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003bb4b0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xc, 0x1003bb4b4\nBL              cocos2d__CCDirector__sceneCount                        ; +0x10, 0x1003bb4b8\nMOV             X20, X0                                                ; +0x14, 0x1003bb4bc\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x18, 0x1003bb4c0\nMOV             X19, X0                                                ; +0x1c, 0x1003bb4c4\nCMP             W20, #1                                                ; +0x20, 0x1003bb4c8\nB.GT            loc_1003BB4F4                                          ; +0x24, 0x1003bb4cc\nMOV             W0, #0                                                 ; +0x28, 0x1003bb4d0\nBL              MenuLayer__scene                                       ; +0x2c, 0x1003bb4d4\nFMOV            S0, #0.5                                               ; +0x30, 0x1003bb4d8\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x34, 0x1003bb4dc\nMOV             X1, X0; lpsrc                                          ; +0x38, 0x1003bb4e0\nMOV             X0, X19; int                                           ; +0x3c, 0x1003bb4e4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x1003bb4e8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x1003bb4ec\nB               cocos2d__CCDirector__replaceScene                      ; +0x48, 0x1003bb4f0\nFMOV            S0, #0.5                                               ; +0x4c, 0x1003bb4f4\nMOV             X0, X19                                                ; +0x50, 0x1003bb4f8\nMOV             W1, #0                                                 ; +0x54, 0x1003bb4fc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x1003bb500\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x1003bb504\nB               cocos2d__CCDirector__popSceneWithTransition            ; +0x60, 0x1003bb508", "xrefs": ["LevelInfoLayer::onBack @ 0x10002c37c", "sub_10005CB50 @ 0x10005cb78", "LeaderboardsLayer::onBack @ 0x1004587c8", "LevelBrowserLayer::onBack @ 0x10049a3e8"], "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"}