//
// GameManager::init from 0x5f1e20 to 0x5f1f00 (224 bytes)
//
// 2 xrefs:
// > ??> @ 0x91ed8
// > ??> @ 0x1149a40
//
// 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; // x0
cocos2d::CCArray *v3; // x0
int v4; // w20
float v5; // s8
float v6; // s0
float v8; // s0
v2 = (cocos2d::CCArray *)sub_D1798C(&a1->m_fileName, "CCGameManager.dat", 17);
a1->m_unkBool2 = 0;
a1->m_googlePlaySignedIn = 0;
a1->m_vsyncEnabled = 0;
a1->m_adTimer = 0.0;
a1->m_unkDouble2 = 0.0;
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
a1->m_gjLog = v3;
cocos2d::CCObject::retain(v3);
a1->setup(a1);
GameManager::calculateBaseKeyForIcons(a1);
GameManager::setupGameAnimations(a1);
v4 = rand();
v5 = floorf((float)(a1->m_playerUserID.random - a1->m_playerUserID.seed) / 10000.0);
v6 = (float)rand();
v8 = (float)(v6 * 4.6566e-10) * 1000.0;
a1->m_chk.seed = (int)v8;
a1->m_chk.random = (int)(float)(v5 + (float)((float)((float)v4 * 4.6566e-10) * 1000000.0)) + (int)v8;
return 1;
}