//
// AchievementManager::sharedState from 0x395f78 to 0x395fe0 (104 bytes)
//
// 117 xrefs:
// > AchievementManager::reportAchievementWithID @ 0x3bf05a
// > LoadingLayer::loadAssets @ 0x3fbe98
// > GameManager::syncPlatformAchievements @ 0x41528e
// > GameManager::syncPlatformAchievements @ 0x4152de
// > GameManager::syncPlatformAchievements @ 0x4152ea
// > GameManager::rewardedVideoHidden @ 0x4157dc
// > GameManager::rewardedVideoHidden @ 0x4157f0
// > GameManager::getUnlockForAchievement @ 0x416ea8
// > GameManager::firstLoad @ 0x41808a
// > GameManager::reportAchievementWithID @ 0x4192b8
// > GameManager::reportAchievementWithID @ 0x4192ee
// > GameManager::verifyAchievementUnlocks @ 0x41988a
// > GameManager::verifyAchievementUnlocks @ 0x4198cc
// > GameManager::resetAchievement @ 0x41998a
// > GameManager::resetAchievement @ 0x4199e8
// > GameManager::recountUserStats @ 0x41b924
// > GameManager::recountUserStats @ 0x41b92e
// > GameManager::recountUserStats @ 0x41bf56
// > GameManager::dataLoaded @ 0x41c580
// > GameManager::dataLoaded @ 0x41c5ca
// > GameManager::dataLoaded @ 0x41d0da
// > GameManager::encodeDataTo @ 0x41de3c
// > AchievementsLayer::loadPage @ 0x422238
// > AchievementsLayer::loadPage @ 0x422240
// > AchievementsLayer::loadPage @ 0x4222fe
// > AchievementCell::loadFromDict @ 0x42c616
// > AchievementCell::loadFromDict @ 0x42d09a
// > GJGarageLayer::achievementForUnlock @ 0x50c24c
// > GJGarageLayer::achievementForUnlock @ 0x50c25c
// > GJGarageLayer::titleForUnlock @ 0x50c4ac
// > GJGarageLayer::titleForUnlock @ 0x50c4bc
// > GJGarageLayer::descriptionForUnlock @ 0x50c560
// > GJGarageLayer::descriptionForUnlock @ 0x50c570
// > ItemInfoPopup::init @ 0x50db8a
// > ItemInfoPopup::init @ 0x50dbac
// > LevelSelectLayer::init @ 0x512660
// > GameStatsManager::incrementChallenge @ 0x519062
// > GameStatsManager::preSaveGameStats @ 0x522d4a
// > GameStatsManager::preSaveGameStats @ 0x522d54
// > GameStatsManager::preSaveGameStats @ 0x522df0
// > GameStatsManager::recountUserCoins @ 0x523560
// > GameStatsManager::recountUserCoins @ 0x523568
// > GameStatsManager::recountUserCoins @ 0x52357e
// > GameStatsManager::verifyUserCoins @ 0x52363a
// > GameStatsManager::postLoadGameStats @ 0x523750
// > GameStatsManager::postLoadGameStats @ 0x52375a
// > GameStatsManager::postLoadGameStats @ 0x5237e8
// > GameStatsManager::tryFixPathBug @ 0x52446e
// > GameStatsManager::tryFixPathBug @ 0x52447a
// > GameStatsManager::tryFixPathBug @ 0x52453a
// > GameStatsManager::getItemUnlockStateLite @ 0x528db0
// > GameStatsManager::getItemUnlockStateLite @ 0x528dc0
// > GameStatsManager::recountSpecialStats @ 0x52b242
// > GameStatsManager::recountSpecialStats @ 0x52b252
// > GameStatsManager::recountSpecialStats @ 0x52b3ce
// > GameStatsManager::generateItemUnlockableData @ 0x52b784
// > SupportLayer::customSetup @ 0x53a728
// > GJAccountManager::onSyncAccountCompleted @ 0x5827e4
// > GJAccountManager::onSyncAccountCompleted @ 0x5827ee
// > GJAccountManager::onSyncAccountCompleted @ 0x582bde
// > SecretLayer::onSubmit @ 0x5fe0a6
// > SecretLayer::onSubmit @ 0x5fe120
// > SecretLayer::onSubmit @ 0x5fe1ee
// > SecretLayer::onSubmit @ 0x5fe268
// > SecretLayer::onSubmit @ 0x5fe2e2
// > SecretLayer::onSubmit @ 0x5fe390
// > SecretLayer::onSubmit @ 0x5fe40a
// > SecretLayer::onSubmit @ 0x5fe484
// > SecretLayer::onSubmit @ 0x5fe4fe
// > SecretLayer::onSubmit @ 0x5fe584
// > SecretLayer::onSubmit @ 0x5fe5f8
// > SecretLayer::onSubmit @ 0x5fe64c
// > SecretLayer::init @ 0x5feb24
// > SecretLayer::init @ 0x5feb60
// > SecretLayer::init @ 0x5feb9c
// > SecretLayer::init @ 0x5febd8
// > SecretLayer::init @ 0x5fec14
// > SecretLayer::init @ 0x5fec50
// > SecretLayer::init @ 0x5fec8c
// > SecretLayer::init @ 0x5fecc8
// > SecretLayer::init @ 0x5fecee
// > SecretLayer::init @ 0x5fed14
// > SecretLayer::init @ 0x5fed3a
// > SecretLayer::init @ 0x5fed60
// > SecretLayer2::onSubmit @ 0x61e89c
// > SecretLayer2::onSubmit @ 0x61e944
// > SecretLayer2::onSubmit @ 0x61e9e0
// > SecretLayer2::onSubmit @ 0x61ea82
// > SecretLayer2::onSubmit @ 0x61eb8c
// > SecretLayer2::onSubmit @ 0x61ec9e
// > SecretLayer2::onSubmit @ 0x61ed18
// > SecretLayer2::onSubmit @ 0x61ed92
// > SecretLayer2::onSubmit @ 0x61ee0a
// > SecretLayer2::onSubmit @ 0x61ee7a
// > SecretLayer2::init @ 0x61f378
// > SecretLayer2::init @ 0x61f39e
// > SecretLayer2::init @ 0x61f3ae
// > SecretLayer2::init @ 0x61f3d4
// > SecretLayer2::init @ 0x61f3fa
// > SecretLayer2::init @ 0x61f420
// > SecretLayer2::init @ 0x61f446
// > SecretLayer2::init @ 0x61f46c
// > SecretLayer4::onSubmit @ 0x6226a6
// > SecretLayer4::onSubmit @ 0x622742
// > SecretLayer4::onSubmit @ 0x6227d8
// > SecretLayer4::onSubmit @ 0x622842
// > SecretLayer4::onSubmit @ 0x6228da
// > SecretLayer4::onSubmit @ 0x622944
// > SecretLayer4::onSubmit @ 0x6229b0
// > SecretLayer4::init @ 0x622c34
// > SecretLayer4::init @ 0x622c5a
// > SecretLayer4::init @ 0x622c80
// > SecretLayer4::init @ 0x622ca6
// > SecretLayer4::init @ 0x622ccc
// > SecretLayer4::init @ 0x622cf2
// > SecretLayer4::init @ 0x622d16
// > GJPathPage::init @ 0x6d393e
//
// 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
//
int __fastcall AchievementManager::sharedState(AchievementManager *this)
{
int v1; // r4
if ( !dword_D2A208 )
{
v1 = operator new(0x12Cu);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v1);
*(_DWORD *)v1 = &off_C821B8;
*(_DWORD *)(v1 + 264) = 0;
*(_DWORD *)(v1 + 268) = 0;
*(_DWORD *)(v1 + 272) = 0;
*(_DWORD *)(v1 + 276) = 0;
*(_DWORD *)(v1 + 280) = 0;
*(_BYTE *)(v1 + 284) = 0;
*(_DWORD *)(v1 + 288) = 0;
*(_DWORD *)(v1 + 292) = 0;
*(_DWORD *)(v1 + 296) = 0;
dword_D2A208 = v1;
AchievementManager::init((AchievementManager *)v1);
}
return dword_D2A208;
}