//
// sub_6FA024 from 0x6fa024 to 0x6fa0ba (150 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_6FA024(int *a1, _DWORD *a2)
{
int v2; // r5
int v3; // r8
_DWORD *v4; // r7
int v5; // r4
int v6; // r6
int v7; // r9
int v9; // r10
int v10; // r0
int v12; // [sp+10h] [bp-14h]
int v13; // [sp+14h] [bp-10h]
int v14; // [sp+18h] [bp-Ch]
int v15; // [sp+1Ch] [bp-8h]
v2 = a1[26];
if ( v2 )
{
v3 = *a2;
v4 = a2 + 69;
v5 = a1[4];
v6 = *a1;
v7 = a2[4];
v12 = *(_DWORD *)(*a2 + 16);
v13 = *(_DWORD *)(*a2 + 32);
v14 = *(_DWORD *)(*a2 + 28);
v15 = *(_DWORD *)(*a2 + 44);
if ( v5 > 0 )
{
v9 = 0;
do
{
v10 = sub_736D6C(v4, v5, v2, v6);
v5 -= v10;
v2 += v10 * v6;
v9 += sub_736DF8(v4);
}
while ( v5 > 0 );
if ( v9 > 0 )
sub_701660(v12 + v13 * v7, *(_DWORD *)(v3 + 32), v14 + v15 * v7, *(_DWORD *)(v3 + 44), a2[82], v9, 1);
}
}
return 0;
}