// // AchievementCell::loadFromDict from 0x741d58 to 0x7430f4 (5020 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x74d570 // > @ 0x72d30 // // 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:52:45 +0000 // __int64 __fastcall AchievementCell::loadFromDict(AchievementCell *this, cocos2d::CCDictionary *a2) { cocos2d::CCString *v4; // x0 AchievementManager *v5; // x0 AchievementManager *v6; // x0 bool isAchievementEarned; // w0 const char *v8; // x1 _BOOL4 v9; // w27 float v10; // s8 float *v11; // x24 const char *v12; // x1 __int64 v13; // x20 void (__fastcall *v14)(__int64, __int64 *); // x21 void (__fastcall *v15)(float *, __int64 *); // x3 void (__fastcall *v16)(float *, __int64 *); // x20 cocos2d::CCNode *v17; // x0 __int64 v18; // x28 void (__fastcall *v19)(__int64, __int64 *); // x20 float *v20; // x0 cocos2d::CCString *v21; // x20 cocos2d::CCLabelBMFont *v22; // x0 const char *v23; // x2 __int64 v24; // x22 void (__fastcall *v25)(__int64, __int64 *); // x20 float v26; // s0 void (__fastcall *v27)(__int64, long double); // x20 long double v28; // q0 cocos2d::CCString *v29; // x0 char *v30; // x0 float *v31; // x20 void (__fastcall *v32)(float *, __int64 *); // x26 void (__fastcall *v33)(float *, __int64 *); // x26 char v34; // w0 const char *v35; // x1 size_t v36; // x0 float v37; // s8 float v38; // s0 void (__fastcall *v39)(__int64, __int64 *); // x21 float v40; // s1 float v41; // s8 float v42; // s1 float v43; // s8 __int64 (__fastcall *v44)(float *, __int64 *); // x21 AchievementManager *v45; // x0 AchievementManager *v46; // x0 unsigned int v47; // w0 const char *v48; // x1 __int64 v49; // x20 void (__fastcall *v50)(__int64, __int64 *); // x21 void (__fastcall *v51)(__int64, __int64 *); // x21 const char *v52; // x1 __int64 v53; // x20 cocos2d::CCString *v54; // x0 char *v55; // x19 size_t v56; // x0 cocos2d::CCArray *v57; // x0 __int64 v58; // x0 unsigned __int8 v59; // w2 cocos2d::CCArray *v60; // x28 unsigned __int64 v61; // x24 _BYTE *v62; // x19 __int64 v63; // x22 unsigned __int64 v64; // x19 size_t v65; // x3 unsigned __int64 v66; // x2 char *i; // x1 size_t v68; // x2 char *v69; // x1 int v70; // w1 const char *v71; // x1 size_t v72; // x0 cocos2d::CCObject *v73; // x0 char *v74; // x2 unsigned __int64 v75; // x0 cocos2d::CCString *v76; // x0 char *v77; // x0 void (__fastcall *v79)(__int64, float); // x20 float *v80; // x0 __int64 *v81; // x20 cocos2d::CCString *v82; // x0 cocos2d::CCLabelBMFont *v83; // x0 const char *v84; // x2 __int64 v85; // x20 void (__fastcall *v86)(__int64, __int64 *); // x22 __int64 v87; // x23 char *v88; // x3 char *v89; // x0 _BYTE *v90; // x22 cocos2d::CCString *v91; // x0 char *v92; // x19 cocos2d::CCString *v93; // x0 unsigned int v94; // w21 size_t v95; // x0 _BOOL4 v96; // w22 size_t v97; // x0 _BOOL4 v98; // w22 __int64 v99; // x0 size_t v100; // x0 _BOOL4 v101; // w22 size_t v102; // x0 _BOOL4 v103; // w22 std::logic_error *exception; // x20 size_t v105; // x0 _BOOL4 v106; // w22 size_t v107; // x0 _BOOL4 v108; // w22 size_t v109; // x0 _BOOL4 v110; // w22 size_t v111; // x0 _BOOL4 v112; // w22 size_t v113; // x0 _BOOL4 v114; // w22 size_t v115; // x0 _BOOL4 v116; // w22 size_t v117; // x0 _BOOL4 v118; // w22 size_t v119; // x0 _BOOL4 v120; // w22 size_t v121; // x0 _BOOL4 v122; // w19 char *CString; // [xsp+70h] [xbp+70h] char *v124; // [xsp+78h] [xbp+78h] char *v125; // [xsp+78h] [xbp+78h] int v126; // [xsp+80h] [xbp+80h] int v127; // [xsp+88h] [xbp+88h] char v128[8]; // [xsp+90h] [xbp+90h] BYREF __int64 v129; // [xsp+98h] [xbp+98h] BYREF __int64 v130[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v131; // [xsp+B0h] [xbp+B0h] __int64 v132[2]; // [xsp+B8h] [xbp+B8h] BYREF void *v133; // [xsp+C8h] [xbp+C8h] __int64 v134; // [xsp+D0h] [xbp+D0h] BYREF unsigned __int64 v135; // [xsp+D8h] [xbp+D8h] void *v136; // [xsp+E0h] [xbp+E0h] __int64 v137; // [xsp+E8h] [xbp+E8h] BYREF __int64 v138; // [xsp+F0h] [xbp+F0h] void *v139; // [xsp+F8h] [xbp+F8h] AchievementManager *v140; // [xsp+100h] [xbp+100h] BYREF __int64 v141; // [xsp+108h] [xbp+108h] void *v142; // [xsp+110h] [xbp+110h] (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 66) + 1168LL))(*((_QWORD *)this + 66), 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "identifier", 0xAu); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v140); CString = (char *)cocos2d::CCString::getCString(v4); v5 = (AchievementManager *)(unsigned __int8)v140; if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); v6 = (AchievementManager *)AchievementManager::sharedState(v5); isAchievementEarned = AchievementManager::isAchievementEarned(v6, CString); v9 = isAchievementEarned; if ( !isAchievementEarned ) { v10 = 0.0; v11 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerSquare_001.png", v8); v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lock_001.png", v12); (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v11 + 456LL))(v11, v13); v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, v11[108] * 0.5, v11[109] * 0.5); v14(v13, &v129); v15 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v11 + 960LL); LOWORD(v129) = -20561; BYTE2(v129) = -81; v15(v11, &v129); goto LABEL_5; } v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "icon", 4u); v53 = cocos2d::CCDictionary::objectForKey(a2, &v140); if ( ((unsigned __int8)v140 & 1) == 0 ) { if ( v53 ) goto LABEL_26; LABEL_59: v10 = 0.0; goto LABEL_60; } operator delete(v142); if ( !v53 ) goto LABEL_59; LABEL_26: v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "icon", 4u); v54 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v140); v55 = (char *)cocos2d::CCString::getCString(v54); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); v134 = 0; v135 = 0; v136 = nullptr; v56 = strlen(v55); v57 = (cocos2d::CCArray *)std::string::__init(&v134, v55, v56); v58 = cocos2d::CCArray::create(v57); v59 = v134; v60 = (cocos2d::CCArray *)v58; if ( (v134 & 1) == 0 ) { LODWORD(v61) = (int)(unsigned __int8)v134 >> 1; if ( !(_DWORD)v61 ) goto LABEL_30; v62 = (char *)&v134 + 1; v63 = -1; v81 = (__int64 *)((char *)&v134 + (int)v61 + 1); if ( v81 == (__int64 *)((char *)&v134 + 1) ) { LABEL_64: v61 = (int)v61; goto LABEL_32; } LABEL_77: v90 = v62; if ( *v62 == 95 ) { v63 = 0; } else { do { if ( v81 == (__int64 *)++v90 ) { v63 = -1; goto LABEL_121; } } while ( *v90 != 95 ); v63 = v90 - v62; } LABEL_121: LODWORD(v61) = (int)(unsigned __int8)v134 >> 1; if ( (v134 & 1) != 0 ) { v61 = v135; goto LABEL_32; } goto LABEL_64; } v61 = v135; v62 = v136; if ( v135 ) { v81 = (__int64 *)((char *)v136 + v135); if ( (char *)v136 + v135 == v136 ) goto LABEL_31; goto LABEL_77; } LABEL_30: v61 = 0; LABEL_31: v63 = -1; LABEL_32: v137 = 0; v138 = 0; v64 = 0; v139 = nullptr; v65 = v63; if ( (v134 & 1) == 0 ) goto LABEL_51; LABEL_33: v66 = v135; if ( v64 > v135 ) { LABEL_119: exception = (std::logic_error *)_cxa_allocate_exception(0x10u); std::logic_error::logic_error(exception, "basic_string"); *(_QWORD *)exception = off_1536D68; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))std::logic_error::~logic_error); } for ( i = (char *)v136; ; i = (char *)&v134 + 1 ) { v68 = v66 - v64; v69 = &i[v64]; if ( v68 > v65 ) v68 = v65; std::string::__init(&v137, v69, v68); v70 = v137 & 1; if ( v70 ) { if ( v64 == v61 ) { v70 = 1; if ( !v138 ) goto LABEL_44; } v71 = (const char *)v139; } else { if ( v64 == v61 && !((int)(unsigned __int8)v137 >> 1) ) goto LABEL_44; v71 = (char *)&v137 + 1; } v140 = nullptr; v141 = 0; v142 = nullptr; v125 = (char *)v71; v72 = strlen(v71); std::string::__init((__int64 *)&v140, v125, v72); v73 = (cocos2d::CCObject *)cocos2d::CCString::create(&v140); cocos2d::CCArray::addObject(v60, v73); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); v70 = v137 & 1; LABEL_44: if ( v63 == -1 ) break; v64 = v63 + 1; if ( (v134 & 1) != 0 ) { v74 = (char *)v136; v75 = v135; } else { v75 = (unsigned __int8)v134 >> 1; v74 = (char *)&v134 + 1; } v63 = -1; if ( v64 >= v75 || (v88 = &v74[v64], v89 = &v74[v75], &v74[v64] == v89) ) { if ( !v70 ) goto LABEL_49; } else if ( v74[v64] == 95 ) { LABEL_86: v63 = v88 - v74; if ( !v70 ) goto LABEL_49; } else { while ( v89 != ++v88 ) { if ( *v88 == 95 ) goto LABEL_86; } v63 = -1; if ( !v70 ) { LABEL_49: v59 = v134; goto LABEL_50; } } operator delete(v139); v59 = v134; LABEL_50: v137 = 0; v65 = v63 - v64; v138 = 0; v139 = nullptr; if ( (v59 & 1) != 0 ) goto LABEL_33; LABEL_51: v66 = v59 >> 1; if ( v64 > v66 ) goto LABEL_119; } if ( v70 ) operator delete(v139); if ( (v134 & 1) != 0 ) operator delete(v136); if ( (unsigned int)cocos2d::CCArray::count(v60) <= 1 ) goto LABEL_59; v91 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v60, 0); v92 = (char *)cocos2d::CCString::getCString(v91); v93 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v60, 1u); v94 = cocos2d::CCString::intValue(v93); v137 = 0; v138 = 0; v139 = nullptr; v95 = strlen(v92); std::string::__init(&v137, v92, v95); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "ship", 4u); v96 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) { operator delete(v139); if ( v96 ) goto LABEL_106; LABEL_97: v137 = 0; v138 = 0; v139 = nullptr; v97 = strlen(v92); std::string::__init(&v137, v92, v97); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "ball", 4u); v98 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v98 ) { v10 = 0.0; v99 = 5; } else { v137 = 0; v138 = 0; v139 = nullptr; v100 = strlen(v92); std::string::__init(&v137, v92, v100); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "bird", 4u); v101 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v101 ) { v99 = 6; v10 = -5.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v102 = strlen(v92); std::string::__init(&v137, v92, v102); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "dart", 4u); v103 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v103 ) { v99 = 7; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v105 = strlen(v92); std::string::__init(&v137, v92, v105); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "robot", 5u); v106 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v106 ) { v99 = 8; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v107 = strlen(v92); std::string::__init(&v137, v92, v107); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "spider", 6u); v108 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v108 ) { v99 = 9; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v109 = strlen(v92); std::string::__init(&v137, v92, v109); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "death", 5u); v110 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v110 ) { v99 = 11; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v111 = strlen(v92); std::string::__init(&v137, v92, v111); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "special", 7u); v112 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v112 ) { v99 = 10; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v113 = strlen(v92); std::string::__init(&v137, v92, v113); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "swing", 5u); v114 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v114 ) { v99 = 13; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v115 = strlen(v92); std::string::__init(&v137, v92, v115); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "jetpack", 7u); v116 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v116 ) { v99 = 14; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v117 = strlen(v92); std::string::__init(&v137, v92, v117); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "shipstreak", 0xAu); v118 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v118 ) { v99 = 15; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v119 = strlen(v92); std::string::__init(&v137, v92, v119); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "color", 5u); v120 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v120 ) { v99 = 2; v10 = 0.0; } else { v137 = 0; v138 = 0; v139 = nullptr; v121 = strlen(v92); std::string::__init(&v137, v92, v121); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "color2", 6u); v122 = sub_733D1C((__int64)&v137, (__int64)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); if ( (v137 & 1) != 0 ) operator delete(v139); if ( v122 ) { v99 = 3; v10 = 0.0; } else { v10 = 0.0; v99 = 1; } } } } } } } } } } } } } else { if ( !v96 ) goto LABEL_97; LABEL_106: v99 = 4; v10 = 0.0; } LOWORD(v126) = -20561; BYTE2(v126) = -81; LOWORD(v127) = -1; BYTE2(v127) = -1; v11 = (float *)GJItemIcon::create(v99, v94, v126, v127, 0, 0, 0, 0xFFFFFF); if ( !v11 ) LABEL_60: v11 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_achImage_001.png", v52); LABEL_5: v16 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v11 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, 35.0, v10 + (float)(*((float *)this + 131) * 0.5)); v16(v11, &v129); (*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v11); v17 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(float *, float))(*(_QWORD *)v11 + 160LL))(v11, 1.0); v18 = cocos2d::CCNode::create(v17); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v18); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL); v20 = (float *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)v11 + 192LL))(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, *v20 + 32.0, *((float *)this + 131) * 0.5); v19(v18, &v129); v140 = nullptr; v141 = 0; v142 = nullptr; std::string::__init((__int64 *)&v140, "title", 5u); v21 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); v22 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v21); v24 = cocos2d::CCLabelBMFont::create(v22, "goldFont.fnt", v23); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 456LL))(v18, v24); v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, 0.0, 0.5); v25(v24, &v129); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.7); v26 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 328LL))(v24); if ( v26 > 200.0 ) { v79 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL); v80 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 328LL))(v24, v26); v79(v24, 200.0 / *v80); } v27 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v24 + 160LL); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v24 + 168LL))(v24) < 0.7 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v24 + 168LL))(v24); else LODWORD(v28) = 1060320051; v27(v24, v28); v130[0] = 0; v130[1] = 0; v131 = nullptr; if ( v9 ) { v132[0] = 0; v132[1] = 0; v133 = nullptr; std::string::__init(v132, "achievedDescription", 0x13u); v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, v132); v30 = (char *)cocos2d::CCString::getCString(v29); std::string::assign(v130, v30); if ( (v132[0] & 1) != 0 ) operator delete(v133); } else { v134 = 0; v135 = 0; v136 = nullptr; std::string::__init(&v134, "unachievedDescription", 0x15u); v76 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v134); v77 = (char *)cocos2d::CCString::getCString(v76); std::string::assign(v130, v77); if ( (v134 & 1) != 0 ) operator delete(v136); } v137 = 0; v138 = 0; v139 = nullptr; std::string::__init(&v137, &byte_11E1A70, 1u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, 0.0, 1.0); v31 = (float *)TextArea::create( (char *)&v137, "chatFont.fnt", (const cocos2d::CCPoint *)&v129, 0, 0, 1.0, 209.0, 20.0); if ( (v137 & 1) != 0 ) operator delete(v139); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v18 + 456LL))(v18, v31); v32 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v31 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, 0.0, 0.5); v32(v31, &v129); v33 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v31 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, 0.0, 5.0); v33(v31, &v129); v34 = v130[0]; v35 = (char *)v130 + 1; v31[162] = 16.0; if ( (v34 & 1) != 0 ) v35 = (const char *)v131; v124 = (char *)v35; v140 = nullptr; v141 = 0; v142 = nullptr; v36 = strlen(v35); std::string::__init((__int64 *)&v140, v124, v36); TextArea::setString((__int64 *)v31, (char *)&v140); if ( ((unsigned __int8)v140 & 1) != 0 ) operator delete(v142); v37 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 328LL))(v24) + 4); v38 = *(float *)((*(__int64 (__fastcall **)(float *))(*(_QWORD *)v31 + 328LL))(v31) + 4) + 17.0; v39 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL); v40 = v37 * 0.5; v41 = v37 + v38; v42 = -(float)(v40 - (float)(v41 * 0.5)); v43 = -(float)((float)(v38 * 0.5) - (float)(v41 * 0.5)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, 0.0, (float)(v42 + 3.0) + 2.0); v39(v24, &v129); v44 = *(__int64 (__fastcall **)(float *, __int64 *))(*(_QWORD *)v31 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, 0.0, (float)(16.0 - v43) - 2.0); v45 = (AchievementManager *)v44(v31, &v129); v46 = (AchievementManager *)AchievementManager::sharedState(v45); v47 = AchievementManager::percentForAchievement(v46, CString); if ( v47 == 100 || !v47 ) { if ( v9 ) { LABEL_23: v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", v48); v50 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v49 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, 0.0, 0.5); v50(v49, &v129); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v49); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v49 + 160LL))(v49, 0.8); v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v49 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v129, *((float *)this + 130) - 40.0, *((float *)this + 131) * 0.5); v51(v49, &v129); } } else { if ( v9 ) goto LABEL_23; v82 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", (const char *)v47); v83 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v82); v85 = cocos2d::CCLabelBMFont::create(v83, "goldFont.fnt", v84); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v85, 10); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v85 + 160LL))(v85, 0.6); v86 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v85 + 184LL); v87 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v11 + 192LL))(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, 0.0, -25.0); cocos2d::CCPoint::operator+(&v129, v87); v86(v85, &v129); } if ( (v130[0] & 1) != 0 ) operator delete(v131); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source