{"type": "func", "start": 5168816, "end": 5168960, "name": "AchievementNotifier::willSwitchToScene", "pseudocode": "// \n// AchievementNotifier::willSwitchToScene from 0x4edeb0 to 0x4edf40 (144 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::willSwitchToScene @ 0x5bddac\n// > <???> @ 0x64ed8\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 AchievementNotifier::willSwitchToScene(AchievementNotifier *a1, cocos2d::CCScene *a2)\n{\n  AchievementBar *m_activeAchievementBar; // x0\n\n  m_activeAchievementBar = a1->m_activeAchievementBar;\n  a1->m_nextScene = a2;\n  if ( m_activeAchievementBar )\n  {\n    if ( a2 != m_activeAchievementBar->getParent(m_activeAchievementBar) )\n    {\n      cocos2d::CCObject::retain(a1->m_activeAchievementBar);\n      a1->m_activeAchievementBar->removeFromParentAndCleanup(a1->m_activeAchievementBar, 0);\n      a2->addChild_0(a2, a1->m_activeAchievementBar, 105);\n      cocos2d::CCObject::release(a1->m_activeAchievementBar);\n      cocos2d::CCNode::resumeSchedulerAndActions(a1->m_activeAchievementBar);\n    }\n  }\n}", "assembly": "; \n; AchievementNotifier::willSwitchToScene from 0x4edeb0 to 0x4edf40 (144 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::willSwitchToScene @ 0x5bddac\n; > <???> @ 0x64ed8\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x4edeb0\nMOV             X29, SP                                                ; +0x4, 0x4edeb4\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x4edeb8\nMOV             X19, X0                                                ; +0xc, 0x4edebc\nLDR             X0, [X0,#0x150]                                        ; +0x10, 0x4edec0\nSTR             X1, [X19,#0x140]                                       ; +0x14, 0x4edec4\nCBZ             X0, loc_4EDF34                                         ; +0x18, 0x4edec8\nMOV             X20, X1                                                ; +0x1c, 0x4edecc\nLDR             X1, [X0]                                               ; +0x20, 0x4eded0\nLDR             X1, [X1,#0x1F0]                                        ; +0x24, 0x4eded4\nBLR             X1                                                     ; +0x28, 0x4eded8\nCMP             X20, X0                                                ; +0x2c, 0x4ededc\nB.EQ            loc_4EDF34                                             ; +0x30, 0x4edee0\nLDR             X0, [X19,#0x150]; this                                 ; +0x34, 0x4edee4\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x38, 0x4edee8\nLDR             X2, [X19,#0x150]                                       ; +0x3c, 0x4edeec\nMOV             W1, #0                                                 ; +0x40, 0x4edef0\nMOV             X0, X2                                                 ; +0x44, 0x4edef4\nLDR             X2, [X2]                                               ; +0x48, 0x4edef8\nLDR             X2, [X2,#0x200]                                        ; +0x4c, 0x4edefc\nBLR             X2                                                     ; +0x50, 0x4edf00\nLDR             X3, [X20]                                              ; +0x54, 0x4edf04\nMOV             X0, X20                                                ; +0x58, 0x4edf08\nLDR             X1, [X19,#0x150]                                       ; +0x5c, 0x4edf0c\nMOV             W2, #0x69 ; 'i'                                        ; +0x60, 0x4edf10\nLDR             X3, [X3,#0x1C0]                                        ; +0x64, 0x4edf14\nBLR             X3                                                     ; +0x68, 0x4edf18\nLDR             X0, [X19,#0x150]; this                                 ; +0x6c, 0x4edf1c\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x70, 0x4edf20\nLDR             X0, [X19,#0x150]; this                                 ; +0x74, 0x4edf24\nLDP             X19, X20, [SP,#var_s10]                                ; +0x78, 0x4edf28\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x7c, 0x4edf2c\nB               _ZN7cocos2d6CCNode25resumeSchedulerAndActionsEv; cocos2d::CCNode::resumeSchedulerAndActions(void) ; +0x80, 0x4edf30\nLDP             X19, X20, [SP,#var_s10]                                ; +0x84, 0x4edf34\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x88, 0x4edf38\nRET                                                                    ; +0x8c, 0x4edf3c", "xrefs": ["AppDelegate::willSwitchToScene @ 0x5bddac", "<???> @ 0x64ed8"], "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"}