//
// GJGameLevel::init from 0x4b2c8c to 0x4b2d3c (176 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:50:04 +0000
//
int __fastcall GJGameLevel::init(GJGameLevel *this)
{
int v2; // r3
cocos2d::CCDictionary *v3; // r0
cocos2d::CCObject *v4; // r0
cocos2d::CCObject *v5; // r5
cocos2d::CCObject *v6; // r0
std::string::assign((int *)this + 70, (char *)&unk_B6B226);
std::string::assign((int *)this + 73, (char *)&unk_B6B226);
std::string::assign((int *)this + 76, (char *)&unk_B6B226);
std::string::assign((int *)this + 247, (char *)&unk_B6B226);
*((_DWORD *)this + 153) = 1;
*((_DWORD *)this + 238) = 0;
v2 = dword_D2BB2C;
*((_DWORD *)this + 239) = dword_D2BB2C;
dword_D2BB2C = v2 + 1;
GJGameLevel::setAttempts(this, 0);
GJGameLevel::setJumps(this, 0);
GJGameLevel::setClicks(this, 0);
GJGameLevel::setAttemptTime(this, 0);
*((_DWORD *)this + 167) = 0;
*((_DWORD *)this + 197) = 0;
GJGameLevel::setStars(this, 0);
v3 = (cocos2d::CCDictionary *)GJGameLevel::setDemon(this, 0);
*((_BYTE *)this + 916) = 0;
*((_BYTE *)this + 917) = 0;
v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v3);
v5 = v4;
if ( *((cocos2d::CCObject **)this + 66) != v4 )
{
if ( v4 )
cocos2d::CCObject::retain(v4);
v6 = *((cocos2d::CCObject **)this + 66);
if ( v6 )
cocos2d::CCObject::release(v6);
*((_DWORD *)this + 66) = v5;
}
return 1;
}