//
// GameManager::init from 0x324fec to 0x3250b8 (204 bytes)
//
// 0 xrefs:
//
// 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 GameManager::init(GameManager *a1)
{
cocos2d::CCArray *v2; // r0
int v3; // s17
float v4; // s16
int v5; // s15
int v7; // r3
sub_7753D4((int)&a1->m_fileName, "CCGameManager.dat");
a1->m_unkBool2 = 0;
a1->m_adTimer = 0.0;
a1->m_unkDouble2 = 0.0;
a1->m_googlePlaySignedIn = 0;
a1->m_vsyncEnabled = 0;
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(nullptr);
a1->m_gjLog = v2;
cocos2d::CCObject::retain(v2);
a1->setup(a1);
GameManager::calculateBaseKeyForIcons(a1);
GameManager::setupGameAnimations(a1);
v3 = rand();
v4 = floorf((float)(a1->m_playerUserID.random - a1->m_playerUserID.seed) / 10000.0);
v5 = rand();
v7 = (int)(float)((float)((float)v5 * 4.6566e-10) * 1000.0);
a1->m_chk.seed = v7;
a1->m_chk.random = (int)(float)(v4 + (float)((float)((float)v3 * 4.6566e-10) * 1000000.0)) + v7;
return 1;
}