//
// sub_6729E8 from 0x6729e8 to 0x672a40 (88 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int *__fastcall sub_6729E8(int *result, int a2, int a3, int a4, int a5)
{
int v5; // r4
int v6; // r5
int v7; // r9
int *v8; // r8
int v9; // r6
int v10; // r10
int v11; // r1
int v12; // t1
int v13; // r2
int v14; // [sp+4h] [bp-8h]
v5 = result[104];
v6 = result[21];
if ( result[19] > 0 )
{
v7 = a4 - 4;
v8 = result;
v9 = 0;
v10 = 4 * a3;
v14 = a2 - 4;
do
{
v11 = v6;
v12 = *(_DWORD *)(v7 + 4);
v7 += 4;
++v9;
v6 += 88;
v5 += 4;
v13 = *(_DWORD *)(v14 + 4) + v10;
v14 += 4;
result = (int *)(*(int (__fastcall **)(int *, int, int, int))(v5 + 8))(
v8,
v11,
v13,
v12 + *(_DWORD *)(v5 + 48) * 4 * a5);
}
while ( v8[19] > v9 );
}
return result;
}