//
// sub_F4DB4 from 0xf4db4 to 0xf4e70 (188 bytes)
//
// 1 xrefs:
// > sub_F7B7C @ 0xf7cec
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:15:07 +0000
//
__int64 __fastcall sub_F4DB4(__int64 a1, __int64 a2, int a3, int a4, __int64 a5, int a6)
{
int v10; // w23
int v11; // w24
int v12; // w25
__int64 result; // x0
__int64 v14; // x8
__int64 v15; // x9
__int64 v16; // x10
__int64 v17; // x11
float v18; // s0
int v19; // w12
if ( *(int *)(a1 + 8) >= 1 )
{
v10 = 0;
v11 = a3 / a4;
v12 = (a6 + a3) / a4;
while ( v11 < v12 )
{
result = sub_F4A38(a1, a5);
if ( (_DWORD)result == -1 )
return result;
sub_F4EC0();
while ( v14 < v15 )
{
v17 = *(_QWORD *)(a2 + 8LL * v10);
v18 = *(float *)(v16 + 4 * v14);
v19 = v10 + 1;
if ( v10 + 1 == a4 )
v10 = 0;
else
++v10;
++v14;
*(float *)(v17 + 4LL * v11) = *(float *)(v17 + 4LL * v11) + v18;
if ( v19 == a4 )
++v11;
}
}
}
return 0;
}