//
// sub_AC66C from 0xac66c to 0xac6c0 (84 bytes)
//
// 4 xrefs:
// > sub_5CA34 @ 0x5caf4
// > sub_7755C @ 0x77884
// > sub_AC5A0 @ 0xac62c
// > sub_C32A0 @ 0xc3404
//
// 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_AC66C(__int64 a1, int a2, char a3, float a4)
{
float v4; // s1
if ( (a3 & 1) != 0 )
{
*(_DWORD *)(a1 + 128) = 0;
v4 = 0.0;
}
else
{
if ( *(float *)(a1 + 104) == a4 )
return 0;
v4 = *(float *)(a1 + 128);
}
*(float *)(a1 + 104) = a4;
if ( v4 == a4 )
{
*(_DWORD *)(a1 + 132) = 0;
}
else
{
*(_DWORD *)(a1 + 132) = a2;
if ( !a2 )
sub_AB00C(a1);
}
return 0;
}