//
// GameManager::init from 0x1003aea60 to 0x1003aeb28 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x100946fb0
//
// 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 11:03:53 +0000
//
__int64 __fastcall GameManager::init(__int64 a1)
{
_QWORD *v2; // x0
int v3; // w20
float v4; // s0
std::string::assign((std::string *)(a1 + 320), "CCGameManager.dat");
*(_WORD *)(a1 + 422) = 0;
*(_BYTE *)(a1 + 505) = 0;
*(_QWORD *)(a1 + 464) = 0;
*(_QWORD *)(a1 + 488) = 0;
v2 = sub_1002E736C();
*(_QWORD *)(a1 + 1288) = v2;
cocos2d::CCObject::retain((__int64)v2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 896LL))(a1);
sub_1003AEB28(a1);
sub_1003E8974(a1);
v3 = (int)(float)(floorf((float)(*(_DWORD *)(a1 + 660) - *(_DWORD *)(a1 + 664)) / 10000.0)
+ (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000000.0));
v4 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
*(_DWORD *)(a1 + 900) = (int)v4;
*(_DWORD *)(a1 + 896) = v3 + (int)v4;
return 1;
}