{"type": "func", "start": 5369247200, "end": 5369247348, "name": "AppDelegate::willSwitchToScene", "pseudocode": "// \n// AppDelegate::willSwitchToScene from 0x1400835e0 to 0x140083674 (148 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14053c520\n// > <???> @ 0x1406c6abc\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\nvoid AppDelegate::willSwitchToScene(AppDelegate *a1, cocos2d::CCScene *a2)\n{\n  AchievementNotifier *v3; // rbx\n  AchievementBar *m_activeAchievementBar; // rcx\n\n  v3 = AchievementNotifier::sharedState();\n  m_activeAchievementBar = v3->m_activeAchievementBar;\n  v3->m_nextScene = a2;\n  if ( m_activeAchievementBar )\n  {\n    if ( m_activeAchievementBar->getParent(m_activeAchievementBar) != a2 )\n    {\n      cocos2d::CCObject::retain(v3->m_activeAchievementBar);\n      v3->m_activeAchievementBar->removeFromParentAndCleanup(v3->m_activeAchievementBar, 0);\n      a2->addChild_0(a2, v3->m_activeAchievementBar, 105);\n      cocos2d::CCObject::release(v3->m_activeAchievementBar);\n      cocos2d::CCNode::resumeSchedulerAndActions(v3->m_activeAchievementBar);\n    }\n  }\n}", "assembly": "; \n; AppDelegate::willSwitchToScene from 0x1400835e0 to 0x140083674 (148 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14053c520\n; > <???> @ 0x1406c6abc\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400835e0\npush    rdi                                                            ; +0x5, 0x1400835e5\nsub     rsp, 20h                                                       ; +0x6, 0x1400835e6\nmov     rdi, rdx                                                       ; +0xa, 0x1400835ea\ncall    AchievementNotifier__sharedState                               ; +0xd, 0x1400835ed\nmov     rbx, rax                                                       ; +0x12, 0x1400835f2\nmov     rcx, [rax+150h]                                                ; +0x15, 0x1400835f5\nmov     [rax+140h], rdi                                                ; +0x1c, 0x1400835fc\ntest    rcx, rcx                                                       ; +0x23, 0x140083603\njz      short loc_140083669                                            ; +0x26, 0x140083606\nmov     r8, [rcx]                                                      ; +0x28, 0x140083608\ncall    qword ptr [r8+1E8h]                                            ; +0x2b, 0x14008360b\ncmp     rax, rdi                                                       ; +0x32, 0x140083612\njz      short loc_140083669                                            ; +0x35, 0x140083615\nmov     rcx, [rbx+150h]                                                ; +0x37, 0x140083617\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x3e, 0x14008361e\nmov     rcx, [rbx+150h]                                                ; +0x44, 0x140083624\nxor     edx, edx                                                       ; +0x4b, 0x14008362b\nmov     rax, [rcx]                                                     ; +0x4d, 0x14008362d\ncall    qword ptr [rax+1F8h]                                           ; +0x50, 0x140083630\nmov     rax, [rdi]                                                     ; +0x56, 0x140083636\nmov     r8d, 69h ; 'i'                                                 ; +0x59, 0x140083639\nmov     rdx, [rbx+150h]                                                ; +0x5f, 0x14008363f\nmov     rcx, rdi                                                       ; +0x66, 0x140083646\ncall    qword ptr [rax+1B8h]                                           ; +0x69, 0x140083649\nmov     rcx, [rbx+150h]                                                ; +0x6f, 0x14008364f\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x76, 0x140083656\nmov     rcx, [rbx+150h]                                                ; +0x7c, 0x14008365c\ncall    cs:?resumeSchedulerAndActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::resumeSchedulerAndActions(void) ; +0x83, 0x140083663\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x89, 0x140083669\nadd     rsp, 20h                                                       ; +0x8e, 0x14008366e\npop     rdi                                                            ; +0x92, 0x140083672\nretn                                                                   ; +0x93, 0x140083673", "xrefs": ["<???> @ 0x14053c520", "<???> @ 0x1406c6abc"], "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"}