//
// sub_B02AC from 0xb02ac to 0xb02ec (64 bytes)
//
// 2 xrefs:
// > sub_B00B0 @ 0xb01b0
// > sub_B0810 @ 0xb0900
//
// 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_B02AC(__int64 a1)
{
__int64 *v1; // x8
__int64 *v2; // x9
float v3; // s0
float v4; // s1
v1 = *(__int64 **)(a1 + 576);
v2 = (__int64 *)(a1 + 576);
if ( v1 != (__int64 *)(a1 + 576) || *(__int64 **)(a1 + 584) != v2 )
{
v3 = 0.0;
while ( v2 != v1 )
{
v4 = *((float *)v1 + 4);
v1 = (__int64 *)*v1;
v3 = fmaxf(v3, v4);
}
*(float *)(a1 + 680) = v3;
}
return 0;
}