{"type": "func", "start": 6565600, "end": 6565744, "name": "AchievementNotifier::willSwitchToScene", "pseudocode": "// \n// AchievementNotifier::willSwitchToScene from 0x642ee0 to 0x642f70 (144 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::willSwitchToScene @ 0x6e65c8\n// > <???> @ 0x892d8\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 12:50:18 +0000\n// \n\ncocos2d::CCScene *__fastcall AchievementNotifier::willSwitchToScene(AchievementNotifier *this, cocos2d::CCScene *a2)\n{\n  cocos2d::CCScene *result; // x0\n\n  result = *((cocos2d::CCScene **)this + 42);\n  *((_QWORD *)this + 40) = a2;\n  if ( result )\n  {\n    result = (cocos2d::CCScene *)(*(__int64 (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)result + 512LL))(result);\n    if ( a2 != result )\n    {\n      cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 42));\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 42) + 528LL))(*((_QWORD *)this + 42), 0);\n      (*(void (__fastcall **)(cocos2d::CCScene *, _QWORD, __int64))(*(_QWORD *)a2 + 464LL))(\n        a2,\n        *((_QWORD *)this + 42),\n        105);\n      cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 42));\n      return (cocos2d::CCScene *)cocos2d::CCNode::resumeSchedulerAndActions(*((cocos2d::CCNode **)this + 42));\n    }\n  }\n  return result;\n}", "assembly": "; \n; AchievementNotifier::willSwitchToScene from 0x642ee0 to 0x642f70 (144 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::willSwitchToScene @ 0x6e65c8\n; > <???> @ 0x892d8\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 12:50:18 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x642ee0\nMOV             X29, SP                                                ; +0x4, 0x642ee4\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x642ee8\nMOV             X19, X0                                                ; +0xc, 0x642eec\nLDR             X0, [X0,#0x150]                                        ; +0x10, 0x642ef0\nSTR             X1, [X19,#0x140]                                       ; +0x14, 0x642ef4\nCBZ             X0, loc_642F64                                         ; +0x18, 0x642ef8\nMOV             X20, X1                                                ; +0x1c, 0x642efc\nLDR             X1, [X0]                                               ; +0x20, 0x642f00\nLDR             X1, [X1,#0x200]                                        ; +0x24, 0x642f04\nBLR             X1                                                     ; +0x28, 0x642f08\nCMP             X20, X0                                                ; +0x2c, 0x642f0c\nB.EQ            loc_642F64                                             ; +0x30, 0x642f10\nLDR             X0, [X19,#0x150]; this                                 ; +0x34, 0x642f14\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x38, 0x642f18\nLDR             X2, [X19,#0x150]                                       ; +0x3c, 0x642f1c\nMOV             W1, #0                                                 ; +0x40, 0x642f20\nMOV             X0, X2                                                 ; +0x44, 0x642f24\nLDR             X2, [X2]                                               ; +0x48, 0x642f28\nLDR             X2, [X2,#0x210]                                        ; +0x4c, 0x642f2c\nBLR             X2                                                     ; +0x50, 0x642f30\nLDR             X3, [X20]                                              ; +0x54, 0x642f34\nMOV             X0, X20                                                ; +0x58, 0x642f38\nLDR             X1, [X19,#0x150]                                       ; +0x5c, 0x642f3c\nMOV             W2, #0x69 ; 'i'                                        ; +0x60, 0x642f40\nLDR             X3, [X3,#0x1D0]                                        ; +0x64, 0x642f44\nBLR             X3                                                     ; +0x68, 0x642f48\nLDR             X0, [X19,#0x150]; this                                 ; +0x6c, 0x642f4c\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x70, 0x642f50\nLDR             X0, [X19,#0x150]; this                                 ; +0x74, 0x642f54\nLDP             X19, X20, [SP,#var_s10]                                ; +0x78, 0x642f58\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x7c, 0x642f5c\nB               _ZN7cocos2d6CCNode25resumeSchedulerAndActionsEv; cocos2d::CCNode::resumeSchedulerAndActions(void) ; +0x80, 0x642f60\nLDP             X19, X20, [SP,#var_s10]                                ; +0x84, 0x642f64\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x88, 0x642f68\nRET                                                                    ; +0x8c, 0x642f6c", "xrefs": ["AppDelegate::willSwitchToScene @ 0x6e65c8", "<???> @ 0x892d8"], "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"}