//
// GameStatsManager::init from 0x7c585c to 0x7c58f8 (156 bytes)
//
// 2 xrefs:
// > ??> @ 0x34ea8
// > ??> @ 0x117bd40
//
// 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
//
bool GameStatsManager::init(GameStatsManager *a1)
{
cocos2d::CCString *v2; // x0
cocos2d::CCDictionary *v3; // x0
cocos2d::CCDictionary *v4; // x0
cocos2d::CCDictionary *v5; // x20
cocos2d::CCDictionary *m_rewardItems; // x1
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_0 + 1);
a1->m_trueString = v2;
cocos2d::CCObject::retain(v2);
v3 = cocos2d::CCDictionary::create();
a1->m_unkDict = v3;
cocos2d::CCObject::retain(v3);
v4 = cocos2d::CCDictionary::create();
v5 = v4;
m_rewardItems = a1->m_rewardItems;
if ( v4 != m_rewardItems )
{
if ( v4 )
{
cocos2d::CCObject::retain(v4);
m_rewardItems = a1->m_rewardItems;
}
if ( m_rewardItems )
cocos2d::CCObject::release(m_rewardItems);
a1->m_rewardItems = v5;
}
GameStatsManager::setupIconCredits(a1);
GameStatsManager::createStoreItems(a1);
GameStatsManager::createSecretChestItems(a1);
GameStatsManager::createSpecialChestItems(a1);
GameStatsManager::generateItemUnlockableData(a1);
return 1;
}