//
// GJGameLevel::create from 0x100093c10 to 0x100094b9c (3980 bytes)
//
// 2 xrefs:
// > GameLevelManager::createAndGetLevels @ 0x100093b6c
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x1000a0108
//
// 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
//
GJGameLevel *__fastcall GJGameLevel::create(cocos2d::CCDictionary *a1, bool a2)
{
_BOOL4 v2; // w24
cocos2d::CCString *v4; // x0
int v5; // w28
cocos2d::CCString *v6; // x0
char *CString; // x0
cocos2d::CCString *v8; // x0
char *v9; // x0
cocos2d::CCString *v10; // x0
char *v11; // x0
cocos2d::CCString *v12; // x0
int v13; // w27
cocos2d::CCString *v14; // x0
int v15; // w21
cocos2d::CCString *v16; // x0
char *v17; // x0
cocos2d::CCString *v18; // x0
char *v19; // x0
cocos2d::CCString *v20; // x0
int v21; // w23
cocos2d::CCString *v22; // x0
int v23; // w22
cocos2d::CCString *v24; // x0
int v25; // w25
cocos2d::CCString *v26; // x0
cocos2d::CCString *v27; // x0
cocos2d::CCString *v28; // x0
cocos2d::CCString *v29; // x0
cocos2d::CCString *v30; // x0
cocos2d::CCString *v31; // x0
cocos2d::CCString *v32; // x0
cocos2d::CCString *v33; // x0
cocos2d::CCString *v34; // x0
cocos2d::CCString *v35; // x0
cocos2d::CCString *v36; // x0
cocos2d::CCString *v37; // x0
cocos2d::CCString *v38; // x0
cocos2d::CCString *v39; // x0
cocos2d::CCString *v40; // x0
cocos2d::CCString *v41; // x0
char *v42; // x0
std::string::size_type size; // x9
cocos2d::CCString *v44; // x0
void *v45; // x20
cocos2d::CCString *v46; // x0
cocos2d::CCString *v47; // x0
cocos2d::CCString *v48; // x0
cocos2d::CCString *v49; // x0
char *v50; // x0
GJGameLevel *v51; // x24
GameLevelManager *v52; // x0
cocos2d::CCString *v53; // x0
int v54; // w26
GameLevelManager *v55; // x0
std::string::size_type v56; // x8
GameLevelManager *v57; // x0
float v58; // s0
float v59; // s0
float v60; // s0
cocos2d::CCString *v61; // x0
char *v62; // x0
float v63; // s0
float v64; // s0
float v65; // s0
float v66; // s0
float v67; // s0
cocos2d::CCString *v68; // x0
cocos2d::CCString *v69; // x0
int v70; // w20
float v71; // s0
cocos2d::CCString *v72; // x0
float v73; // s0
cocos2d::CCString *v74; // x0
cocos2d::CCString *v75; // x0
cocos2d::CCString *v76; // x0
cocos2d::CCString *v77; // x0
char *v78; // x0
cocos2d::CCString *v79; // x0
const char *v80; // x0
cocos2d::CCString *v81; // x0
const char *v82; // x0
cocos2d::CCString *v83; // x0
_BOOL4 v84; // w19
int v85; // w8
int v87; // [xsp+Ch] [xbp-294h]
bool v88; // [xsp+10h] [xbp-290h]
int v89; // [xsp+14h] [xbp-28Ch]
int v90; // [xsp+18h] [xbp-288h]
bool v91; // [xsp+1Ch] [xbp-284h]
int v92; // [xsp+20h] [xbp-280h]
int v93; // [xsp+24h] [xbp-27Ch]
int v94; // [xsp+28h] [xbp-278h]
int v95; // [xsp+2Ch] [xbp-274h]
int v96; // [xsp+30h] [xbp-270h]
int v97; // [xsp+34h] [xbp-26Ch]
int v98; // [xsp+38h] [xbp-268h]
int v99; // [xsp+3Ch] [xbp-264h]
int v100; // [xsp+40h] [xbp-260h]
int v101; // [xsp+44h] [xbp-25Ch]
int v102; // [xsp+48h] [xbp-258h]
_BOOL4 v103; // [xsp+4Ch] [xbp-254h]
int v104; // [xsp+50h] [xbp-250h]
_BOOL4 v105; // [xsp+54h] [xbp-24Ch]
void *v106; // [xsp+58h] [xbp-248h] BYREF
char v107; // [xsp+6Fh] [xbp-231h]
std::string v108; // [xsp+70h] [xbp-230h] BYREF
std::string v109; // [xsp+90h] [xbp-210h] BYREF
std::string v110; // [xsp+B0h] [xbp-1F0h] BYREF
std::string v111; // [xsp+C8h] [xbp-1D8h] BYREF
std::string v112; // [xsp+E0h] [xbp-1C0h] BYREF
std::string v113; // [xsp+100h] [xbp-1A0h] BYREF
std::string __dst; // [xsp+120h] [xbp-180h] BYREF
std::string __str; // [xsp+140h] [xbp-160h] BYREF
std::string v116; // [xsp+160h] [xbp-140h] BYREF
void *v117[2]; // [xsp+178h] [xbp-128h] BYREF
char v118; // [xsp+18Fh] [xbp-111h]
std::string __p; // [xsp+190h] [xbp-110h] BYREF
std::string v120; // [xsp+1B0h] [xbp-F0h] BYREF
std::string v121; // [xsp+1C8h] [xbp-D8h] BYREF
std::string v122; // [xsp+1E0h] [xbp-C0h] BYREF
std::string v123; // [xsp+1F8h] [xbp-A8h] BYREF
std::string v124; // [xsp+210h] [xbp-90h] BYREF
std::string v125; // [xsp+228h] [xbp-78h] BYREF
v2 = a2;
sub_100009900(&v125, "1");
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v125);
v5 = cocos2d::CCString::intValue(v4);
if ( SHIBYTE(v125.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v125.__r_.__value_.__l.__data_);
sub_100009900(&v124, "2");
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v124);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(&v125, CString);
if ( SHIBYTE(v124.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v124.__r_.__value_.__l.__data_);
sub_100009900(&v123, "3");
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v123);
v9 = (char *)cocos2d::CCString::getCString(v8);
sub_100009900(&v124, v9);
if ( SHIBYTE(v123.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v123.__r_.__value_.__l.__data_);
sub_100009900(&v122, "4");
v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v122);
v11 = (char *)cocos2d::CCString::getCString(v10);
sub_100009900(&v123, v11);
if ( SHIBYTE(v122.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v122.__r_.__value_.__l.__data_);
sub_100009900(&v122, "5");
v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v122);
v13 = cocos2d::CCString::intValue(v12);
if ( SHIBYTE(v122.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v122.__r_.__value_.__l.__data_);
sub_100009900(&v122, "6");
v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v122);
v15 = cocos2d::CCString::intValue(v14);
if ( SHIBYTE(v122.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v122.__r_.__value_.__l.__data_);
sub_100009900(&v121, "28");
v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v121);
v17 = (char *)cocos2d::CCString::getCString(v16);
sub_100009900(&v122, v17);
if ( SHIBYTE(v121.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v121.__r_.__value_.__l.__data_);
sub_100009900(&v120, "29");
v18 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v19 = (char *)cocos2d::CCString::getCString(v18);
sub_100009900(&v121, v19);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "8");
v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v21 = cocos2d::CCString::intValue(v20);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "9");
v22 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v23 = cocos2d::CCString::intValue(v22);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "10");
v24 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v25 = cocos2d::CCString::intValue(v24);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "12");
v26 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v100 = cocos2d::CCString::intValue(v26);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "13");
v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v99 = cocos2d::CCString::intValue(v27);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "14");
v28 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v98 = cocos2d::CCString::intValue(v28);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "16");
v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v97 = cocos2d::CCString::intValue(v29);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "15");
v30 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v96 = cocos2d::CCString::intValue(v30);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "17");
v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v105 = cocos2d::CCString::boolValue(v31);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "43");
v32 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v95 = cocos2d::CCString::intValue(v32);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "18");
v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v104 = cocos2d::CCString::intValue(v33);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "37");
v34 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v94 = cocos2d::CCString::intValue(v34);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "38");
v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v103 = cocos2d::CCString::boolValue(v35);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "19");
v36 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v93 = cocos2d::CCString::intValue(v36);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "42");
v37 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v92 = cocos2d::CCString::intValue(v37);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "45");
v38 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v101 = cocos2d::CCString::intValue(v38);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "25");
v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v91 = cocos2d::CCString::boolValue(v39);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "39");
v40 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v90 = cocos2d::CCString::intValue(v40);
if ( (SHIBYTE(v120.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
{
if ( v2 )
goto LABEL_53;
LABEL_59:
sub_100009900(&v120, "27");
v44 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v89 = cocos2d::CCString::intValue(v44);
if ( (SHIBYTE(v120.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_74;
goto LABEL_73;
}
operator delete(v120.__r_.__value_.__l.__data_);
if ( !v2 )
goto LABEL_59;
LABEL_53:
sub_100009900(&__p, "27");
v41 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &__p);
v42 = (char *)cocos2d::CCString::getCString(v41);
sub_100009900(&v120, v42);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( (SHIBYTE(v120.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
{
size = v120.__r_.__value_.__l.__size_;
if ( !v120.__r_.__value_.__l.__size_ )
{
v89 = 0;
goto LABEL_73;
}
}
else
{
if ( !*((_BYTE *)&v120.__r_.__value_.__s + 23) )
{
v89 = 0;
goto LABEL_74;
}
size = SHIBYTE(v120.__r_.__value_.__r.__words[2]);
}
if ( size < 2 )
{
v89 = 0;
if ( (*((_BYTE *)&v120.__r_.__value_.__s + 23) & 0x80) == 0 )
goto LABEL_74;
goto LABEL_73;
}
sub_100009900(v117, "26364");
cocos2d::ZipUtils::base64DecodeEnc(&__p, &v120, v117);
if ( v118 < 0 )
operator delete(v117[0]);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
{
v45 = (void *)__p.__r_.__value_.__r.__words[0];
v89 = atoi(__p.__r_.__value_.__l.__data_);
operator delete(v45);
}
else
{
v89 = atoi((const char *)&__p);
}
if ( (*((_BYTE *)&v120.__r_.__value_.__s + 23) & 0x80) != 0 )
LABEL_73:
operator delete(v120.__r_.__value_.__l.__data_);
LABEL_74:
sub_100009900(&v120, "30");
v46 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v102 = cocos2d::CCString::intValue(v46);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "31");
v47 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v88 = cocos2d::CCString::boolValue(v47);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&v120, "35");
v48 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v120);
v87 = cocos2d::CCString::intValue(v48);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
sub_100009900(&__p, "36");
v49 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &__p);
v50 = (char *)cocos2d::CCString::getCString(v49);
sub_100009900(&v120, v50);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
v51 = GJGameLevel::create_1();
v52 = GameLevelManager::sharedState();
v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v52->m_userIDtoAccountIDDict, v15);
v54 = cocos2d::CCString::intValue(v53);
v55 = GameLevelManager::sharedState();
GameLevelManager::userNameForUserID((__int64)v55, v15, &__p);
v56 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v56 = __p.__r_.__value_.__l.__size_;
if ( v56 <= 1 )
{
v57 = GameLevelManager::sharedState();
GameLevelManager::tryGetUsername((__int64)v57, v54, (__int64)&v116);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
__p = v116;
}
v51->m_levelID.value = v5;
v58 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_levelID.seed = (int)v58;
v51->m_levelID.random = v5 + (int)v58;
if ( SHIBYTE(v125.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__str, v125.__r_.__value_.__l.__data_, v125.__r_.__value_.__l.__size_);
else
__str = v125;
std::string::operator=((std::string *)&v51->m_levelName, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v51->m_levelVersion = v13;
if ( SHIBYTE(v124.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__dst, v124.__r_.__value_.__l.__data_, v124.__r_.__value_.__l.__size_);
else
__dst = v124;
std::string::operator=((std::string *)&v51->m_levelDesc, &__dst);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( SHIBYTE(v123.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&v113, v123.__r_.__value_.__l.__data_, v123.__r_.__value_.__l.__size_);
else
v113 = v123;
std::string::operator=((std::string *)&v51->m_levelString, &v113);
if ( SHIBYTE(v113.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v113.__r_.__value_.__l.__data_);
v51->m_userID.value = v15;
v59 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_userID.seed = (int)v59;
v51->m_userID.random = v15 + (int)v59;
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&v112, __p.__r_.__value_.__l.__data_, __p.__r_.__value_.__l.__size_);
else
v112 = __p;
std::string::operator=((std::string *)&v51->m_creatorName, &v112);
if ( SHIBYTE(v112.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v112.__r_.__value_.__l.__data_);
v51->m_accountID.value = v54;
v60 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_accountID.seed = (int)v60;
v51->m_accountID.random = v54 + (int)v60;
sub_100009900(&v116, "58");
v61 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v62 = (char *)cocos2d::CCString::getCString(v61);
sub_100009900(&v111, v62);
std::string::operator=((std::string *)&v51->m_recordString, &v111);
if ( SHIBYTE(v111.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v111.__r_.__value_.__l.__data_);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
v51->m_ratings = v21;
v51->m_ratingsSum = v23;
v51->m_downloads = v25;
v51->m_audioTrack = v100;
v51->m_twoPlayerMode = v88;
v51->m_gameVersion = v99;
v51->m_likes = v98;
v51->m_dislikes = v97;
v51->m_levelLength = v96;
v51->m_demon.value = v105;
v63 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_demon.seed = (int)v63;
v51->m_demon.random = (int)v63 + v105;
v51->m_demonDifficulty = v95;
v51->m_stars.value = v104;
v64 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_stars.seed = (int)v64;
v51->m_stars.random = v104 + (int)v64;
v51->m_featured = v93;
v51->m_isEpic = v92;
v51->m_autoLevel = v91;
v65 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_password.seed = (int)v65;
v51->m_password.random = v89 + (int)v65;
v51->m_originalLevel.value = v102;
v66 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_originalLevel.seed = (int)v66;
v51->m_originalLevel.random = v102 + (int)v66;
v51->m_songID = v87;
v51->m_coins = v94;
v51->m_coinsVerified.value = v103;
v67 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_coinsVerified.seed = (int)v67;
v51->m_coinsVerified.random = (int)v67 + v103;
v51->m_starsRequested = v90;
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&v110, v120.__r_.__value_.__l.__data_, v120.__r_.__value_.__l.__size_);
else
v110 = v120;
std::string::operator=((std::string *)&v51->m_capacityString, &v110);
if ( SHIBYTE(v110.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v110.__r_.__value_.__l.__data_);
sub_100009900(&v116, "40");
v68 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v51->m_lowDetailMode = cocos2d::CCString::boolValue(v68);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
sub_100009900(&v116, "41");
v69 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v70 = cocos2d::CCString::intValue(v69);
v51->m_dailyID.value = v70;
v71 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_dailyID.seed = (int)v71;
v51->m_dailyID.random = v70 + (int)v71;
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
sub_100009900(&v116, "44");
v72 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v51->m_gauntletLevel = cocos2d::CCString::boolValue(v72);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
v51->m_objectCount.value = v101;
v73 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v51->m_objectCount.seed = (int)v73;
v51->m_objectCount.random = v101 + (int)v73;
sub_100009900(&v116, "46");
v74 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v51->m_workingTime = cocos2d::CCString::intValue(v74);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
sub_100009900(&v116, "47");
v75 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v51->m_workingTime2 = cocos2d::CCString::intValue(v75);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
sub_100009900(&v116, "57");
v76 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v51->m_timestamp = cocos2d::CCString::intValue(v76);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
if ( SHIBYTE(v122.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&v109, v122.__r_.__value_.__l.__data_, v122.__r_.__value_.__l.__size_);
else
v109 = v122;
std::string::operator=((std::string *)&v51->m_uploadDate, &v109);
if ( SHIBYTE(v109.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v109.__r_.__value_.__l.__data_);
if ( SHIBYTE(v121.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&v108, v121.__r_.__value_.__l.__data_, v121.__r_.__value_.__l.__size_);
else
v108 = v121;
std::string::operator=((std::string *)&v51->m_updateDate, &v108);
if ( SHIBYTE(v108.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v108.__r_.__value_.__l.__data_);
sub_100009900(&v116, "48");
v77 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v78 = (char *)cocos2d::CCString::getCString(v77);
sub_100009900(&v106, v78);
if ( v107 < 0 )
operator delete(v106);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
sub_100009900(&v116, "52");
v79 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v80 = cocos2d::CCString::getCString(v79);
std::string::assign((std::string *)&v51->m_songIDs, v80);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
sub_100009900(&v116, "53");
v81 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v82 = cocos2d::CCString::getCString(v81);
std::string::assign((std::string *)&v51->m_sfxIDs, v82);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
sub_100009900(&v116, "54");
v83 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1, &v116);
v51->m_songSize = cocos2d::CCString::intValue(v83);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
sub_100009900(&v116, "");
v84 = sub_1000045BC(&v123, &v116);
if ( SHIBYTE(v116.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v116.__r_.__value_.__l.__data_);
if ( v84 )
v85 = 4;
else
v85 = 3;
v51->m_levelType = v85;
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v120.__r_.__value_.__l.__data_);
if ( SHIBYTE(v121.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v121.__r_.__value_.__l.__data_);
if ( SHIBYTE(v122.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v122.__r_.__value_.__l.__data_);
if ( SHIBYTE(v123.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v123.__r_.__value_.__l.__data_);
if ( SHIBYTE(v124.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v124.__r_.__value_.__l.__data_);
if ( SHIBYTE(v125.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v125.__r_.__value_.__l.__data_);
return v51;
}