//
// AchievementNotifier::sharedState from 0x1007c2b60 to 0x1007c2bd3 (115 bytes)
//
// 5 xrefs:
// > AchievementBar::show @ 0x10061a3e8
// > AppDelegate::willSwitchToScene @ 0x10065c839
// > sub_10065C850 @ 0x10065c859
// > AchievementManager::notifyAchievementWithID @ 0x100785a01
// > AchievementManager::notifyAchievement @ 0x100785a6d
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
AchievementNotifier *__fastcall AchievementNotifier::sharedState()
{
AchievementNotifier *result; // rax
_OWORD *v1; // rbx
cocos2d::CCObject *v2; // rax
result = (AchievementNotifier *)qword_1009A3E20;
if ( !qword_1009A3E20 )
{
v1 = operator new(0x158u);
cocos2d::CCNode::CCNode((__int64)v1);
*(_QWORD *)v1 = off_100995AA8;
v1[20] = 0;
*((_QWORD *)v1 + 42) = 0;
qword_1009A3E20 = (__int64)v1;
v2 = sub_10071F9E0();
*((_QWORD *)v1 + 41) = v2;
cocos2d::CCObject::retain(v2);
return (AchievementNotifier *)qword_1009A3E20;
}
return result;
}