//
// GameStatsManager::init from 0x10001f730 to 0x10001f7d8 (168 bytes)
//
// 2 xrefs:
// > GameStatsManager::sharedState @ 0x10001f407
// > ??> @ 0x100ab6af0
//
// 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:18:58 +0000
//
char __fastcall GameStatsManager::init(_QWORD *a1)
{
__int64 v2; // rax
__int64 v3; // rdi
__int64 v4; // rax
__int64 v5; // rdi
__int64 v6; // rax
__int64 v7; // rdi
__int64 v8; // r14
char v10; // [rsp+0h] [rbp-10h]
v2 = sub_10088E820("%i", v10);
a1[40] = v2;
v3 = v2;
cocos2d::CCObject::retain(v2);
v4 = cocos2d::CCDictionary::create(v3, 1);
a1[103] = v4;
v5 = v4;
cocos2d::CCObject::retain(v4);
v6 = cocos2d::CCDictionary::create(v5, 1);
v7 = a1[59];
if ( v7 != v6 )
{
v8 = v6;
if ( v6 )
{
cocos2d::CCObject::retain(v6);
v7 = a1[59];
}
if ( v7 )
cocos2d::CCObject::release(v7);
a1[59] = v8;
}
GameStatsManager::setupIconCredits(a1);
GameStatsManager::createStoreItems(a1);
GameStatsManager::createSecretChestItems(a1);
GameStatsManager::createSpecialChestItems(a1);
GameStatsManager::generateItemUnlockableData(a1);
return 1;
}