//
// GJGameLevel::init from 0x1000ac4a8 to 0x1000ac5f4 (332 bytes)
//
// 1 xrefs:
// > ??> @ 0x10077f5d0
//
// 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 GJGameLevel::init(GJGameLevel *a1)
{
int v2; // w9
int v3; // w8
int v4; // w8
int v5; // w8
int v6; // w8
int v7; // w8
int v8; // w8
cocos2d::CCDictionary *v9; // x0
std::string::assign((std::string *)&a1->m_levelName, "");
std::string::assign((std::string *)&a1->m_levelDesc, "");
std::string::assign((std::string *)&a1->m_levelString, "");
std::string::assign((std::string *)&a1->m_personalBests, "");
a1->m_levelVersion = 1;
a1->m_levelType = 0;
v2 = dword_10086AE48;
a1->m_M_ID = dword_10086AE48;
dword_10086AE48 = v2 + 1;
a1->m_attempts.value = 0;
v3 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_attempts.seed = v3;
a1->m_attempts.random = v3;
a1->m_jumps.value = 0;
v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_jumps.seed = v4;
a1->m_jumps.random = v4;
a1->m_clicks.value = 0;
v5 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_clicks.seed = v5;
a1->m_clicks.random = v5;
a1->m_attemptTime.value = 0;
v6 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_attemptTime.seed = v6;
a1->m_attemptTime.random = v6;
a1->m_chk = 0;
a1->m_coins = 0;
a1->m_stars.value = 0;
v7 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_stars.seed = v7;
a1->m_stars.random = v7;
a1->m_demon.value = 0;
v8 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_demon.seed = v8;
a1->m_demon.random = v8;
*(_WORD *)&a1->m_dontSave = 0;
v9 = cocos2d::CCDictionary::create();
sub_1000AC5F4(a1, v9);
return 1;
}