{"type": "func", "start": 2878974, "end": 2879062, "name": "AchievementNotifier::willSwitchToScene", "pseudocode": "// \n// AchievementNotifier::willSwitchToScene from 0x2bedfe to 0x2bee56 (88 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::willSwitchToScene @ 0x30778e\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; // r0\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 0x2bedfe to 0x2bee56 (88 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::willSwitchToScene @ 0x30778e\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            {R3-R5,LR}                                             ; +0x0, 0x2bedfe\nMOV             R4, R0                                                 ; +0x2, 0x2bee00\nLDR.W           R0, [R0,#0x110]                                        ; +0x4, 0x2bee02\nMOV             R5, R1                                                 ; +0x8, 0x2bee06\nSTR.W           R1, [R4,#0x108]                                        ; +0xa, 0x2bee08\nCBZ             R0, locret_2BEE54                                      ; +0xe, 0x2bee0c\nLDR             R3, [R0]                                               ; +0x10, 0x2bee0e\nLDR.W           R3, [R3,#0xF8]                                         ; +0x12, 0x2bee10\nBLX             R3                                                     ; +0x16, 0x2bee14\nCMP             R5, R0                                                 ; +0x18, 0x2bee16\nBEQ             locret_2BEE54                                          ; +0x1a, 0x2bee18\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x1c, 0x2bee1a\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x20, 0x2bee1e\nLDR.W           R0, [R4,#0x110]                                        ; +0x24, 0x2bee22\nMOVS            R1, #0                                                 ; +0x28, 0x2bee26\nLDR             R3, [R0]                                               ; +0x2a, 0x2bee28\nLDR.W           R3, [R3,#0x100]                                        ; +0x2c, 0x2bee2a\nBLX             R3                                                     ; +0x30, 0x2bee2e\nLDR             R3, [R5]                                               ; +0x32, 0x2bee30\nMOV             R0, R5                                                 ; +0x34, 0x2bee32\nLDR.W           R1, [R4,#0x110]                                        ; +0x36, 0x2bee34\nMOVS            R2, #0x69 ; 'i'                                        ; +0x3a, 0x2bee38\nLDR.W           R3, [R3,#0xE0]                                         ; +0x3c, 0x2bee3a\nBLX             R3                                                     ; +0x40, 0x2bee3e\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x42, 0x2bee40\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x46, 0x2bee44\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x4a, 0x2bee48\nPOP.W           {R3-R5,LR}                                             ; +0x4e, 0x2bee4c\nB.W             _ZN7cocos2d6CCNode25resumeSchedulerAndActionsEv; cocos2d::CCNode::resumeSchedulerAndActions(void) ; +0x52, 0x2bee50\nPOP             {R3-R5,PC}                                             ; +0x56, 0x2bee54", "xrefs": ["AppDelegate::willSwitchToScene @ 0x30778e"], "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"}