//
// AchievementCell::loadFromDict from 0x42c5b4 to 0x42d1f6 (3138 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x433ff4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:11 +0000
//
int __fastcall AchievementCell::loadFromDict(AchievementCell *this, cocos2d::CCDictionary *a2)
{
cocos2d::CCString *v4; // r0
AchievementManager *v5; // r0
AchievementManager *v6; // r0
const char *v7; // r1
float v8; // s16
float *v9; // r5
const char *v10; // r1
int v11; // r8
void (__fastcall *v12)(int, _BYTE *); // r6
void (__fastcall *v13)(float *, _BYTE *); // r2
int v14; // r4
const char *v15; // r1
cocos2d::CCString *v16; // r0
const char *v17; // r4
size_t v18; // r0
cocos2d::CCArray *v19; // r0
cocos2d::CCArray *v20; // r10
int v21; // r4
unsigned __int8 *v22; // r6
unsigned __int8 *v23; // r4
unsigned __int8 *v24; // r8
unsigned __int8 *v25; // r5
int v26; // r1
int v27; // r5
int v28; // r3
unsigned int v29; // r6
size_t v30; // r2
unsigned int v31; // r3
std::logic_error *exception; // r4
char *v33; // r1
size_t v34; // r3
char *v35; // r1
char *v36; // r1
size_t v37; // r0
cocos2d::CCObject *v38; // r0
unsigned __int8 *v39; // r2
unsigned int v40; // r3
unsigned __int8 *v41; // r1
unsigned __int8 *v42; // r3
unsigned __int8 *v43; // r5
int v44; // r0
cocos2d::CCString *v45; // r0
const char *v46; // r5
cocos2d::CCString *v47; // r0
int v48; // r0
int v49; // r8
size_t v50; // r0
_BOOL4 v51; // r6
size_t v52; // r0
_BOOL4 v53; // r6
size_t v54; // r0
_BOOL4 v55; // r6
size_t v56; // r0
_BOOL4 v57; // r6
size_t v58; // r0
_BOOL4 v59; // r6
size_t v60; // r0
_BOOL4 v61; // r6
size_t v62; // r0
_BOOL4 v63; // r6
size_t v64; // r0
_BOOL4 v65; // r6
size_t v66; // r0
_BOOL4 v67; // r10
size_t v68; // r0
_BOOL4 v69; // r10
size_t v70; // r0
_BOOL4 v71; // r10
size_t v72; // r0
_BOOL4 v73; // r10
size_t v74; // r0
_BOOL4 v75; // r6
int v76; // r0
void (__fastcall *v77)(float *, _BYTE *); // r6
cocos2d::CCNode *v78; // r0
int v79; // r8
void (__fastcall *v80)(int, _BYTE *); // r6
float *v81; // r0
cocos2d::CCString *v82; // r4
cocos2d::CCLabelBMFont *v83; // r0
const char *v84; // r2
int v85; // r4
void (__fastcall *v86)(int, _BYTE *); // r10
void (__fastcall *v87)(int, _DWORD); // r10
float *v88; // r0
void (__fastcall *v89)(int, int); // r10
int v90; // r1
int *v91; // r11
cocos2d::CCString *v92; // r0
char *v93; // r0
float *v94; // r9
void (__fastcall *v95)(float *, _BYTE *); // r8
void (__fastcall *v96)(float *, _BYTE *); // r8
char *v97; // r11
size_t v98; // r0
float v99; // s18
int v100; // r0
void (__fastcall *v101)(int, _BYTE *); // r8
float v102; // s14
float v103; // s19
int (__fastcall *v104)(float *, _BYTE *); // r4
AchievementManager *v105; // r0
AchievementManager *v106; // r0
const char *v107; // r0
cocos2d::CCString *v108; // r0
cocos2d::CCLabelBMFont *v109; // r0
const char *v110; // r2
int v111; // r4
void (__fastcall *v112)(int, _BYTE *); // r7
int v113; // r8
int v114; // r4
void (__fastcall *v115)(int, _BYTE *); // r5
void (__fastcall *v116)(int, _BYTE *); // r5
int v118; // [sp+Ch] [bp-64h]
_BOOL4 isAchievementEarned; // [sp+14h] [bp-5Ch]
int v120; // [sp+18h] [bp-58h]
char *CString; // [sp+1Ch] [bp-54h]
char *v122; // [sp+24h] [bp-4Ch]
int v123; // [sp+28h] [bp-48h]
int v124; // [sp+2Ch] [bp-44h]
_BYTE v125[8]; // [sp+30h] [bp-40h] BYREF
_BYTE v126[8]; // [sp+38h] [bp-38h] BYREF
int v127[2]; // [sp+40h] [bp-30h] BYREF
char *v128; // [sp+48h] [bp-28h]
int v129[3]; // [sp+4Ch] [bp-24h] BYREF
int v130; // [sp+58h] [bp-18h] BYREF
unsigned int v131; // [sp+5Ch] [bp-14h]
char *v132; // [sp+60h] [bp-10h]
int v133; // [sp+64h] [bp-Ch] BYREF
int v134; // [sp+68h] [bp-8h]
char *v135; // [sp+6Ch] [bp-4h]
int v136; // [sp+70h] [bp+0h] BYREF
int v137; // [sp+74h] [bp+4h]
int v138; // [sp+78h] [bp+8h]
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 102) + 584))(*((_DWORD *)this + 102), 255);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "identifier", 0xAu);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v136);
CString = (char *)cocos2d::CCString::getCString(v4);
v5 = (AchievementManager *)std::string::~string((int)&v136);
v6 = (AchievementManager *)AchievementManager::sharedState(v5);
isAchievementEarned = AchievementManager::isAchievementEarned(v6, CString);
if ( !isAchievementEarned )
{
v8 = 0.0;
v9 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerSquare_001.png", v7);
v11 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lock_001.png", v10);
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v9 + 228))(v9, v11);
v12 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, v9[86] * 0.5, v9[87] * 0.5);
v12(v11, v126);
v13 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v9 + 480);
memset(v126, 175, 3);
v13(v9, v126);
goto LABEL_79;
}
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "icon", 4u);
v14 = cocos2d::CCDictionary::objectForKey(a2, &v136);
std::string::~string((int)&v136);
if ( !v14 )
{
LABEL_99:
v8 = 0.0;
goto LABEL_78;
}
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "icon", 4u);
v16 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v136);
v17 = (const char *)cocos2d::CCString::getCString(v16);
std::string::~string((int)&v136);
v130 = 0;
v131 = 0;
v132 = nullptr;
v18 = strlen(v17);
v19 = (cocos2d::CCArray *)std::string::__init(&v130, v17, v18);
v20 = (cocos2d::CCArray *)cocos2d::CCArray::create(v19);
if ( (v130 & 1) == 0 )
{
v21 = (int)(unsigned __int8)v130 >> 1;
if ( !v21 )
{
v27 = -1;
goto LABEL_17;
}
v22 = (unsigned __int8 *)&v130 + 1;
LABEL_6:
v23 = &v22[v21];
v24 = v22;
while ( 1 )
{
v25 = v24;
if ( v24 == v23 )
break;
v26 = *v24++;
if ( v26 == 95 )
{
v27 = v25 - v22;
goto LABEL_11;
}
}
v27 = -1;
LABEL_11:
if ( (v130 & 1) != 0 )
goto LABEL_14;
LABEL_17:
v28 = (int)(unsigned __int8)v130 >> 1;
goto LABEL_18;
}
v21 = v131;
v22 = (unsigned __int8 *)v132;
if ( v131 )
goto LABEL_6;
v27 = -1;
LABEL_14:
v28 = v131;
LABEL_18:
v29 = 0;
v120 = v28;
while ( 1 )
{
v30 = v27 - v29;
v133 = 0;
v134 = 0;
v135 = nullptr;
if ( (v130 & 1) != 0 )
{
v31 = v131;
if ( v29 > v131 )
goto LABEL_23;
v33 = v132;
}
else
{
v31 = (int)(unsigned __int8)v130 >> 1;
if ( v29 > v31 )
{
LABEL_23:
exception = (std::logic_error *)_cxa_allocate_exception(8u);
std::logic_error::logic_error(exception, "basic_string");
*(_DWORD *)exception = &off_D1548C;
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::out_of_range,
(void (*)(void *))std::length_error::~length_error);
}
v33 = (char *)&v130 + 1;
}
v34 = v31 - v29;
v35 = &v33[v29];
if ( v30 >= v34 )
v30 = v34;
std::string::__init(&v133, v35, v30);
if ( (v133 & 1) != 0 )
{
if ( v134 || v29 != v120 )
{
v36 = v135;
LABEL_37:
v122 = v36;
v136 = 0;
v137 = 0;
v138 = 0;
v37 = strlen(v36);
std::string::__init(&v136, v122, v37);
v38 = (cocos2d::CCObject *)cocos2d::CCString::create(&v136);
cocos2d::CCArray::addObject(v20, v38);
std::string::~string((int)&v136);
}
}
else if ( (unsigned __int8)v133 >> 1 || v29 != v120 )
{
v36 = (char *)&v133 + 1;
goto LABEL_37;
}
if ( v27 == -1 )
break;
v29 = v27 + 1;
if ( (v130 & 1) != 0 )
{
v39 = (unsigned __int8 *)v132;
v40 = v131;
}
else
{
v40 = (int)(unsigned __int8)v130 >> 1;
v39 = (unsigned __int8 *)&v130 + 1;
}
if ( v29 < v40 )
{
v41 = &v39[v29];
v42 = &v39[v40];
while ( 1 )
{
v43 = v41;
if ( v41 == v42 )
break;
v44 = *v41++;
if ( v44 == 95 )
{
v27 = v43 - v39;
goto LABEL_47;
}
}
}
v27 = -1;
LABEL_47:
std::string::~string((int)&v133);
}
std::string::~string((int)&v133);
std::string::~string((int)&v130);
if ( cocos2d::CCArray::count(v20) <= 1u )
goto LABEL_99;
v45 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v20, 0);
v46 = (const char *)cocos2d::CCString::getCString(v45);
v47 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v20, 1u);
v48 = cocos2d::CCString::intValue(v47);
v133 = 0;
v134 = 0;
v135 = nullptr;
v49 = v48;
v50 = strlen(v46);
std::string::__init(&v133, v46, v50);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "ship", 4u);
v51 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v51 )
{
v76 = 4;
goto LABEL_76;
}
v133 = 0;
v134 = 0;
v135 = nullptr;
v52 = strlen(v46);
std::string::__init(&v133, v46, v52);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "ball", 4u);
v53 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v53 )
{
v76 = 5;
goto LABEL_76;
}
v133 = 0;
v134 = 0;
v135 = nullptr;
v54 = strlen(v46);
std::string::__init(&v133, v46, v54);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "bird", 4u);
v55 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v55 )
{
v76 = 6;
v8 = -5.0;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v56 = strlen(v46);
std::string::__init(&v133, v46, v56);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "dart", 4u);
v57 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v57 )
{
v76 = 7;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v58 = strlen(v46);
std::string::__init(&v133, v46, v58);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "robot", 5u);
v59 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v59 )
{
v76 = 8;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v60 = strlen(v46);
std::string::__init(&v133, v46, v60);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "spider", 6u);
v61 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v61 )
{
v76 = 9;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v62 = strlen(v46);
std::string::__init(&v133, v46, v62);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "death", 5u);
v63 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v63 )
{
v76 = 11;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v64 = strlen(v46);
std::string::__init(&v133, v46, v64);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "special", 7u);
v65 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v65 )
{
v76 = 10;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v66 = strlen(v46);
std::string::__init(&v133, v46, v66);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "swing", 5u);
v67 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v67 )
{
v76 = 13;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v68 = strlen(v46);
std::string::__init(&v133, v46, v68);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "jetpack", 7u);
v69 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v69 )
{
v76 = 14;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v70 = strlen(v46);
std::string::__init(&v133, v46, v70);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "shipstreak", 0xAu);
v71 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v71 )
{
v76 = 15;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v72 = strlen(v46);
std::string::__init(&v133, v46, v72);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "color", 5u);
v73 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v73 )
{
v76 = 2;
}
else
{
v133 = 0;
v134 = 0;
v135 = nullptr;
v74 = strlen(v46);
std::string::__init(&v133, v46, v74);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "color2", 6u);
v75 = sub_4230A6((unsigned __int8 *)&v133, (unsigned __int8 *)&v136);
std::string::~string((int)&v136);
std::string::~string((int)&v133);
if ( v75 )
v76 = 3;
else
v76 = 1;
}
}
}
}
}
}
}
}
}
LABEL_76:
v8 = 0.0;
}
LOWORD(v123) = -20561;
BYTE2(v123) = -81;
LOWORD(v124) = -1;
BYTE2(v124) = -1;
LOWORD(v118) = -1;
BYTE2(v118) = -1;
v9 = (float *)GJItemIcon::create(v76, v49, v123, v124, 0, 0, 0, v118);
if ( !v9 )
LABEL_78:
v9 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_achImage_001.png", v15);
LABEL_79:
v77 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 35.0, v8 + (float)(*((float *)this + 101) * 0.5));
v77(v9, v126);
(*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v9);
v78 = (cocos2d::CCNode *)(*(int (__fastcall **)(float *, int))(*(_DWORD *)v9 + 80))(v9, 1065353216);
v79 = cocos2d::CCNode::create(v78);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v79);
v80 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v79 + 92);
v81 = (float *)(*(int (__fastcall **)(float *))(*(_DWORD *)v9 + 96))(v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, *v81 + 32.0, *((float *)this + 101) * 0.5);
v80(v79, v126);
v136 = 0;
v137 = 0;
v138 = 0;
std::string::__init(&v136, "title", 5u);
v82 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v136);
std::string::~string((int)&v136);
v83 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v82);
v85 = cocos2d::CCLabelBMFont::create(v83, "goldFont.fnt", v84);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v79 + 228))(v79, v85);
v86 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v85 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 0.0, 0.5);
v86(v85, v126);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v85 + 80))(v85, 1060320051);
if ( *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v85 + 164))(v85) > 200.0 )
{
v87 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v85 + 80);
v88 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v85 + 164))(v85);
v87(v85, 200.0 / *v88);
}
v89 = *(void (__fastcall **)(int, int))(*(_DWORD *)v85 + 80);
if ( (*(float (__fastcall **)(int))(*(_DWORD *)v85 + 84))(v85) >= 0.7 )
v90 = 1060320051;
else
v90 = (*(int (__fastcall **)(int))(*(_DWORD *)v85 + 84))(v85);
v89(v85, v90);
v127[0] = 0;
v127[1] = 0;
v128 = nullptr;
if ( isAchievementEarned )
{
v91 = v129;
memset(v129, 0, sizeof(v129));
std::string::__init(v129, "achievedDescription", 0x13u);
v92 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, v129);
}
else
{
v91 = &v130;
v130 = 0;
v131 = 0;
v132 = nullptr;
std::string::__init(&v130, "unachievedDescription", 0x15u);
v92 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v130);
}
v93 = (char *)cocos2d::CCString::getCString(v92);
std::string::assign(v127, v93);
std::string::~string((int)v91);
v133 = 0;
v134 = 0;
v135 = nullptr;
std::string::__init(&v133, " ", 1u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 0.0, 1.0);
v94 = (float *)TextArea::create(
(int)&v133,
"chatFont.fnt",
1065353216,
1129381888,
(const cocos2d::CCPoint *)v126,
1101004800,
0,
0);
std::string::~string((int)&v133);
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v79 + 228))(v79, v94);
v95 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v94 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 0.0, 0.5);
v95(v94, v126);
v96 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v94 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 0.0, 5.0);
v96(v94, v126);
if ( (v127[0] & 1) != 0 )
v97 = v128;
else
v97 = (char *)v127 + 1;
v94[136] = 16.0;
v136 = 0;
v137 = 0;
v138 = 0;
v98 = strlen(v97);
std::string::__init(&v136, v97, v98);
TextArea::setString((int)v94, &v136);
std::string::~string((int)&v136);
v99 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v85 + 164))(v85) + 4);
v100 = (*(int (__fastcall **)(float *))(*(_DWORD *)v94 + 164))(v94);
v101 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v85 + 92);
v102 = *(float *)(v100 + 4) + 17.0;
v103 = (float)(v99 + v102) * 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 0.0, (float)((float)(v103 - (float)(v99 * 0.5)) + 3.0) + 2.0);
v101(v85, v126);
v104 = *(int (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v94 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 0.0, (float)(16.0 - (float)(v103 - (float)(v102 * 0.5))) - 2.0);
v105 = (AchievementManager *)v104(v94, v126);
v106 = (AchievementManager *)AchievementManager::sharedState(v105);
v107 = (const char *)AchievementManager::percentForAchievement(v106, CString);
if ( !v107 || v107 == (const char *)&dword_64 )
{
if ( !isAchievementEarned )
return std::string::~string((int)v127);
LABEL_95:
v114 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", v107);
v115 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v114 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 0.0, 0.5);
v115(v114, v126);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v114);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v114 + 80))(v114, 1061997773);
v116 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v114 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, *((float *)this + 100) - 40.0, *((float *)this + 101) * 0.5);
v116(v114, v126);
return std::string::~string((int)v127);
}
if ( isAchievementEarned )
goto LABEL_95;
v108 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v107);
v109 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v108);
v111 = cocos2d::CCLabelBMFont::create(v109, "goldFont.fnt", v110);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v111, 10);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v111 + 80))(v111, 1058642330);
v112 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v111 + 92);
v113 = (*(int (__fastcall **)(float *))(*(_DWORD *)v9 + 96))(v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v125, 0.0, -25.0);
cocos2d::CCPoint::operator+(v126, v113, v125);
v112(v111, v126);
return std::string::~string((int)v127);
}