//
// DeathHistogram::setAttemptLine from 0x7683a0 to 0x76909e (3326 bytes)
//
// 1 xrefs:
// > DeathTrackerPopup::buildAttemptLine @ 0x772754
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:09 +0000
//
void __fastcall DeathHistogram::setAttemptLine(int a1, int *a2, int *a3, int a4, int a5, int a6, char a7)
{
int v10; // r3
int v11; // r10
int v12; // r4
int v13; // r3
float v14; // s18
int v15; // r2
int v16; // r3
int v17; // r2
int v18; // r5
int v19; // r0
int v20; // r2
int v21; // r3
int v22; // r1
int v23; // r7
bool v24; // cc
float v25; // r0
int v26; // r7
int v27; // lr
bool v28; // cc
int v29; // r0
int v30; // lr
int v31; // r0
int v32; // r7
bool v33; // cc
int v35; // r2
unsigned int v36; // r1
unsigned int v37; // r3
unsigned int v38; // r3
cocos2d::CCDrawNode *v39; // r0
float v40; // s29
float v41; // s17
cocos2d::CCDrawNode *v42; // r7
int v43; // r6
float v44; // s13
float v45; // s16
int v46; // r3
int v47; // r4
int v48; // r6
float v49; // s16
float v50; // s24
float v51; // s23
float v52; // r0
float v53; // s27
float v54; // s23
float v55; // s22
float v56; // s24
float v57; // s26
float v58; // s15
int v59; // r6
float v60; // s28
float v61; // s23
float v62; // s22
float v63; // s24
float v64; // s15
int v65; // r9
int v66; // r6
bool v67; // cc
int v68; // r3
int v69; // lr
float *v70; // r3
void *v71; // r0
float v72; // r1
float v73; // r2
int v74; // r3
float v75; // s16
float v76; // s21
float v77; // s24
float v78; // s16
float v79; // s21
float v80; // s26
const char *v81; // r6
float v82; // s16
cocos2d::CCString *v83; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v85; // r2
int v86; // r7
int *v87; // r1
float v88; // s23
float v89; // r0
float v90; // s25
float v91; // s20
float v92; // s21
float v93; // s15
void (__fastcall *v94)(int, void **); // r8
float v95; // s22
float v96; // s16
float v97; // s20
int v98; // r4
int v99; // r7
bool v100; // cc
int v102; // r6
cocos2d::CCString *v103; // r0
cocos2d::CCLabelBMFont *v104; // r0
const char *v105; // r2
int v106; // r5
float v107; // s19
float v108; // s21
float v109; // s19
int v110; // r5
float v111; // s18
cocos2d::CCString *v112; // r0
cocos2d::CCLabelBMFont *v113; // r0
const char *v114; // r2
int v115; // r4
float v116; // s24
float v117; // s16
float v118; // s23
float v119; // r1
float v120; // r1
int v121; // r0
const char *v122; // r2
int v123; // r4
void (__fastcall *v124)(int, void **); // r2
void (__fastcall *v125)(int, void **); // r6
int v126; // [sp+10h] [bp-CCh]
int v127; // [sp+10h] [bp-CCh]
int v128; // [sp+14h] [bp-C8h]
void (__fastcall *v129)(int, void **); // [sp+14h] [bp-C8h]
void (__fastcall *v130)(int, void **); // [sp+14h] [bp-C8h]
float v131; // [sp+1Ch] [bp-C0h]
int v132; // [sp+24h] [bp-B8h] BYREF
_DWORD v133[2]; // [sp+28h] [bp-B4h] BYREF
float v134; // [sp+30h] [bp-ACh] BYREF
float v135; // [sp+34h] [bp-A8h]
float v136[2]; // [sp+38h] [bp-A4h] BYREF
char *v137; // [sp+40h] [bp-9Ch] BYREF
float *v138; // [sp+44h] [bp-98h]
float *v139; // [sp+48h] [bp-94h]
char *v140; // [sp+4Ch] [bp-90h] BYREF
float *v141; // [sp+50h] [bp-8Ch]
float *v142; // [sp+54h] [bp-88h]
char *v143; // [sp+58h] [bp-84h] BYREF
char *v144; // [sp+5Ch] [bp-80h]
unsigned int v145; // [sp+60h] [bp-7Ch] BYREF
char *v146; // [sp+64h] [bp-78h] BYREF
_DWORD *v147; // [sp+68h] [bp-74h]
_DWORD *v148; // [sp+6Ch] [bp-70h]
_DWORD v149[4]; // [sp+70h] [bp-6Ch] BYREF
float v150; // [sp+80h] [bp-5Ch] BYREF
float v151; // [sp+84h] [bp-58h]
float v152; // [sp+88h] [bp-54h]
int v153; // [sp+8Ch] [bp-50h]
float v154[4]; // [sp+90h] [bp-4Ch] BYREF
void *v155; // [sp+A0h] [bp-3Ch] BYREF
float v156; // [sp+A4h] [bp-38h]
float v157; // [sp+A8h] [bp-34h]
int v158; // [sp+ACh] [bp-30h]
_BYTE v159[8]; // [sp+B4h] [bp-28h] BYREF
_BYTE v160[8]; // [sp+BCh] [bp-20h] BYREF
_BYTE v161[8]; // [sp+C4h] [bp-18h] BYREF
_BYTE v162[8]; // [sp+CCh] [bp-10h] BYREF
v132 = a4;
v10 = *(_DWORD *)(a1 + 272);
v11 = *(_DWORD *)(v10 + 320);
v131 = *(float *)(v10 + 336);
(*(void (__fastcall **)(int))(*(_DWORD *)v11 + 288))(v11);
v12 = (a2[1] - *a2) >> 2;
if ( v12 && v12 <= (a3[1] - *a3) >> 2 )
{
v128 = v12 - 1;
v13 = *(_DWORD *)(*a3 + 4 * (v12 - 1));
v14 = (float)(*(float *)(a1 + 268) - 32.0) - 36.0;
if ( v14 < 10.0 )
v14 = 10.0;
if ( v13 > 99 )
{
LABEL_11:
v18 = 100;
}
else
{
v15 = v13 + 3;
if ( v13 + 3 < 0 )
v15 = v13 + 6;
v16 = v13 + (v15 >> 2);
v17 = 0;
while ( 1 )
{
v18 = dword_BF0A40[v17];
if ( v18 >= v16 )
break;
if ( ++v17 == 10 )
goto LABEL_11;
}
}
DeathHistogram::rebuildAxis(
(cocos2d::CCDrawNode **)a1,
(cocos2d::CCLabelBMFont *)"REACHED %",
v18,
32.0,
v14,
(cocos2d::CCLabelBMFont *)"ATTEMPTS");
v19 = (v12 + 399) / 400;
v20 = -1;
v21 = 0;
v137 = nullptr;
v138 = nullptr;
v139 = nullptr;
v140 = nullptr;
v141 = nullptr;
v142 = nullptr;
v143 = nullptr;
v144 = nullptr;
v145 = 0;
v146 = nullptr;
v147 = nullptr;
v148 = nullptr;
if ( v19 < 1 )
v19 = 1;
v126 = v19;
while ( v21 < v12 )
{
v22 = *a2;
v149[0] = v21;
v23 = *(_DWORD *)(v22 + 4 * v21);
if ( v18 <= v23 )
v24 = v18 <= 0;
else
v24 = v23 <= 0;
if ( v24 )
v25 = 0.0;
else
LODWORD(v25) = 1;
if ( v25 != 0.0 )
{
v25 = *(float *)(v22 + 4 * v21);
if ( v23 >= v18 )
v25 = *(float *)&v18;
}
v26 = *a3;
v150 = v25;
v154[0] = v25;
do
{
v27 = *(_DWORD *)(v22 + 4 * v149[0]);
if ( v18 <= v27 )
v28 = v18 <= 0;
else
v28 = v27 <= 0;
if ( v28 )
*(float *)&v29 = 0.0;
else
v29 = 1;
if ( *(float *)&v29 != 0.0 )
{
v29 = *(int *)(v22 + 4 * v149[0]);
if ( v27 >= v18 )
v29 = v18;
}
v30 = v149[0];
if ( v29 < SLODWORD(v150) )
v150 = *(float *)&v29;
if ( v29 > SLODWORD(v154[0]) )
LODWORD(v154[0]) = v29;
v31 = ++v149[0];
}
while ( *(_DWORD *)(v26 + 4 * v30) <= v20 && v31 < v12 && v31 - v21 < v126 );
if ( v138 == v139 )
{
std::vector::__push_back_slow_path((int)&v137, &v150);
}
else
{
if ( v138 )
*v138 = v150;
++v138;
}
if ( v141 == v142 )
{
std::vector::__push_back_slow_path((int)&v140, v154);
}
else
{
if ( v141 )
*v141 = v154[0];
++v141;
}
v32 = *(_DWORD *)(*a3 + 4 * (v149[0] - 1));
if ( v18 <= v32 )
v33 = v18 <= 0;
else
v33 = v32 <= 0;
if ( !v33 )
{
if ( v32 >= v18 )
v32 = v18;
}
else
{
v32 = 0;
}
if ( (unsigned int)v144 >= v145 )
{
v35 = (v144 - v143) >> 2;
v36 = v35 + 1;
if ( (unsigned int)(v35 + 1) >= 0x40000000 )
sub_38ABA0();
v37 = (int)(v145 - (_DWORD)v143) >> 2;
if ( v37 > 0x1FFFFFFE )
{
v36 = 0x3FFFFFFF;
}
else
{
v38 = 2 * v37;
if ( v36 < v38 )
v36 = v38;
}
std::__split_buffer::__split_buffer(&v155, v36, v35, (int)&v145);
if ( v157 != 0.0 )
*(_DWORD *)LODWORD(v157) = v32;
LODWORD(v157) += 4;
std::vector::__swap_out_circular_buffer((int)&v143, &v155);
LODWORD(v157) -= 4 * ((unsigned int)(LODWORD(v157) - LODWORD(v156)) >> 2);
if ( v155 )
operator delete(v155);
}
else
{
if ( v144 )
*(_DWORD *)v144 = v32;
v144 += 4;
}
if ( v147 == v148 )
{
std::vector::__push_back_slow_path((int)&v146, v149);
}
else
{
if ( v147 )
*v147 = v149[0];
++v147;
}
v21 = v149[0];
v20 = *(_DWORD *)(*a3 + 4 * (v149[0] - 1));
}
v127 = (v144 - v143) >> 2;
v39 = (cocos2d::CCDrawNode *)cocos2d::CCSize::CCSize(
(cocos2d::CCSize *)v154,
(const cocos2d::CCSize *)(*(_DWORD *)(a1 + 272) + 324));
v40 = v154[0];
v41 = v154[0] / (float)v127;
if ( v41 < 4.0 )
{
v41 = 4.0;
}
else if ( v41 > 30.0 )
{
v41 = 30.0;
}
v42 = (cocos2d::CCDrawNode *)cocos2d::CCDrawNode::create(v39);
v133[0] = 770;
v133[1] = 771;
cocos2d::CCDrawNode::setBlendFunc(v42, v133);
(*(void (__fastcall **)(int, cocos2d::CCDrawNode *))(*(_DWORD *)v11 + 228))(v11, v42);
v43 = 0;
v149[0] = 1058977874;
v149[1] = 1058977874;
v149[2] = 1058977874;
v149[3] = 0.5;
v153 = 1065353216;
v151 = (float)BYTE1(v132) / 255.0;
v152 = (float)BYTE2(v132) / 255.0;
v150 = (float)(unsigned __int8)v132 / 255.0;
while ( v43 < v127 )
{
v44 = (float)v18;
v45 = (float)((float)((float)*(int *)&v140[4 * v43] / (float)v18) * v14) + 32.0;
if ( v127 >= v12 )
{
if ( v43 )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v154,
(float)(v41 * 0.5) + (float)((float)(v43 - 1) * v41),
(float)((float)((float)*(int *)&v140[4 * v43 - 4] / v44) * v14) + 32.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, (float)(v41 * 0.5) + (float)((float)v43 * v41), v45);
cocos2d::CCDrawNode::drawSegment(v42, v154, &v155, 1061158912, v149);
}
}
else if ( v45 > (float)((float)((float)((float)((float)*(int *)&v137[4 * v43] / v44) * v14) + 32.0) + 0.5) )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v154,
(float)(v41 * 0.5) + (float)((float)v43 * v41),
(float)((float)((float)*(int *)&v137[4 * v43] / v44) * v14) + 32.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, (float)(v41 * 0.5) + (float)((float)v43 * v41), v45);
cocos2d::CCDrawNode::drawSegment(v42, v154, &v155, 1061158912, v149);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, (float)(v41 * 0.5) + (float)((float)v43 * v41), v45);
cocos2d::CCDrawNode::drawDot(v42, (cocos2d::CCPoint *)&v155);
++v43;
}
v46 = 0;
v47 = 0;
while ( v46 < v127 )
{
if ( *(_DWORD *)&v140[4 * v46] >= *(_DWORD *)&v143[4 * v46] )
v47 = v46;
++v46;
}
v48 = 1;
v49 = 0.0;
while ( v48 <= v47 )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v134,
(float)(v41 * 0.5) + (float)((float)(v48 - 1) * v41),
(float)((float)((float)*(int *)&v143[4 * v48 - 4] / (float)v18) * v14) + 32.0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v136,
(float)(v41 * 0.5) + (float)((float)v48 * v41),
(float)((float)((float)*(int *)&v143[4 * v48] / (float)v18) * v14) + 32.0);
v50 = v136[1] - v135;
v51 = v136[0] - v134;
v52 = sqrtf((float)(v50 * v50) + (float)(v51 * v51));
v53 = v52;
if ( v52 > 0.0 )
{
v54 = v51 / v52;
v55 = 0.0;
v56 = v50 / v52;
while ( v55 < v53 )
{
v57 = v53 - v55;
if ( v49 >= 3.0 )
v58 = 9.0 - v49;
else
v58 = 3.0 - v49;
if ( v58 <= v57 )
{
if ( v49 < 3.0 )
{
v57 = 3.0 - v49;
LABEL_116:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v154, v134 + (float)(v54 * v55), v135 + (float)(v56 * v55));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v155,
v134 + (float)(v54 * (float)(v55 + v57)),
v135 + (float)(v56 * (float)(v55 + v57)));
cocos2d::CCDrawNode::drawSegment(v42, v154, &v155, 1061158912, &v150);
goto LABEL_117;
}
v57 = 9.0 - v49;
}
if ( v49 < 3.0 )
goto LABEL_116;
LABEL_117:
v49 = v49 + v57;
v55 = v55 + v57;
if ( v49 >= 9.0 )
v49 = 0.0;
}
}
++v48;
}
v59 = v127 - 1;
if ( v47 < v127 - 1 )
{
v155 = (void *)LODWORD(v150);
v156 = v151;
v157 = v152;
v158 = 1055286886;
v60 = (float)((float)((float)*(int *)&v143[4 * v47] / (float)v18) * v14) + 32.0;
v61 = (float)(v41 * 0.5) + (float)((float)v47 * v41);
v62 = (float)(v41 * 0.5) + (float)((float)v59 * v41);
while ( v61 < v62 )
{
v63 = v62 - v61;
if ( v49 >= 3.0 )
v64 = 9.0 - v49;
else
v64 = 3.0 - v49;
if ( v64 <= v63 )
{
if ( v49 < 3.0 )
{
v63 = 3.0 - v49;
LABEL_132:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v61, v60);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v154, v61 + v63, v60);
cocos2d::CCDrawNode::drawSegment(v42, v136, v154, 1061158912, &v155);
goto LABEL_133;
}
v63 = 9.0 - v49;
}
if ( v49 < 3.0 )
goto LABEL_132;
LABEL_133:
v49 = v49 + v63;
v61 = v61 + v63;
if ( v49 >= 9.0 )
v49 = 0.0;
}
}
v65 = *(_DWORD *)&v143[4 * v59];
if ( v65 > 0 )
{
v66 = 0;
v154[3] = 1.0;
v154[1] = (float)BYTE1(a6) / 255.0;
v154[2] = (float)BYTE2(a6) / 255.0;
v154[0] = (float)(unsigned __int8)a6 / 255.0;
while ( v66 < v127 )
{
if ( v66 )
v67 = *(_DWORD *)&v143[4 * v66] <= *(_DWORD *)&v143[4 * v66 - 4];
else
v67 = *(_DWORD *)v143 <= 0;
v68 = !v67;
if ( *(_DWORD *)&v140[4 * v66] >= v65 )
{
v69 = v65;
}
else
{
if ( !v68 )
goto LABEL_154;
v69 = *(_DWORD *)&v143[4 * v66];
if ( v69 <= 0 )
goto LABEL_154;
}
if ( v69 > a5 )
v70 = v154;
else
v70 = &v150;
v71 = *(void **)v70;
v72 = v70[1];
v73 = v70[2];
v74 = *((_DWORD *)v70 + 3);
v155 = v71;
v156 = v72;
v157 = v73;
v158 = v74;
v75 = (float)(v41 * 0.5) + (float)((float)v66 * v41);
v76 = (float)((float)((float)v69 / (float)v18) * v14) + 32.0;
v77 = v75 - 2.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v75 - 2.0, v76 - 2.0);
v78 = v75 + 2.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v160, v78, v76 - 2.0);
v79 = v76 + 2.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v161, v78, v79);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v77, v79);
cocos2d::CCDrawNode::drawPolygon((int)v42, (int)v159, 4, (int)&v155, 0.0, (int)&v155, 0);
LABEL_154:
++v66;
}
}
v80 = v41 * 0.5;
v81 = *(const char **)(*a3 + 4 * v128);
v82 = (float)(v41 * 0.5) + (float)((float)v47 * v41);
v83 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v81);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v83);
v86 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v85);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v86 + 80))(v86, 1050924810);
if ( (int)v81 > a5 )
v87 = &a6;
else
v87 = &v132;
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v86 + 536))(v86, v87);
v88 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v86 + 164))(v86);
v89 = (*(float (__fastcall **)(int))(*(_DWORD *)v86 + 84))(v86);
v90 = (float)v127 * v41;
v91 = (float)(v88 * v89) * 0.5;
v92 = (float)(v90 - v91) - 2.0;
if ( v82 > v92 )
v93 = (float)(v90 - v91) - 2.0;
else
v93 = (float)(v41 * 0.5) + (float)((float)v47 * v41);
if ( v91 >= v93 )
{
v92 = (float)(v88 * v89) * 0.5;
}
else if ( v82 <= v92 )
{
v92 = (float)(v41 * 0.5) + (float)((float)v47 * v41);
}
v94 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v86 + 92);
v95 = (float)v18;
if ( v18 <= (int)v81 )
{
v96 = 0.0;
if ( v18 > 0 )
v96 = (float)v18;
}
else if ( (int)v81 > 0 )
{
v96 = (float)(int)v81;
}
else
{
v96 = 0.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, v92, (float)((float)((float)(v96 / v95) * v14) + 32.0) + 9.0);
v94(v86, &v155);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 228))(v11, v86);
v97 = v92 - v91;
v98 = v47 - 1;
v99 = 4 * v98;
while ( v98 != -1 )
{
if ( v98 )
v100 = *(_DWORD *)&v143[v99] <= *(_DWORD *)&v143[v99 - 4];
else
v100 = *(_DWORD *)v143 <= 0;
if ( !v100 )
{
v102 = *(_DWORD *)&v143[v99];
if ( v102 > a5 )
{
v103 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i%%",
*(const char **)&v143[v99]);
v104 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v103);
v106 = cocos2d::CCLabelBMFont::create(v104, "bigFont.fnt", v105);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v106 + 80))(v106, 1050924810);
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v106 + 536))(v106, &a6);
v107 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v106 + 164))(v106);
v108 = v80 + (float)((float)v98 * v41);
v109 = (float)(v107 * (*(float (__fastcall **)(int))(*(_DWORD *)v106 + 84))(v106)) * 0.5;
if ( (float)(v108 + v109) <= (float)(v97 - 3.0) )
{
v130 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v106 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v155,
v80 + (float)((float)v98 * v41),
(float)((float)((float)((float)v102 / v95) * v14) + 32.0) + 9.0);
v130(v106, &v155);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 228))(v11, v106);
v97 = v108 - v109;
}
}
}
--v98;
v99 -= 4;
}
v110 = 4;
v111 = -1000000000.0;
while ( v110 < v127 )
{
v112 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)&v146[4 * v110]);
v113 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v112);
v115 = cocos2d::CCLabelBMFont::create(v113, "chatFont.fnt", v114);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v115 + 80))(v115, 1055286886);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v115 + 536))(v115, &unk_BF09F8);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v115 + 512))(v115, 200);
v116 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v115 + 164))(v115);
v117 = v80 + (float)((float)v110 * v41);
v118 = (float)(v116 * (*(float (__fastcall **)(int))(*(_DWORD *)v115 + 84))(v115)) * 0.5;
if ( (float)(v117 - v118) >= (float)(v111 + 4.0) )
{
v129 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v115 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, v80 + (float)((float)v110 * v41), 25.0);
v129(v115, &v155);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 228))(v11, v115);
v111 = v117 + v118;
}
v110 += 5;
}
if ( v90 < v40 )
v119 = v40;
else
v119 = (float)v127 * v41;
ScrollableContentLayer::setContentHeight(*(ScrollableContentLayer **)(a1 + 272), v119);
if ( a7 )
v120 = v131;
else
v120 = (float)v127 * v41;
ScrollableContentLayer::scrollTo(*(ScrollableContentLayer **)(a1 + 272), v120);
std::__vector_base::~__vector_base(&v146);
std::__vector_base::~__vector_base(&v143);
std::__vector_base::~__vector_base(&v140);
std::__vector_base::~__vector_base(&v137);
}
else
{
cocos2d::CCDrawNode::clear(*(cocos2d::CCDrawNode **)(a1 + 276));
(*(void (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 280) + 288))(*(_DWORD *)(a1 + 280));
v121 = cocos2d::CCRect::operator=(a1 + 304, &unk_D2E050);
cocos2d::CCRect::operator=(a1 + 288, v121);
v123 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"No attempts yet.", "chatFont.fnt", v122);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v123 + 80))(v123, 1058642330);
v124 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v123 + 536);
LOWORD(v155) = -26986;
BYTE2(v155) = -106;
v124(v123, &v155);
v125 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v123 + 92);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v154, (const cocos2d::CCSize *)(*(_DWORD *)(a1 + 272) + 324));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, v154[0] * 0.5, *(float *)(a1 + 268) * 0.5);
v125(v123, &v155);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 228))(v11, v123);
ScrollableContentLayer::setContentHeight(*(ScrollableContentLayer **)(a1 + 272), *(float *)(a1 + 264));
ScrollableContentLayer::scrollTo(*(ScrollableContentLayer **)(a1 + 272), 0.0);
}
}