//
// sub_80A24 from 0x80a24 to 0x80a2c (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x114ec8
//
// 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:14:07 +0000
//
__int64 __fastcall sub_80A24(__int64 *a1, int a2, int a3)
{
unsigned int v3; // w8
float v4; // s1
__int64 v5; // x0
v5 = *a1;
if ( a2 == 10 )
{
if ( *(_BYTE *)(v5 + 657) == (a3 != 0) )
{
return 0;
}
else
{
*(_BYTE *)(v5 + 657) = a3 != 0;
if ( a3 )
{
v4 = *(float *)(v5 + 572);
*(float *)(v5 + 680) = fminf(*(float *)(v5 + 568), v4);
*(float *)(v5 + 684) = v4;
}
else
{
*(_QWORD *)(v5 + 680) = *(_QWORD *)(v5 + 560);
}
v3 = 0;
++*(_DWORD *)(v5 + 644);
}
}
else
{
return 31;
}
return v3;
}