//
// GJLevelList::init from 0x3be870 to 0x3be8b0 (64 bytes)
//
// 1 xrefs:
// > GJLevelList::create @ 0x3cdc1a
//
// 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 GJLevelList::init(GJLevelList *a1)
{
_BOOL4 v2; // r6
cocos2d::CCDictionary *v3; // r0
cocos2d::CCDictionary *v4; // r5
cocos2d::CCDictionary *m_levelsDict; // r0
int v6; // r3
v2 = cocos2d::CCNode::init(a1);
if ( v2 )
{
v3 = cocos2d::CCDictionary::create();
v4 = v3;
if ( a1->m_levelsDict != v3 )
{
if ( v3 )
cocos2d::CCObject::retain(v3);
m_levelsDict = a1->m_levelsDict;
if ( m_levelsDict )
cocos2d::CCObject::release(m_levelsDict);
a1->m_levelsDict = v4;
}
v6 = dword_AC5F50;
a1->m_M_ID = dword_AC5F50;
dword_AC5F50 = v6 + 1;
}
return v2;
}