// // DeathHistogram::setAttemptLine from 0x140112eb0 to 0x140114216 (4966 bytes) // // 3 xrefs: // > DeathTrackerPopup::buildAttemptLine @ 0x140109911 // > @ 0x140915e60 // > @ 0x140915e6c // // 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:51 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall DeathHistogram::setAttemptLine( __int64 a1, __int64 *a2, _QWORD *a3, unsigned __int8 *a4, int a5, unsigned __int8 *a6, char a7) { __int64 *v8; // rdi __int64 v10; // rax __int64 v11; // rsi __int64 v12; // r14 __int64 v13; // rcx float v14; // xmm15_4 __int64 v15; // rbx int v16; // ecx int v17; // ecx unsigned __int64 v18; // rax int v19; // esi int v20; // r15d __int64 v21; // r12 int v22; // r8d int v23; // r11d int v24; // ebx __int64 v25; // r9 int v26; // edx int v27; // eax float v28; // edi __int64 v29; // r10 int v30; // ecx int v31; // eax _QWORD *v32; // rdi int v33; // ecx int v34; // eax __int64 v35; // rdi float v36; // xmm1_4 float v37; // xmm12_4 cocos2d::CCDrawNode *v38; // r15 int v39; // r14d __int64 v40; // r12 __int64 v41; // rdi float v42; // xmm9_4 float v43; // xmm8_4 float v44; // xmm6_4 float v45; // xmm7_4 const struct cocos2d::CCPoint *v46; // rax const struct cocos2d::CCPoint *v47; // rbx const struct cocos2d::CCPoint *v48; // rax const struct cocos2d::CCPoint *v49; // rax int v50; // r12d int v51; // r9d __int64 v52; // r10 _DWORD *v53; // r8 __int64 v54; // rdx int v55; // ecx int v56; // edi __int64 v57; // r14 float v58; // xmm9_4 float v59; // xmm10_4 float v60; // xmm8_4 float v61; // xmm7_4 float v62; // xmm6_4 const struct cocos2d::CCPoint *v63; // rax const struct cocos2d::CCPoint *v64; // rbx const struct cocos2d::CCPoint *v65; // rax const struct cocos2d::CCPoint *v66; // rax float v67; // xmm8_4 __int64 v68; // rbx __int64 v69; // rdi float v70; // xmm9_4 float v71; // xmm7_4 float v72; // xmm3_4 float v73; // xmm14_4 float v74; // xmm4_4 float v75; // xmm15_4 float v76; // xmm1_4 float v77; // xmm12_4 float v78; // xmm14_4 float v79; // xmm15_4 float v80; // xmm10_4 float v81; // xmm9_4 float v82; // xmm2_4 float v83; // xmm7_4 const struct cocos2d::CCPoint *v84; // rax const struct cocos2d::CCPoint *v85; // rbx const struct cocos2d::CCPoint *v86; // rax int v87; // edi float v88; // xmm10_4 float v89; // xmm7_4 float v90; // xmm9_4 float v91; // xmm6_4 float v92; // xmm2_4 const struct cocos2d::CCPoint *v93; // rax const struct cocos2d::CCPoint *v94; // rbx const struct cocos2d::CCPoint *v95; // rax int v96; // r15d int v97; // r12d int v98; // edi __int64 v99; // rbx __int64 v100; // r14 float v101; // xmm15_4 float v102; // xmm11_4 bool v103; // zf bool v104; // sf bool v105; // of int v106; // eax int v107; // ecx float *v108; // rax float v109; // xmm9_4 float v110; // xmm8_4 float v111; // xmm7_4 float v112; // xmm9_4 float v113; // xmm8_4 int v114; // edi cocos2d::CCString *v115; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v117; // r14 unsigned __int8 *v118; // rax float v119; // xmm6_4 double v120; // xmm0_8 float v121; // xmm8_4 float v122; // xmm12_4 int v123; // r15d float v124; // xmm7_4 float v125; // xmm9_4 void (__fastcall *v126)(struct cocos2d::CCLabelBMFont *, __int64); // rbx __int64 v127; // rax float v128; // xmm7_4 int v129; // esi __int64 v130; // rdi __int64 v131; // rcx float v132; // xmm10_4 float v133; // xmm15_4 int v134; // r12d bool v135; // zf bool v136; // sf bool v137; // of int v138; // eax int v139; // r15d cocos2d::CCString *v140; // rax const char *v141; // rax struct cocos2d::CCLabelBMFont *v142; // r14 float v143; // xmm6_4 double v144; // xmm0_8 float v145; // xmm8_4 float v146; // xmm6_4 void (__fastcall *v147)(struct cocos2d::CCLabelBMFont *, __int64); // rbx __int64 v148; // rax float v149; // xmm7_4 __int64 v150; // r14 float v151; // xmm11_4 __int64 v152; // rsi float v153; // xmm9_4 __int64 v154; // r13 cocos2d::CCString *v155; // rax const char *v156; // rax struct cocos2d::CCLabelBMFont *v157; // rdi __int64 v158; // rdx void (__fastcall *v159)(char *, __int64); // r8 float v160; // xmm6_4 double v161; // xmm0_8 float v162; // xmm8_4 float v163; // xmm6_4 void (__fastcall *v164)(struct cocos2d::CCLabelBMFont *, __int64); // rbx __int64 v165; // rax float v166; // xmm6_4 __int64 v167; // rdi __int64 v168; // rbx __int64 v169; // rcx __int64 v170; // rcx __int64 v171; // rcx __int64 v172; // rax struct cocos2d::CCLabelBMFont *v173; // rdi void (__fastcall *v174)(struct cocos2d::CCLabelBMFont *, __int64); // rbx __int64 v175; // rax __int64 v176; // rbx __int64 v177; // rcx __int64 v178; // rcx __int64 v179; // rcx float v180; // [rsp+48h] [rbp-C0h] BYREF int v181; // [rsp+4Ch] [rbp-BCh] BYREF float v182; // [rsp+50h] [rbp-B8h] float v183; // [rsp+58h] [rbp-B0h] BYREF float v184; // [rsp+5Ch] [rbp-ACh] int v185; // [rsp+60h] [rbp-A8h] float v186; // [rsp+64h] [rbp-A4h] BYREF __int64 v187; // [rsp+68h] [rbp-A0h] BYREF __int128 v188; // [rsp+70h] [rbp-98h] BYREF __int64 v189; // [rsp+80h] [rbp-88h] __int64 v190; // [rsp+88h] [rbp-80h] float v191[4]; // [rsp+90h] [rbp-78h] BYREF __int64 v192; // [rsp+A0h] [rbp-68h] __int64 *v193; // [rsp+A8h] [rbp-60h] BYREF float v194; // [rsp+B0h] [rbp-58h] BYREF int v195; // [rsp+B8h] [rbp-50h] __int64 v196; // [rsp+C0h] [rbp-48h] _QWORD *v197; // [rsp+C8h] [rbp-40h] unsigned __int8 *v198; // [rsp+D0h] [rbp-38h] __int64 v199; // [rsp+D8h] [rbp-30h] cocos2d::CCDrawNode *v200; // [rsp+E0h] [rbp-28h] BYREF __int128 v201; // [rsp+E8h] [rbp-20h] BYREF __int64 v202; // [rsp+F8h] [rbp-10h] _DWORD v203[2]; // [rsp+100h] [rbp-8h] BYREF unsigned __int8 *v204; // [rsp+108h] [rbp+0h] __int64 v205; // [rsp+110h] [rbp+8h] __int128 v206; // [rsp+118h] [rbp+10h] BYREF __int64 v207; // [rsp+128h] [rbp+20h] __int128 v208; // [rsp+130h] [rbp+28h] BYREF __int64 v209; // [rsp+140h] [rbp+38h] __int64 v210; // [rsp+148h] [rbp+40h] BYREF float v211; // [rsp+150h] [rbp+48h] int v212; // [rsp+154h] [rbp+4Ch] __int128 v213; // [rsp+158h] [rbp+50h] BYREF __m128i si128; // [rsp+168h] [rbp+60h] BYREF __int64 v215; // [rsp+178h] [rbp+70h] BYREF _DWORD v216[2]; // [rsp+180h] [rbp+78h] BYREF char v217[8]; // [rsp+188h] [rbp+80h] BYREF char v218[8]; // [rsp+190h] [rbp+88h] BYREF v204 = a4; v197 = a3; v8 = a2; v193 = a2; v205 = a1; v198 = a6; v185 = a5; v10 = *(_QWORD *)(a1 + 328); v195 = *(_DWORD *)(v10 + 436); v11 = *(_QWORD *)(v10 + 416); v192 = v11; (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 568LL))(v11); v12 = (v8[1] - *v8) >> 2; v196 = v12; if ( !(_DWORD)v12 || (v13 = *a3, (int)((__int64)(a3[1] - *a3) >> 2) < (int)v12) ) { cocos2d::CCDrawNode::clear(*(cocos2d::CCDrawNode **)(a1 + 336)); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 344) + 568LL))(*(_QWORD *)(a1 + 344)); v172 = cocos2d::CCRect::operator=(a1 + 372, &unk_14090A1F0); cocos2d::CCRect::operator=(a1 + 356, v172); v173 = cocos2d::CCLabelBMFont::create("No attempts yet.", "chatFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v173 + 160LL))(v173); LOWORD(v180) = -26986; BYTE2(v180) = -106; (**((void (__fastcall ***)(__int64, float *))v173 + 46))((__int64)v173 + 368, &v180); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v200, (const struct cocos2d::CCSize *)(*(_QWORD *)(a1 + 328) + 424LL)); v174 = *(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v173 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v191, *(float *)&v200 * 0.5, *(float *)(a1 + 324) * 0.5); v174(v173, v175); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v11 + 464LL))(v11, v173); v176 = *(_QWORD *)(a1 + 328); *(_DWORD *)(v176 + 432) = *(_DWORD *)(a1 + 320); ScrollableContentLayer::clampOffset(v176); ScrollableContentLayer::ensureScrollThumb(v177); ScrollableContentLayer::applyContentPosition(v176); v178 = *(_QWORD *)(a1 + 328); *(_DWORD *)(v178 + 436) = 0; *(_DWORD *)(v178 + 476) = 0; ScrollableContentLayer::clampOffset(v178); ScrollableContentLayer::applyContentPosition(v179); return; } v14 = fmaxf(10.0, (float)(*(float *)(a1 + 324) - 32.0) - 36.0); v182 = v14; v15 = (int)v12; v187 = (int)v12; v16 = *(_DWORD *)(v13 + 4LL * (int)v12 - 4); if ( v16 >= 100 ) { LABEL_7: v19 = 100; } else { v17 = (v16 + 3) / 4 + v16; v18 = 0; while ( 1 ) { v19 = *(_DWORD *)((char *)&unk_14072FB30 + v18); if ( v19 >= v17 ) break; v18 += 4LL; if ( v18 >= 0x28 ) goto LABEL_7; } } DeathHistogram::rebuildAxis(a1, "REACHED %", v19, 32.0, v14, "ATTEMPTS"); v20 = ((int)v12 + 399) / 400; v215 = 1; if ( v20 < 1 ) v20 = 1; v208 = 0; v21 = 0; v209 = 0; v201 = 0; v202 = 0; v188 = 0; v189 = 0; v206 = 0; v207 = 0; v22 = 0; v23 = -1; if ( (int)v12 > 0 ) { while ( 1 ) { v24 = v22; v25 = *v8; v26 = *(_DWORD *)(*v8 + 4LL * v22); v27 = v26; if ( v19 < v26 ) v27 = v19; if ( v27 >= 0 ) { if ( v19 < v26 ) v26 = v19; } else { v26 = 0; } v28 = *(float *)&v26; v29 = *v197; do { v30 = *(_DWORD *)(v25 + 4LL * v24); v31 = v30; if ( v19 < v30 ) v31 = v19; if ( v31 >= 0 ) { if ( v19 < v30 ) v30 = v19; } else { v30 = 0; } if ( v30 < v26 ) v26 = v30; v181 = v26; if ( v30 > SLODWORD(v28) ) v28 = *(float *)&v30; v180 = v28; ++v24; v186 = *(float *)&v24; } while ( *(_DWORD *)(v29 + 4LL * v24 - 4) <= v23 && v24 < (int)v196 && v24 - v22 < v20 ); if ( *((_QWORD *)&v208 + 1) == v21 ) { sub_140069B30((const void **)&v208, *((_BYTE **)&v208 + 1), &v181); } else { **((_DWORD **)&v208 + 1) = v26; *((_QWORD *)&v208 + 1) += 4LL; } if ( *((_QWORD *)&v201 + 1) == v202 ) { sub_140069B30((const void **)&v201, *((_BYTE **)&v201 + 1), &v180); } else { **((float **)&v201 + 1) = v28; *((_QWORD *)&v201 + 1) += 4LL; } v32 = v197; v33 = *(_DWORD *)(*v197 + 4LL * v24 - 4); v34 = v33; if ( v19 < v33 ) v34 = v19; if ( v34 >= 0 ) { if ( v19 < v33 ) v33 = v19; } else { v33 = 0; } v181 = v33; if ( *((_QWORD *)&v188 + 1) == v189 ) { sub_140069B30((const void **)&v188, *((_BYTE **)&v188 + 1), &v181); } else { **((_DWORD **)&v188 + 1) = v33; *((_QWORD *)&v188 + 1) += 4LL; } if ( *((_QWORD *)&v206 + 1) == v207 ) { sub_140069B30((const void **)&v206, *((_BYTE **)&v206 + 1), &v186); } else { **((float **)&v206 + 1) = *(float *)&v24; *((_QWORD *)&v206 + 1) += 4LL; } v23 = *(_DWORD *)(*v32 + 4LL * v24 - 4); v22 = v24; if ( v24 >= (int)v196 ) break; v21 = v209; v8 = v193; } v15 = v187; } v35 = (__int64)(*((_QWORD *)&v188 + 1) - v188) >> 2; v199 = v35; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v193, (const struct cocos2d::CCSize *)(*(_QWORD *)(v205 + 328) + 424LL)); v36 = *(float *)&v193 / (float)(int)v35; if ( v36 >= 4.0 ) v37 = fminf(30.0, v36); else v37 = 4.0; v180 = v37; v38 = (cocos2d::CCDrawNode *)cocos2d::CCDrawNode::create(); v200 = v38; v203[0] = 770; v203[1] = 771; cocos2d::CCDrawNode::setBlendFunc(v38, (const struct cocos2d::_ccBlendFunc *)v203); (*(void (__fastcall **)(__int64, cocos2d::CCDrawNode *))(*(_QWORD *)v192 + 464LL))(v192, v38); si128 = _mm_load_si128((const __m128i *)&xmmword_140836950); *(float *)&v210 = (float)*v204 / 255.0; *((float *)&v210 + 1) = (float)v204[1] / 255.0; v211 = (float)v204[2] / 255.0; v212 = 1065353216; v39 = 0; v40 = (int)v35; v190 = (int)v35; if ( (int)v35 > 0 ) { if ( (int)v35 >= v15 ) { v56 = 0; if ( v40 > 0 ) { v57 = 0; v58 = v37 * 0.5; v59 = (float)v19; do { v60 = (float)((float)v56 * v37) + v58; v61 = (float)((float)((float)*(int *)(v201 + 4 * v57) / v59) * v14) + 32.0; if ( v56 > 0 ) { v62 = (float)((float)((float)*(int *)(v201 + 4 * v57 - 4) / v59) * v14) + 32.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v187, v60, v61); v64 = v63; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v183, (float)((float)(v56 - 1) * v37) + v58, v62); cocos2d::CCDrawNode::drawSegment(v38, v65, v64, 0.75, (const struct cocos2d::_ccColor4F *)&si128); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v60, v61); cocos2d::CCDrawNode::drawDot(v38, v66, 1.5, (const struct cocos2d::_ccColor4F *)&si128); ++v56; ++v57; } while ( v57 < v40 ); v50 = 0; v51 = 0; v52 = v190; goto LABEL_62; } } else { v41 = 0; v42 = (float)v19; do { v43 = (float)((float)v39 * v37) + (float)(v37 * 0.5); v44 = (float)((float)((float)*(int *)(v201 + 4 * v41) / v42) * v14) + 32.0; v45 = (float)((float)((float)*(int *)(v208 + 4 * v41) / v42) * v14) + 32.0; if ( v44 > (float)(v45 + 0.5) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v187, v43, v44); v47 = v46; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v183, v43, v45); cocos2d::CCDrawNode::drawSegment(v38, v48, v47, 0.75, (const struct cocos2d::_ccColor4F *)&si128); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v43, v44); cocos2d::CCDrawNode::drawDot(v38, v49, 1.0, (const struct cocos2d::_ccColor4F *)&si128); ++v39; ++v41; } while ( v41 < v40 ); } } v50 = 0; v181 = 0; v51 = 0; v52 = v190; if ( v190 > 0 ) { LABEL_62: v53 = (_DWORD *)v201; v54 = v188; do { v55 = v51; if ( *v53 < *(_DWORD *)((char *)v53 + v188 - v201) ) v55 = v50; v50 = v55; ++v51; ++v53; --v52; } while ( v52 ); v181 = v55; goto LABEL_74; } v54 = v188; LABEL_74: v67 = 0.0; if ( v50 >= 1LL ) { LODWORD(v68) = 1; v69 = 1; v70 = (float)v19; v194 = (float)v19; v71 = v37 * 0.5; v186 = v37 * 0.5; while ( 1 ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v183, (float)((float)(v68 - 1) * v37) + v71, (float)((float)((float)*(int *)(v54 + 4 * v69 - 4) / v70) * v14) + 32.0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v187, (float)((float)(int)v68 * v37) + v71, (float)((float)((float)*(int *)(v188 + 4 * v69) / v70) * v14) + 32.0); v72 = v183; v73 = *(float *)&v187 - v183; v74 = v184; v75 = *((float *)&v187 + 1) - v184; v76 = (float)(v75 * v75) + (float)(v73 * v73); if ( v76 < 0.0 ) { v77 = sqrtf(v76); v72 = v183; v74 = v184; } else { v77 = fsqrt(v76); } if ( v77 > 0.0 ) break; LABEL_94: v68 = (unsigned int)(v68 + 1); v215 = v68; ++v69; v54 = v188; if ( v69 > v50 ) goto LABEL_96; v37 = v180; v14 = v182; } v78 = v73 / v77; v79 = v75 / v77; v80 = 0.0; while ( 1 ) { v81 = 3.0 - v67; if ( v67 >= 3.0 ) v82 = 9.0 - v67; else v82 = 3.0 - v67; if ( (float)(v77 - v80) <= v82 ) { v81 = v77 - v80; } else { if ( v67 < 3.0 ) goto LABEL_89; v81 = 9.0 - v67; } if ( v67 < 3.0 ) { LABEL_89: v83 = (float)(v80 * v79) + v74; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v213, (float)((float)(v81 + v80) * v78) + v72, (float)((float)(v81 + v80) * v79) + v74); v85 = v84; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v191, (float)(v80 * v78) + v72, v83); cocos2d::CCDrawNode::drawSegment(v38, v86, v85, 0.75, (const struct cocos2d::_ccColor4F *)&v210); } v80 = v80 + v81; v67 = v67 + v81; if ( v67 >= 9.0 ) v67 = 0.0; v72 = v183; v74 = v184; if ( v77 <= v80 ) { v71 = v186; v70 = v194; LODWORD(v68) = v215; goto LABEL_94; } } } LABEL_96: v87 = v199; if ( v50 < (int)v199 - 1 ) { v215 = v210; *(float *)v216 = v211; v216[1] = 1055286886; v88 = (float)((float)((float)*(int *)(v54 + 4LL * v50) / (float)v19) * v182) + 32.0; v89 = (float)((float)v50 * v180) + (float)(v180 * 0.5); v90 = (float)((float)(v199 - 1) * v180) + (float)(v180 * 0.5); if ( v90 > v89 ) { while ( 1 ) { v91 = 3.0 - v67; if ( v67 >= 3.0 ) v92 = 9.0 - v67; else v92 = 3.0 - v67; if ( (float)(v90 - v89) <= v92 ) { v91 = v90 - v89; } else { if ( v67 < 3.0 ) goto LABEL_106; v91 = 9.0 - v67; } if ( v67 < 3.0 ) { LABEL_106: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v191, v91 + v89, v88); v94 = v93; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v213, v89, v88); cocos2d::CCDrawNode::drawSegment(v38, v95, v94, 0.75, (const struct cocos2d::_ccColor4F *)&v215); } v89 = v89 + v91; v67 = v67 + v91; if ( v67 >= 9.0 ) v67 = 0.0; if ( v90 <= v89 ) { v54 = v188; break; } } } } v96 = *(_DWORD *)(v54 + 4LL * v87 - 4); v97 = 4; if ( v96 > 0 ) { v191[0] = (float)*v198 / 255.0; v191[1] = (float)v198[1] / 255.0; v191[2] = (float)v198[2] / 255.0; v191[3] = 1.0; v98 = 0; if ( v190 > 0 ) { v99 = 0; v100 = 0; v101 = v180; v102 = v182; while ( 1 ) { if ( v98 ) { v106 = *(_DWORD *)(v54 + 4 * v99 - 4); v105 = __OFSUB__(*(_DWORD *)(v54 + 4 * v99), v106); v103 = *(_DWORD *)(v54 + 4 * v99) == v106; v104 = *(_DWORD *)(v54 + 4 * v99) - v106 < 0; } else { v105 = 0; v103 = *(_DWORD *)(v100 + v54) == 0; v104 = *(int *)(v100 + v54) < 0; } if ( *(_DWORD *)(v201 + 4 * v99) >= v96 ) break; if ( !(v104 ^ v105 | v103) ) { v107 = *(_DWORD *)(v54 + 4 * v99); if ( v107 > 0 ) goto LABEL_121; } LABEL_124: ++v98; ++v99; v100 += 4; if ( v99 >= v190 ) goto LABEL_125; } v107 = v96; LABEL_121: v108 = v191; if ( v107 <= v185 ) v108 = (float *)&v210; v213 = *(_OWORD *)v108; v109 = (float)((float)v98 * v101) + (float)(v101 * 0.5); v110 = (float)((float)((float)v107 / (float)v19) * v102) + 32.0; v111 = v109 - 2.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v215, v109 - 2.0, v110 - 2.0); v112 = v109 + 2.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v216, v112, v110 - 2.0); v113 = v110 + 2.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v217, v112, v113); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v218, v111, v113); cocos2d::CCDrawNode::drawPolygon(v200, &v215, 4, &v213, 0, &v213, 0); v54 = v188; goto LABEL_124; } } LABEL_125: v114 = *(_DWORD *)(*v197 + 4LL * (int)v196 - 4); v115 = cocos2d::CCString::createWithFormat("%i%%", v114); CString = cocos2d::CCString::getCString(v115); v117 = cocos2d::CCLabelBMFont::create(CString, (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v117 + 160LL))(v117); v118 = v204; if ( v114 > v185 ) v118 = v198; (**((void (__fastcall ***)(__int64, unsigned __int8 *))v117 + 46))((__int64)v117 + 368, v118); v119 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v117 + 320LL))(v117); v120 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v117 + 168LL))(v117); v121 = (float)(*(float *)&v120 * v119) * 0.5; v122 = v180 * 0.5; v123 = v181; v124 = fminf( (float)((float)v181 * v180) + (float)(v180 * 0.5), (float)((float)((float)(int)v199 * v180) - v121) - 2.0); if ( v121 > v124 ) v124 = (float)(*(float *)&v120 * v119) * 0.5; if ( v19 < v114 ) v114 = v19; if ( v114 < 0 ) v114 = 0; v125 = (float)v19; v126 = *(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v117 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v191, v124, (float)((float)((float)((float)v114 / (float)v19) * v182) + 32.0) + 9.0); v126(v117, v127); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v192 + 464LL))(v192, v117); v128 = v124 - v121; v129 = v123 - 1; if ( v123 - 1 >= 0 ) { v130 = 4LL * v129; v131 = v188; v132 = v180; v133 = v182; v134 = v185; do { if ( v129 ) { v138 = *(_DWORD *)(v131 + v130 - 4); v137 = __OFSUB__(*(_DWORD *)(v131 + v130), v138); v135 = *(_DWORD *)(v131 + v130) == v138; v136 = *(_DWORD *)(v131 + v130) - v138 < 0; } else { v137 = 0; v135 = *(_DWORD *)(v131 + v130) == 0; v136 = *(int *)(v131 + v130) < 0; } if ( !(v136 ^ v137 | v135) ) { v139 = *(_DWORD *)(v131 + v130); if ( v139 > v134 ) { v140 = cocos2d::CCString::createWithFormat("%i%%", v139); v141 = cocos2d::CCString::getCString(v140); v142 = cocos2d::CCLabelBMFont::create(v141, (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v142 + 160LL))(v142); (**((void (__fastcall ***)(__int64, unsigned __int8 *))v142 + 46))((__int64)v142 + 368, v198); v143 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v142 + 320LL))(v142); v144 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v142 + 168LL))(v142); v145 = (float)(*(float *)&v144 * v143) * 0.5; v146 = (float)((float)v129 * v132) + v122; if ( (float)(v145 + v146) <= (float)(v128 - 3.0) ) { v147 = *(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v142 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v191, v146, (float)((float)((float)((float)v139 / v125) * v133) + 32.0) + 9.0); v147(v142, v148); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v192 + 464LL))(v192, v142); v128 = v146 - v145; } v131 = v188; } } v130 -= 4; --v129; } while ( v129 >= 0 ); v97 = 4; } v149 = -1000000000.0; v150 = v190; v151 = v180; if ( v190 > 4 ) { v152 = 4; v153 = v180 * 0.5; v154 = v192; do { v155 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(v206 + 4 * v152)); v156 = cocos2d::CCString::getCString(v155); v157 = cocos2d::CCLabelBMFont::create(v156, "chatFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v157 + 160LL))(v157); (**((void (__fastcall ***)(__int64, void *))v157 + 46))((__int64)v157 + 368, &unk_140702EF4); v158 = *((_QWORD *)v157 + 46); v159 = *(void (__fastcall **)(char *, __int64))(v158 + 40); LOBYTE(v158) = -56; v159((char *)v157 + 368, v158); v160 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v157 + 320LL))(v157); v161 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v157 + 168LL))(v157); v162 = (float)(*(float *)&v161 * v160) * 0.5; v163 = (float)((float)v97 * v151) + v153; if ( (float)(v149 + 4.0) <= (float)(v163 - v162) ) { v164 = *(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v157 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v191, v163, 25.0); v164(v157, v165); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v154 + 464LL))(v154, v157); v149 = v163 + v162; } v97 += 5; v152 += 5; } while ( v152 < v150 ); } v166 = (float)(int)v199 * v151; v167 = v205; v168 = *(_QWORD *)(v205 + 328); *(float *)(v168 + 432) = fmaxf(v166, *(float *)&v193); ScrollableContentLayer::clampOffset(v168); ScrollableContentLayer::ensureScrollThumb(v169); ScrollableContentLayer::applyContentPosition(v168); v170 = *(_QWORD *)(v167 + 328); *(_DWORD *)(v170 + 476) = 0; if ( a7 ) *(_DWORD *)(v170 + 436) = v195; else *(float *)(v170 + 436) = v166; ScrollableContentLayer::clampOffset(v170); ScrollableContentLayer::applyContentPosition(v171); sub_140069730((__int64)&v206); sub_140069730((__int64)&v188); sub_140069730((__int64)&v201); sub_140069730((__int64)&v208); }
GD Web Decomp Icon

GD Web Decomp

Raw Source