// // AchievementCell::loadFromDict from 0x60d700 to 0x60ef5c (6236 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x62074c // > @ 0x52a28 // // 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 // void AchievementCell::loadFromDict(AchievementCell *a1, cocos2d::CCDictionary *a2) { cocos2d::CCString *v4; // x0 char *v5; // x0 AchievementManager *v6; // x0 bool isAchievementEarned; // w0 float v8; // s9 GJItemIcon *v9; // x20 cocos2d::CCSprite *v10; // x19 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x3 void (__fastcall *v13)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x19 cocos2d::CCNode *v14; // x25 void (__fastcall *v15)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19 float *v16; // x0 cocos2d::CCString *v17; // x19 char *v18; // x0 cocos2d::CCLabelBMFont *v19; // x19 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x26 float width; // s0 void (__fastcall *v22)(cocos2d::CCLabelBMFont *__hidden, float); // x26 long double v23; // q0 cocos2d::CCString *v24; // x0 size_t v25; // x0 stl::StringData::Internal *m_data; // x1 char *v27; // x0 float *v28; // x26 char *v29; // x0 void (__fastcall *v30)(float *, void **); // x25 void (__fastcall *v31)(float *, void **); // x25 char *v32; // x1 char *v33; // x0 float height; // s8 float v35; // s0 void (__fastcall *v36)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 float v37; // s1 float v38; // s8 float v39; // s1 float v40; // s8 void (__fastcall *v41)(float *, void **); // x19 AchievementManager *v42; // x0 unsigned int v43; // w0 cocos2d::CCNode *v44; // x19 void (__fastcall *v45)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20 void (__fastcall *v46)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20 char *v47; // x21 char *v48; // x19 __int64 v49; // x20 char *v50; // x0 cocos2d::CCString *v51; // x0 char *v52; // x19 char *v53; // x0 cocos2d::CCArray *v54; // x0 __int64 v55; // x20 __int64 v56; // x3 unsigned __int64 v57; // x19 __int64 v58; // x26 const std::string *v59; // x1 cocos2d::CCObject *v60; // x0 char *v61; // x0 char *v62; // x0 unsigned int *v63; // x1 int v64; // w2 cocos2d::CCString *v65; // x0 size_t v66; // x0 unsigned int *v67; // x1 int v68; // w2 char *v69; // x0 char *v70; // x0 unsigned int *v71; // x21 int v72; // w0 unsigned int *v73; // x1 int v74; // w2 void (__fastcall *setScale)(cocos2d::CCLabelBMFont *__hidden, float); // x26 float *v76; // x0 cocos2d::CCString *v77; // x0 char *v78; // x19 cocos2d::CCString *v79; // x0 int v80; // w25 size_t v81; // x2 int v82; // w27 _DWORD *v83; // x4 char *v84; // x0 unsigned __int64 v85; // x27 size_t v86; // x2 int v87; // w2 _DWORD *v88; // x5 __int64 v89; // x27 int *p_m_unknown2; // x0 UnlockType v91; // w0 unsigned int *v92; // x1 int v93; // w2 cocos2d::CCString *v94; // x0 GJItemIcon *v95; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 __int64 v97; // x21 unsigned int *v98; // x1 int v99; // w2 unsigned int *v100; // x1 int v101; // w2 unsigned int *v102; // x1 int v103; // w2 unsigned int *v104; // x1 int v105; // w2 unsigned int *v106; // x1 unsigned int *v107; // x4 unsigned int v108; // w3 int v109; // w1 unsigned int *v110; // x3 int v111; // w1 unsigned int *v112; // x1 int v113; // w2 unsigned int *v114; // x1 int v115; // w2 unsigned int *v116; // x1 int v117; // w2 _DWORD *v118; // x27 size_t v119; // x2 int v120; // w5 _DWORD *v121; // x6 char *v122; // x0 unsigned int *v123; // x2 int v124; // w1 unsigned int *p_data; // x5 int data; // w1 unsigned int *v127; // x4 int v128; // w1 size_t v129; // x2 int v130; // w27 char *v131; // x3 unsigned int *v132; // x27 int v133; // w1 size_t v134; // x2 int v135; // w27 char *v136; // x3 int v137; // w27 int v138; // w27 int v139; // w27 int v140; // w27 int v141; // w27 int v142; // w27 int v143; // w27 int v144; // w19 unsigned __int64 v145; // [xsp+78h] [xbp+78h] char *v146; // [xsp+78h] [xbp+78h] char *v147; // [xsp+78h] [xbp+78h] __int64 v148; // [xsp+80h] [xbp+80h] unsigned __int64 v149; // [xsp+80h] [xbp+80h] _DWORD *v150; // [xsp+80h] [xbp+80h] char *v151; // [xsp+80h] [xbp+80h] char *v152; // [xsp+80h] [xbp+80h] _DWORD *v153; // [xsp+88h] [xbp+88h] _DWORD *v154; // [xsp+88h] [xbp+88h] unsigned __int64 v155; // [xsp+88h] [xbp+88h] unsigned __int64 v156; // [xsp+88h] [xbp+88h] unsigned __int64 v157; // [xsp+88h] [xbp+88h] _BOOL4 v158; // [xsp+94h] [xbp+94h] char *CString; // [xsp+98h] [xbp+98h] const char *v161; // [xsp+A8h] [xbp+A8h] cocos2d::CCArray *v162; // [xsp+A8h] [xbp+A8h] const char *v163; // [xsp+A8h] [xbp+A8h] cocos2d::CCArray *v164; // [xsp+A8h] [xbp+A8h] cocos2d::CCArray *v165; // [xsp+A8h] [xbp+A8h] int v166; // [xsp+A8h] [xbp+A8h] cocos2d::CCArray *v167; // [xsp+A8h] [xbp+A8h] int v168; // [xsp+A8h] [xbp+A8h] cocos2d::CCArray *v169; // [xsp+A8h] [xbp+A8h] int v170; // [xsp+A8h] [xbp+A8h] cocos2d::CCArray *v171; // [xsp+A8h] [xbp+A8h] int v172; // [xsp+A8h] [xbp+A8h] cocos2d::ccColor3B v173; // [xsp+C0h] [xbp+C0h] cocos2d::ccColor3B v174; // [xsp+C8h] [xbp+C8h] char *v175; // [xsp+D0h] [xbp+D0h] BYREF std::string v176; // [xsp+D8h] [xbp+D8h] BYREF std::string v177; // [xsp+E0h] [xbp+E0h] BYREF void *v178; // [xsp+E8h] [xbp+E8h] BYREF void *v179; // [xsp+F0h] [xbp+F0h] BYREF a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 0xFFFFFFFFLL); a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1); sub_D153B8((int)&v179, "identifier"); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, (const std::string *)&v179); CString = (char *)cocos2d::CCString::getCString(v4); v5 = (char *)v179 - 24; if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v102 = (unsigned int *)((char *)v179 - 8); do v103 = __ldaxr(v102); while ( __stlxr(v103 - 1, v102) ); } else { v103 = *((_DWORD *)v179 - 2); *((_DWORD *)v179 - 2) = v103 - 1; } if ( v103 <= 0 ) operator delete(v5); } v6 = AchievementManager::sharedState(); isAchievementEarned = AchievementManager::isAchievementEarned(v6, CString); v158 = isAchievementEarned; if ( !isAchievementEarned ) { v8 = 0.0; v9 = (GJItemIcon *)cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); v10 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lock_001.png"); v9->addChild(v9, v10); setPosition = v10->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, v9->m_obRect.size.width * 0.5, v9->m_obRect.size.height * 0.5); setPosition(v10, (const cocos2d::CCPoint *)&v179); setColor = v9->setColor; LOWORD(v179) = -20561; BYTE2(v179) = -81; setColor(v9, (const cocos2d::ccColor3B *)&v179); goto LABEL_4; } sub_D153B8((int)&v179, "icon"); v49 = cocos2d::CCDictionary::objectForKey(a2, (const std::string *)&v179); v50 = (char *)v179 - 24; if ( (char *)v179 - 24 == (char *)&qword_124B6B0 ) goto LABEL_20; if ( &pthread_create ) { v92 = (unsigned int *)((char *)v179 - 8); do v93 = __ldaxr(v92); while ( __stlxr(v93 - 1, v92) ); } else { v93 = *((_DWORD *)v179 - 2); *((_DWORD *)v179 - 2) = v93 - 1; } if ( v93 > 0 ) { LABEL_20: if ( !v49 ) { LABEL_42: v8 = 0.0; LABEL_43: v9 = (GJItemIcon *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_achImage_001.png"); goto LABEL_4; } } else { operator delete(v50); if ( !v49 ) goto LABEL_42; } sub_D153B8((int)&v179, "icon"); v51 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, (const std::string *)&v179); v52 = (char *)cocos2d::CCString::getCString(v51); v53 = (char *)v179 - 24; if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v112 = (unsigned int *)((char *)v179 - 8); do v113 = __ldaxr(v112); while ( __stlxr(v113 - 1, v112) ); } else { v113 = *((_DWORD *)v179 - 2); *((_DWORD *)v179 - 2) = v113 - 1; } if ( v113 <= 0 ) operator delete(v53); } v54 = (cocos2d::CCArray *)sub_D153B8((int)&v177, v52); v162 = (cocos2d::CCArray *)cocos2d::CCArray::create(v54); v55 = sub_D168E0((int)&v177, "_", 0, 1u); v56 = v55; v57 = 0; v58 = *((_QWORD *)v177.m_data.m_data - 3); while ( 1 ) { sub_D14F84(&v178, &v177, v57, v56); if ( v58 != v57 || *((_QWORD *)v178 - 3) ) { sub_D153B8((int)&v179, (char *)v178); v60 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v179, v59); cocos2d::CCArray::addObject(v162, v60); v61 = (char *)v179 - 24; if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v73 = (unsigned int *)((char *)v179 - 8); do v74 = __ldaxr(v73); while ( __stlxr(v74 - 1, v73) ); } else { v74 = *((_DWORD *)v179 - 2); *((_DWORD *)v179 - 2) = v74 - 1; } if ( v74 <= 0 ) operator delete(v61); } } if ( v55 == -1 ) break; v57 = v55 + 1; v55 = sub_D168E0((int)&v177, "_", (int)v55 + 1, 1u); v62 = (char *)v178 - 24; if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v63 = (unsigned int *)((char *)v178 - 8); do v64 = __ldaxr(v63); while ( __stlxr(v64 - 1, v63) ); } else { v64 = *((_DWORD *)v178 - 2); *((_DWORD *)v178 - 2) = v64 - 1; } if ( v64 <= 0 ) operator delete(v62); } v56 = v55 - v57; if ( *((_QWORD *)v177.m_data.m_data - 3) < v57 ) sub_D13C5C( "%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::substr", v57, *((_QWORD *)v177.m_data.m_data - 3)); } v69 = (char *)v178 - 24; if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v114 = (unsigned int *)((char *)v178 - 8); do v115 = __ldaxr(v114); while ( __stlxr(v115 - 1, v114) ); } else { v115 = *((_DWORD *)v178 - 2); *((_DWORD *)v178 - 2) = v115 - 1; } if ( v115 <= 0 ) operator delete(v69); } v70 = (char *)v177.m_data.m_data - 24; if ( (__int64 *)v177.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v116 = (unsigned int *)((char *)v177.m_data.m_data - 8); do v117 = __ldaxr(v116); while ( __stlxr(v117 - 1, v116) ); } else { v117 = *((_DWORD *)v177.m_data.m_data - 2); *((_DWORD *)v177.m_data.m_data - 2) = v117 - 1; } if ( v117 <= 0 ) operator delete(v70); } if ( (unsigned int)cocos2d::CCArray::count(v162) <= 1 ) goto LABEL_42; v77 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v162, 0); v78 = (char *)cocos2d::CCString::getCString(v77); v79 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v162, 1u); v80 = cocos2d::CCString::intValue(v79); sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "ship"); v153 = v178; v164 = (cocos2d::CCArray *)v179; v145 = *((_QWORD *)v178 - 3); if ( *((_QWORD *)v179 - 3) > v145 ) v81 = *((_QWORD *)v178 - 3); else v81 = *((_QWORD *)v179 - 3); v148 = *((_QWORD *)v179 - 3); v82 = memcmp(v178, v179, v81); v83 = v153; if ( !v82 ) { v82 = 0x7FFFFFFF; if ( (__int64)(v145 - v148) <= 0x7FFFFFFF ) { if ( (__int64)(v145 - v148) >= (__int64)0xFFFFFFFF80000000LL ) v82 = v145 - v148; else v82 = 0x80000000; } } if ( &v164[-1].m_unknown2 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { p_data = (unsigned int *)&v164[-1].data; do data = __ldaxr(p_data); while ( __stlxr(data - 1, p_data) ); } else { data = (int)v164[-1].data; LODWORD(v164[-1].data) = data - 1; } if ( data <= 0 ) operator delete(&v164[-1].m_unknown2); v83 = v178; } v84 = (char *)(v83 - 6); if ( v83 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v107 = v83 - 2; do v108 = __ldaxr(v107); while ( __stlxr(v108 - 1, v107) ); v109 = v108; } else { v109 = *(v83 - 2); *(v83 - 2) = v109 - 1; } if ( v109 <= 0 ) operator delete(v84); } if ( v82 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "ball"); v154 = v178; v85 = *((_QWORD *)v178 - 3); v165 = (cocos2d::CCArray *)v179; v149 = *((_QWORD *)v179 - 3); if ( v149 > v85 ) v86 = *((_QWORD *)v178 - 3); else v86 = *((_QWORD *)v179 - 3); v87 = memcmp(v178, v179, v86); v88 = v154; if ( !v87 ) { v87 = 0x7FFFFFFF; v89 = v85 - v149; if ( v89 <= 0x7FFFFFFF ) { if ( v89 >= (__int64)0xFFFFFFFF80000000LL ) v87 = v89; else v87 = 0x80000000; } } p_m_unknown2 = &v165[-1].m_unknown2; if ( &v165[-1].m_unknown2 != (int *)&qword_124B6B0 ) { v127 = (unsigned int *)&v165[-1].data; if ( &pthread_create ) { do v128 = __ldaxr(v127); while ( __stlxr(v128 - 1, v127) ); } else { v128 = (int)v165[-1].data; LODWORD(v165[-1].data) = v128 - 1; } if ( v128 <= 0 ) { v170 = v87; operator delete(p_m_unknown2); v88 = v178; v87 = v170; } else { v88 = v178; } } if ( v88 - 6 != (_DWORD *)&qword_124B6B0 ) { v110 = v88 - 2; if ( &pthread_create ) { do v111 = __ldaxr(v110); while ( __stlxr(v111 - 1, v110) ); } else { v111 = *(v88 - 2); *(v88 - 2) = v111 - 1; } if ( v111 <= 0 ) { v166 = v87; operator delete(v88 - 6); v87 = v166; } } if ( v87 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "bird"); v118 = v179; v150 = v178; v155 = *((_QWORD *)v178 - 3); v167 = *((cocos2d::CCArray **)v179 - 3); if ( (unsigned __int64)v167 > v155 ) v119 = *((_QWORD *)v178 - 3); else v119 = *((_QWORD *)v179 - 3); v120 = memcmp(v178, v179, v119); v121 = v150; if ( !v120 ) { v120 = 0x7FFFFFFF; if ( (__int64)(v155 - (_QWORD)v167) <= 0x7FFFFFFF ) { if ( (__int64)(v155 - (_QWORD)v167) >= (__int64)0xFFFFFFFF80000000LL ) v120 = v155 - (_DWORD)v167; else v120 = 0x80000000; } } v122 = (char *)(v118 - 6); if ( v118 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v132 = v118 - 2; do v133 = __ldaxr(v132); while ( __stlxr(v133 - 1, v132) ); } else { v133 = *(v118 - 2); *(v118 - 2) = v133 - 1; } if ( v133 <= 0 ) { v172 = v120; operator delete(v122); v121 = v178; v120 = v172; } else { v121 = v178; } } if ( v121 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v123 = v121 - 2; do v124 = __ldaxr(v123); while ( __stlxr(v124 - 1, v123) ); } else { v124 = *(v121 - 2); *(v121 - 2) = v124 - 1; } if ( v124 <= 0 ) { v168 = v120; operator delete(v121 - 6); v120 = v168; } } if ( v120 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "dart"); v146 = (char *)v178; v151 = (char *)v179; v156 = *((_QWORD *)v178 - 3); if ( *((_QWORD *)v179 - 3) > v156 ) v129 = *((_QWORD *)v178 - 3); else v129 = *((_QWORD *)v179 - 3); v169 = *((cocos2d::CCArray **)v179 - 3); v130 = memcmp(v178, v179, v129); v131 = v146; if ( !v130 ) { v130 = 0x7FFFFFFF; if ( (__int64)(v156 - (_QWORD)v169) <= 0x7FFFFFFF ) { if ( (__int64)(v156 - (_QWORD)v169) >= (__int64)0xFFFFFFFF80000000LL ) v130 = v156 - (_DWORD)v169; else v130 = 0x80000000; } } if ( v151 - 24 != (char *)&qword_124B6B0 ) { sub_4DB620(v151 - 24); v131 = (char *)v178; } if ( v131 - 24 != (char *)&qword_124B6B0 ) sub_4DB620(v131 - 24); if ( v130 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "robot"); v147 = (char *)v178; v152 = (char *)v179; v157 = *((_QWORD *)v178 - 3); if ( *((_QWORD *)v179 - 3) > v157 ) v134 = *((_QWORD *)v178 - 3); else v134 = *((_QWORD *)v179 - 3); v171 = *((cocos2d::CCArray **)v179 - 3); v135 = memcmp(v178, v179, v134); v136 = v147; if ( !v135 ) { v135 = 0x7FFFFFFF; if ( (__int64)(v157 - (_QWORD)v171) <= 0x7FFFFFFF ) { if ( (__int64)(v157 - (_QWORD)v171) >= (__int64)0xFFFFFFFF80000000LL ) v135 = v157 - (_DWORD)v171; else v135 = 0x80000000; } } if ( v152 - 24 != (char *)&qword_124B6B0 ) { sub_4DB620(v152 - 24); v136 = (char *)v178; } if ( v136 - 24 != (char *)&qword_124B6B0 ) sub_4DB620(v136 - 24); if ( v135 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "spider"); v137 = sub_D17014(&v178, &v179); if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v179 - 24); if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v178 - 24); if ( v137 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "death"); v138 = sub_D17014(&v178, &v179); if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v179 - 24); if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v178 - 24); if ( v138 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "special"); v139 = sub_D17014(&v178, &v179); if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v179 - 24); if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v178 - 24); if ( v139 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "swing"); v140 = sub_D17014(&v178, &v179); if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v179 - 24); if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v178 - 24); if ( v140 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "jetpack"); v141 = sub_D17014(&v178, &v179); if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v179 - 24); if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v178 - 24); if ( v141 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "shipstreak"); v142 = sub_D17014(&v178, &v179); if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v179 - 24); if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v178 - 24); if ( v142 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "color"); v143 = sub_D17014(&v178, &v179); if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v179 - 24); if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v178 - 24); if ( v143 ) { sub_D153B8((int)&v178, v78); sub_D153B8((int)&v179, "color2"); v144 = sub_D17014(&v178, &v179); if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v179 - 24); if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v178 - 24); if ( v144 ) { v8 = 0.0; v91 = 1; } else { v91 = Col2; v8 = 0.0; } } else { v91 = Col1; v8 = 0.0; } } else { v91 = GJItem|Col2; v8 = 0.0; } } else { v91 = GJItem|Col1; v8 = 0.0; } } else { v91 = GJItem|0x1; v8 = 0.0; } } else { v91 = Streak; v8 = 0.0; } } else { v91 = Death; v8 = 0.0; } } else { v91 = 9; v8 = 0.0; } } else { v91 = 8; v8 = 0.0; } } else { v91 = Dart; v8 = 0.0; } } else { v91 = Bird; v8 = -5.0; } } else { v8 = 0.0; v91 = 5; } } else { v91 = 4; v8 = 0.0; } *(_WORD *)&v173.r = -20561; v173.b = -81; *(_WORD *)&v174.r = -1; v174.b = -1; v9 = GJItemIcon::create(v91, v80, v173, v174, 0, 0, 0, (cocos2d::ccColor3B)&unk_FFFFFF); if ( !v9 ) goto LABEL_43; LABEL_4: v13 = v9->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, 35.0, v8 + (float)(a1->m_height * 0.5)); v13(v9, (const cocos2d::CCPoint *)&v179); a1->m_mainLayer->addChild(a1->m_mainLayer, v9); v9->setScale(v9, 1.0); v14 = cocos2d::CCNode::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v14); v15 = v14->setPosition; v16 = (float *)v9->getPosition(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, *v16 + 32.0, a1->m_height * 0.5); v15(v14, (const cocos2d::CCPoint *)&v179); sub_D153B8((int)&v179, "title"); v17 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, (const std::string *)&v179); v18 = (char *)v179 - 24; if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v104 = (unsigned int *)((char *)v179 - 8); do v105 = __ldaxr(v104); while ( __stlxr(v105 - 1, v104) ); } else { v105 = *((_DWORD *)v179 - 2); *((_DWORD *)v179 - 2) = v105 - 1; } if ( v105 <= 0 ) operator delete(v18); } cocos2d::CCString::getCString(v17); v19 = cocos2d::CCLabelBMFont::create(); v14->addChild(v14, v19); setAnchorPoint = v19->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, 0.0, 0.5); setAnchorPoint(v19, (const cocos2d::CCPoint *)&v179); v19->setScale(v19, 0.7); width = v19->getContentSize(v19)->width; if ( width > 200.0 ) { setScale = v19->setScale; v76 = (float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v19->getContentSize)(v19, width); setScale(v19, 200.0 / *v76); } v22 = v19->setScale; if ( v19->getScale(v19) < 0.7 ) v19->getScale(v19); else LODWORD(v23) = 1060320051; v22(v19, v23); v175 = &byte_124B6C8; if ( !v158 ) { sub_D153B8((int)&v177, "unachievedDescription"); v24 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v177); v161 = cocos2d::CCString::getCString(v24); v25 = strlen(v161); sub_D1798C(&v175, v161, v25); m_data = v177.m_data.m_data; v27 = (char *)v177.m_data.m_data - 24; if ( (__int64 *)v177.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_11; if ( &pthread_create ) { v106 = (unsigned int *)((char *)v177.m_data.m_data - 8); do v68 = __ldaxr(v106); while ( __stlxr(v68 - 1, v106) ); goto LABEL_112; } LABEL_123: v68 = *((_DWORD *)m_data - 2); *((_DWORD *)m_data - 2) = v68 - 1; goto LABEL_112; } sub_D153B8((int)&v176, "achievedDescription"); v65 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v176); v163 = cocos2d::CCString::getCString(v65); v66 = strlen(v163); sub_D1798C(&v175, v163, v66); m_data = v176.m_data.m_data; v27 = (char *)v176.m_data.m_data - 24; if ( (__int64 *)v176.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_11; if ( !&pthread_create ) goto LABEL_123; v67 = (unsigned int *)((char *)v176.m_data.m_data - 8); do v68 = __ldaxr(v67); while ( __stlxr(v68 - 1, v67) ); LABEL_112: if ( v68 <= 0 ) operator delete(v27); LABEL_11: sub_D153B8((int)&v178, " "); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, 0.0, 1.0); v28 = (float *)TextArea::create((__int64)&v178, "chatFont.fnt", (const cocos2d::CCPoint *)&v179, 0, 1.0, 190.0, 20.0); v29 = (char *)v178 - 24; if ( (char *)v178 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v100 = (unsigned int *)((char *)v178 - 8); do v101 = __ldaxr(v100); while ( __stlxr(v101 - 1, v100) ); } else { v101 = *((_DWORD *)v178 - 2); *((_DWORD *)v178 - 2) = v101 - 1; } if ( v101 <= 0 ) operator delete(v29); } v14->addChild(v14, (cocos2d::CCNode *)v28); v30 = *(void (__fastcall **)(float *, void **))(*(_QWORD *)v28 + 280LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, 0.0, 0.5); v30(v28, &v179); v31 = *(void (__fastcall **)(float *, void **))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, 0.0, 5.0); v31(v28, &v179); v32 = v175; v28[156] = 16.0; sub_D153B8((int)&v179, v32); TextArea::setString((__int64)v28, (const void **)&v179); v33 = (char *)v179 - 24; if ( (char *)v179 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v98 = (unsigned int *)((char *)v179 - 8); do v99 = __ldaxr(v98); while ( __stlxr(v99 - 1, v98) ); } else { v99 = *((_DWORD *)v179 - 2); *((_DWORD *)v179 - 2) = v99 - 1; } if ( v99 <= 0 ) operator delete(v33); } height = v19->getContentSize(v19)->height; v35 = *(float *)((*(__int64 (__fastcall **)(float *))(*(_QWORD *)v28 + 312LL))(v28) + 4) + 17.0; v36 = v19->setPosition; v37 = height * 0.5; v38 = height + v35; v39 = -(float)(v37 - (float)(v38 * 0.5)); v40 = -(float)((float)(v35 * 0.5) - (float)(v38 * 0.5)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, 0.0, (float)(v39 + 3.0) + 2.0); v36(v19, (const cocos2d::CCPoint *)&v179); v41 = *(void (__fastcall **)(float *, void **))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, 0.0, (float)(16.0 - v40) - 2.0); v41(v28, &v179); v42 = AchievementManager::sharedState(); v43 = AchievementManager::percentForAchievement(v42, CString); if ( v43 == 100 || !v43 ) { if ( !v158 ) { v47 = v175; v48 = v175 - 24; if ( v175 - 24 == (char *)&qword_124B6B0 ) return; goto LABEL_47; } goto LABEL_16; } if ( v158 ) { LABEL_16: v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); v45 = v44->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, 0.0, 0.5); v45(v44, (const cocos2d::CCPoint *)&v179); a1->m_mainLayer->addChild(a1->m_mainLayer, v44); v44->setScale(v44, 0.8); v46 = v44->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v179, a1->m_width - 40.0, a1->m_height * 0.5); goto LABEL_17; } v94 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", (const char *)v43); cocos2d::CCString::getCString(v94); v44 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v44, 10); v44->setScale(v44, 0.6); v95 = v9; getPosition = v9->getPosition; v46 = v44->setPosition; v97 = (__int64)getPosition(v95); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, 0.0, -25.0); cocos2d::CCPoint::operator+(&v179, v97, &v178); LABEL_17: v46(v44, (const cocos2d::CCPoint *)&v179); v47 = v175; v48 = v175 - 24; if ( v175 - 24 == (char *)&qword_124B6B0 ) return; LABEL_47: if ( &pthread_create ) { v71 = (unsigned int *)(v47 - 8); do v72 = __ldaxr(v71); while ( __stlxr(v72 - 1, v71) ); } else { v72 = *((_DWORD *)v47 - 2); *((_DWORD *)v47 - 2) = v72 - 1; } if ( v72 <= 0 ) operator delete(v48); }
GD Web Decomp Icon

GD Web Decomp

Raw Source