// // DeathTrackerPopup::buildStatRow from 0x771c6c to 0x772156 (1258 bytes) // // 3 xrefs: // > DeathTrackerPopup::refreshGlobal @ 0x772f2e // > DeathTrackerPopup::refreshGlobal @ 0x772f3a // > DeathTrackerPopup::refreshView @ 0x774f00 // // 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:16 +0000 // void __fastcall DeathTrackerPopup::buildStatRow(int a1, _DWORD *a2, int a3) { unsigned int v5; // r4 float v6; // s17 int v7; // r5 cocos2d::CCSprite *v8; // r0 cocos2d::CCSprite *v9; // r11 void (__fastcall *v10)(cocos2d::CCSprite *, _DWORD); // r9 float v11; // s15 cocos2d::CCSprite *v12; // r9 void (__fastcall *v13)(cocos2d::CCSprite *, _BYTE *); // r11 const char *v14; // r2 int v15; // r0 cocos2d::CCLabelBMFont *v16; // r0 int v17; // r9 void (__fastcall *v18)(int, _BYTE *); // r11 int v19; // r0 int v20; // r3 cocos2d::CCLabelBMFont *v21; // r0 const char *v22; // r9 void (__fastcall *v23)(const char *, _BYTE *); // r11 const char *v24; // r2 int v25; // r5 int v26; // r0 int v27; // r0 cocos2d::CCLabelBMFont *v28; // r0 int v29; // r5 void (__fastcall *v30)(int, _BYTE *); // r9 float v31; // s16 float v32; // s18 unsigned int v33; // r9 float v34; // s16 int v35; // r10 void (__fastcall *v36)(int, _BYTE *); // r11 float v37; // s21 int v38; // r10 void (__fastcall *v39)(int, _BYTE *); // r11 float *v40; // r0 int v41; // r10 void (__fastcall *v42)(int, _BYTE *); // r11 float v43; // s16 float *v44; // r0 int v45; // r10 float v46; // s16 void (__fastcall *v47)(int, _BYTE *); // r11 float v48; // s16 char *v49; // [sp+14h] [bp-58h] cocos2d::CCSprite *v50; // [sp+1Ch] [bp-50h] BYREF int v51; // [sp+20h] [bp-4Ch] BYREF const char *v52; // [sp+24h] [bp-48h] BYREF int v53; // [sp+28h] [bp-44h] BYREF _BYTE v54[8]; // [sp+2Ch] [bp-40h] BYREF char *v55; // [sp+34h] [bp-38h] BYREF cocos2d::CCSprite **v56; // [sp+38h] [bp-34h] cocos2d::CCSprite **v57; // [sp+3Ch] [bp-30h] char *v58; // [sp+40h] [bp-2Ch] BYREF _DWORD *v59; // [sp+44h] [bp-28h] _DWORD *v60; // [sp+48h] [bp-24h] char *v61; // [sp+4Ch] [bp-20h] BYREF const char **v62; // [sp+50h] [bp-1Ch] const char **v63; // [sp+54h] [bp-18h] char *v64; // [sp+58h] [bp-14h] BYREF int *v65; // [sp+5Ch] [bp-10h] int *v66; // [sp+60h] [bp-Ch] if ( !a3 ) return; v5 = 0; v6 = 0.0; (*(void (__fastcall **)(int))(*(_DWORD *)a3 + 288))(a3); (*(void (__fastcall **)(int, int))(*(_DWORD *)a3 + 80))(a3, 1065353216); v55 = nullptr; v56 = nullptr; v57 = nullptr; v58 = nullptr; v59 = nullptr; v60 = nullptr; v61 = nullptr; v62 = nullptr; v63 = nullptr; v64 = nullptr; v65 = nullptr; v66 = nullptr; while ( v5 < -1171354717 * ((a2[1] - *a2) >> 2) ) { v7 = 44 * v5; v8 = *(cocos2d::CCSprite **)(*a2 + 44 * v5); if ( v8 ) v8 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v8, (const char *)0xBA2E8BA3); v9 = v8; v50 = v8; if ( v8 ) { v10 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD))(*(_DWORD *)v8 + 80); v49 = *(char **)(*a2 + 44 * v5); if ( !strcmp(v49, "GJ_attemptsIcon_001.png") ) { v11 = 1.2; } else { v11 = 1.1; if ( strcmp(v49, "GJ_flagIcon_001.png") ) v11 = 1.0; } v10(v9, v11 * 0.6); v12 = v50; v13 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v50 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, 0.0, 0.5); v13(v12, v54); } if ( v56 == v57 ) { std::vector::__push_back_slow_path((int)&v55, &v50); } else { v14 = (const char *)v50; if ( v56 ) *v56 = v50; ++v56; } v15 = *a2 + v7; if ( (*(_BYTE *)(v15 + 4) & 1) != 0 ) v16 = *(cocos2d::CCLabelBMFont **)(v15 + 12); else v16 = (cocos2d::CCLabelBMFont *)(v15 + 5); v51 = cocos2d::CCLabelBMFont::create(v16, "goldFont.fnt", v14); (*(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 80))(v51, 1056964608); v17 = v51; v18 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v51 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, 0.0, 0.5); v18(v17, v54); if ( v59 == v60 ) { std::vector::__push_back_slow_path((int)&v58, &v51); } else { if ( v59 ) *v59 = v51; ++v59; } v19 = *a2 + v7; v20 = *(unsigned __int8 *)(v19 + 16); if ( (v20 & 1) != 0 ) v21 = *(cocos2d::CCLabelBMFont **)(v19 + 24); else v21 = (cocos2d::CCLabelBMFont *)(v19 + 17); v52 = (const char *)cocos2d::CCLabelBMFont::create(v21, "bigFont.fnt", (const char *)(v20 << 31)); (*(void (__fastcall **)(const char *, int))(*(_DWORD *)v52 + 80))(v52, 1053609165); v22 = v52; v23 = *(void (__fastcall **)(const char *, _BYTE *))(*(_DWORD *)v52 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, 0.0, 0.5); v23(v22, v54); (*(void (__fastcall **)(const char *, int))(*(_DWORD *)v52 + 536))(v52, *a2 + v7 + 40); if ( v62 == v63 ) { std::vector::__push_back_slow_path((int)&v61, &v52); } else { v24 = v52; if ( v62 ) *v62 = v52; ++v62; } v25 = v7 + *a2; v26 = *(unsigned __int8 *)(v25 + 28); if ( (v26 & 1) != 0 ) { v27 = *(_DWORD *)(v25 + 32); if ( !v27 ) goto LABEL_40; v28 = *(cocos2d::CCLabelBMFont **)(v25 + 36); } else { v27 = v26 >> 1; if ( !v27 ) goto LABEL_40; v28 = (cocos2d::CCLabelBMFont *)(v25 + 29); } v27 = cocos2d::CCLabelBMFont::create(v28, "goldFont.fnt", v24); LABEL_40: v53 = v27; if ( v27 ) { (*(void (__fastcall **)(int, int, const char *))(*(_DWORD *)v27 + 80))(v27, 1056964608, v24); v29 = v53; v30 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v53 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, 0.0, 0.5); v30(v29, v54); } if ( v65 == v66 ) { std::vector::__push_back_slow_path((int)&v64, &v53); } else { if ( v65 ) *v65 = v53; ++v65; } if ( v5 ) v6 = v6 + 16.0; if ( v50 ) { v31 = *(float *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v50 + 164))(v50); v6 = v6 + (float)((float)(v31 * (*(float (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v50 + 84))(v50)) + 4.0); } v32 = (float)(*(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v51 + 164))(v51) * 0.5) + 5.0; v6 = v6 + (float)(v32 + (float)(*(float *)(*(int (__fastcall **)(const char *))(*(_DWORD *)v52 + 164))(v52) * 0.4)); if ( v53 ) v6 = v6 + (float)((float)(*(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v53 + 164))(v53) * 0.5) + 5.0); ++v5; } v33 = 0; v34 = -(float)(v6 * 0.5); while ( v33 < -1171354717 * ((a2[1] - *a2) >> 2) ) { v35 = *(_DWORD *)&v55[4 * v33]; if ( v35 ) { v36 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v35 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, v34, -1.5); v36(v35, v54); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a3 + 228))(a3, *(_DWORD *)&v55[4 * v33]); v37 = *(float *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)&v55[4 * v33] + 164))(*(_DWORD *)&v55[4 * v33]); v34 = v34 + (float)((float)(v37 * (*(float (__fastcall **)(_DWORD))(**(_DWORD **)&v55[4 * v33] + 84))(*(_DWORD *)&v55[4 * v33])) + 4.0); } v38 = *(_DWORD *)&v58[4 * v33]; v39 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v38 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, v34, 0.0); v39(v38, v54); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a3 + 228))(a3, *(_DWORD *)&v58[4 * v33]); v40 = (float *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)&v58[4 * v33] + 164))(*(_DWORD *)&v58[4 * v33]); v41 = *(_DWORD *)&v61[4 * v33]; v42 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v41 + 92); v43 = v34 + (float)((float)(*v40 * 0.5) + 5.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, v43, -0.5); v42(v41, v54); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a3 + 228))(a3, *(_DWORD *)&v61[4 * v33]); v44 = (float *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)&v61[4 * v33] + 164))(*(_DWORD *)&v61[4 * v33]); v45 = *(_DWORD *)&v64[4 * v33]; v46 = v43 + (float)(*v44 * 0.4); if ( v45 ) { v47 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v45 + 92); v48 = v46 + 5.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, v48, 0.0); v47(v45, v54); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a3 + 228))(a3, *(_DWORD *)&v64[4 * v33]); v46 = v48 + (float)(*(float *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)&v64[4 * v33] + 164))(*(_DWORD *)&v64[4 * v33]) * 0.5); } ++v33; v34 = v46 + 16.0; } if ( v6 > 350.0 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a3 + 80))(a3, 350.0 / v6); std::__vector_base::~__vector_base(&v64); std::__vector_base::~__vector_base(&v61); std::__vector_base::~__vector_base(&v58); std::__vector_base::~__vector_base(&v55); }
GD Web Decomp Icon

GD Web Decomp

Raw Source