//
// AchievementNotifier::sharedState from 0x1008aa3f0 to 0x1008aa463 (115 bytes)
//
// 5 xrefs:
// > AchievementBar::show @ 0x1006f6e48
// > AppDelegate::willSwitchToScene @ 0x10073bda9
// > sub_10073BDD0 @ 0x10073bdd9
// > AchievementManager::notifyAchievementWithID @ 0x100864c61
// > AchievementManager::notifyAchievement @ 0x100864ccd
//
// This function is hookable on this platform (idp: pc, 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:37:17 +0000
//
__int64 AchievementNotifier::sharedState()
{
__int64 result; // rax
_OWORD *v1; // rbx
void *v2; // rax
result = qword_100BE6DB8;
if ( !qword_100BE6DB8 )
{
v1 = operator new(0x158u);
cocos2d::CCNode::CCNode((__int64)v1);
*(_QWORD *)v1 = off_100BABCF0;
v1[20] = 0;
*((_QWORD *)v1 + 42) = 0;
qword_100BE6DB8 = (__int64)v1;
v2 = sub_1007FE900();
*((_QWORD *)v1 + 41) = v2;
cocos2d::CCObject::retain((__int64)v2);
return qword_100BE6DB8;
}
return result;
}