//
// GameManager::init from 0x720950 to 0x720a2c (220 bytes)
//
// 2 xrefs:
// > ??> @ 0xc0e98
// > ??> @ 0x14292b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:52:23 +0000
//
float __fastcall GameManager::init(GameManager *this)
{
__int64 *v2; // x0
cocos2d::CCObject *v3; // x0
int v4; // w20
float v5; // s8
float result; // s0
v2 = std::string::assign((__int64 *)this + 40, "CCGameManager.dat");
*((_BYTE *)this + 422) = 0;
*((_BYTE *)this + 505) = 0;
*((_BYTE *)this + 423) = 0;
*((_QWORD *)this + 58) = 0;
*((_QWORD *)this + 61) = 0;
v3 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)v2);
*((_QWORD *)this + 161) = v3;
cocos2d::CCObject::retain(v3);
(*(void (__fastcall **)(GameManager *))(*(_QWORD *)this + 896LL))(this);
GameManager::calculateBaseKeyForIcons(this);
GameManager::setupGameAnimations(this);
v4 = rand();
v5 = floorf((float)(*((_DWORD *)this + 165) - *((_DWORD *)this + 166)) / 10000.0);
result = (float)((float)rand() * 4.6566e-10) * 1000.0;
*((_DWORD *)this + 225) = (int)result;
*((_DWORD *)this + 224) = (int)(float)(v5 + (float)((float)((float)v4 * 4.6566e-10) * 1000000.0)) + (int)result;
return result;
}