//
// GJLevelList::init from 0x140176900 to 0x140176978 (120 bytes)
//
// 4 xrefs:
// > GJLevelList::create_1 @ 0x1401768b7
// > GJLevelList::create_1 @ 0x1401768a8
// > ??> @ 0x14055b1d0
// > ??> @ 0x1406caf74
//
// 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)
{
bool result; // al
__int64 v3; // rcx
cocos2d::CCDictionary *v4; // rax
cocos2d::CCDictionary *v5; // rdi
cocos2d::CCDictionary *m_levelsDict; // rcx
int v7; // eax
result = cocos2d::CCNode::init(a1);
if ( result )
{
v4 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v3);
v5 = v4;
if ( a1->m_levelsDict != v4 )
{
if ( v4 )
cocos2d::CCObject::retain(v4);
m_levelsDict = a1->m_levelsDict;
if ( m_levelsDict )
cocos2d::CCObject::release(m_levelsDict);
a1->m_levelsDict = v5;
}
v7 = dword_1406C2ECC;
a1->m_M_ID = dword_1406C2ECC;
dword_1406C2ECC = v7 + 1;
return 1;
}
return result;
}