//
// sub_10000F798 from 0x10000f798 to 0x10000f854 (188 bytes)
//
// 1 xrefs:
// > sub_10000F6D0 @ 0x10000f6e8
//
// 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 10:57:15 +0000
//
_WORD *__fastcall sub_10000F798(_WORD *result, double a2, double a3)
{
__int64 v3; // x8
__int64 v4; // x19
__int64 v5; // x22
unsigned __int64 v6; // x23
__int64 v7; // x20
__int64 v8; // x25
v3 = *((_QWORD *)result + 43);
if ( *((_QWORD *)result + 44) != v3 )
{
v4 = (__int64)result;
v5 = 0;
v6 = 0;
do
{
v7 = v3 + v5;
result = sub_10000F52C(v4, *(_DWORD *)(v3 + v5 + 20), a2, a3);
if ( !*(_DWORD *)(v7 + 52) && !*((_DWORD *)result + 30) )
{
v8 = *((_QWORD *)result + 18);
result = (_WORD *)sub_10000FE5C(v4, v8 + 323, v7);
*(_WORD *)(v8 + 323) = (_WORD)result;
*(_BYTE *)(v8 + 325) = BYTE2(result);
}
++v6;
v3 = *(_QWORD *)(v4 + 344);
v5 += 72;
}
while ( 0x8E38E38E38E38E39LL * ((*(_QWORD *)(v4 + 352) - v3) >> 3) > v6 );
}
return result;
}