// // AchievementBar::init from 0x140095ca0 to 0x140097322 (5762 bytes) // // 2 xrefs: // > AchievementNotifier::notifyAchievement @ 0x14003d6c7 // > @ 0x140912ca4 // // 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 11:26:03 +0000 // // Hidden C++ exception states: #wind=7 bool __fastcall AchievementBar::init(cocos2d::CCNodeRGBA *a1, const char *a2, const char *a3, const char *a4, char a5) { cocos2d::CCNodeRGBA *v6; // r13 bool result; // al __int64 v8; // rcx __int64 v9; // rax struct cocos2d::CCLayerColor *v10; // rax __int64 v11; // rdi __int64 v12; // rbx __int64 v13; // rax const char *v14; // rdx size_t v15; // r14 size_t v16; // r8 void **v17; // rbx __int64 v18; // rax __int64 v19; // rsi __int64 v20; // rbx __int64 v21; // rax struct cocos2d::CCSprite *v22; // rax __int64 v23; // rax cocos2d::extension::CCScale9Sprite *v24; // rdi __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rbx __int64 v28; // rax const char *v29; // r12 float v30; // xmm13_4 char v31; // si struct cocos2d::CCSprite *v32; // rdi __int64 v33; // rbx size_t v34; // r8 cocos2d::CCArray *v35; // rbx void *v36; // r8 cocos2d::CCString *v37; // rax const char *CString; // rdi cocos2d::CCString *v39; // rax int v40; // r15d const char *v41; // r12 size_t v42; // r8 void **v43; // rcx char *v44; // rbx size_t v45; // r8 int v46; // esi char *v47; // rax size_t v48; // r8 void **v49; // rcx char *v50; // rbx size_t v51; // r8 int v52; // esi char *v53; // rax size_t v54; // r8 int v55; // ebx size_t v56; // r8 __int128 *p_Buf2; // rcx char *v58; // rsi unsigned __int64 v59; // r13 size_t v60; // r8 int v61; // ebx char *v62; // rax size_t v63; // r8 __int128 *v64; // rcx unsigned __int64 v65; // r13 size_t v66; // r8 int v67; // esi size_t v68; // r8 void **v69; // rcx char *v70; // r13 size_t v71; // r8 char *v72; // rax size_t v73; // r8 void **v74; // rcx char *v75; // r13 size_t v76; // r8 char *v77; // rax size_t v78; // r8 void **v79; // rcx size_t v80; // r8 int v81; // r13d void *v82; // rcx size_t v83; // r8 __int128 *v84; // rcx size_t v85; // r8 int v86; // r13d size_t v87; // r8 __int128 *v88; // rcx char *v89; // r13 size_t v90; // r8 int v91; // esi char *v92; // rax size_t v93; // r8 __int128 *v94; // rcx char *v95; // rsi size_t v96; // r8 int v97; // r13d char *v98; // rax size_t v99; // r8 int v100; // ebx size_t v101; // r8 __int128 *v102; // rcx char *v103; // rdi size_t v104; // r8 int v105; // r13d char *v106; // rax cocos2d::CCString *v107; // rax __int64 v108; // r15 float v109; // xmm6_4 __int64 *v110; // rdx size_t v111; // r8 const char *v112; // rdx struct cocos2d::CCLabelBMFont *v113; // rsi __int64 v114; // rbx __int64 v115; // rax __int64 v116; // rbx const char *v117; // rax const struct cocos2d::CCPoint *v118; // rax char *v119; // r14 __int64 v120; // rbx __int64 v121; // rax __int64 v122; // rbx __int64 v123; // rax float v124; // xmm6_4 float v125; // xmm0_4 float v126; // xmm7_4 float v127; // xmm9_4 float v128; // xmm7_4 float v129; // xmm6_4 __int64 v130; // rbx __int64 v131; // rax float v132; // xmm7_4 float *v133; // rax __int64 v134; // rax __int64 v135; // rbx __int64 v136; // rax float v137; // xmm7_4 float *v138; // rax __int64 v139; // rax float *v140; // rbx float v141; // xmm6_4 double v142; // xmm0_8 float v143; // xmm8_4 float v144; // xmm7_4 float v145; // xmm6_4 float v146; // xmm6_4 float v147; // xmm0_4 __int64 v148; // rbx __int64 v149; // rax __int64 v150; // rbx float *v151; // rax __int64 v152; // rax void *v153; // rcx _DWORD v154[4]; // [rsp+58h] [rbp-B0h] BYREF __int16 v155; // [rsp+68h] [rbp-A0h] BYREF char v156; // [rsp+6Ah] [rbp-9Eh] const char *v157; // [rsp+78h] [rbp-90h] BYREF struct cocos2d::CCSprite *v158; // [rsp+80h] [rbp-88h] BYREF cocos2d::CCNodeRGBA *v159; // [rsp+88h] [rbp-80h] BYREF __int64 v160; // [rsp+90h] [rbp-78h] BYREF const char *v161; // [rsp+A0h] [rbp-68h] BYREF float v162; // [rsp+A8h] [rbp-60h] BYREF char v163[8]; // [rsp+B0h] [rbp-58h] BYREF void *Block[2]; // [rsp+B8h] [rbp-50h] BYREF unsigned __int64 v165; // [rsp+C8h] [rbp-40h] unsigned __int64 v166; // [rsp+D0h] [rbp-38h] __int128 Buf2; // [rsp+D8h] [rbp-30h] BYREF unsigned __int64 v168; // [rsp+E8h] [rbp-20h] unsigned __int64 v169; // [rsp+F0h] [rbp-18h] void *v170[2]; // [rsp+F8h] [rbp-10h] BYREF __int64 v171; // [rsp+108h] [rbp+0h] unsigned __int64 v172; // [rsp+110h] [rbp+8h] __int128 v173; // [rsp+118h] [rbp+10h] BYREF __int64 v174; // [rsp+128h] [rbp+20h] unsigned __int64 v175; // [rsp+130h] [rbp+28h] v157 = a3; v161 = a2; v6 = a1; v159 = a1; result = cocos2d::CCNodeRGBA::init(a1); if ( !result ) return result; v9 = cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize(v9, &v162); v154[0] = 0; v10 = cocos2d::CCLayerColor::create((const struct cocos2d::_ccColor4B *)v154, 0.0, 0.0); *((_QWORD *)v6 + 43) = v10; (*(void (__fastcall **)(cocos2d::CCNodeRGBA *, struct cocos2d::CCLayerColor *))(*(_QWORD *)v6 + 464LL))(v6, v10); v11 = **((_QWORD **)v6 + 43); v12 = *((_QWORD *)v6 + 43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, v162 * 0.5, 40.0); (*(void (__fastcall **)(__int64, __int64))(v11 + 184))(v12, v13); v14 = "GJ_square01.png"; if ( a5 ) v14 = "GJ_square02.png"; *(_OWORD *)v170 = 0; v171 = 0; v172 = 0; v15 = -1; v16 = -1; do ++v16; while ( v14[v16] ); sub_14003D230(v170, v14, v16); v17 = v170; if ( v172 > 0xF ) v17 = (void **)v170[0]; v18 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, 0.0, 0.0, 80.0, 80.0); v19 = cocos2d::extension::CCScale9Sprite::create(v17, v18); v20 = *(_QWORD *)v19; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v158, 300.0, 80.0); (*(void (__fastcall **)(__int64, __int64))(v20 + 312))(v19, v21); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)v6 + 43) + 456LL))(*((_QWORD *)v6 + 43), v19, 1); *((_QWORD *)v6 + 46) = v19; v22 = cocos2d::CCSprite::createWithSpriteFrameName("achievementGlow_001.png"); *((_QWORD *)v6 + 48) = v22; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v22 + 160LL))(v22); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)v6 + 43) + 456LL))( *((_QWORD *)v6 + 43), *((_QWORD *)v6 + 48), 0xFFFFFFFFLL); v160 = 0x100000302LL; (**(void (__fastcall ***)(__int64, __int64))(*((_QWORD *)v6 + 48) + 344LL))( *((_QWORD *)v6 + 48) + 344LL, 0x100000302LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v163, 40.0, 40.0); v23 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v160, 0.0, 0.0, 80.0, 80.0); v24 = (cocos2d::extension::CCScale9Sprite *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v23); v25 = *(_QWORD *)v24; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v158, 300.0, 80.0); (*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, __int64))(v25 + 312))(v24, v26); (*(void (__fastcall **)(_QWORD, cocos2d::extension::CCScale9Sprite *, __int64))(**((_QWORD **)v6 + 43) + 456LL))( *((_QWORD *)v6 + 43), v24, 100); v27 = *(_QWORD *)v24; v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 200LL))(v19); (*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, __int64))(v27 + 184))(v24, v28); (*(void (__fastcall **)(_QWORD *, _QWORD))(*((_QWORD *)v24 + 40) + 40LL))((_QWORD *)v24 + 40, 0); cocos2d::extension::CCScale9Sprite::setBlendAdditive(v24, 1); *((_QWORD *)v6 + 47) = v24; v29 = nullptr; v158 = cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); v30 = 0.0; v31 = a5; if ( a5 ) { v32 = cocos2d::CCSprite::createWithSpriteFrameName(a4); v29 = v157; v33 = *(_QWORD *)v32; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v32 + 320LL))(v32); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v33 + 160))(v32); goto LABEL_210; } if ( !a4 ) goto LABEL_211; *(_OWORD *)Block = 0; v165 = 0; v166 = 0; v34 = -1; do ++v34; while ( a4[v34] ); sub_14003D230(Block, a4, v34); v35 = sub_1400959D0((__int64 *)Block); if ( v166 > 0xF ) { v36 = Block[0]; if ( v166 + 1 >= 0x1000 ) { v36 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v36 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v36); } v165 = 0; v166 = 15; LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v35) < 2 ) goto LABEL_211; v37 = cocos2d::CCArray::objectAtIndex(v35, 0); CString = cocos2d::CCString::getCString(v37); v39 = cocos2d::CCArray::objectAtIndex(v35, 1u); LODWORD(v160) = cocos2d::CCString::intValue(v39); v40 = 1; v41 = "Icon"; Buf2 = 0; v168 = 4; v169 = 15; strcpy((char *)&Buf2, "ship"); *(_OWORD *)Block = 0; v165 = 0; v166 = 0; v42 = -1; do ++v42; while ( CString[v42] ); sub_14003D230(Block, CString, v42); v43 = Block; v44 = (char *)Block[0]; if ( v166 > 0xF ) v43 = (void **)Block[0]; v45 = v165; if ( v165 > 4 ) v45 = 4; v46 = memcmp(v43, &Buf2, v45); if ( !v46 ) { if ( v165 >= 4 ) v46 = v165 > 4; else v46 = -1; } if ( v166 > 0xF ) { v47 = v44; if ( v166 + 1 >= 0x1000 ) { v44 = *((char **)v44 - 1); if ( (unsigned __int64)(v47 - v44 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v44); } if ( v46 ) { Buf2 = 0; v168 = 4; v169 = 15; strcpy((char *)&Buf2, "ball"); *(_OWORD *)Block = 0; v165 = 0; v166 = 0; v48 = -1; do ++v48; while ( CString[v48] ); sub_14003D230(Block, CString, v48); v49 = Block; v50 = (char *)Block[0]; if ( v166 > 0xF ) v49 = (void **)Block[0]; v51 = v165; if ( v165 > 4 ) v51 = 4; v52 = memcmp(v49, &Buf2, v51); if ( !v52 ) { if ( v165 >= 4 ) v52 = v165 > 4; else v52 = -1; } if ( v166 > 0xF ) { v53 = v50; if ( v166 + 1 >= 0x1000 ) { v50 = *((char **)v50 - 1); if ( (unsigned __int64)(v53 - v50 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v50); } if ( !v52 ) { v40 = 5; v41 = "Ball"; goto LABEL_206; } Buf2 = 0; v168 = 4; v169 = 15; strcpy((char *)&Buf2, "bird"); *(_OWORD *)Block = 0; v165 = 0; v166 = 0; v54 = -1; do ++v54; while ( CString[v54] ); sub_14003D230(Block, CString, v54); v55 = sub_14003D160(Block, &Buf2); sub_14003D310((__int64)Block); sub_14003D310((__int64)&Buf2); if ( !v55 ) { v40 = 6; v41 = "UFO"; v30 = -8.0; goto LABEL_206; } *(_OWORD *)Block = 0; v165 = 4; v166 = 15; strcpy((char *)Block, "dart"); Buf2 = 0; v168 = 0; v169 = 0; v56 = -1; do ++v56; while ( CString[v56] ); sub_14003D230(&Buf2, CString, v56); p_Buf2 = &Buf2; v58 = (char *)Buf2; if ( v169 > 0xF ) p_Buf2 = (__int128 *)Buf2; v59 = v168; v60 = v168; if ( v168 > 4 ) v60 = 4; v61 = memcmp(p_Buf2, Block, v60); if ( !v61 ) { if ( v59 >= 4 ) v61 = v59 > 4; else v61 = -1; } if ( v169 > 0xF ) { v62 = v58; if ( v169 + 1 >= 0x1000 ) { v58 = *((char **)v58 - 1); if ( (unsigned __int64)(v62 - v58 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v58); } sub_14003D310((__int64)Block); if ( !v61 ) { v40 = 7; v41 = "Wave"; goto LABEL_206; } *(_OWORD *)Block = 0; v165 = 5; v166 = 15; strcpy((char *)Block, "robot"); Buf2 = 0; v168 = 0; v169 = 0; v63 = -1; do ++v63; while ( CString[v63] ); sub_14003D230(&Buf2, CString, v63); v64 = &Buf2; if ( v169 > 0xF ) v64 = (__int128 *)Buf2; v65 = v168; v66 = v168; if ( v168 > 5 ) v66 = 5; v67 = memcmp(v64, Block, v66); if ( !v67 ) { if ( v65 >= 5 ) v67 = v65 > 5; else v67 = -1; } sub_14003D310((__int64)&Buf2); sub_14003D310((__int64)Block); if ( !v67 ) { v40 = 8; v41 = "Robot"; goto LABEL_206; } Buf2 = 0; v168 = 6; v169 = 15; strcpy((char *)&Buf2, "spider"); *(_OWORD *)Block = 0; v165 = 0; v166 = 0; v68 = -1; do ++v68; while ( CString[v68] ); sub_14003D230(Block, CString, v68); v69 = Block; v70 = (char *)Block[0]; if ( v166 > 0xF ) v69 = (void **)Block[0]; v71 = v165; if ( v165 > 6 ) v71 = 6; v154[0] = memcmp(v69, &Buf2, v71); if ( !v154[0] ) { if ( v165 >= 6 ) v154[0] = v165 > 6; else v154[0] = -1; } if ( v166 > 0xF ) { v72 = v70; if ( v166 + 1 >= 0x1000 ) { v70 = *((char **)v70 - 1); if ( (unsigned __int64)(v72 - v70 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v70); } if ( !v154[0] ) { v40 = 9; v41 = "Spider"; goto LABEL_206; } Buf2 = 0; v168 = 5; v169 = 15; strcpy((char *)&Buf2, "death"); *(_OWORD *)Block = 0; v165 = 0; v166 = 0; v73 = -1; do ++v73; while ( CString[v73] ); sub_14003D230(Block, CString, v73); v74 = Block; v75 = (char *)Block[0]; if ( v166 > 0xF ) v74 = (void **)Block[0]; v76 = v165; if ( v165 > 5 ) v76 = 5; v154[0] = memcmp(v74, &Buf2, v76); if ( !v154[0] ) { if ( v165 >= 5 ) v154[0] = v165 > 5; else v154[0] = -1; } if ( v166 > 0xF ) { v77 = v75; if ( v166 + 1 >= 0x1000 ) { v75 = *((char **)v75 - 1); if ( (unsigned __int64)(v77 - v75 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v75); } if ( !v154[0] ) { v40 = 11; v41 = "Death Effect"; goto LABEL_206; } v168 = 7; v169 = 15; Buf2 = 0x6C616963657073uLL; *(_OWORD *)Block = 0; v165 = 0; v166 = 0; v78 = -1; do ++v78; while ( CString[v78] ); sub_14003D230(Block, CString, v78); v79 = Block; if ( v166 > 0xF ) v79 = (void **)Block[0]; v80 = v165; if ( v165 > 7 ) v80 = 7; v154[0] = memcmp(v79, &Buf2, v80); if ( !v154[0] ) { if ( v165 < 7 ) { v81 = -1; goto LABEL_131; } v154[0] = v165 > 7; } v81 = v154[0]; LABEL_131: if ( v166 > 0xF ) { v82 = Block[0]; if ( v166 + 1 >= 0x1000 ) { v82 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v82 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v82); } if ( !v81 ) { v40 = 10; v41 = "Trail"; goto LABEL_206; } *(_OWORD *)Block = 0; v165 = 5; v166 = 15; strcpy((char *)Block, "color"); Buf2 = 0; v168 = 0; v169 = 0; v83 = -1; do ++v83; while ( CString[v83] ); sub_14003D230(&Buf2, CString, v83); v84 = &Buf2; if ( v169 > 0xF ) v84 = (__int128 *)Buf2; v85 = v168; if ( v168 > 5 ) v85 = 5; v86 = memcmp(v84, Block, v85); if ( !v86 ) { if ( v168 >= 5 ) v86 = v168 > 5; else v86 = -1; } sub_14003D310((__int64)&Buf2); if ( !v86 ) { v40 = 2; v41 = "Main Color"; goto LABEL_206; } *(_OWORD *)Block = 0; v165 = 6; v166 = 15; strcpy((char *)Block, "color2"); Buf2 = 0; v168 = 0; v169 = 0; v87 = -1; do ++v87; while ( CString[v87] ); sub_14003D230(&Buf2, CString, v87); v88 = &Buf2; v89 = (char *)Buf2; if ( v169 > 0xF ) v88 = (__int128 *)Buf2; v90 = v168; if ( v168 > 6 ) v90 = 6; v154[0] = memcmp(v88, Block, v90); if ( !v154[0] ) { if ( v168 < 6 ) { v91 = -1; LABEL_161: if ( v169 > 0xF ) { v92 = v89; if ( v169 + 1 >= 0x1000 ) { v89 = *((char **)v89 - 1); if ( (unsigned __int64)(v92 - v89 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v89); } if ( v91 ) { *(_OWORD *)Block = 0; v165 = 5; v166 = 15; strcpy((char *)Block, "swing"); Buf2 = 0; v168 = 0; v169 = 0; v93 = -1; do ++v93; while ( CString[v93] ); sub_14003D230(&Buf2, CString, v93); v94 = &Buf2; v95 = (char *)Buf2; if ( v169 > 0xF ) v94 = (__int128 *)Buf2; v96 = v168; if ( v168 > 5 ) v96 = 5; v97 = memcmp(v94, Block, v96); if ( !v97 ) { if ( v168 >= 5 ) v97 = v168 > 5; else v97 = -1; } if ( v169 > 0xF ) { v98 = v95; if ( v169 + 1 >= 0x1000 ) { v95 = *((char **)v95 - 1); if ( (unsigned __int64)(v98 - v95 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v95); } if ( v97 ) { v168 = 7; v169 = 15; Buf2 = 0x6B63617074656AuLL; *(_OWORD *)Block = 0; v165 = 0; v166 = 0; v99 = -1; do ++v99; while ( CString[v99] ); sub_14003D230(Block, CString, v99); v100 = sub_14003D160(Block, &Buf2); sub_14003D310((__int64)Block); sub_14003D310((__int64)&Buf2); if ( v100 ) { Block[1] = nullptr; v165 = 8; v166 = 15; Block[0] = (void *)0x6572696670696873LL; Buf2 = 0; v168 = 0; v169 = 0; v101 = -1; do ++v101; while ( CString[v101] ); sub_14003D230(&Buf2, CString, v101); v102 = &Buf2; v103 = (char *)Buf2; if ( v169 > 0xF ) v102 = (__int128 *)Buf2; v104 = v168; if ( v168 > 8 ) v104 = 8; v105 = memcmp(v102, Block, v104); if ( !v105 ) { if ( v168 >= 8 ) v105 = v168 > 8; else v105 = -1; } if ( v169 > 0xF ) { v106 = v103; if ( v169 + 1 >= 0x1000 ) { v103 = *((char **)v103 - 1); if ( (unsigned __int64)(v106 - v103 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v103); } if ( !v105 ) { v40 = 15; v41 = "Ship Fire"; } } else { v40 = 14; v41 = "Jetpack"; } } else { v40 = 13; v41 = "Swing"; } } else { v40 = 3; v41 = "Secondary Color"; } goto LABEL_206; } v154[0] = v168 > 6; } v91 = v154[0]; goto LABEL_161; } v40 = 4; v41 = "Ship"; LABEL_206: v107 = cocos2d::CCString::createWithFormat("Unlocked new %s!", v41); v29 = cocos2d::CCString::getCString(v107); v155 = -1; LOWORD(v154[0]) = -20561; v32 = (struct cocos2d::CCSprite *)operator new(0x278u); Block[0] = v32; cocos2d::CCSprite::CCSprite(v32); *(_QWORD *)v32 = &GJItemIcon::`vftable'; *((_QWORD *)v32 + 40) = &GJItemIcon::`vftable'; *((_QWORD *)v32 + 43) = &GJItemIcon::`vftable'; *((_QWORD *)v32 + 75) = 0; *((_DWORD *)v32 + 152) = 0; cocos2d::CCSize::CCSize((struct cocos2d::CCSprite *)((char *)v32 + 612)); *((_BYTE *)v32 + 620) = 0; *((_QWORD *)v32 + 78) = 0; v156 = -1; BYTE2(v154[0]) = -81; if ( (unsigned __int8)GJItemIcon::init((_DWORD)v32, v40, v160, (unsigned int)v154, (__int64)&v155, 0) ) { cocos2d::CCObject::autorelease(v32); } else { (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v32 + 8LL))(v32, 1); v32 = nullptr; } v6 = v159; v31 = 0; LABEL_210: if ( !v32 ) LABEL_211: v32 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_achImage_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v32 + 184LL))(v32, v163); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**((_QWORD **)v6 + 43) + 456LL))( *((_QWORD *)v6 + 43), v32, 3); *((_QWORD *)v6 + 49) = v32; v108 = cocos2d::CCNode::create(); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)v6 + 43) + 456LL))(*((_QWORD *)v6 + 43), v108, 2); if ( v31 ) v109 = 0.80000001; else v109 = 0.69999999; v110 = &qword_140704F78; if ( v31 ) v110 = (__int64 *)"goldFont.fnt"; v173 = 0; v174 = 0; v175 = 0; v111 = -1; do ++v111; while ( *((_BYTE *)v110 + v111) ); sub_14003D230(&v173, v110, v111); v112 = (const char *)&v173; if ( v175 > 0xF ) v112 = (const char *)v173; v113 = cocos2d::CCLabelBMFont::create(v161, v112); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v108 + 464LL))(v108, v113); v114 = *(_QWORD *)v113; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v114 + 288))(v113, v115); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 160LL))(v113); *((_QWORD *)v6 + 50) = v113; if ( *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 320LL))(v113) > 200.0 ) { v116 = *(_QWORD *)v113; (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 320LL))(v113); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(v116 + 160))(v113); } fminf( v109, COERCE_FLOAT(COERCE_UNSIGNED_INT64((*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 168LL))(v113)))); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 160LL))(v113); v117 = v157; if ( v29 ) v117 = v29; Block[0] = &Buf2; Buf2 = 0; v168 = 0; v169 = 0; do ++v15; while ( v117[v15] ); sub_14003D230(&Buf2, v117, v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v161, 0.0, 1.0); v119 = TextArea::create((__int64)&Buf2, "chatFont.fnt", 1.0, 220.0, v118, 1101004800, 0, 0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v108 + 464LL))(v108, v119); v120 = *(_QWORD *)v119; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, 0.0, 0.5); (*(void (__fastcall **)(char *, __int64))(v120 + 288))(v119, v121); v122 = *(_QWORD *)v119; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, 0.0, 5.0); (*(void (__fastcall **)(char *, __int64))(v122 + 184))(v119, v123); *((_DWORD *)v119 + 166) = 1098907648; *((_QWORD *)v6 + 51) = v119; v124 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 320LL))(v113) + 4); v125 = *(float *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v119 + 320LL))(v119) + 4) + 17.0; v126 = (float)(v125 + v124) * 0.5; v127 = v126 - (float)(v125 * 0.5); v128 = v126 - (float)(v124 * 0.5); if ( a5 ) v129 = 2.5; else v129 = 0.0; v130 = *(_QWORD *)v113; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, 0.0, 1.0); v132 = (float)((float)(v128 + *(float *)(v131 + 4)) + 2.0) + v129; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, 0.0, 1.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, *v133, v132); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v130 + 184))(v113, v134); v135 = *(_QWORD *)v119; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, 0.0, -1.0); v137 = (float)((float)(15.0 - v127) + *(float *)(v136 + 4)) - 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, 0.0, -1.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, *v138 + 1.0, v137); (*(void (__fastcall **)(char *, __int64))(v135 + 184))(v119, v139); v140 = (float *)v158; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v158 + 160LL))(v158); if ( !a5 ) (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v32 + 160LL))(v32); v141 = v140[108]; v142 = (*(double (__fastcall **)(float *))(*(_QWORD *)v140 + 168LL))(v140); v143 = *(float *)&v142 * v141; v144 = *((float *)v119 + 174); v145 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 320LL))(v113); if ( (float)((*(float (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 168LL))(v113) * v145) <= v144 ) { v147 = *((float *)v119 + 174); } else { v146 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 320LL))(v113); v147 = (*(float (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v113 + 168LL))(v113) * v146; } v148 = *(_QWORD *)v32; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)Block, (float)(v143 * 0.5) - (float)((float)((float)((float)(v147 + 5.0) + (float)(v143 * 0.5)) + 30.0) * 0.5), v30); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v148 + 184))(v32, v149); v150 = *(_QWORD *)v108; v151 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v32 + 200LL))(v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, *v151 + 30.0, 0.0); (*(void (__fastcall **)(__int64, __int64))(v150 + 184))(v108, v152); *((_DWORD *)v6 + 88) = 1118568448; sub_14003D310((__int64)&v173); if ( v172 > 0xF ) { v153 = v170[0]; if ( v172 + 1 >= 0x1000 ) { v153 = *((void **)v170[0] - 1); if ( (unsigned __int64)((char *)v170[0] - (char *)v153 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v153); } return 1; }