{"type": "func", "start": 3759790, "end": 3759878, "name": "AchievementNotifier::willSwitchToScene", "pseudocode": "// \n// AchievementNotifier::willSwitchToScene from 0x395eae to 0x395f06 (88 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::willSwitchToScene @ 0x3f6c0e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:19 +0000\n// \n\ncocos2d::CCScene *__fastcall AchievementNotifier::willSwitchToScene(AchievementNotifier *this, cocos2d::CCScene *a2)\n{\n  cocos2d::CCScene *result; // r0\n\n  *((_DWORD *)this + 66) = a2;\n  result = *((cocos2d::CCScene **)this + 68);\n  if ( result )\n  {\n    result = (cocos2d::CCScene *)(*(int (__fastcall **)(cocos2d::CCScene *))(*(_DWORD *)result + 256))(result);\n    if ( a2 != result )\n    {\n      cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 68));\n      (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 68) + 264))(*((_DWORD *)this + 68), 0);\n      (*(void (__fastcall **)(cocos2d::CCScene *, _DWORD, int))(*(_DWORD *)a2 + 232))(a2, *((_DWORD *)this + 68), 105);\n      cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 68));\n      return (cocos2d::CCScene *)cocos2d::CCNode::resumeSchedulerAndActions(*((cocos2d::CCNode **)this + 68));\n    }\n  }\n  return result;\n}", "assembly": "; \n; AchievementNotifier::willSwitchToScene from 0x395eae to 0x395f06 (88 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::willSwitchToScene @ 0x3f6c0e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:19 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x395eae\nMOV             R4, R0                                                 ; +0x2, 0x395eb0\nSTR.W           R1, [R4,#0x108]                                        ; +0x4, 0x395eb2\nMOV             R5, R1                                                 ; +0x8, 0x395eb6\nLDR.W           R0, [R0,#0x110]                                        ; +0xa, 0x395eb8\nCBZ             R0, locret_395F04                                      ; +0xe, 0x395ebc\nLDR             R3, [R0]                                               ; +0x10, 0x395ebe\nLDR.W           R3, [R3,#0x100]                                        ; +0x12, 0x395ec0\nBLX             R3                                                     ; +0x16, 0x395ec4\nCMP             R5, R0                                                 ; +0x18, 0x395ec6\nBEQ             locret_395F04                                          ; +0x1a, 0x395ec8\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x1c, 0x395eca\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x20, 0x395ece\nLDR.W           R0, [R4,#0x110]                                        ; +0x24, 0x395ed2\nMOVS            R1, #0                                                 ; +0x28, 0x395ed6\nLDR             R3, [R0]                                               ; +0x2a, 0x395ed8\nLDR.W           R3, [R3,#0x108]                                        ; +0x2c, 0x395eda\nBLX             R3                                                     ; +0x30, 0x395ede\nLDR             R3, [R5]                                               ; +0x32, 0x395ee0\nMOV             R0, R5                                                 ; +0x34, 0x395ee2\nLDR.W           R1, [R4,#0x110]                                        ; +0x36, 0x395ee4\nMOVS            R2, #0x69 ; 'i'                                        ; +0x3a, 0x395ee8\nLDR.W           R3, [R3,#0xE8]                                         ; +0x3c, 0x395eea\nBLX             R3                                                     ; +0x40, 0x395eee\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x42, 0x395ef0\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x46, 0x395ef4\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x4a, 0x395ef8\nPOP.W           {R3-R5,LR}                                             ; +0x4e, 0x395efc\nB.W             _ZN7cocos2d6CCNode25resumeSchedulerAndActionsEv; cocos2d::CCNode::resumeSchedulerAndActions(void) ; +0x52, 0x395f00\nPOP             {R3-R5,PC}                                             ; +0x56, 0x395f04", "xrefs": ["AppDelegate::willSwitchToScene @ 0x3f6c0e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}