//
// GJLevelList::create from 0x10009537c to 0x100095748 (972 bytes)
//
// 1 xrefs:
// > GameLevelManager::createAndGetLevelLists @ 0x1000952d8
//
// 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
//
GJLevelList *__fastcall GJLevelList::create(cocos2d::CCDictionary *a1)
{
GJLevelList *v2; // x19
cocos2d::CCString *v3; // x0
cocos2d::CCString *v4; // x0
char *CString; // x0
cocos2d::CCString *v6; // x0
char *v7; // x0
cocos2d::CCString *v8; // x0
cocos2d::CCString *v9; // x0
cocos2d::CCString *v10; // x0
char *v11; // x0
cocos2d::CCString *v12; // x0
cocos2d::CCString *v13; // x0
cocos2d::CCString *v14; // x0
cocos2d::CCString *v15; // x0
cocos2d::CCString *v16; // x0
cocos2d::CCString *v17; // x0
cocos2d::CCString *v18; // x0
cocos2d::CCString *v19; // x0
cocos2d::CCString *v20; // x0
char *v21; // x0
void *__p[2]; // [xsp+8h] [xbp-88h] BYREF
char v24; // [xsp+1Fh] [xbp-71h]
std::string v25; // [xsp+20h] [xbp-70h] BYREF
std::string v26; // [xsp+38h] [xbp-58h] BYREF
std::string __str; // [xsp+50h] [xbp-40h] BYREF
void *v28[2]; // [xsp+68h] [xbp-28h] BYREF
char v29; // [xsp+7Fh] [xbp-11h]
v2 = GJLevelList::create_1();
sub_100009900(v28, "1");
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_listID = cocos2d::CCString::intValue(v3);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "2");
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(&__str, CString);
std::string::operator=((std::string *)&v2->m_listName, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "3");
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v7 = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(&v26, v7);
std::string::operator=((std::string *)&v2->m_listDesc, &v26);
if ( SHIBYTE(v26.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v26.__r_.__value_.__l.__data_);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "5");
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_listVersion = cocos2d::CCString::intValue(v8);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "49");
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_accountID = cocos2d::CCString::intValue(v9);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "50");
v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v11 = (char *)cocos2d::CCString::getCString(v10);
sub_100009900(&v25, v11);
std::string::operator=((std::string *)&v2->m_creatorName, &v25);
if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v25.__r_.__value_.__l.__data_);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "10");
v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_downloads = cocos2d::CCString::intValue(v12);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "14");
v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_likes = cocos2d::CCString::intValue(v13);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "7");
v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_difficulty = cocos2d::CCString::intValue(v14);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "28");
v15 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_uploadDate = cocos2d::CCString::intValue(v15);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "29");
v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_updateDate = cocos2d::CCString::intValue(v16);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "55");
v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_diamonds = cocos2d::CCString::intValue(v17);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "56");
v18 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_levelsToClaim = cocos2d::CCString::intValue(v18);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "19");
v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v2->m_featured = cocos2d::CCString::boolValue(v19);
if ( v29 < 0 )
operator delete(v28[0]);
sub_100009900(v28, "51");
v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, v28);
v21 = (char *)cocos2d::CCString::getCString(v20);
sub_100009900(__p, v21);
GJLevelList::parseListLevels(v2, __p);
if ( v24 < 0 )
operator delete(__p[0]);
if ( v29 < 0 )
operator delete(v28[0]);
return v2;
}