//
// AchievementNotifier::willSwitchToScene from 0x395eae to 0x395f06 (88 bytes)
//
// 1 xrefs:
// > AppDelegate::willSwitchToScene @ 0x3f6c0e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:46:19 +0000
//
cocos2d::CCScene *__fastcall AchievementNotifier::willSwitchToScene(AchievementNotifier *this, cocos2d::CCScene *a2)
{
cocos2d::CCScene *result; // r0
*((_DWORD *)this + 66) = a2;
result = *((cocos2d::CCScene **)this + 68);
if ( result )
{
result = (cocos2d::CCScene *)(*(int (__fastcall **)(cocos2d::CCScene *))(*(_DWORD *)result + 256))(result);
if ( a2 != result )
{
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 68));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 68) + 264))(*((_DWORD *)this + 68), 0);
(*(void (__fastcall **)(cocos2d::CCScene *, _DWORD, int))(*(_DWORD *)a2 + 232))(a2, *((_DWORD *)this + 68), 105);
cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 68));
return (cocos2d::CCScene *)cocos2d::CCNode::resumeSchedulerAndActions(*((cocos2d::CCNode **)this + 68));
}
}
return result;
}