// // AchievementCell::loadFromDict from 0x100228490 to 0x1002297cd (4925 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x100228068 // // This function is hookable on this platform (idp: pc, 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:27:06 +0000 // void __fastcall AchievementCell::loadFromDict(__int64 a1, __int64 a2) { std::string::pointer data; // rdi __int64 CString; // rbx __int64 v4; // rax __int64 v5; // rbx float v6; // xmm0_4 __int64 v7; // rax const char *v8; // r14 const char *v9; // rdi size_t v10; // rax size_t v11; // rbx char *v12; // r15 float *v13; // r13 __int64 v14; // rbx size_t v15; // r12 char *v16; // rax unsigned __int64 v17; // r15 __int64 v18; // r14 unsigned __int64 v19; // rsi char *v20; // rdx unsigned __int64 v21; // rcx bool v22; // zf unsigned __int64 v23; // r13 char *v24; // r12 std::string::size_type v25; // r13 char *v26; // rbx std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v27; // al const char *v28; // r12 size_t v29; // r15 size_t v30; // rax size_t v31; // rbx _BYTE *v32; // r13 size_t v33; // r15 __int64 v34; // rax __int64 v35; // rbx char *v36; // rax unsigned __int64 v37; // rsi __int64 v38; // r8 char *v39; // rdx unsigned __int64 v40; // rdi __int64 v41; // rax const char *v42; // r13 __int64 v43; // rax size_t v44; // rax std::string::size_type v45; // rbx char *v46; // r14 size_t v47; // r15 std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v48; // r14 std::string::pointer v49; // rbx unsigned __int128 v50; // kr00_16 size_t v51; // rdx char v52; // r15 int v53; // edi size_t v54; // rax std::string::size_type v55; // rbx char *v56; // r14 size_t v57; // r15 std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v58; // r14 std::string::pointer v59; // rbx unsigned __int128 v60; // kr10_16 size_t v61; // rdx char v62; // r15 size_t v63; // rax std::string::size_type v64; // rbx char *v65; // r14 size_t v66; // r15 std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v67; // r14 std::string::pointer v68; // rbx unsigned __int128 v69; // kr20_16 size_t v70; // rdx char v71; // r15 char v72; // bl char v73; // bl char v74; // bl char v75; // bl char v76; // bl char v77; // bl char v78; // bl char v79; // bl char v80; // bl unsigned __int8 v81; // bl __int64 v82; // rax __int64 v83; // r14 __int64 v84; // r15 float *v85; // rax __int64 v86; // rbx __int64 v87; // rax __int64 v88; // r14 float *v89; // rax __int64 v90; // rax const std::string::value_type *v91; // rax _DWORD *v92; // r12 const char *v93; // r15 size_t v94; // rax size_t v95; // rbx char *v96; // r13 size_t v97; // r15 unsigned __int64 v98; // r15 float v99; // xmm2_4 __int64 v100; // rax int v101; // eax __int64 v102; // r14 __int64 v103; // rax __int64 v104; // rax __int64 v105; // r14 __int64 v106; // rbx char v107; // [rsp+0h] [rbp-F0h] __int64 v108; // [rsp+18h] [rbp-D8h] __int16 v109; // [rsp+20h] [rbp-D0h] BYREF char v110; // [rsp+22h] [rbp-CEh] void *v111; // [rsp+30h] [rbp-C0h] _QWORD v112[2]; // [rsp+38h] [rbp-B8h] BYREF void *v113; // [rsp+48h] [rbp-A8h] __int64 v114; // [rsp+50h] [rbp-A0h] __int64 v115; // [rsp+58h] [rbp-98h] __int64 v116; // [rsp+60h] [rbp-90h] size_t __dst; // [rsp+68h] [rbp-88h] BYREF unsigned __int64 v118; // [rsp+70h] [rbp-80h] void *v119; // [rsp+78h] [rbp-78h] unsigned __int64 v120; // [rsp+80h] [rbp-70h] const char *v121; // [rsp+88h] [rbp-68h] char isAchievementEarned; // [rsp+97h] [rbp-59h] _BYTE __s2[24]; // [rsp+98h] [rbp-58h] BYREF std::string __s[2]; // [rsp+B0h] [rbp-40h] BYREF (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 528) + 1168LL))(*(_QWORD *)(a1 + 528), 255); v115 = a1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v115 + 536) + 584LL))(*(_QWORD *)(v115 + 536), 1); __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(__s[0].__r_.__value_.__s.__data_, "identifier"); v116 = a2; data = (std::string::pointer)cocos2d::CCDictionary::objectForKey(a2, __s); CString = cocos2d::CCString::getCString(data); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { data = __s[0].__r_.__value_.__l.__data_; operator delete(__s[0].__r_.__value_.__l.__data_); } v4 = AchievementManager::sharedState(data, __s); v108 = CString; isAchievementEarned = AchievementManager::isAchievementEarned(v4, CString); if ( !isAchievementEarned ) { v13 = (float *)cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); v14 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lock_001.png"); (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v13 + 456LL))(v13, v14); sub_100278250(__s, v13[108] * 0.5, 0.5 * v13[109]); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v14 + 184LL))(v14, __s); memset(__s, 175, 3); (*(void (__fastcall **)(float *, std::string *))(*(_QWORD *)v13 + 960LL))(v13, __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(v116, __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 = cocos2d::CCDictionary::objectForKey(v116, __s); v8 = (const char *)cocos2d::CCString::getCString(v7); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v9 = v8; v10 = strlen(v8); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_228: sub_100003630(); v11 = v10; if ( v10 >= 0x17 ) { v15 = 26; if ( (v10 | 7) != 0x17 ) v15 = (v10 | 7) + 1; v12 = (char *)operator new(v15); v119 = v12; __dst = v15 + 1; v118 = v11; goto LABEL_17; } LOBYTE(__dst) = 2 * v10; v12 = (char *)&__dst + 1; if ( v10 ) { LABEL_17: v9 = v12; memmove(v12, v8, v11); } v12[v11] = 0; v114 = sub_1007FE900(v9); if ( (__dst & 1) != 0 ) { v16 = (char *)v119; v17 = v118; v18 = -1; if ( !v118 ) goto LABEL_28; LABEL_22: v19 = v17; v20 = v16; while ( *v20 != 95 ) { ++v20; if ( !--v19 ) { v20 = &v16[v17]; break; } } v18 = -1; if ( v20 != &v16[v17] ) v18 = v20 - v16; goto LABEL_28; } v17 = (unsigned __int8)__dst >> 1; v16 = (char *)&__dst + 1; v18 = -1; if ( (unsigned __int8)__dst >> 1 ) goto LABEL_22; LABEL_28: v21 = 0; v121 = (const char *)v17; do { if ( (__dst & 1) != 0 ) { v23 = v118; if ( v118 < v21 ) LABEL_224: sub_100056810(); v24 = (char *)v119; } else { v23 = (unsigned __int8)__dst >> 1; v24 = (char *)&__dst + 1; if ( v21 > v23 ) goto LABEL_224; } v25 = v23 - v21; if ( v25 >= v18 - v21 ) v25 = v18 - v21; if ( v25 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v120 = v21; if ( v25 >= 0x17 ) { v29 = (v25 | 7) + 1; if ( (v25 | 7) == 0x17 ) v29 = 26; v26 = (char *)operator new(v29); __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v26; __s[0].__r_.__value_.__r.__words[0] = v29 | 1; __s[0].__r_.__value_.__l.__size_ = v25; v17 = (unsigned __int64)v121; } else { __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v25); v26 = __s[0].__r_.__value_.__s.__data_; if ( !v25 ) { __s[0].__r_.__value_.__s.__data_[0] = 0; v27 = __s[0].__r_.__value_.__s.0; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_41; goto LABEL_48; } } memmove(v26, &v24[v120], v25); v26[v25] = 0; v27 = __s[0].__r_.__value_.__s.0; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_41: if ( !*(_BYTE *)&v27 && v120 == v17 ) goto LABEL_61; v28 = __s[0].__r_.__value_.__s.__data_; goto LABEL_51; } LABEL_48: if ( !__s[0].__r_.__value_.__l.__size_ && v120 == v17 ) goto LABEL_61; v28 = __s[0].__r_.__value_.__l.__data_; LABEL_51: v30 = strlen(v28); if ( v30 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v31 = v30; if ( v30 >= 0x17 ) { v33 = (v30 | 7) + 1; if ( (v30 | 7) == 0x17 ) v33 = 26; v32 = operator new(v33); *(_QWORD *)&__s2[16] = v32; *(_QWORD *)__s2 = v33 | 1; *(_QWORD *)&__s2[8] = v31; v17 = (unsigned __int64)v121; LABEL_58: memmove(v32, v28, v31); goto LABEL_59; } __s2[0] = 2 * v30; v32 = &__s2[1]; if ( v30 ) goto LABEL_58; LABEL_59: v32[v31] = 0; v34 = sub_10088E600(__s2); sub_1007FEBF0(v114, v34); if ( (__s2[0] & 1) != 0 ) operator delete(*(void **)&__s2[16]); LABEL_61: v35 = -1; if ( v18 == -1 ) goto LABEL_62; if ( (__dst & 1) != 0 ) { v36 = (char *)v119; v37 = v118; v38 = v18 + 1; v120 = v18 + 1; if ( v118 <= v18 + 1 ) goto LABEL_62; } else { v37 = (unsigned __int8)__dst >> 1; v36 = (char *)&__dst + 1; v38 = v18 + 1; v120 = v18 + 1; if ( v37 <= v18 + 1 ) goto LABEL_62; } v39 = &v36[v38]; v40 = v37 + ~v18; while ( *v39 != 95 ) { ++v39; if ( !--v40 ) { v39 = &v36[v37]; break; } } v35 = v39 - v36; if ( v39 == &v36[v37] ) v35 = -1; LABEL_62: if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v22 = v18 == -1; v18 = v35; v21 = v120; } while ( !v22 ); if ( (__dst & 1) != 0 ) operator delete(v119); v6 = 0.0; if ( (unsigned int)sub_1007FEF90(v114) < 2 ) goto LABEL_187; v41 = sub_1007FEFE0(v114, 0); v42 = (const char *)cocos2d::CCString::getCString(v41); v43 = sub_1007FEFE0(v114, 1); LODWORD(v121) = cocos2d::CCString::intValue(v43); v44 = strlen(v42); if ( v44 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_228; v45 = v44; if ( v44 >= 0x17 ) { v47 = 26; if ( (v44 | 7) != 0x17 ) v47 = (v44 | 7) + 1; v46 = (char *)operator new(v47); __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v46; __s[0].__r_.__value_.__r.__words[0] = v47 + 1; __s[0].__r_.__value_.__l.__size_ = v45; goto LABEL_85; } __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v44); v46 = __s[0].__r_.__value_.__s.__data_; if ( v44 ) LABEL_85: memmove(v46, v42, v45); v46[v45] = 0; __s2[0] = 8; strcpy(&__s2[1], "ship"); v48 = __s[0].__r_.__value_.__s.0; v49 = __s[0].__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v50 = *(_OWORD *)&__s[0].__r_.__value_.__r.__words[1]; else v50 = __PAIR128__( (std::string *)((char *)&__s[0].__r_.__value_.__l.0 + 1), *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1); v51 = 4; if ( (unsigned __int64)v50 < 4 ) v51 = v50; v52 = ((_QWORD)v50 == 4) & (memcmp(*((const void **)&v50 + 1), &__s2[1], v51) == 0); if ( (*(_BYTE *)&v48 & 1) != 0 ) operator delete(v49); LODWORD(v120) = 0; v53 = 4; if ( v52 ) goto LABEL_186; v54 = strlen(v42); if ( v54 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_228; v55 = v54; if ( v54 >= 0x17 ) { v57 = 26; if ( (v54 | 7) != 0x17 ) v57 = (v54 | 7) + 1; v56 = (char *)operator new(v57); __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v56; __s[0].__r_.__value_.__r.__words[0] = v57 + 1; __s[0].__r_.__value_.__l.__size_ = v55; goto LABEL_101; } __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v54); v56 = __s[0].__r_.__value_.__s.__data_; if ( v54 ) LABEL_101: memmove(v56, v42, v55); v56[v55] = 0; __s2[0] = 8; strcpy(&__s2[1], "ball"); v58 = __s[0].__r_.__value_.__s.0; v59 = __s[0].__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v60 = *(_OWORD *)&__s[0].__r_.__value_.__r.__words[1]; else v60 = __PAIR128__( (std::string *)((char *)&__s[0].__r_.__value_.__l.0 + 1), *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1); v61 = 4; if ( (unsigned __int64)v60 < 4 ) v61 = v60; v62 = ((_QWORD)v60 == 4) & (memcmp(*((const void **)&v60 + 1), &__s2[1], v61) == 0); if ( (*(_BYTE *)&v58 & 1) != 0 ) operator delete(v59); v53 = 5; if ( v62 ) goto LABEL_186; v63 = strlen(v42); if ( v63 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_228; v64 = v63; if ( v63 >= 0x17 ) { v66 = 26; if ( (v63 | 7) != 0x17 ) v66 = (v63 | 7) + 1; v65 = (char *)operator new(v66); __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v65; __s[0].__r_.__value_.__r.__words[0] = v66 + 1; __s[0].__r_.__value_.__l.__size_ = v64; goto LABEL_117; } __s[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v63); v65 = __s[0].__r_.__value_.__s.__data_; if ( v63 ) LABEL_117: memmove(v65, v42, v64); v65[v64] = 0; __s2[0] = 8; strcpy(&__s2[1], "bird"); v67 = __s[0].__r_.__value_.__s.0; v68 = __s[0].__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v69 = *(_OWORD *)&__s[0].__r_.__value_.__r.__words[1]; else v69 = __PAIR128__( (std::string *)((char *)&__s[0].__r_.__value_.__l.0 + 1), *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1); v70 = 4; if ( (unsigned __int64)v69 < 4 ) v70 = v69; v71 = ((_QWORD)v69 == 4) & (memcmp(*((const void **)&v69 + 1), &__s2[1], v70) == 0); if ( (*(_BYTE *)&v67 & 1) != 0 ) operator delete(v68); if ( v71 ) { LODWORD(v120) = -1063256064; v53 = 6; goto LABEL_186; } sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "dart"); v72 = sub_1001914B0((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: v53 = 7; if ( v72 ) goto LABEL_186; LABEL_133: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "robot"); v73 = sub_1001914B0((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: v53 = 8; if ( v73 ) goto LABEL_186; LABEL_139: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "spider"); v74 = sub_1001914B0((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: v53 = 9; if ( v74 ) goto LABEL_186; LABEL_145: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "death"); v75 = sub_1001914B0((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: v53 = 11; if ( v75 ) goto LABEL_186; LABEL_151: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "special"); v76 = sub_1001914B0((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: v53 = 10; if ( v76 ) goto LABEL_186; LABEL_157: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "swing"); v77 = sub_1001914B0((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: v53 = 13; if ( v77 ) goto LABEL_186; LABEL_163: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "jetpack"); v78 = sub_1001914B0((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: v53 = 14; if ( v78 ) goto LABEL_186; LABEL_169: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "shipstreak"); v79 = sub_1001914B0((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: v53 = 15; if ( v79 ) goto LABEL_186; LABEL_175: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "color"); v80 = sub_1001914B0((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: v53 = 2; if ( v80 ) 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_); v53 = 2; if ( v80 ) goto LABEL_186; LABEL_181: sub_10000E4E0(__s, v42); sub_10000E4E0(__s2, "color2"); v81 = sub_1001914B0((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_); v53 = 2 * v81 + 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_); v53 = 15; if ( v79 ) 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_); v53 = 14; if ( v78 ) 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_); v53 = 13; if ( v77 ) 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_); v53 = 10; if ( v76 ) 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_); v53 = 11; if ( v75 ) 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_); v53 = 9; if ( v74 ) 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_); v53 = 8; if ( v73 ) 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_); v53 = 7; if ( !v72 ) goto LABEL_133; LABEL_186: v13 = (float *)GJItemIcon::create(v53, (_DWORD)v121, 11513775, 0xFFFFFF, 0, 0, 0, 0xFFFFFF); v6 = *(float *)&v120; if ( !v13 ) { LABEL_187: *(float *)&v120 = v6; v82 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_achImage_001.png"); v6 = *(float *)&v120; v13 = (float *)v82; } LABEL_188: v83 = v115; sub_100278250(__s, 35.0, (float)(*(float *)(v115 + 524) * 0.5) + v6); (*(void (__fastcall **)(float *, std::string *))(*(_QWORD *)v13 + 184LL))(v13, __s); (*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(v83 + 536) + 456LL))(*(_QWORD *)(v83 + 536), v13); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v13 + 160LL))(v13, 1.0); v84 = cocos2d::CCNode::create(v13); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v83 + 536) + 456LL))(*(_QWORD *)(v83 + 536), v84); v85 = (float *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)v13 + 192LL))(v13); sub_100278250(__s, *v85 + 32.0, 0.5 * *(float *)(v115 + 524)); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v84 + 184LL))(v84, __s); strcpy((char *)__s, "\ntitle"); v86 = cocos2d::CCDictionary::objectForKey(v116, __s); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v87 = cocos2d::CCString::getCString(v86); v88 = cocos2d::CCLabelBMFont::create_3(v87, "goldFont.fnt"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v84 + 456LL))(v84, v88); sub_100278250(__s, 0.0, 0.5); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v88 + 296LL))(v88, __s); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 160LL))(v88, 0.69999999); if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v88 + 328LL))(v88) > 200.0 ) { v89 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v88 + 328LL))(v88); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 160LL))(v88, 200.0 / *v89); } if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v88 + 168LL))(v88) < 0.69999999 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 168LL))(v88, 0.69999999); (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v88 + 160LL))(v88, COERCE_DOUBLE(1060320051)); memset(__s, 0, 24); if ( isAchievementEarned ) strcpy(__s2, "&achievedDescription"); else strcpy(__s2, "*unachievedDescription"); v90 = cocos2d::CCDictionary::valueForKey(v116, __s2); v91 = (const std::string::value_type *)cocos2d::CCString::getCString(v90); std::string::assign(__s, v91); if ( (__s2[0] & 1) != 0 ) operator delete(*(void **)&__s2[16]); v109 = 8194; v110 = 0; sub_100278250(__s2, 0.0, 1.0); v92 = (_DWORD *)TextArea::create(&v109, "chatFont.fnt", __s2, 0, 0, 1.0, 209.0, 20.0); v120 = (unsigned __int64)v13; if ( (v109 & 1) != 0 ) operator delete(v111); (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v84 + 456LL))(v84, v92); sub_100278250(__s2, 0.0, 0.5); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v92 + 296LL))(v92, __s2); sub_100278250(__s2, 0.0, 5.0); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v92 + 184LL))(v92, __s2); v92[162] = 1098907648; if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v93 = __s[0].__r_.__value_.__l.__data_; else v93 = __s[0].__r_.__value_.__s.__data_; v94 = strlen(v93); if ( v94 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v95 = v94; if ( v94 >= 0x17 ) { v121 = v93; v97 = 26; if ( (v94 | 7) != 0x17 ) v97 = (v94 | 7) + 1; v96 = (char *)operator new(v97); v113 = v96; v112[0] = v97 | 1; v112[1] = v95; v93 = v121; goto LABEL_211; } LOBYTE(v112[0]) = 2 * v94; v96 = (char *)v112 + 1; if ( v94 ) LABEL_211: memmove(v96, v93, v95); v96[v95] = 0; TextArea::setString(v92, v112); v98 = v120; if ( (v112[0] & 1) != 0 ) operator delete(v113); LODWORD(v121) = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v88 + 328LL))(v88) + 4); *(float *)&v114 = *(float *)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v92 + 328LL))(v92) + 4) + 17.0; v99 = *(float *)&v121 * 0.5; *(float *)&v121 = (float)(*(float *)&v121 + *(float *)&v114) * 0.5; sub_100278250(__s2, 0.0, (float)((float)(*(float *)&v121 - v99) + 3.0) + 2.0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v88 + 184LL))(v88, __s2); sub_100278250(__s2, 0.0, (float)((float)((float)(*(float *)&v114 * 0.5) - *(float *)&v121) + 16.0) + -2.0); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v92 + 184LL))(v92, __s2); v100 = AchievementManager::sharedState(v92, __s2); v101 = AchievementManager::percentForAchievement(v100, v108); if ( v101 && v101 != 100 ) { if ( !isAchievementEarned ) { v103 = sub_10088E820("%i%%", v107); v104 = cocos2d::CCString::getCString(v103); v105 = cocos2d::CCLabelBMFont::create_3(v104, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v115 + 536) + 464LL))( *(_QWORD *)(v115 + 536), v105, 10); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v105 + 160LL))(v105, 0.60000002); v106 = (*(__int64 (__fastcall **)(unsigned __int64))(*(_QWORD *)v98 + 192LL))(v98); sub_100278250(&__dst, 0.0, -25.0); sub_100278350(__s2, v106, &__dst); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v105 + 184LL))(v105, __s2); goto LABEL_221; } LABEL_219: v102 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); sub_100278250(__s2, 0.0, 0.5); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v102 + 296LL))(v102, __s2); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v115 + 536) + 456LL))(*(_QWORD *)(v115 + 536), v102); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v102 + 160LL))(v102, 0.80000001); sub_100278250(__s2, *(float *)(v115 + 520) + -40.0, *(float *)(v115 + 524) * 0.5); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v102 + 184LL))(v102, __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_); }