//
// sub_18010A870 from 0x18010a870 to 0x18010a8d6 (102 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801b0910
//
// 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
//
__int64 __fastcall sub_18010A870(__int64 *a1, int a2, int a3)
{
__int64 v3; // rax
float v4; // xmm1_4
float v5; // xmm0_4
v3 = *a1;
if ( a2 != 10 )
return 31;
if ( *(_BYTE *)(v3 + 657) != (a3 != 0) )
{
*(_BYTE *)(v3 + 657) = a3 != 0;
if ( a3 )
{
v4 = *(float *)(v3 + 572);
v5 = fminf(*(float *)(v3 + 568), v4);
}
else
{
v4 = *(float *)(v3 + 564);
v5 = *(float *)(v3 + 560);
}
*(float *)(v3 + 680) = v5;
*(float *)(v3 + 684) = v4;
++*(_DWORD *)(v3 + 644);
}
return 0;
}