//
// GameManager::init from 0x100376ae0 to 0x100376bca (234 bytes)
//
// 1 xrefs:
// > ??> @ 0x10091ea98
//
// 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)
{
__m128 v1; // xmm1
std::string *p_m_fileName; // rdi
cocos2d::CCArray *v4; // rax
int v5; // eax
int v6; // r14d
int v7; // eax
p_m_fileName = (std::string *)&a1->m_fileName;
std::string::assign(p_m_fileName, "CCGameManager.dat");
*(_WORD *)&a1->m_unkBool2 = 0;
a1->m_googlePlaySignedIn = 0;
a1->m_adTimer = 0.0;
a1->m_unkDouble2 = 0.0;
v4 = (cocos2d::CCArray *)sub_10071F9E0(p_m_fileName, "CCGameManager.dat");
a1->m_gjLog = v4;
cocos2d::CCObject::retain(v4);
((void (__fastcall *)(GameManager *))a1->setup)(a1);
GameManager::calculateBaseKeyForIcons(a1);
GameManager::setupGameAnimations(a1);
v5 = rand();
v1.f32[0] = (float)(a1->m_playerUserID.random - a1->m_playerUserID.seed) / 10000.0;
v6 = (int)(float)((float)((float)((float)v5 * 4.6566129e-10) * 1000000.0) + _mm_round_ss(v1, v1, 9).f32[0]);
v7 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);
a1->m_chk.seed = v7;
a1->m_chk.random = v7 + v6;
return 1;
}