//
// DeathTrackerPopup::buildStatRow from 0xcabe68 to 0xcac718 (2224 bytes)
//
// 4 xrefs:
// > DeathTrackerPopup::refreshGlobal @ 0xcacf14
// > DeathTrackerPopup::refreshGlobal @ 0xcacf24
// > DeathTrackerPopup::refreshView @ 0xcb26b8
// > ??> @ 0x4d788
//
// This function is hookable on this platform (idp: arm, 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 13:06:05 +0000
//
__int64 __fastcall DeathTrackerPopup::buildStatRow(__int64 a1, __int64 a2, __int64 a3)
{
const char *v5; // x1
__int64 v6; // x0
float v7; // s9
__int64 v8; // x24
unsigned __int64 v9; // x25
cocos2d::CCSprite *v10; // x0
__int64 v11; // x0
__int64 v12; // x20
const char *v13; // x26
void (__fastcall *v14)(__int64, long double); // x19
int v15; // w0
long double v16; // q0
int v17; // w0
__int64 v18; // x20
void (__fastcall *v19)(__int64, char *); // x26
__int64 *v20; // x1
__int64 v21; // x1
cocos2d::CCLabelBMFont *v22; // x0
__int64 v23; // x26
void (__fastcall *v24)(__int64, char *); // x27
__int64 *v25; // x1
__int64 v26; // x1
cocos2d::CCLabelBMFont *v27; // x0
__int64 v28; // x26
void (__fastcall *v29)(__int64, char *); // x27
__int64 *v30; // x1
__int64 v31; // x0
const char *v32; // x2
int v33; // w1
cocos2d::CCLabelBMFont *v34; // x0
__int64 v35; // x0
__int64 v36; // x20
void (__fastcall *v37)(__int64, char *); // x26
__int64 *v38; // x1
float v39; // s15
float v40; // s15
unsigned __int64 v41; // x20
float v42; // s8
unsigned __int64 v43; // x24
__int64 v44; // x25
void (__fastcall *v45)(__int64, char *); // x26
float v46; // s15
__int64 v47; // x25
void (__fastcall *v48)(__int64, char *); // x26
float *v49; // x0
__int64 v50; // x25
void (__fastcall *v51)(__int64, char *); // x26
float v52; // s8
float v53; // s8
__int64 v54; // x25
float v55; // s8
void (__fastcall *v56)(__int64, char *); // x26
__int64 v58; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v59; // [xsp+A8h] [xbp+A8h] BYREF
__int64 v60; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v61; // [xsp+B8h] [xbp+B8h] BYREF
char v62[8]; // [xsp+C0h] [xbp+C0h] BYREF
void *v63; // [xsp+C8h] [xbp+C8h] BYREF
char *v64; // [xsp+D0h] [xbp+D0h]
char *v65; // [xsp+D8h] [xbp+D8h]
void *v66; // [xsp+E0h] [xbp+E0h] BYREF
__int64 *v67; // [xsp+E8h] [xbp+E8h]
__int64 *v68; // [xsp+F0h] [xbp+F0h]
void *v69; // [xsp+F8h] [xbp+F8h] BYREF
__int64 *v70; // [xsp+100h] [xbp+100h]
__int64 *v71; // [xsp+108h] [xbp+108h]
void *v72; // [xsp+110h] [xbp+110h] BYREF
char *v73; // [xsp+118h] [xbp+118h]
char *v74; // [xsp+120h] [xbp+120h]
if ( !a3 )
return _stack_chk_guard;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a3 + 576LL))(a3);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)a3 + 160LL))(a3, 1.0);
v63 = nullptr;
v5 = *(const char **)a2;
v6 = *(_QWORD *)(a2 + 8);
v64 = nullptr;
v65 = nullptr;
v66 = nullptr;
v67 = nullptr;
v68 = nullptr;
v69 = nullptr;
v70 = nullptr;
v71 = nullptr;
v72 = nullptr;
v73 = nullptr;
v74 = nullptr;
if ( !(0x2E8BA2E8BA2E8BA3LL * ((v6 - (__int64)v5) >> 3)) )
goto LABEL_51;
v7 = 0.0;
v8 = 0;
v9 = 0;
do
{
v10 = *(cocos2d::CCSprite **)&v5[v8];
if ( v10 )
{
v11 = cocos2d::CCSprite::createWithSpriteFrameName(v10, v5);
v58 = v11;
v12 = v11;
if ( v11 )
{
v13 = *(const char **)(*(_QWORD *)a2 + v8);
v14 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v11 + 160LL);
v15 = strcmp(v13, "GJ_attemptsIcon_001.png");
LODWORD(v16) = 1060655596;
if ( v15 )
{
v17 = strcmp(v13, "GJ_flagIcon_001.png");
LODWORD(v16) = 1059648963;
if ( v17 )
LODWORD(v16) = 1058642330;
}
v14(v12, v16);
v18 = v58;
v19 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v58 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 0.5);
v19(v18, v62);
}
v20 = (__int64 *)v64;
if ( v64 == v65 )
{
LABEL_73:
std::vector::__push_back_slow_path((__int64)&v63, &v58);
goto LABEL_14;
}
}
else
{
v20 = (__int64 *)v64;
v58 = 0;
if ( v64 == v65 )
goto LABEL_73;
}
if ( v20 )
{
*v20 = v58;
v20 = (__int64 *)v64;
}
v64 = (char *)(v20 + 1);
LABEL_14:
v21 = *(_QWORD *)a2 + v8;
v22 = (cocos2d::CCLabelBMFont *)(v21 + 9);
if ( (*(_BYTE *)(v21 + 8) & 1) != 0 )
v22 = *(cocos2d::CCLabelBMFont **)(v21 + 24);
v59 = cocos2d::CCLabelBMFont::create(v22, "goldFont.fnt", (const char *)(v21 + 8));
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v59 + 160LL))(v59, 0.5);
v23 = v59;
v24 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v59 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 0.5);
v24(v23, v62);
v25 = v67;
if ( v67 == v68 )
{
std::vector::__push_back_slow_path((__int64)&v66, &v59);
}
else
{
if ( v67 )
{
*v67 = v59;
v25 = v67;
}
v67 = v25 + 1;
}
v26 = *(_QWORD *)a2 + v8;
v27 = (cocos2d::CCLabelBMFont *)(v26 + 33);
if ( (*(_BYTE *)(v26 + 32) & 1) != 0 )
v27 = *(cocos2d::CCLabelBMFont **)(v26 + 48);
v60 = cocos2d::CCLabelBMFont::create(v27, "bigFont.fnt", (const char *)(v26 + 32));
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v60 + 160LL))(v60, 0.4);
v28 = v60;
v29 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v60 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 0.5);
v29(v28, v62);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v60 + 1072LL))(v60, *(_QWORD *)a2 + v8 + 80);
v30 = v70;
if ( v70 == v71 )
{
std::vector::__push_back_slow_path((__int64)&v69, &v60);
}
else
{
if ( v70 )
{
*v70 = v60;
v30 = v70;
}
v70 = v30 + 1;
}
v31 = *(_QWORD *)a2 + v8;
v32 = (const char *)(v31 + 56);
v33 = *(unsigned __int8 *)(v31 + 56);
if ( (v33 & 1) != 0 )
{
if ( !*(_QWORD *)(v31 + 64) )
goto LABEL_68;
v34 = *(cocos2d::CCLabelBMFont **)(v31 + 72);
}
else
{
if ( !(v33 >> 1) )
{
LABEL_68:
v38 = (__int64 *)v73;
v61 = 0;
if ( v73 == v74 )
goto LABEL_69;
goto LABEL_32;
}
v34 = (cocos2d::CCLabelBMFont *)(v31 + 57);
}
v35 = cocos2d::CCLabelBMFont::create(v34, "goldFont.fnt", v32);
v61 = v35;
if ( v35 )
{
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 0.5);
v36 = v61;
v37 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v61 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 0.5);
v37(v36, v62);
}
v38 = (__int64 *)v73;
if ( v73 == v74 )
{
LABEL_69:
std::vector::__push_back_slow_path((__int64)&v72, &v61);
goto LABEL_35;
}
LABEL_32:
if ( v38 )
{
*v38 = v61;
v38 = (__int64 *)v73;
}
v73 = (char *)(v38 + 1);
LABEL_35:
if ( v9 )
v7 = v7 + 16.0;
if ( v58 )
{
v39 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v58 + 328LL))(v58);
v7 = v7 + (float)((float)(v39 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v58 + 168LL))(v58)) + 4.0);
}
v40 = (float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v59 + 328LL))(v59) * 0.5) + 5.0;
v7 = v7 + (float)(v40 + (float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v60 + 328LL))(v60) * 0.4));
if ( v61 )
v7 = v7
+ (float)((float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v61 + 328LL))(v61) * 0.5) + 5.0);
v5 = *(const char **)a2;
++v9;
v8 += 88;
v41 = 0x2E8BA2E8BA2E8BA3LL * ((__int64)(*(_QWORD *)(a2 + 8) - *(_QWORD *)a2) >> 3);
}
while ( v9 < v41 );
v42 = (float)-v7 * 0.5;
if ( v41 )
{
v43 = 0;
do
{
v44 = *((_QWORD *)v63 + v43);
if ( v44 )
{
v45 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v44 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v42, -1.5);
v45(v44, v62);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a3 + 456LL))(a3, *((_QWORD *)v63 + v43));
v46 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v63 + v43) + 328LL))(*((_QWORD *)v63 + v43));
v42 = v42
+ (float)((float)(v46
* (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v63 + v43) + 168LL))(*((_QWORD *)v63 + v43)))
+ 4.0);
}
v47 = *((_QWORD *)v66 + v43);
v48 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v47 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v42, 0.0);
v48(v47, v62);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a3 + 456LL))(a3, *((_QWORD *)v66 + v43));
v49 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v66 + v43) + 328LL))(*((_QWORD *)v66 + v43));
v50 = *((_QWORD *)v69 + v43);
v51 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v50 + 184LL);
v52 = v42 + (float)((float)(*v49 * 0.5) + 5.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v52, -0.5);
v51(v50, v62);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a3 + 456LL))(a3, *((_QWORD *)v69 + v43));
v53 = v52
+ (float)(*(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v69 + v43) + 328LL))(*((_QWORD *)v69 + v43))
* 0.4);
v54 = *((_QWORD *)v72 + v43);
if ( v54 )
{
v55 = v53 + 5.0;
v56 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v54 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v55, 0.0);
v56(v54, v62);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a3 + 456LL))(a3, *((_QWORD *)v72 + v43));
v53 = v55
+ (float)(*(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v72 + v43) + 328LL))(*((_QWORD *)v72 + v43))
* 0.5);
}
++v43;
v42 = v53 + 16.0;
}
while ( v43 < 0x2E8BA2E8BA2E8BA3LL * ((__int64)(*(_QWORD *)(a2 + 8) - *(_QWORD *)a2) >> 3) );
}
if ( v7 > 350.0 )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)a3 + 160LL))(a3, 350.0 / v7);
LABEL_51:
if ( v72 )
{
if ( v72 != v73 )
v73 += 8 * ~((unsigned __int64)(v73 - 8 - (_BYTE *)v72) >> 3);
operator delete(v72);
}
if ( v69 )
{
if ( v69 != v70 )
v70 += ~((unsigned __int64)((char *)(v70 - 1) - (_BYTE *)v69) >> 3);
operator delete(v69);
}
if ( v66 )
{
if ( v66 != v67 )
v67 += ~((unsigned __int64)((char *)(v67 - 1) - (_BYTE *)v66) >> 3);
operator delete(v66);
}
if ( v63 )
{
if ( v63 != v64 )
v64 += 8 * ~((unsigned __int64)(v64 - 8 - (_BYTE *)v63) >> 3);
operator delete(v63);
}
return _stack_chk_guard;
}