//
// sub_100613DE8 from 0x100613de8 to 0x100613efc (276 bytes)
//
// 1 xrefs:
// > sub_10061520C @ 0x10061520c
//
// 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 11:10:11 +0000
//
void __fastcall sub_100613DE8(__int64 a1, __int64 a2, float a3)
{
__int64 v6; // x22
__int64 v7; // x21
__int64 v8; // x23
float v9; // s9
__int64 i; // x24
float v11; // s0
if ( *(int *)(a2 + 128) >= 2 && *(_DWORD *)(a2 + 8) && a3 >= 0.0 )
{
v6 = *(unsigned int *)(a2 + 64);
if ( (int)v6 < 1 )
{
v8 = 0;
LODWORD(v7) = 0;
v9 = 0.0;
}
else
{
v7 = 0;
v8 = 0;
v9 = 0.0;
for ( i = 8; ; i += 16 )
{
v11 = v9 + sub_100612768(a2, v7);
if ( v11 > a3 )
break;
v8 += *(_QWORD *)(*(_QWORD *)(a2 + 96) + i);
++v7;
v9 = v11;
if ( v6 == v7 )
return;
}
}
if ( (_DWORD)v7 != (_DWORD)v6 )
sub_1006135F8(
a1,
a2,
(__int64)(float)((float)v8
+ (float)((float)(a3 - v9) * (float)*(int *)(*(_QWORD *)(a2 + 104) + 40LL * (unsigned int)v7 + 8))));
}
}