//
// sub_10000AF2C from 0x10000af2c to 0x10000af74 (72 bytes)
//
// 1 xrefs:
// > sub_100010E6C @ 0x100010f28
//
// 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:14 +0000
//
__int64 __fastcall sub_10000AF2C(__int64 result, int a2, double a3, double a4, double a5, double a6)
{
double v6; // d0
*(_DWORD *)(result + 208) = 3;
if ( a3 > 500.0 )
a3 = 500.0;
v6 = fmax(a3, 0.0);
*(double *)(result + 312) = v6;
*(double *)(result + 320) = a4;
*(_DWORD *)(result + 328) = a2;
*(double *)(result + 336) = a5;
*(double *)(result + 24) = a6;
if ( v6 <= 0.0 )
{
*(_BYTE *)(result + 112) = 1;
*(_BYTE *)(result + 114) = 1;
}
return result;
}