//
// GameManager::init from 0x100311d48 to 0x100311e14 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007eec70
//
// 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 __fastcall GameManager::init(GameManager *a1)
{
cocos2d::CCArray *v2; // x0
int v3; // w20
float v4; // s0
std::string::assign((std::string *)&a1->m_fileName, "CCGameManager.dat");
*(_WORD *)&a1->m_unkBool2 = 0;
a1->m_googlePlaySignedIn = 0;
a1->m_adTimer = 0.0;
a1->m_unkDouble2 = 0.0;
v2 = (cocos2d::CCArray *)sub_10024A15C();
a1->m_gjLog = v2;
cocos2d::CCObject::retain(v2);
((void (__fastcall *)(GameManager *))a1->setup)(a1);
GameManager::calculateBaseKeyForIcons(a1);
GameManager::setupGameAnimations(a1);
v3 = (int)(float)(floorf((float)(a1->m_playerUserID.random - a1->m_playerUserID.seed) / 10000.0)
+ (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000000.0));
v4 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
a1->m_chk.seed = (int)v4;
a1->m_chk.random = v3 + (int)v4;
return 1;
}