//
// GJGameLevel::init from 0x814788 to 0x814914 (396 bytes)
//
// 2 xrefs:
// > ??> @ 0xd53d0
// > ??> @ 0x143f8a0
//
// 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:54:54 +0000
//
__int64 __fastcall GJGameLevel::init(GJGameLevel *this)
{
int v2; // w1
int v3; // w0
int v4; // w0
int v5; // w0
int v6; // w0
int v7; // w0
int v8; // w0
int v9; // w0
int v10; // w0
int v11; // w0
int v12; // w0
int v13; // w0
cocos2d::CCDictionary *v14; // x0
cocos2d::CCObject *v15; // x0
cocos2d::CCObject *v16; // x20
cocos2d::CCObject *v17; // x1
std::string::assign((__int64 *)this + 43, &byte_11B8890);
std::string::assign((__int64 *)this + 46, &byte_11B8890);
std::string::assign((__int64 *)this + 49, &byte_11B8890);
std::string::assign((__int64 *)this + 151, &byte_11B8890);
*((_DWORD *)this + 285) = 0;
*((_DWORD *)this + 197) = 1;
*((_DWORD *)this + 201) = 0;
v2 = dword_155C980;
*((_DWORD *)this + 286) = dword_155C980;
dword_155C980 = v2 + 1;
v3 = rand();
*((_DWORD *)this + 204) = 0;
v4 = (int)(float)((float)((float)v3 * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 200) = v4;
*((_DWORD *)this + 199) = v4;
v5 = rand();
*((_DWORD *)this + 207) = 0;
v6 = (int)(float)((float)((float)v5 * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 203) = v6;
*((_DWORD *)this + 202) = v6;
v7 = rand();
*((_DWORD *)this + 210) = 0;
v8 = (int)(float)((float)((float)v7 * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 206) = v8;
*((_DWORD *)this + 205) = v8;
v9 = rand();
*((_DWORD *)this + 211) = 0;
*((_DWORD *)this + 241) = 0;
*((_DWORD *)this + 239) = 0;
v10 = (int)(float)((float)((float)v9 * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 209) = v10;
*((_DWORD *)this + 208) = v10;
v11 = rand();
*((_DWORD *)this + 235) = 0;
v12 = (int)(float)((float)((float)v11 * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 238) = v12;
*((_DWORD *)this + 237) = v12;
v13 = rand();
*((_BYTE *)this + 1104) = 0;
*((_BYTE *)this + 1105) = 0;
v14 = (cocos2d::CCDictionary *)(unsigned int)(int)(float)((float)((float)v13 * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 234) = (_DWORD)v14;
*((_DWORD *)this + 233) = (_DWORD)v14;
v15 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v14);
v16 = v15;
v17 = *((cocos2d::CCObject **)this + 40);
if ( v15 != v17 )
{
if ( v15 )
{
cocos2d::CCObject::retain(v15);
v17 = *((cocos2d::CCObject **)this + 40);
}
if ( v17 )
cocos2d::CCObject::release(v17);
*((_QWORD *)this + 40) = v16;
}
return 1;
}