//
// AchievementNotifier::willSwitchToScene from 0x1002b329c to 0x1002b3328 (140 bytes)
//
// 1 xrefs:
// > AppDelegate::willSwitchToScene @ 0x1003074d4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:02:21 +0000
//
__int64 __fastcall AchievementNotifier::willSwitchToScene(__int64 a1, __int64 a2)
{
__int64 result; // x0
*(_QWORD *)(a1 + 320) = a2;
result = *(_QWORD *)(a1 + 336);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 512LL))(result);
if ( result != a2 )
{
cocos2d::CCObject::retain(*(_QWORD *)(a1 + 336));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 336) + 528LL))(*(_QWORD *)(a1 + 336), 0);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a2 + 464LL))(a2, *(_QWORD *)(a1 + 336), 105);
cocos2d::CCObject::release(*(_DWORD **)(a1 + 336));
return cocos2d::CCNode::resumeSchedulerAndActions(*(_QWORD *)(a1 + 336));
}
}
return result;
}