// // AchievementCell::loadFromDict from 0x100242970 to 0x100243caa (4922 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x100242695 // // 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 __fastcall AchievementCell::loadFromDict(AchievementCell *a1, cocos2d::CCDictionary *a2) { cocos2d::CCString *v2; // rax const char *CString; // rbx AchievementManager *v4; // rax __int64 v5; // rbx float v6; // xmm0_4 std::string *v7; // rsi cocos2d::CCString *v8; // rax const char *v9; // r14 const char *v10; // rdi size_t v11; // rax size_t v12; // rbx char *v13; // r15 GJItemIcon *v14; // r13 cocos2d::CCSprite *v15; // rbx size_t v16; // r12 char *v17; // rax unsigned __int64 v18; // r15 __int64 v19; // r14 unsigned __int64 v20; // rsi char *v21; // rdx unsigned __int64 v22; // rcx bool v23; // zf unsigned __int64 v24; // r13 char *v25; // r12 std::string::size_type v26; // r13 char *data; // rbx std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v28; // al const char *v29; // r12 size_t v30; // r15 size_t v31; // rax size_t v32; // rbx _BYTE *v33; // r13 size_t v34; // r15 __int64 v35; // rax __int64 v36; // rbx char *v37; // rax unsigned __int64 v38; // rsi __int64 v39; // r8 char *v40; // rdx unsigned __int64 v41; // rdi cocos2d::CCString *v42; // rax const char *v43; // r13 cocos2d::CCString *v44; // rax size_t v45; // rax std::string::size_type v46; // rbx char *v47; // r14 size_t v48; // r15 std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v49; // r14 std::string::pointer v50; // rbx unsigned __int128 v51; // kr00_16 size_t v52; // rdx char v53; // r15 UnlockType v54; // edi size_t v55; // rax std::string::size_type v56; // rbx char *v57; // r14 size_t v58; // r15 std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v59; // r14 std::string::pointer v60; // rbx unsigned __int128 v61; // kr10_16 size_t v62; // rdx char v63; // r15 size_t v64; // rax std::string::size_type v65; // rbx char *v66; // r14 size_t v67; // r15 std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v68; // r14 std::string::pointer v69; // rbx unsigned __int128 v70; // kr20_16 size_t v71; // rdx char v72; // r15 char v73; // bl char v74; // bl char v75; // bl char v76; // bl char v77; // bl char v78; // bl char v79; // bl char v80; // bl char v81; // bl unsigned __int8 v82; // bl cocos2d::CCSprite *v83; // rax AchievementCell *v84; // r14 cocos2d::CCNode *v85; // r15 float *v86; // rax cocos2d::CCString *v87; // rbx const char *v88; // rax cocos2d::CCLabelBMFont *v89; // r14 float *v90; // rax cocos2d::CCString *v91; // rax const char *v92; // rax _DWORD *v93; // r12 const char *v94; // r15 size_t v95; // rax size_t v96; // rbx char *v97; // r13 size_t v98; // r15 unsigned __int64 v99; // r15 float v100; // xmm2_4 AchievementManager *v101; // rax int v102; // eax cocos2d::CCSprite *v103; // r14 cocos2d::CCString *v104; // rax const char *v105; // rax cocos2d::CCLabelBMFont *v106; // r14 __int64 v107; // rbx char v108; // [rsp+0h] [rbp-F0h] const char *v109; // [rsp+18h] [rbp-D8h] __int16 v110; // [rsp+20h] [rbp-D0h] BYREF char v111; // [rsp+22h] [rbp-CEh] void *v112; // [rsp+30h] [rbp-C0h] _QWORD v113[2]; // [rsp+38h] [rbp-B8h] BYREF void *v114; // [rsp+48h] [rbp-A8h] __int64 v115; // [rsp+50h] [rbp-A0h] AchievementCell *v116; // [rsp+58h] [rbp-98h] cocos2d::CCDictionary *v117; // [rsp+60h] [rbp-90h] size_t __dst; // [rsp+68h] [rbp-88h] BYREF unsigned __int64 v119; // [rsp+70h] [rbp-80h] void *v120; // [rsp+78h] [rbp-78h] unsigned __int64 v121; // [rsp+80h] [rbp-70h] const char *v122; // [rsp+88h] [rbp-68h] bool isAchievementEarned; // [rsp+97h] [rbp-59h] _BYTE __s2[24]; // [rsp+98h] [rbp-58h] BYREF std::string __s[2]; // [rsp+B0h] [rbp-40h] BYREF ((void (__fastcall *)(cocos2d::CCLayerColor *, __int64))a1->m_backgroundLayer->setOpacity)(a1->m_backgroundLayer, 255); v116 = a1; ((void (__fastcall *)(cocos2d::CCLayer *, __int64))v116->m_mainLayer->removeAllChildrenWithCleanup)( v116->m_mainLayer, 1); __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(__s[0].__r_.__value_.__s.__data_, "identifier"); v117 = a2; v2 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, __s); CString = cocos2d::CCString::getCString(v2); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v4 = AchievementManager::sharedState(); v109 = CString; isAchievementEarned = AchievementManager::isAchievementEarned(v4, CString); if ( !isAchievementEarned ) { v14 = (GJItemIcon *)cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lock_001.png"); ((void (__fastcall *)(GJItemIcon *, cocos2d::CCSprite *))v14->addChild)(v14, v15); sub_10028CBE0(__s, v14->m_obRect.size.width * 0.5, 0.5 * v14->m_obRect.size.height); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v15->setPosition)(v15, __s); memset(__s, 175, 3); ((void (__fastcall *)(GJItemIcon *, std::string *))v14->setColor)(v14, __s); v6 = 0.0; goto LABEL_188; } __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)8; strcpy(__s[0].__r_.__value_.__s.__data_, "icon"); v5 = cocos2d::CCDictionary::objectForKey_1(v117, __s); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v6 = 0.0; if ( !v5 ) goto LABEL_187; __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)8; strcpy(__s[0].__r_.__value_.__s.__data_, "icon"); v7 = __s; v8 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(v117, __s); v9 = cocos2d::CCString::getCString(v8); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v10 = v9; v11 = strlen(v9); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_228: sub_100006BF0(0.0); v12 = v11; if ( v11 >= 0x17 ) { v16 = 26; if ( (v11 | 7) != 0x17 ) v16 = (v11 | 7) + 1; v13 = (char *)operator new(v16); v120 = v13; __dst = v16 + 1; v119 = v12; goto LABEL_17; } LOBYTE(__dst) = 2 * v11; v13 = (char *)&__dst + 1; if ( v11 ) { LABEL_17: v10 = v13; v7 = (std::string *)v9; memmove(v13, v9, v12); } v13[v12] = 0; v115 = sub_10071F9E0(v10, v7); if ( (__dst & 1) != 0 ) { v17 = (char *)v120; v18 = v119; v19 = -1; if ( !v119 ) goto LABEL_28; LABEL_22: v20 = v18; v21 = v17; while ( *v21 != 95 ) { ++v21; if ( !--v20 ) { v21 = &v17[v18]; break; } } v19 = -1; if ( v21 != &v17[v18] ) v19 = v21 - v17; goto LABEL_28; } v18 = (unsigned __int8)__dst >> 1; v17 = (char *)&__dst + 1; v19 = -1; if ( (unsigned __int8)__dst >> 1 ) goto LABEL_22; LABEL_28: v22 = 0; v122 = (const char *)v18; do { if ( (__dst & 1) != 0 ) { v24 = v119; if ( v119 < v22 ) LABEL_224: sub_1000547C0(); v25 = (char *)v120; } else { v24 = (unsigned __int8)__dst >> 1; v25 = (char *)&__dst + 1; if ( v22 > v24 ) goto LABEL_224; } v26 = v24 - v22; if ( v26 >= v19 - v22 ) v26 = v19 - v22; if ( v26 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(0.0); v121 = v22; if ( v26 >= 0x17 ) { v30 = (v26 | 7) + 1; if ( (v26 | 7) == 0x17 ) v30 = 26; data = (char *)operator new(v30); __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __s[0].__r_.__value_.__r.__words[0] = v30 | 1; __s[0].__r_.__value_.__l.__size_ = v26; v18 = (unsigned __int64)v122; } else { __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v26); data = __s[0].__r_.__value_.__s.__data_; if ( !v26 ) { __s[0].__r_.__value_.__s.__data_[0] = 0; v28 = __s[0].__r_.__value_.__s.0; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_41; goto LABEL_48; } } memmove(data, &v25[v121], v26); data[v26] = 0; v28 = __s[0].__r_.__value_.__s.0; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_41: if ( !*(_BYTE *)&v28 && v121 == v18 ) goto LABEL_61; v29 = __s[0].__r_.__value_.__s.__data_; goto LABEL_51; } LABEL_48: if ( !__s[0].__r_.__value_.__l.__size_ && v121 == v18 ) goto LABEL_61; v29 = __s[0].__r_.__value_.__l.__data_; LABEL_51: v31 = strlen(v29); if ( v31 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(0.0); v32 = v31; if ( v31 >= 0x17 ) { v34 = (v31 | 7) + 1; if ( (v31 | 7) == 0x17 ) v34 = 26; v33 = operator new(v34); *(_QWORD *)&__s2[16] = v33; *(_QWORD *)__s2 = v34 | 1; *(_QWORD *)&__s2[8] = v32; v18 = (unsigned __int64)v122; LABEL_58: memmove(v33, v29, v32); goto LABEL_59; } __s2[0] = 2 * v31; v33 = &__s2[1]; if ( v31 ) goto LABEL_58; LABEL_59: v33[v32] = 0; v35 = sub_1007AB360(__s2); sub_10071FCD0(v115, v35); if ( (__s2[0] & 1) != 0 ) operator delete(*(void **)&__s2[16]); LABEL_61: v36 = -1; if ( v19 == -1 ) goto LABEL_62; if ( (__dst & 1) != 0 ) { v37 = (char *)v120; v38 = v119; v39 = v19 + 1; v121 = v19 + 1; if ( v119 <= v19 + 1 ) goto LABEL_62; } else { v38 = (unsigned __int8)__dst >> 1; v37 = (char *)&__dst + 1; v39 = v19 + 1; v121 = v19 + 1; if ( v38 <= v19 + 1 ) goto LABEL_62; } v40 = &v37[v39]; v41 = v38 + ~v19; while ( *v40 != 95 ) { ++v40; if ( !--v41 ) { v40 = &v37[v38]; break; } } v36 = v40 - v37; if ( v40 == &v37[v38] ) v36 = -1; LABEL_62: if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v23 = v19 == -1; v19 = v36; v22 = v121; } while ( !v23 ); if ( (__dst & 1) != 0 ) operator delete(v120); v6 = 0.0; if ( (unsigned int)sub_100720070(v115) < 2 ) goto LABEL_187; v42 = (cocos2d::CCString *)sub_1007200C0(v115, 0); v43 = cocos2d::CCString::getCString(v42); v44 = (cocos2d::CCString *)sub_1007200C0(v115, 1); LODWORD(v122) = cocos2d::CCString::intValue(v44); v45 = strlen(v43); if ( v45 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_228; v46 = v45; if ( v45 >= 0x17 ) { v48 = 26; if ( (v45 | 7) != 0x17 ) v48 = (v45 | 7) + 1; v47 = (char *)operator new(v48); __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v47; __s[0].__r_.__value_.__r.__words[0] = v48 + 1; __s[0].__r_.__value_.__l.__size_ = v46; goto LABEL_85; } __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v45); v47 = __s[0].__r_.__value_.__s.__data_; if ( v45 ) LABEL_85: memmove(v47, v43, v46); v47[v46] = 0; __s2[0] = 8; strcpy(&__s2[1], "ship"); v49 = __s[0].__r_.__value_.__s.0; v50 = __s[0].__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v51 = *(_OWORD *)&__s[0].__r_.__value_.__r.__words[1]; else v51 = __PAIR128__( (std::string *)((char *)&__s[0].__r_.__value_.__l.0 + 1), *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1); v52 = 4; if ( (unsigned __int64)v51 < 4 ) v52 = v51; v53 = ((_QWORD)v51 == 4) & (memcmp(*((const void **)&v51 + 1), &__s2[1], v52) == 0); if ( (*(_BYTE *)&v49 & 1) != 0 ) operator delete(v50); LODWORD(v121) = 0; v54 = 4; if ( v53 ) goto LABEL_186; v55 = strlen(v43); if ( v55 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_228; v56 = v55; if ( v55 >= 0x17 ) { v58 = 26; if ( (v55 | 7) != 0x17 ) v58 = (v55 | 7) + 1; v57 = (char *)operator new(v58); __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v57; __s[0].__r_.__value_.__r.__words[0] = v58 + 1; __s[0].__r_.__value_.__l.__size_ = v56; goto LABEL_101; } __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v55); v57 = __s[0].__r_.__value_.__s.__data_; if ( v55 ) LABEL_101: memmove(v57, v43, v56); v57[v56] = 0; __s2[0] = 8; strcpy(&__s2[1], "ball"); v59 = __s[0].__r_.__value_.__s.0; v60 = __s[0].__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v61 = *(_OWORD *)&__s[0].__r_.__value_.__r.__words[1]; else v61 = __PAIR128__( (std::string *)((char *)&__s[0].__r_.__value_.__l.0 + 1), *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1); v62 = 4; if ( (unsigned __int64)v61 < 4 ) v62 = v61; v63 = ((_QWORD)v61 == 4) & (memcmp(*((const void **)&v61 + 1), &__s2[1], v62) == 0); if ( (*(_BYTE *)&v59 & 1) != 0 ) operator delete(v60); v54 = 5; if ( v63 ) goto LABEL_186; v64 = strlen(v43); if ( v64 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_228; v65 = v64; if ( v64 >= 0x17 ) { v67 = 26; if ( (v64 | 7) != 0x17 ) v67 = (v64 | 7) + 1; v66 = (char *)operator new(v67); __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v66; __s[0].__r_.__value_.__r.__words[0] = v67 + 1; __s[0].__r_.__value_.__l.__size_ = v65; goto LABEL_117; } __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v64); v66 = __s[0].__r_.__value_.__s.__data_; if ( v64 ) LABEL_117: memmove(v66, v43, v65); v66[v65] = 0; __s2[0] = 8; strcpy(&__s2[1], "bird"); v68 = __s[0].__r_.__value_.__s.0; v69 = __s[0].__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v70 = *(_OWORD *)&__s[0].__r_.__value_.__r.__words[1]; else v70 = __PAIR128__( (std::string *)((char *)&__s[0].__r_.__value_.__l.0 + 1), *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1); v71 = 4; if ( (unsigned __int64)v70 < 4 ) v71 = v70; v72 = ((_QWORD)v70 == 4) & (memcmp(*((const void **)&v70 + 1), &__s2[1], v71) == 0); if ( (*(_BYTE *)&v68 & 1) != 0 ) operator delete(v69); if ( v72 ) { LODWORD(v121) = -1063256064; v54 = Bird; goto LABEL_186; } sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "dart", 0.0); v73 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_132; LABEL_129: v54 = Dart; if ( v73 ) goto LABEL_186; LABEL_133: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "robot", 0.0); v74 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_135: v54 = 8; if ( v74 ) goto LABEL_186; LABEL_139: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "spider", 0.0); v75 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_141: v54 = 9; if ( v75 ) goto LABEL_186; LABEL_145: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "death", 0.0); v76 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_147: v54 = Death; if ( v76 ) goto LABEL_186; LABEL_151: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "special", 0.0); v77 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_153: v54 = Streak; if ( v77 ) goto LABEL_186; LABEL_157: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "swing", 0.0); v78 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_159: v54 = GJItem|0x1; if ( v78 ) goto LABEL_186; LABEL_163: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "jetpack", 0.0); v79 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_165: v54 = GJItem|Col1; if ( v79 ) goto LABEL_186; LABEL_169: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "shipstreak", 0.0); v80 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_171: v54 = GJItem|Col2; if ( v80 ) goto LABEL_186; LABEL_175: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "color", 0.0); v81 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) { operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_177: v54 = Col1; if ( v81 ) goto LABEL_186; goto LABEL_181; } } else if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_177; } operator delete(__s[0].__r_.__value_.__l.__data_); v54 = Col1; if ( v81 ) goto LABEL_186; LABEL_181: sub_100030790(__s, v43, 0.0); sub_100030790(__s2, "color2", 0.0); v82 = sub_1001B0EE0((unsigned __int8 *)__s, __s2); if ( (__s2[0] & 1) != 0 ) operator delete(*(void **)&__s2[16]); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v54 = 2 * v82 + 1; goto LABEL_186; } } else if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_171; } operator delete(__s[0].__r_.__value_.__l.__data_); v54 = GJItem|Col2; if ( v80 ) goto LABEL_186; goto LABEL_175; } } else if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_165; } operator delete(__s[0].__r_.__value_.__l.__data_); v54 = GJItem|Col1; if ( v79 ) goto LABEL_186; goto LABEL_169; } } else if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_159; } operator delete(__s[0].__r_.__value_.__l.__data_); v54 = GJItem|0x1; if ( v78 ) goto LABEL_186; goto LABEL_163; } } else if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_153; } operator delete(__s[0].__r_.__value_.__l.__data_); v54 = Streak; if ( v77 ) goto LABEL_186; goto LABEL_157; } } else if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_147; } operator delete(__s[0].__r_.__value_.__l.__data_); v54 = Death; if ( v76 ) goto LABEL_186; goto LABEL_151; } } else if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_141; } operator delete(__s[0].__r_.__value_.__l.__data_); v54 = 9; if ( v75 ) goto LABEL_186; goto LABEL_145; } } else if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_135; } operator delete(__s[0].__r_.__value_.__l.__data_); v54 = 8; if ( v74 ) goto LABEL_186; goto LABEL_139; } if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_129; LABEL_132: operator delete(__s[0].__r_.__value_.__l.__data_); v54 = Dart; if ( !v73 ) goto LABEL_133; LABEL_186: v14 = GJItemIcon::create( v54, (int)v122, (cocos2d::ccColor3B)-5263441, (cocos2d::ccColor3B)-1, 0, 0, 0, (cocos2d::ccColor3B)-1); v6 = *(float *)&v121; if ( !v14 ) { LABEL_187: *(float *)&v121 = v6; v83 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_achImage_001.png"); v6 = *(float *)&v121; v14 = (GJItemIcon *)v83; } LABEL_188: v84 = v116; sub_10028CBE0(__s, 35.0, (float)(v116->m_height * 0.5) + v6); ((void (__fastcall *)(GJItemIcon *, std::string *))v14->setPosition)(v14, __s); ((void (__fastcall *)(cocos2d::CCLayer *, GJItemIcon *))v84->m_mainLayer->addChild)(v84->m_mainLayer, v14); ((void (__fastcall *)(GJItemIcon *, float))v14->setScale)(v14, 1.0); v85 = cocos2d::CCNode::create(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCNode *))v84->m_mainLayer->addChild)(v84->m_mainLayer, v85); v86 = (float *)((__int64 (__fastcall *)(GJItemIcon *))v14->getPosition)(v14); sub_10028CBE0(__s, *v86 + 32.0, 0.5 * v116->m_height); ((void (__fastcall *)(cocos2d::CCNode *, std::string *))v85->setPosition)(v85, __s); strcpy((char *)__s, "\ntitle"); v87 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(v117, __s); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v88 = cocos2d::CCString::getCString(v87); v89 = cocos2d::CCLabelBMFont::create_3(v88, "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *))v85->addChild)(v85, v89); sub_10028CBE0(__s, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v89->setAnchorPoint)(v89, __s); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v89->setScale)(v89, 0.69999999); if ( *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v89->getContentSize)(v89) > 200.0 ) { v90 = (float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v89->getContentSize)(v89); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v89->setScale)(v89, 200.0 / *v90); } if ( ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v89->getScale)(v89) < 0.69999999 ) ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v89->getScale)(v89, 0.69999999); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double))v89->setScale)(v89, COERCE_DOUBLE(1060320051)); memset(__s, 0, 24); if ( isAchievementEarned ) strcpy(__s2, "&achievedDescription"); else strcpy(__s2, "*unachievedDescription"); v91 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(v117, __s2); v92 = cocos2d::CCString::getCString(v91); std::string::assign(__s, v92); if ( (__s2[0] & 1) != 0 ) operator delete(*(void **)&__s2[16]); v110 = 8194; v111 = 0; sub_10028CBE0(__s2, 0.0, 1.0); v93 = (_DWORD *)TextArea::create(&v110, "chatFont.fnt", __s2, 0, 1.0, 190.0, 20.0); v121 = (unsigned __int64)v14; if ( (v110 & 1) != 0 ) operator delete(v112); ((void (__fastcall *)(cocos2d::CCNode *, _DWORD *))v85->addChild)(v85, v93); sub_10028CBE0(__s2, 0.0, 0.5); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v93 + 280LL))(v93, __s2); sub_10028CBE0(__s2, 0.0, 5.0); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v93 + 184LL))(v93, __s2); v93[160] = 1098907648; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v94 = __s[0].__r_.__value_.__l.__data_; else v94 = __s[0].__r_.__value_.__s.__data_; v95 = strlen(v94); if ( v95 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(0.0); v96 = v95; if ( v95 >= 0x17 ) { v122 = v94; v98 = 26; if ( (v95 | 7) != 0x17 ) v98 = (v95 | 7) + 1; v97 = (char *)operator new(v98); v114 = v97; v113[0] = v98 | 1; v113[1] = v96; v94 = v122; goto LABEL_211; } LOBYTE(v113[0]) = 2 * v95; v97 = (char *)v113 + 1; if ( v95 ) LABEL_211: memmove(v97, v94, v96); v97[v96] = 0; TextArea::setString(v93, v113); v99 = v121; if ( (v113[0] & 1) != 0 ) operator delete(v114); LODWORD(v122) = *(_DWORD *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v89->getContentSize)(v89) + 4); *(float *)&v115 = *(float *)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v93 + 312LL))(v93) + 4) + 17.0; v100 = *(float *)&v122 * 0.5; *(float *)&v122 = (float)(*(float *)&v122 + *(float *)&v115) * 0.5; sub_10028CBE0(__s2, 0.0, (float)((float)(*(float *)&v122 - v100) + 3.0) + 2.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v89->setPosition)(v89, __s2); sub_10028CBE0(__s2, 0.0, (float)((float)((float)(*(float *)&v115 * 0.5) - *(float *)&v122) + 16.0) + -2.0); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v93 + 184LL))(v93, __s2); v101 = AchievementManager::sharedState(); v102 = AchievementManager::percentForAchievement(v101, v109); if ( v102 && v102 != 100 ) { if ( !isAchievementEarned ) { v104 = (cocos2d::CCString *)sub_1007AB580("%i%%", v108); v105 = cocos2d::CCString::getCString(v104); v106 = cocos2d::CCLabelBMFont::create_3(v105, "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v116->m_mainLayer->addChild_0)( v116->m_mainLayer, v106, 10); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v106->setScale)(v106, 0.60000002); v107 = (*(__int64 (__fastcall **)(unsigned __int64))(*(_QWORD *)v99 + 192LL))(v99); sub_10028CBE0(&__dst, 0.0, -25.0); sub_10028CCE0(__s2, v107); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v106->setPosition)(v106, __s2); goto LABEL_221; } LABEL_219: v103 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); sub_10028CBE0(__s2, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))v103->setAnchorPoint)(v103, __s2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v116->m_mainLayer->addChild)(v116->m_mainLayer, v103); ((void (__fastcall *)(cocos2d::CCSprite *, float))v103->setScale)(v103, 0.80000001); sub_10028CBE0(__s2, v116->m_width + -40.0, v116->m_height * 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))v103->setPosition)(v103, __s2); goto LABEL_221; } if ( isAchievementEarned ) goto LABEL_219; LABEL_221: if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); }