//
// GameStatsManager::dataLoaded from 0x8e8820 to 0x8e9a20 (4608 bytes)
//
// 2 xrefs:
// > GameManager::dataLoaded @ 0x727a00
// > ??> @ 0xf16f0
//
// 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:56:54 +0000
//
__int64 __fastcall GameStatsManager::dataLoaded(GameStatsManager *this, DS_Dictionary *a2)
{
cocos2d::CCObject *DictForKey; // x0
cocos2d::CCObject *v5; // x28
cocos2d::CCArray *v6; // x23
unsigned int v7; // w20
cocos2d::CCString *v8; // x0
char *CString; // x21
size_t v10; // x0
__int64 v11; // x26
_BOOL4 v12; // w24
__int64 v13; // x26
size_t v14; // x0
cocos2d::CCObject *v15; // x24
cocos2d::CCDictionary *v16; // x0
cocos2d::CCDictionary *v17; // x19
cocos2d::CCArray *v18; // x21
unsigned int i; // w19
cocos2d::CCString *v20; // x0
const char *v21; // x20
cocos2d::CCObject *v22; // x0
cocos2d::CCDictionary *v23; // x1
GameToolbox *v24; // x2
cocos2d::CCObject *v25; // x0
cocos2d::CCObject *v26; // x19
cocos2d::CCObject *v27; // x0
cocos2d::CCDictionary *v28; // x0
cocos2d::CCDictionary *v29; // x2
cocos2d::CCObject *v30; // x0
cocos2d::CCDictionary *v31; // x1
GameToolbox *v32; // x2
cocos2d::CCObject *v33; // x0
cocos2d::CCDictionary *v34; // x1
GameToolbox *v35; // x2
cocos2d::CCObject *v36; // x0
cocos2d::CCDictionary *v37; // x1
GameToolbox *v38; // x2
cocos2d::CCObject *v39; // x0
cocos2d::CCDictionary *v40; // x1
GameToolbox *v41; // x2
cocos2d::CCDictionary *v42; // x0
cocos2d::CCDictionary *v43; // x2
cocos2d::CCObject *v44; // x0
cocos2d::CCDictionary *v45; // x1
GameToolbox *v46; // x2
cocos2d::CCObject *v47; // x0
cocos2d::CCDictionary *v48; // x1
GameToolbox *v49; // x2
cocos2d::CCObject *v50; // x0
cocos2d::CCDictionary *v51; // x1
GameToolbox *v52; // x2
cocos2d::CCObject *v53; // x0
cocos2d::CCDictionary *v54; // x1
GameToolbox *v55; // x2
cocos2d::CCObject *v56; // x0
cocos2d::CCDictionary *v57; // x1
GameToolbox *v58; // x2
cocos2d::CCObject *v59; // x0
cocos2d::CCDictionary *v60; // x1
GameToolbox *v61; // x2
cocos2d::CCObject *v62; // x0
cocos2d::CCDictionary *v63; // x1
GameToolbox *v64; // x2
cocos2d::CCObject *v65; // x0
cocos2d::CCDictionary *v66; // x1
GameToolbox *v67; // x2
cocos2d::CCObject *v68; // x0
cocos2d::CCDictionary *v69; // x1
GameToolbox *v70; // x2
cocos2d::CCObject *v71; // x0
cocos2d::CCDictionary *v72; // x1
GameToolbox *v73; // x2
cocos2d::CCDictionary *v74; // x0
cocos2d::CCDictionary *v75; // x26
__int64 v76; // x0
unsigned int *v77; // x1
cocos2d::CCObject *v78; // x0
cocos2d::CCObject *v79; // x19
cocos2d::CCObject *v80; // x0
cocos2d::CCDictionary *v81; // x0
cocos2d::CCDictionary *v82; // x2
cocos2d::CCDictionary *v83; // x0
cocos2d::CCDictionary *v84; // x2
cocos2d::CCObject *v85; // x0
cocos2d::CCDictionary *v86; // x1
GameToolbox *v87; // x2
cocos2d::CCObject *v88; // x0
cocos2d::CCDictionary *v89; // x1
GameToolbox *v90; // x2
cocos2d::CCDictionary *v91; // x0
cocos2d::CCDictionary *v92; // x2
cocos2d::CCObject *v93; // x0
cocos2d::CCDictionary *v94; // x1
GameToolbox *v95; // x2
cocos2d::CCObject *v96; // x0
cocos2d::CCDictionary *v97; // x1
GameToolbox *v98; // x2
int v99; // w19
int IntegerForKey; // w0
int v101; // w20
int v102; // w0
int v103; // w0
size_t v105; // x0
cocos2d::CCString *v106; // x0
unsigned int v107; // w26
__int64 v108; // x24
size_t v109; // x0
cocos2d::CCString *v110; // x0
unsigned int v111; // w27
size_t v112; // x0
_BOOL4 isSecretCoin; // w24
unsigned __int64 v114; // x1
__int64 v115; // x26
__int64 v116; // x0
cocos2d::CCObject *v117; // x24
size_t v118; // x0
size_t v119; // x0
bool isSecretCoinValid; // w0
char BoolForKey; // w0
cocos2d::CCObject *v122; // x0
cocos2d::CCString **v123; // x21
__int64 v124; // x0
char *v125; // x24
cocos2d::CCString *j; // x0
const char *v127; // x0
size_t v128; // x0
cocos2d::CCObject *v129; // x23
_DWORD *v130; // x0
_DWORD *v131; // x20
char *v132; // x19
int v133; // w20
GameToolbox *v134; // x1
cocos2d::CCObject *v135; // x0
cocos2d::CCObject *v136; // x0
cocos2d::CCObject *v137; // x1
int v138; // w23
int v139; // w0
cocos2d::CCObject *v140; // x0
cocos2d::CCDictionary *v141; // x1
cocos2d::CCObject *v142; // x0
cocos2d::CCObject *v143; // x1
cocos2d::CCObject *v144; // x0
cocos2d::CCObject *v145; // x1
cocos2d::CCObject *v146; // x0
cocos2d::CCObject *v147; // x1
cocos2d::CCObject *v148; // x0
cocos2d::CCObject *v149; // x1
cocos2d::CCObject *v150; // x0
cocos2d::CCObject *v151; // x1
cocos2d::CCObject *v152; // x0
cocos2d::CCObject *v153; // x1
cocos2d::CCObject *v154; // x0
cocos2d::CCObject *v155; // x1
cocos2d::CCObject *v156; // x0
cocos2d::CCObject *v157; // x1
cocos2d::CCObject *v158; // x0
cocos2d::CCObject *v159; // x1
cocos2d::CCObject *v160; // x0
cocos2d::CCObject *v161; // x1
cocos2d::CCObject *v162; // x0
cocos2d::CCObject *v163; // x0
cocos2d::CCDictionary *v164; // x1
cocos2d::CCObject *v165; // x0
cocos2d::CCObject *v166; // x1
cocos2d::CCObject *v167; // x0
cocos2d::CCObject *v168; // x1
cocos2d::CCObject *v169; // x0
cocos2d::CCDictionary *v170; // x1
cocos2d::CCObject *v171; // x0
cocos2d::CCObject *v172; // x1
cocos2d::CCObject *v173; // x0
cocos2d::CCObject *v174; // x1
cocos2d::CCObject *v175; // x0
cocos2d::CCObject *v176; // x1
cocos2d::CCObject *v177; // x0
cocos2d::CCObject *v178; // x1
cocos2d::CCObject *v179; // x0
cocos2d::CCDictionary *v180; // x1
cocos2d::CCObject *v181; // x0
cocos2d::CCObject *v182; // x1
cocos2d::CCObject *v183; // x0
cocos2d::CCObject *v184; // x1
cocos2d::CCObject *v185; // x0
cocos2d::CCDictionary *v186; // x1
_BOOL4 v187; // [xsp+88h] [xbp+88h]
char *v188; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v189; // [xsp+88h] [xbp+88h]
cocos2d::CCDictionary *v190; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v191; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v192; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v193; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v194; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v195; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v196; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v197; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v198; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v199; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v200; // [xsp+88h] [xbp+88h]
cocos2d::CCDictionary *v201; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v202; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v203; // [xsp+88h] [xbp+88h]
cocos2d::CCDictionary *v204; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v205; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v206; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v207; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v208; // [xsp+88h] [xbp+88h]
cocos2d::CCDictionary *v209; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v210; // [xsp+88h] [xbp+88h]
cocos2d::CCObject *v211; // [xsp+88h] [xbp+88h]
cocos2d::CCDictionary *v212; // [xsp+88h] [xbp+88h]
__int64 v213[2]; // [xsp+98h] [xbp+98h] BYREF
void *v214; // [xsp+A8h] [xbp+A8h]
__int64 v215; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v216; // [xsp+B8h] [xbp+B8h]
void *v217; // [xsp+C0h] [xbp+C0h]
v187 = DS_Dictionary::getIntegerForKey(a2, "binaryVersion") == 38;
if ( *((_BYTE *)this + 912)
|| (BoolForKey = DS_Dictionary::getBoolForKey(a2, "GS_29"), *((_BYTE *)this + 912) = BoolForKey, !v187)
|| BoolForKey )
{
DictForKey = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_value", 0);
v5 = DictForKey;
if ( !*((_QWORD *)this + 65) )
goto LABEL_106;
}
else
{
*((_BYTE *)this + 913) = 1;
DictForKey = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_value", 0);
v5 = DictForKey;
if ( !*((_QWORD *)this + 65) )
{
LABEL_106:
if ( DictForKey )
{
cocos2d::CCObject::retain(DictForKey);
v122 = *((cocos2d::CCObject **)this + 65);
if ( v122 )
cocos2d::CCObject::release(v122);
*((_QWORD *)this + 65) = v5;
}
goto LABEL_15;
}
}
v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(DictForKey);
v7 = 0;
if ( (unsigned int)cocos2d::CCArray::count(v6) )
{
while ( 1 )
{
v8 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v6, v7);
CString = (char *)cocos2d::CCString::getCString(v8);
switch ( atoi(CString) )
{
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 40:
case 41:
case 42:
case 43:
goto LABEL_13;
case 30:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
case 39:
if ( !v187 || *((_BYTE *)this + 913) )
goto LABEL_88;
goto LABEL_13;
default:
LABEL_88:
v215 = 0;
v216 = 0;
v217 = nullptr;
v105 = strlen(CString);
std::string::__init(&v215, CString, v105);
v106 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v5, &v215);
v107 = cocos2d::CCString::intValue(v106);
if ( (v215 & 1) != 0 )
operator delete(v217);
v215 = 0;
v216 = 0;
v217 = nullptr;
v108 = *((_QWORD *)this + 65);
v109 = strlen(CString);
std::string::__init(&v215, CString, v109);
v110 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v108, &v215);
v111 = cocos2d::CCString::intValue(v110);
if ( (v215 & 1) != 0 )
operator delete(v217);
v215 = 0;
v216 = 0;
v217 = nullptr;
v112 = strlen(CString);
std::string::__init(&v215, CString, v112);
isSecretCoin = GameStatsManager::isSecretCoin((__int64)this, (unsigned __int8 *)&v215);
if ( (v215 & 1) != 0 )
{
operator delete(v217);
if ( !isSecretCoin )
{
LABEL_94:
if ( (int)v111 < (int)v107 )
v114 = v107;
else
v114 = v111;
v115 = *((_QWORD *)this + 65);
v116 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v114);
v215 = 0;
v117 = (cocos2d::CCObject *)v116;
v216 = 0;
v217 = nullptr;
v118 = strlen(CString);
std::string::__init(&v215, CString, v118);
cocos2d::CCDictionary::setObject(v115, v117);
if ( (v215 & 1) == 0 )
goto LABEL_13;
++v7;
operator delete(v217);
goto LABEL_14;
}
}
else if ( !isSecretCoin )
{
goto LABEL_94;
}
v213[0] = 0;
v213[1] = 0;
v214 = nullptr;
v119 = strlen(CString);
std::string::__init(v213, CString, v119);
isSecretCoinValid = GameStatsManager::isSecretCoinValid((int)this, (unsigned __int8 *)v213);
v12 = isSecretCoinValid;
if ( isSecretCoinValid )
{
v215 = 0;
v216 = 0;
v217 = nullptr;
v10 = strlen(CString);
v11 = *((_QWORD *)this + 65);
std::string::__init(&v215, CString, v10);
v12 = cocos2d::CCDictionary::objectForKey(v11, &v215) == 0;
if ( (v215 & 1) != 0 )
operator delete(v217);
if ( (v213[0] & 1) != 0 )
LABEL_8:
operator delete(v214);
if ( v12 )
{
v215 = 0;
v216 = 0;
v217 = nullptr;
v13 = *((_QWORD *)this + 65);
v14 = strlen(CString);
v15 = *((cocos2d::CCObject **)this + 40);
std::string::__init(&v215, CString, v14);
cocos2d::CCDictionary::setObject(v13, v15);
if ( (v215 & 1) != 0 )
operator delete(v217);
GameStatsManager::incrementStat(this, "8");
}
LABEL_13:
++v7;
goto LABEL_14;
}
if ( (v213[0] & 1) != 0 )
goto LABEL_8;
++v7;
LABEL_14:
if ( v7 >= (unsigned int)cocos2d::CCArray::count(v6) )
goto LABEL_15;
break;
}
}
}
LABEL_15:
if ( *((_BYTE *)this + 912) || *((_BYTE *)this + 913) )
goto LABEL_17;
v132 = (char *)&off_18 + 6;
v133 = 0;
do
{
while ( (int)GameStatsManager::getStatFromKey(this, (GameToolbox *)(unsigned int)v132) > 999 )
{
LODWORD(v132) = (_DWORD)v132 + 1;
v133 += 1000;
if ( (_DWORD)v132 == 40 )
goto LABEL_123;
}
v134 = (GameToolbox *)(unsigned int)v132;
LODWORD(v132) = (_DWORD)v132 + 1;
v133 += GameStatsManager::getStatFromKey(this, v134);
}
while ( (_DWORD)v132 != 40 );
LABEL_123:
if ( v133 <= 1000 )
{
LABEL_17:
v16 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_3", 0);
v17 = v16;
if ( !*((_QWORD *)this + 77) )
goto LABEL_125;
LABEL_18:
v18 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v16);
for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v18); ++i )
{
v20 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v18, i);
v21 = (const char *)cocos2d::CCString::getCString(v20);
if ( !GameStatsManager::hasUserCoin(this, v21) )
{
GameStatsManager::storeUserCoin(this, v21);
GameStatsManager::incrementStat(this, (char *)&word_120A570);
}
}
goto LABEL_22;
}
*((_BYTE *)this + 912) = 1;
v16 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_3", 0);
v17 = v16;
if ( *((_QWORD *)this + 77) )
goto LABEL_18;
LABEL_125:
if ( v16 )
{
cocos2d::CCObject::retain(v16);
v135 = *((cocos2d::CCObject **)this + 77);
if ( v135 )
cocos2d::CCObject::release(v135);
*((_QWORD *)this + 77) = v17;
v22 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_4", 0);
v23 = v22;
v24 = *((GameToolbox **)this + 78);
if ( !v24 )
goto LABEL_129;
LABEL_23:
GameToolbox::mergeDictsSaveLargestInt(v24, v23, v24);
goto LABEL_24;
}
LABEL_22:
v22 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_4", 0);
v23 = v22;
v24 = *((GameToolbox **)this + 78);
if ( v24 )
goto LABEL_23;
LABEL_129:
v189 = v22;
if ( v22 )
{
cocos2d::CCObject::retain(v22);
v136 = *((cocos2d::CCObject **)this + 78);
v137 = v189;
if ( v136 )
{
cocos2d::CCObject::release(v136);
v137 = v189;
}
*((_QWORD *)this + 78) = v137;
}
LABEL_24:
v25 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_completed", 0);
v26 = v25;
if ( v25 && !*((_QWORD *)this + 76) )
{
cocos2d::CCObject::retain(v25);
v27 = *((cocos2d::CCObject **)this + 76);
if ( v27 )
cocos2d::CCObject::release(v27);
*((_QWORD *)this + 76) = v26;
}
v28 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_5", 0);
v29 = *((cocos2d::CCDictionary **)this + 90);
if ( v29 )
{
GameToolbox::mergeDictsSaveLargestInt(*((GameToolbox **)this + 90), v28, v29);
}
else
{
v204 = v28;
if ( v28 )
{
cocos2d::CCObject::retain(v28);
v169 = *((cocos2d::CCObject **)this + 90);
v170 = v204;
if ( v169 )
{
cocos2d::CCObject::release(v169);
v170 = v204;
}
*((_QWORD *)this + 90) = v170;
v30 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_6", 0);
v31 = v30;
v32 = *((GameToolbox **)this + 79);
if ( v32 )
goto LABEL_32;
goto LABEL_202;
}
}
v30 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_6", 0);
v31 = v30;
v32 = *((GameToolbox **)this + 79);
if ( v32 )
{
LABEL_32:
GameToolbox::mergeDictsSaveLargestInt(v32, v31, v32);
goto LABEL_33;
}
LABEL_202:
v205 = v30;
if ( v30 )
{
cocos2d::CCObject::retain(v30);
v171 = *((cocos2d::CCObject **)this + 79);
v172 = v205;
if ( v171 )
{
cocos2d::CCObject::release(v171);
v172 = v205;
}
*((_QWORD *)this + 79) = v172;
v33 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_7", 0);
v34 = v33;
v35 = *((GameToolbox **)this + 80);
if ( v35 )
goto LABEL_34;
goto LABEL_206;
}
LABEL_33:
v33 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_7", 0);
v34 = v33;
v35 = *((GameToolbox **)this + 80);
if ( v35 )
{
LABEL_34:
GameToolbox::mergeDictsSaveLargestInt(v35, v34, v35);
goto LABEL_35;
}
LABEL_206:
v206 = v33;
if ( v33 )
{
cocos2d::CCObject::retain(v33);
v173 = *((cocos2d::CCObject **)this + 80);
v174 = v206;
if ( v173 )
{
cocos2d::CCObject::release(v173);
v174 = v206;
}
*((_QWORD *)this + 80) = v174;
v36 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_23", 0);
v37 = v36;
v38 = *((GameToolbox **)this + 82);
if ( v38 )
goto LABEL_36;
goto LABEL_210;
}
LABEL_35:
v36 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_23", 0);
v37 = v36;
v38 = *((GameToolbox **)this + 82);
if ( v38 )
{
LABEL_36:
GameToolbox::mergeDictsSaveLargestInt(v38, v37, v38);
goto LABEL_37;
}
LABEL_210:
v207 = v36;
if ( v36 )
{
cocos2d::CCObject::retain(v36);
v175 = *((cocos2d::CCObject **)this + 82);
v176 = v207;
if ( v175 )
{
cocos2d::CCObject::release(v175);
v176 = v207;
}
*((_QWORD *)this + 82) = v176;
v39 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_10", 0);
v40 = v39;
v41 = *((GameToolbox **)this + 81);
if ( v41 )
goto LABEL_38;
goto LABEL_214;
}
LABEL_37:
v39 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_10", 0);
v40 = v39;
v41 = *((GameToolbox **)this + 81);
if ( v41 )
{
LABEL_38:
GameToolbox::mergeDictsSaveLargestInt(v41, v40, v41);
goto LABEL_39;
}
LABEL_214:
v208 = v39;
if ( v39 )
{
cocos2d::CCObject::retain(v39);
v177 = *((cocos2d::CCObject **)this + 81);
v178 = v208;
if ( v177 )
{
cocos2d::CCObject::release(v177);
v178 = v208;
}
*((_QWORD *)this + 81) = v178;
}
LABEL_39:
v42 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_16", 0);
v43 = *((cocos2d::CCDictionary **)this + 83);
if ( v43 )
{
GameToolbox::mergeDictsSaveLargestInt(*((GameToolbox **)this + 83), v42, v43);
}
else
{
v190 = v42;
if ( v42 )
{
cocos2d::CCObject::retain(v42);
v140 = *((cocos2d::CCObject **)this + 83);
v141 = v190;
if ( v140 )
{
cocos2d::CCObject::release(v140);
v141 = v190;
}
*((_QWORD *)this + 83) = v141;
v44 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_9", 0);
v45 = v44;
v46 = *((GameToolbox **)this + 84);
if ( v46 )
goto LABEL_42;
goto LABEL_142;
}
}
v44 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_9", 0);
v45 = v44;
v46 = *((GameToolbox **)this + 84);
if ( v46 )
{
LABEL_42:
GameToolbox::mergeDictsSaveLargestInt(v46, v45, v46);
goto LABEL_43;
}
LABEL_142:
v191 = v44;
if ( v44 )
{
cocos2d::CCObject::retain(v44);
v142 = *((cocos2d::CCObject **)this + 84);
v143 = v191;
if ( v142 )
{
cocos2d::CCObject::release(v142);
v143 = v191;
}
*((_QWORD *)this + 84) = v143;
v47 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_17", 0);
v48 = v47;
v49 = *((GameToolbox **)this + 85);
if ( v49 )
goto LABEL_44;
goto LABEL_146;
}
LABEL_43:
v47 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_17", 0);
v48 = v47;
v49 = *((GameToolbox **)this + 85);
if ( v49 )
{
LABEL_44:
GameToolbox::mergeDictsSaveLargestInt(v49, v48, v49);
goto LABEL_45;
}
LABEL_146:
v192 = v47;
if ( v47 )
{
cocos2d::CCObject::retain(v47);
v144 = *((cocos2d::CCObject **)this + 85);
v145 = v192;
if ( v144 )
{
cocos2d::CCObject::release(v144);
v145 = v192;
}
*((_QWORD *)this + 85) = v145;
v50 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_18", 0);
v51 = v50;
v52 = *((GameToolbox **)this + 86);
if ( v52 )
goto LABEL_46;
goto LABEL_150;
}
LABEL_45:
v50 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_18", 0);
v51 = v50;
v52 = *((GameToolbox **)this + 86);
if ( v52 )
{
LABEL_46:
GameToolbox::mergeDictsSaveLargestInt(v52, v51, v52);
goto LABEL_47;
}
LABEL_150:
v193 = v50;
if ( v50 )
{
cocos2d::CCObject::retain(v50);
v146 = *((cocos2d::CCObject **)this + 86);
v147 = v193;
if ( v146 )
{
cocos2d::CCObject::release(v146);
v147 = v193;
}
*((_QWORD *)this + 86) = v147;
v53 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_24", 0);
v54 = v53;
v55 = *((GameToolbox **)this + 87);
if ( v55 )
goto LABEL_48;
goto LABEL_154;
}
LABEL_47:
v53 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_24", 0);
v54 = v53;
v55 = *((GameToolbox **)this + 87);
if ( v55 )
{
LABEL_48:
GameToolbox::mergeDictsSaveLargestInt(v55, v54, v55);
goto LABEL_49;
}
LABEL_154:
v194 = v53;
if ( v53 )
{
cocos2d::CCObject::retain(v53);
v148 = *((cocos2d::CCObject **)this + 87);
v149 = v194;
if ( v148 )
{
cocos2d::CCObject::release(v148);
v149 = v194;
}
*((_QWORD *)this + 87) = v149;
v56 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_8", 0);
v57 = v56;
v58 = *((GameToolbox **)this + 88);
if ( v58 )
goto LABEL_50;
goto LABEL_158;
}
LABEL_49:
v56 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_8", 0);
v57 = v56;
v58 = *((GameToolbox **)this + 88);
if ( v58 )
{
LABEL_50:
GameToolbox::mergeDictsSaveLargestInt(v58, v57, v58);
goto LABEL_51;
}
LABEL_158:
v195 = v56;
if ( v56 )
{
cocos2d::CCObject::retain(v56);
v150 = *((cocos2d::CCObject **)this + 88);
v151 = v195;
if ( v150 )
{
cocos2d::CCObject::release(v150);
v151 = v195;
}
*((_QWORD *)this + 88) = v151;
v59 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_11", 0);
v60 = v59;
v61 = *((GameToolbox **)this + 60);
if ( v61 )
goto LABEL_52;
goto LABEL_162;
}
LABEL_51:
v59 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_11", 0);
v60 = v59;
v61 = *((GameToolbox **)this + 60);
if ( v61 )
{
LABEL_52:
GameToolbox::mergeDictsSkipConflict(v61, v60, v61);
goto LABEL_53;
}
LABEL_162:
v196 = v59;
if ( v59 )
{
cocos2d::CCObject::retain(v59);
v152 = *((cocos2d::CCObject **)this + 60);
v153 = v196;
if ( v152 )
{
cocos2d::CCObject::release(v152);
v153 = v196;
}
*((_QWORD *)this + 60) = v153;
v62 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_25", 0);
v63 = v62;
v64 = *((GameToolbox **)this + 92);
if ( v64 )
goto LABEL_54;
goto LABEL_166;
}
LABEL_53:
v62 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_25", 0);
v63 = v62;
v64 = *((GameToolbox **)this + 92);
if ( v64 )
{
LABEL_54:
GameToolbox::mergeDictsSkipConflict(v64, v63, v64);
goto LABEL_55;
}
LABEL_166:
v197 = v62;
if ( v62 )
{
cocos2d::CCObject::retain(v62);
v154 = *((cocos2d::CCObject **)this + 92);
v155 = v197;
if ( v154 )
{
cocos2d::CCObject::release(v154);
v155 = v197;
}
*((_QWORD *)this + 92) = v155;
v65 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_31", 0);
v66 = v65;
v67 = *((GameToolbox **)this + 93);
if ( v67 )
goto LABEL_56;
goto LABEL_170;
}
LABEL_55:
v65 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_31", 0);
v66 = v65;
v67 = *((GameToolbox **)this + 93);
if ( v67 )
{
LABEL_56:
GameToolbox::mergeDictsSkipConflict(v67, v66, v67);
goto LABEL_57;
}
LABEL_170:
v198 = v65;
if ( v65 )
{
cocos2d::CCObject::retain(v65);
v156 = *((cocos2d::CCObject **)this + 93);
v157 = v198;
if ( v156 )
{
cocos2d::CCObject::release(v156);
v157 = v198;
}
*((_QWORD *)this + 93) = v157;
v68 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_33", 0);
v69 = v68;
v70 = *((GameToolbox **)this + 94);
if ( v70 )
goto LABEL_58;
goto LABEL_174;
}
LABEL_57:
v68 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_33", 0);
v69 = v68;
v70 = *((GameToolbox **)this + 94);
if ( v70 )
{
LABEL_58:
GameToolbox::mergeDictsSaveLargestInt(v70, v69, v70);
goto LABEL_59;
}
LABEL_174:
v199 = v68;
if ( v68 )
{
cocos2d::CCObject::retain(v68);
v158 = *((cocos2d::CCObject **)this + 94);
v159 = v199;
if ( v158 )
{
cocos2d::CCObject::release(v158);
v159 = v199;
}
*((_QWORD *)this + 94) = v159;
v71 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_22", 0);
v72 = v71;
v73 = *((GameToolbox **)this + 61);
if ( v73 )
goto LABEL_60;
goto LABEL_178;
}
LABEL_59:
v71 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_22", 0);
v72 = v71;
v73 = *((GameToolbox **)this + 61);
if ( v73 )
{
LABEL_60:
GameToolbox::mergeDictsSkipConflict(v73, v72, v73);
goto LABEL_61;
}
LABEL_178:
v200 = v71;
if ( v71 )
{
cocos2d::CCObject::retain(v71);
v160 = *((cocos2d::CCObject **)this + 61);
v161 = v200;
if ( v160 )
{
cocos2d::CCObject::release(v160);
v161 = v200;
}
*((_QWORD *)this + 61) = v161;
v74 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_12", 0);
v75 = v74;
if ( *((_QWORD *)this + 62) )
goto LABEL_62;
goto LABEL_182;
}
LABEL_61:
v74 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_12", 0);
v75 = v74;
if ( *((_QWORD *)this + 62) )
{
LABEL_62:
v76 = cocos2d::CCDictionary::allKeys(v74);
if ( v76 )
{
v77 = *(unsigned int **)(v76 + 56);
if ( *v77 )
{
v123 = *((cocos2d::CCString ***)v77 + 2);
v124 = 8LL * *v77 - 8;
v125 = (char *)v123 + v124;
if ( v123 <= (cocos2d::CCString **)((char *)v123 + v124) )
{
for ( j = *v123; *v123; j = *v123 )
{
v127 = (const char *)cocos2d::CCString::getCString(j);
v215 = 0;
v216 = 0;
v217 = nullptr;
v188 = (char *)v127;
v128 = strlen(v127);
std::string::__init(&v215, v188, v128);
v129 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v75, &v215);
v130 = (_DWORD *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 62), &v215);
v131 = v130;
if ( v130 )
{
if ( v130[24] == *((_DWORD *)v129 + 24) && v130[14] == *((_DWORD *)v129 + 14) )
{
v138 = *((_DWORD *)v129 + 15) - *((_DWORD *)v129 + 16);
if ( v130[15] - v130[16] < v138 )
{
v130[17] = v138;
v139 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
v131[16] = v139;
v131[15] = v138 + v139;
}
}
}
else if ( !GameStatsManager::hasCompletedChallenge(this, v129) )
{
cocos2d::CCDictionary::setObject(*((_QWORD *)this + 62), v129);
}
if ( (v215 & 1) != 0 )
operator delete(v217);
if ( v125 < (char *)++v123 )
break;
}
}
}
}
goto LABEL_64;
}
LABEL_182:
if ( v74 )
{
cocos2d::CCObject::retain(v74);
v162 = *((cocos2d::CCObject **)this + 62);
if ( v162 )
cocos2d::CCObject::release(v162);
*((_QWORD *)this + 62) = v75;
}
LABEL_64:
v78 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_15", 0);
v79 = v78;
if ( v78 && !*((_QWORD *)this + 63) )
{
cocos2d::CCObject::retain(v78);
v80 = *((cocos2d::CCObject **)this + 63);
if ( v80 )
cocos2d::CCObject::release(v80);
*((_QWORD *)this + 63) = v79;
}
v81 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_14", 0);
v82 = *((cocos2d::CCDictionary **)this + 89);
if ( v82 )
{
GameToolbox::mergeDictsSaveLargestInt(*((GameToolbox **)this + 89), v81, v82);
}
else
{
v212 = v81;
if ( v81 )
{
cocos2d::CCObject::retain(v81);
v185 = *((cocos2d::CCObject **)this + 89);
v186 = v212;
if ( v185 )
{
cocos2d::CCObject::release(v185);
v186 = v212;
}
*((_QWORD *)this + 89) = v186;
}
}
v83 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_27", 0);
v84 = *((cocos2d::CCDictionary **)this + 91);
if ( v84 )
{
GameToolbox::mergeDictsSaveLargestInt(*((GameToolbox **)this + 91), v83, v84);
}
else
{
v209 = v83;
if ( v83 )
{
cocos2d::CCObject::retain(v83);
v179 = *((cocos2d::CCObject **)this + 91);
v180 = v209;
if ( v179 )
{
cocos2d::CCObject::release(v179);
v180 = v209;
}
*((_QWORD *)this + 91) = v180;
v85 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_19", 0);
v86 = v85;
v87 = *((GameToolbox **)this + 95);
if ( v87 )
goto LABEL_74;
goto LABEL_222;
}
}
v85 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_19", 0);
v86 = v85;
v87 = *((GameToolbox **)this + 95);
if ( v87 )
{
LABEL_74:
GameToolbox::mergeDictsSkipConflict(v87, v86, v87);
goto LABEL_75;
}
LABEL_222:
v210 = v85;
if ( v85 )
{
cocos2d::CCObject::retain(v85);
v181 = *((cocos2d::CCObject **)this + 95);
v182 = v210;
if ( v181 )
{
cocos2d::CCObject::release(v181);
v182 = v210;
}
*((_QWORD *)this + 95) = v182;
v88 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_30", 0);
v89 = v88;
v90 = *((GameToolbox **)this + 100);
if ( v90 )
goto LABEL_76;
goto LABEL_226;
}
LABEL_75:
v88 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_30", 0);
v89 = v88;
v90 = *((GameToolbox **)this + 100);
if ( v90 )
{
LABEL_76:
GameToolbox::mergeDictsSkipConflict(v90, v89, v90);
goto LABEL_77;
}
LABEL_226:
v211 = v88;
if ( v88 )
{
cocos2d::CCObject::retain(v88);
v183 = *((cocos2d::CCObject **)this + 100);
v184 = v211;
if ( v183 )
{
cocos2d::CCObject::release(v183);
v184 = v211;
}
*((_QWORD *)this + 100) = v184;
}
LABEL_77:
v91 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GS_21", 0);
v92 = *((cocos2d::CCDictionary **)this + 98);
if ( v92 )
{
GameToolbox::mergeDictsSkipConflict(*((GameToolbox **)this + 98), v91, v92);
}
else
{
v201 = v91;
if ( v91 )
{
cocos2d::CCObject::retain(v91);
v163 = *((cocos2d::CCObject **)this + 98);
v164 = v201;
if ( v163 )
{
cocos2d::CCObject::release(v163);
v164 = v201;
}
*((_QWORD *)this + 98) = v164;
v93 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_28", 0);
v94 = v93;
v95 = *((GameToolbox **)this + 99);
if ( v95 )
goto LABEL_80;
goto LABEL_190;
}
}
v93 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_28", 0);
v94 = v93;
v95 = *((GameToolbox **)this + 99);
if ( v95 )
{
LABEL_80:
GameToolbox::mergeDictsSkipConflict(v95, v94, v95);
goto LABEL_81;
}
LABEL_190:
v202 = v93;
if ( v93 )
{
cocos2d::CCObject::retain(v93);
v165 = *((cocos2d::CCObject **)this + 99);
v166 = v202;
if ( v165 )
{
cocos2d::CCObject::release(v165);
v166 = v202;
}
*((_QWORD *)this + 99) = v166;
v96 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_32", 0);
v97 = v96;
v98 = *((GameToolbox **)this + 102);
if ( v98 )
goto LABEL_82;
goto LABEL_194;
}
LABEL_81:
v96 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GS_32", 0);
v97 = v96;
v98 = *((GameToolbox **)this + 102);
if ( v98 )
{
LABEL_82:
GameToolbox::mergeDictsSkipConflict(v98, v97, v98);
goto LABEL_83;
}
LABEL_194:
v203 = v96;
if ( v96 )
{
cocos2d::CCObject::retain(v96);
v167 = *((cocos2d::CCObject **)this + 102);
v168 = v203;
if ( v167 )
{
cocos2d::CCObject::release(v167);
v168 = v203;
}
*((_QWORD *)this + 102) = v168;
}
LABEL_83:
GameStatsManager::removeErrorFromSpecialChests((cocos2d::CCDictionary **)this);
v99 = *((_DWORD *)this + 192) - *((_DWORD *)this + 193);
IntegerForKey = DS_Dictionary::getIntegerForKey(a2, "GS_20");
v101 = IntegerForKey;
if ( IntegerForKey > v99 )
{
*((_DWORD *)this + 194) = IntegerForKey;
v102 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 193) = v102;
*((_DWORD *)this + 192) = v101 + v102;
}
v103 = DS_Dictionary::getIntegerForKey(a2, "GS_26");
GameStatsManager::updateActivePath((__int64)this, v103);
GameStatsManager::postLoadGameStats(this);
return _stack_chk_guard;
}