//
// GameStatsManager::init from 0x52b94c to 0x52b9b2 (102 bytes)
//
// 1 xrefs:
// > GameStatsManager::sharedState @ 0x5161a4
//
// 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:52:00 +0000
//
int __fastcall GameStatsManager::init(GameStatsManager *this)
{
cocos2d::CCObject *v2; // r0
cocos2d::CCDictionary *v3; // r0
cocos2d::CCObject *v4; // r0
cocos2d::CCDictionary *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCObject *v7; // r5
cocos2d::CCObject *v8; // r0
v2 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_0 + 1);
*((_DWORD *)this + 66) = v2;
v3 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v2);
v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v3);
*((_DWORD *)this + 131) = v4;
v5 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v4);
v6 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v5);
v7 = v6;
if ( *((cocos2d::CCObject **)this + 85) != v6 )
{
if ( v6 )
cocos2d::CCObject::retain(v6);
v8 = *((cocos2d::CCObject **)this + 85);
if ( v8 )
cocos2d::CCObject::release(v8);
*((_DWORD *)this + 85) = v7;
}
GameStatsManager::setupIconCredits(this);
GameStatsManager::createStoreItems(this);
GameStatsManager::createSecretChestItems(this);
GameStatsManager::createSpecialChestItems(this);
GameStatsManager::generateItemUnlockableData(this);
return 1;
}