// // DeathTrackerPopup::buildHistory from 0x7731c8 to 0x773728 (1376 bytes) // // 2 xrefs: // > DeathTrackerPopup::refreshView @ 0x775026 // > DeathTrackerPopup::setView @ 0x775428 // // 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:17 +0000 // void __fastcall DeathTrackerPopup::buildHistory(DeathTrackerPopup *this) { int v1; // r5 int v3; // r0 int v4; // r3 _BOOL4 v5; // r2 int v6; // r6 int v7; // r2 int v8; // r3 int v9; // r0 int i; // r5 int v11; // r1 int v12; // r9 int v13; // r8 int v14; // r5 int v15; // r7 int v16; // r10 int v17; // r9 DTHistRow *v18; // r0 int v19; // r2 const char *v20; // r1 const char *v21; // r2 char *v22; // r3 cocos2d::CCString *v23; // r0 char *CString; // r0 DTHistRow *v25; // r0 int v26; // r3 DTHistRow *v27; // r0 unsigned int v28; // r7 int v29; // r10 int v30; // r3 int v31; // r3 int v32; // r1 DTHistRow *v33; // r3 DTHistRow *v34; // r0 int v35; // r3 DTHistRow *v36; // r0 int v37; // r7 int v38; // r10 int v39; // r2 char *v40; // r1 int v41; // r3 int v42; // r2 int v43; // r3 DTHistRow *v44; // r0 DTHistRow *v45; // r3 int v46; // [sp+8h] [bp-8Ch] _BOOL4 v47; // [sp+Ch] [bp-88h] unsigned int v48; // [sp+10h] [bp-84h] _BOOL4 v49; // [sp+14h] [bp-80h] int v50; // [sp+34h] [bp-60h] int v51; // [sp+34h] [bp-60h] int v52; // [sp+38h] [bp-5Ch] int v53; // [sp+38h] [bp-5Ch] char *v54; // [sp+44h] [bp-50h] BYREF char *v55; // [sp+48h] [bp-4Ch] int v56; // [sp+4Ch] [bp-48h] char *v57; // [sp+50h] [bp-44h] BYREF int v58; // [sp+54h] [bp-40h] int v59; // [sp+58h] [bp-3Ch] int v60[3]; // [sp+5Ch] [bp-38h] BYREF int v61; // [sp+68h] [bp-2Ch] BYREF int v62; // [sp+6Ch] [bp-28h] int v63; // [sp+70h] [bp-24h] int v64; // [sp+74h] [bp-20h] int v65; // [sp+78h] [bp-1Ch] int v66; // [sp+7Ch] [bp-18h] int v67[3]; // [sp+80h] [bp-14h] BYREF v1 = *((_DWORD *)this + 177); while ( 1 ) { v3 = *((_DWORD *)this + 178); if ( v1 == v3 ) break; *((_DWORD *)this + 178) = v3 - 36; std::string::~string(v3 - 12); } v4 = *((_DWORD *)this + 143); if ( v4 ) v5 = v4 == 2; else v5 = 1; v6 = *((unsigned __int8 *)this + 564); v47 = v5; v48 = v4 - 1; v7 = *((_DWORD *)this + 145); v49 = v4 == 2; v8 = *((_DWORD *)this + 146); if ( *((_BYTE *)this + 564) ) { v6 = 0; } else { v9 = *((_DWORD *)this + 146); for ( i = 954437177 * ((v8 - v7) >> 2) - 1; i > *((_DWORD *)this + 142); --i ) { v11 = *(_DWORD *)(v9 - 4); v9 -= 36; if ( v6 < v11 ) v6 = v11; } } v12 = 0; v13 = 0; v14 = 954437177 * ((v8 - v7) >> 2) - 1; v46 = 36 * v14; while ( v14 >= 0 ) { if ( !*((_BYTE *)this + 564) && v14 != *((_DWORD *)this + 142) ) goto LABEL_28; v15 = *((_DWORD *)this + 145) + v46; v54 = nullptr; v55 = nullptr; v56 = 0; GJGameLevel::dtExpandOrder((unsigned __int8 *)(v15 + 4), (int)&v54); v57 = nullptr; v58 = 0; v59 = 0; GJGameLevel::dtExpandOrder((unsigned __int8 *)(v15 + 16), (int)&v57); if ( !v47 || v54 == v55 ) { if ( v48 > 1 ) { LABEL_108: std::__vector_base::~__vector_base(&v57); std::__vector_base::~__vector_base(&v54); goto LABEL_28; } v16 = 0; goto LABEL_22; } if ( v48 <= 1 ) { v16 = 1; LABEL_22: if ( (unsigned int)(v58 - (_DWORD)v57) <= 7 ) { if ( !v16 ) goto LABEL_108; v17 = 0; } else { v17 = 1; } goto LABEL_24; } v17 = 0; v16 = 1; LABEL_24: if ( *((_BYTE *)this + 564) ) { sub_7710F0(v60, *(_DWORD *)v15); DTHistRow::DTHistRow((DTHistRow *)&v61); v61 = 0; v62 = 1098907648; v66 = 0; v19 = *((_DWORD *)this + 145); v65 = 0; v64 = 0; v63 = 0; v20 = (const char *)(954437177 * ((*((_DWORD *)this + 146) - v19) >> 2) - v14); if ( (v60[0] & 1) != 0 ) { if ( v60[1] ) v21 = " - "; else v21 = (const char *)&unk_B6B226; v22 = (char *)v60[2]; } else { v22 = (char *)v60 + 1; if ( LOBYTE(v60[0]) >> 1 ) v21 = " - "; else v21 = (const char *)&unk_B6B226; } v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Session %i%s%s", v20, v21, v22); CString = (char *)cocos2d::CCString::getCString(v23); std::string::assign(v67, CString); v25 = *((DTHistRow **)this + 178); if ( v25 == *((DTHistRow **)this + 179) ) { std::vector::__push_back_slow_path((int *)this + 177, (const DTHistRow *)&v61); } else { if ( v25 ) DTHistRow::DTHistRow(v25, (const DTHistRow *)&v61); *((_DWORD *)this + 178) += 36; } std::string::~string((int)v67); std::string::~string((int)v60); } if ( v16 ) { if ( v49 ) { DTHistRow::DTHistRow((DTHistRow *)&v61); v61 = 1; v62 = 1098907648; if ( *((_BYTE *)this + 564) ) v26 = 20; else v26 = 10; v63 = v26; v66 = 0; v65 = 0; v64 = 0; std::string::assign(v67, "Full Runs"); v27 = *((DTHistRow **)this + 178); if ( v27 == *((DTHistRow **)this + 179) ) { std::vector::__push_back_slow_path((int *)this + 177, (const DTHistRow *)&v61); } else { if ( v27 ) DTHistRow::DTHistRow(v27, (const DTHistRow *)&v61); *((_DWORD *)this + 178) += 36; } std::string::~string((int)v67); } v28 = 0; v29 = 0; while ( v28 < (v55 - v54) >> 2 ) { v30 = *(_DWORD *)&v54[4 * v28]; if ( v30 > 99 ) v31 = 100; else v31 = v30 & ~(v30 >> 31); if ( v31 <= v29 ) { v32 = 0; } else { v29 = v31; if ( v31 <= v6 ) v32 = 1; else v32 = 2; } v52 = v31; v50 = v32; DTHistRow::DTHistRow((DTHistRow *)&v61); v61 = 2; v62 = 1098907648; v64 = v52; v63 = v28 + 1; v33 = *((DTHistRow **)this + 179); v34 = *((DTHistRow **)this + 178); v65 = v50; v66 = v28 + v13; if ( v34 == v33 ) { std::vector::__push_back_slow_path((int *)this + 177, (const DTHistRow *)&v61); } else { if ( v34 ) DTHistRow::DTHistRow(v34, (const DTHistRow *)&v61); *((_DWORD *)this + 178) += 36; } ++v28; std::string::~string((int)v67); } v13 += v28; if ( v6 < v29 ) v6 = v29; } if ( v17 ) { if ( v49 ) { DTHistRow::DTHistRow((DTHistRow *)&v61); v61 = 1; v62 = 1098907648; if ( *((_BYTE *)this + 564) ) v35 = 20; else v35 = 10; v63 = v35; v66 = 0; v65 = 0; v64 = 0; std::string::assign(v67, "Startpos Runs"); v36 = *((DTHistRow **)this + 178); if ( v36 == *((DTHistRow **)this + 179) ) { std::vector::__push_back_slow_path((int *)this + 177, (const DTHistRow *)&v61); } else { if ( v36 ) DTHistRow::DTHistRow(v36, (const DTHistRow *)&v61); *((_DWORD *)this + 178) += 36; } std::string::~string((int)v67); } v37 = 0; while ( 1 ) { v38 = v37 + v13; if ( (v58 - (int)v57) >> 2 < (unsigned int)(2 * (v37 + 1)) ) break; v39 = *(_DWORD *)&v57[8 * v37]; v40 = &v57[8 * v37++]; v41 = *((_DWORD *)v40 + 1); if ( v39 > 99 ) v42 = 100; else v42 = v39 & ~(v39 >> 31); v51 = v42; if ( v41 > 99 ) v43 = 100; else v43 = v41 & ~(v41 >> 31); v53 = v43; DTHistRow::DTHistRow((DTHistRow *)&v61); v44 = *((DTHistRow **)this + 178); v65 = v53; v45 = *((DTHistRow **)this + 179); v66 = v38; v61 = 3; v62 = 1098907648; v63 = v37; v64 = v51; if ( v44 == v45 ) { std::vector::__push_back_slow_path((int *)this + 177, (const DTHistRow *)&v61); } else { if ( v44 ) DTHistRow::DTHistRow(v44, (const DTHistRow *)&v61); *((_DWORD *)this + 178) += 36; } std::string::~string((int)v67); } v13 += v37; } v12 = 1; *(float *)(*((_DWORD *)this + 178) - 32) = *(float *)(*((_DWORD *)this + 178) - 32) + 6.0; std::__vector_base::~__vector_base(&v57); std::__vector_base::~__vector_base(&v54); LABEL_28: --v14; v46 -= 36; } if ( !v12 ) { DTHistRow::DTHistRow((DTHistRow *)&v61); v61 = 4; v66 = 0; v65 = 0; v62 = 1098907648; v64 = 0; v63 = 0; std::string::assign(v67, "No attempts recorded."); v18 = *((DTHistRow **)this + 178); if ( v18 == *((DTHistRow **)this + 179) ) { std::vector::__push_back_slow_path((int *)this + 177, (const DTHistRow *)&v61); } else { if ( v18 ) DTHistRow::DTHistRow(v18, (const DTHistRow *)&v61); *((_DWORD *)this + 178) += 36; } std::string::~string((int)v67); } (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 133) + 320) + 292))( *(_DWORD *)(*((_DWORD *)this + 133) + 320), 1); ScrollableContentLayer::setVirtualRows( *((ScrollableContentLayer **)this + 133), (int)this + 520, 1115684864, 1104150528, 1090519040); }
GD Web Decomp Icon

GD Web Decomp

Raw Source