// // DeathTrackerPopup::buildAttemptLine from 0x772590 to 0x772786 (502 bytes) // // 2 xrefs: // > DeathTrackerPopup::refreshView @ 0x774f18 // > DeathTrackerPopup::setView @ 0x775422 // // 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 // char **__fastcall DeathTrackerPopup::buildAttemptLine(DeathTrackerPopup *this) { int v2; // r5 int v3; // r8 int v4; // r0 unsigned int i; // r9 int v6; // r3 int v7; // r5 int v8; // r0 unsigned int v9; // r3 int v10; // r1 int v11; // r5 int v12; // r2 int j; // r3 int v14; // r0 int v15; // r0 int v17; // [sp+4h] [bp-38h] int v18; // [sp+14h] [bp-28h] char *v19; // [sp+1Ch] [bp-20h] BYREF char *v20; // [sp+20h] [bp-1Ch] char *v21; // [sp+24h] [bp-18h] char *v22; // [sp+28h] [bp-14h] BYREF char *v23; // [sp+2Ch] [bp-10h] int v24; // [sp+30h] [bp-Ch] v19 = nullptr; v20 = nullptr; v21 = nullptr; if ( *((_BYTE *)this + 564) ) { v2 = 954437177 * ((*((_DWORD *)this + 146) - *((_DWORD *)this + 145)) >> 2) - 1; v3 = 36 * v2; while ( v2 >= 0 ) { v4 = *((_DWORD *)this + 145); v22 = nullptr; v23 = nullptr; v24 = 0; GJGameLevel::dtExpandOrder((unsigned __int8 *)(v4 + v3 + 4), (int)&v22); for ( i = 0; i < (v23 - v22) >> 2; ++i ) { if ( v20 == v21 ) { std::vector::__push_back_slow_path((int)&v19, &v22[4 * i]); } else { if ( v20 ) *(_DWORD *)v20 = *(_DWORD *)&v22[4 * i]; v20 += 4; } } --v2; std::__vector_base::~__vector_base(&v22); v3 -= 36; } } else { v6 = *((_DWORD *)this + 142); if ( v6 >= 0 ) { v8 = *((_DWORD *)this + 145); if ( v6 < 954437177 * ((*((_DWORD *)this + 146) - v8) >> 2) ) GJGameLevel::dtExpandOrder((unsigned __int8 *)(v8 + 36 * v6 + 4), (int)&v19); } } v22 = nullptr; v7 = (v20 - v19) >> 2; v23 = nullptr; v24 = 0; if ( v7 ) { std::vector::allocate(&v22, (v20 - v19) >> 2); do { if ( v23 ) *(_DWORD *)v23 = 0; --v7; v23 += 4; } while ( v7 ); } v9 = 0; v10 = 0; while ( v9 < (v20 - v19) >> 2 ) { if ( v10 < *(_DWORD *)&v19[4 * v9] ) v10 = *(_DWORD *)&v19[4 * v9]; *(_DWORD *)&v22[4 * v9++] = v10; } v11 = *((unsigned __int8 *)this + 564); if ( *((_BYTE *)this + 564) ) { v11 = 0; LOWORD(v18) = -5351; BYTE2(v18) = 45; } else { v12 = *((_DWORD *)this + 146); LOWORD(v18) = -12801; BYTE2(v18) = *((_BYTE *)this + 564); for ( j = 954437177 * ((v12 - *((_DWORD *)this + 145)) >> 2) - 1; j > *((_DWORD *)this + 142); --j ) { v14 = *(_DWORD *)(v12 - 4); v12 -= 36; if ( v11 < v14 ) v11 = v14; } } v15 = *((_DWORD *)this + 138); if ( v15 ) { LOWORD(v17) = -5351; BYTE2(v17) = 45; DeathHistogram::setAttemptLine(v15, (int *)&v19, (int *)&v22, v18, v11, v17, *((_BYTE *)this + 577)); } std::__vector_base::~__vector_base(&v22); return std::__vector_base::~__vector_base(&v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source