//
// AchievementNotifier::sharedState from 0x642c88 to 0x642d08 (128 bytes)
//
// 5 xrefs:
// > AchievementManager::notifyAchievement @ 0x6435ac
// > AchievementManager::notifyAchievementWithID @ 0x679514
// > AppDelegate::willSwitchToScene @ 0x6e65c0
// > AchievementBar::show @ 0x8fdcd8
// > ??> @ 0xdfb58
//
// 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 12:50:18 +0000
//
__int64 __fastcall AchievementNotifier::sharedState(AchievementNotifier *this)
{
__int64 result; // x0
cocos2d::CCNode *v2; // x20
result = qword_155A560;
if ( !qword_155A560 )
{
v2 = (cocos2d::CCNode *)operator new(0x158u);
cocos2d::CCNode::CCNode(v2);
qword_155A560 = (__int64)v2;
*((_QWORD *)v2 + 40) = 0;
*((_QWORD *)v2 + 41) = 0;
*(_QWORD *)v2 = &off_1410B60;
*((_QWORD *)v2 + 42) = 0;
AchievementNotifier::init(v2);
return qword_155A560;
}
return result;
}