{"type": "func", "start": 4303105488, "end": 4303105621, "name": "AchievementNotifier::willSwitchToScene", "pseudocode": "// \n// AchievementNotifier::willSwitchToScene from 0x1007c2dd0 to 0x1007c2e55 (133 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::willSwitchToScene @ 0x10065c84a\n// > sub_10065C850 @ 0x10065c86a\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 __fastcall AchievementNotifier::willSwitchToScene(AchievementNotifier *a1, cocos2d::CCScene *a2)\n{\n  AchievementBar *m_activeAchievementBar; // rdi\n\n  a1->m_nextScene = a2;\n  m_activeAchievementBar = a1->m_activeAchievementBar;\n  if ( m_activeAchievementBar )\n  {\n    if ( (cocos2d::CCScene *)((__int64 (__fastcall *)(AchievementBar *))m_activeAchievementBar->getParent)(m_activeAchievementBar) != a2 )\n    {\n      cocos2d::CCObject::retain(a1->m_activeAchievementBar);\n      ((void (__fastcall *)(AchievementBar *, _QWORD))a1->m_activeAchievementBar->removeFromParentAndCleanup)(\n        a1->m_activeAchievementBar,\n        0);\n      ((void (__fastcall *)(cocos2d::CCScene *, AchievementBar *, __int64))a2->addChild_0)(\n        a2,\n        a1->m_activeAchievementBar,\n        105);\n      cocos2d::CCObject::release(a1->m_activeAchievementBar);\n      cocos2d::CCNode::resumeSchedulerAndActions(a1->m_activeAchievementBar);\n    }\n  }\n}", "assembly": "; \n; AchievementNotifier::willSwitchToScene from 0x1007c2dd0 to 0x1007c2e55 (133 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::willSwitchToScene @ 0x10065c84a\n; > sub_10065C850 @ 0x10065c86a\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, 0x1007c2dd0\nmov     rbp, rsp                                                       ; +0x1, 0x1007c2dd1\npush    r14                                                            ; +0x4, 0x1007c2dd4\npush    rbx                                                            ; +0x6, 0x1007c2dd6\nmov     rbx, rdi                                                       ; +0x7, 0x1007c2dd7\nmov     [rdi+140h], rsi                                                ; +0xa, 0x1007c2dda\nmov     rdi, [rdi+150h]                                                ; +0x11, 0x1007c2de1\ntest    rdi, rdi                                                       ; +0x18, 0x1007c2de8\njz      short loc_1007C2E50                                            ; +0x1b, 0x1007c2deb\nmov     r14, rsi                                                       ; +0x1d, 0x1007c2ded\nmov     rax, [rdi]                                                     ; +0x20, 0x1007c2df0\ncall    qword ptr [rax+1F0h]                                           ; +0x23, 0x1007c2df3\ncmp     rax, r14                                                       ; +0x29, 0x1007c2df9\njz      short loc_1007C2E50                                            ; +0x2c, 0x1007c2dfc\nmov     rdi, [rbx+150h]                                                ; +0x2e, 0x1007c2dfe\ncall    cocos2d__CCObject__retain                                      ; +0x35, 0x1007c2e05\nmov     rdi, [rbx+150h]                                                ; +0x3a, 0x1007c2e0a\nmov     rax, [rdi]                                                     ; +0x41, 0x1007c2e11\nxor     esi, esi                                                       ; +0x44, 0x1007c2e14\ncall    qword ptr [rax+200h]                                           ; +0x46, 0x1007c2e16\nmov     rsi, [rbx+150h]                                                ; +0x4c, 0x1007c2e1c\nmov     rax, [r14]                                                     ; +0x53, 0x1007c2e23\nmov     rdi, r14                                                       ; +0x56, 0x1007c2e26\nmov     edx, 69h ; 'i'                                                 ; +0x59, 0x1007c2e29\ncall    qword ptr [rax+1C0h]                                           ; +0x5e, 0x1007c2e2e\nmov     rdi, [rbx+150h]                                                ; +0x64, 0x1007c2e34\ncall    cocos2d__CCObject__release                                     ; +0x6b, 0x1007c2e3b\nmov     rdi, [rbx+150h]                                                ; +0x70, 0x1007c2e40\npop     rbx                                                            ; +0x77, 0x1007c2e47\npop     r14                                                            ; +0x78, 0x1007c2e48\npop     rbp                                                            ; +0x7a, 0x1007c2e4a\njmp     cocos2d__CCNode__resumeSchedulerAndActions                     ; +0x7b, 0x1007c2e4b\npop     rbx                                                            ; +0x80, 0x1007c2e50\npop     r14                                                            ; +0x81, 0x1007c2e51\npop     rbp                                                            ; +0x83, 0x1007c2e53\nretn                                                                   ; +0x84, 0x1007c2e54", "xrefs": ["AppDelegate::willSwitchToScene @ 0x10065c84a", "sub_10065C850 @ 0x10065c86a"], "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"}