//
// GJLevelList::create from 0x81bf48 to 0x81c5e4 (1692 bytes)
//
// 2 xrefs:
// > GameLevelManager::createAndGetLevelLists @ 0x81c6e8
// > ??> @ 0xb6668
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:58 +0000
//
__int64 __fastcall GJLevelList::create(GJLevelList *this, cocos2d::CCDictionary *a2)
{
__int64 v3; // x20
cocos2d::CCString *v4; // x0
cocos2d::CCString *v5; // x0
size_t v6; // x0
__int64 *v7; // x0
cocos2d::CCString *v8; // x0
size_t v9; // x0
__int64 *v10; // x0
cocos2d::CCString *v11; // x0
cocos2d::CCString *v12; // x0
cocos2d::CCString *v13; // x0
size_t v14; // x0
__int64 *v15; // x0
cocos2d::CCString *v16; // x0
cocos2d::CCString *v17; // x0
cocos2d::CCString *v18; // x0
cocos2d::CCString *v19; // x0
cocos2d::CCString *v20; // x0
cocos2d::CCString *v21; // x0
cocos2d::CCString *v22; // x0
cocos2d::CCString *v23; // x0
cocos2d::CCString *v24; // x0
size_t v25; // x0
char *CString; // [xsp+48h] [xbp+48h]
char *v28; // [xsp+48h] [xbp+48h]
char *v29; // [xsp+48h] [xbp+48h]
char *v30; // [xsp+48h] [xbp+48h]
__int64 v31; // [xsp+58h] [xbp+58h] BYREF
__int64 v32; // [xsp+60h] [xbp+60h]
void *v33; // [xsp+68h] [xbp+68h]
__int64 v34; // [xsp+70h] [xbp+70h] BYREF
size_t v35; // [xsp+78h] [xbp+78h]
void *v36; // [xsp+80h] [xbp+80h]
v3 = GJLevelList::create(_stack_chk_guard);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "1", 1u);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 344) = cocos2d::CCString::intValue(v4);
if ( (v34 & 1) != 0 )
operator delete(v36);
v31 = 0;
v32 = 0;
v33 = nullptr;
std::string::__init(&v31, &byte_120A098, 1u);
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v31);
CString = (char *)cocos2d::CCString::getCString(v5);
v34 = 0;
v35 = 0;
v36 = nullptr;
v6 = strlen(CString);
std::string::__init(&v34, CString, v6);
v7 = (__int64 *)(v3 + 432);
if ( (__int64 *)(v3 + 432) != &v34 )
{
if ( (v34 & 1) != 0 )
std::string::assign(v7, v36, v35);
else
std::string::assign(v7, (char *)&v34 + 1, (unsigned __int8)v34 >> 1);
}
if ( (v34 & 1) != 0 )
{
operator delete(v36);
if ( (v31 & 1) == 0 )
goto LABEL_8;
}
else if ( (v31 & 1) == 0 )
{
goto LABEL_8;
}
operator delete(v33);
LABEL_8:
v31 = 0;
v32 = 0;
v33 = nullptr;
std::string::__init(&v31, "3", 1u);
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v31);
v28 = (char *)cocos2d::CCString::getCString(v8);
v34 = 0;
v35 = 0;
v36 = nullptr;
v9 = strlen(v28);
std::string::__init(&v34, v28, v9);
v10 = (__int64 *)(v3 + 504);
if ( (__int64 *)(v3 + 504) != &v34 )
{
if ( (v34 & 1) != 0 )
std::string::assign(v10, v36, v35);
else
std::string::assign(v10, (char *)&v34 + 1, (unsigned __int8)v34 >> 1);
}
if ( (v34 & 1) != 0 )
operator delete(v36);
if ( (v31 & 1) != 0 )
operator delete(v33);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "5", 1u);
v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 348) = cocos2d::CCString::intValue(v11);
if ( (v34 & 1) != 0 )
operator delete(v36);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "49", 2u);
v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 364) = cocos2d::CCString::intValue(v12);
if ( (v34 & 1) != 0 )
operator delete(v36);
v31 = 0;
v32 = 0;
v33 = nullptr;
std::string::__init(&v31, "50", 2u);
v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v31);
v29 = (char *)cocos2d::CCString::getCString(v13);
v34 = 0;
v35 = 0;
v36 = nullptr;
v14 = strlen(v29);
std::string::__init(&v34, v29, v14);
v15 = (__int64 *)(v3 + 408);
if ( (__int64 *)(v3 + 408) != &v34 )
{
if ( (v34 & 1) != 0 )
std::string::assign(v15, v36, v35);
else
std::string::assign(v15, (char *)&v34 + 1, (unsigned __int8)v34 >> 1);
}
if ( (v34 & 1) != 0 )
{
operator delete(v36);
if ( (v31 & 1) == 0 )
goto LABEL_24;
}
else if ( (v31 & 1) == 0 )
{
goto LABEL_24;
}
operator delete(v33);
LABEL_24:
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "10", 2u);
v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 352) = cocos2d::CCString::intValue(v16);
if ( (v34 & 1) != 0 )
operator delete(v36);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, &word_1217DE8, 2u);
v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 356) = cocos2d::CCString::intValue(v17);
if ( (v34 & 1) != 0 )
operator delete(v36);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "7", 1u);
v18 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 360) = cocos2d::CCString::intValue(v18);
if ( (v34 & 1) != 0 )
operator delete(v36);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "28", 2u);
v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 528) = cocos2d::CCString::intValue(v19);
if ( (v34 & 1) != 0 )
operator delete(v36);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "29", 2u);
v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 532) = cocos2d::CCString::intValue(v20);
if ( (v34 & 1) != 0 )
operator delete(v36);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "55", 2u);
v21 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 384) = cocos2d::CCString::intValue(v21);
if ( (v34 & 1) != 0 )
operator delete(v36);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "56", 2u);
v22 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_DWORD *)(v3 + 388) = cocos2d::CCString::intValue(v22);
if ( (v34 & 1) != 0 )
operator delete(v36);
v34 = 0;
v35 = 0;
v36 = nullptr;
std::string::__init(&v34, "19", 2u);
v23 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v34);
*(_BYTE *)(v3 + 397) = cocos2d::CCString::boolValue(v23);
if ( (v34 & 1) != 0 )
operator delete(v36);
v31 = 0;
v32 = 0;
v33 = nullptr;
std::string::__init(&v31, "51", 2u);
v24 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v31);
v30 = (char *)cocos2d::CCString::getCString(v24);
v34 = 0;
v35 = 0;
v36 = nullptr;
v25 = strlen(v30);
std::string::__init(&v34, v30, v25);
GJLevelList::parseListLevels((_QWORD *)v3, (__int64)&v34);
if ( (v34 & 1) != 0 )
operator delete(v36);
if ( (v31 & 1) != 0 )
operator delete(v33);
return v3;
}