//
// sub_8E690 from 0x8e690 to 0x8e6d6 (70 bytes)
//
// 5 xrefs:
// > ??> @ 0x8e68e
// > sub_4CA88 @ 0x4cb0e
// > sub_61B58 @ 0x61dba
// > sub_8E614 @ 0x8e672
// > sub_A354E @ 0xa362c
//
// 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
//
int __fastcall sub_8E690(int a1, float a2, int a3, int a4)
{
float v4; // s2
if ( a4 )
{
v4 = 0.0;
*(_DWORD *)(a1 + 76) = 0;
}
else
{
if ( *(float *)(a1 + 52) == a2 )
return 0;
v4 = *(float *)(a1 + 76);
}
*(float *)(a1 + 52) = a2;
if ( v4 == a2 )
{
*(_DWORD *)(a1 + 80) = 0;
}
else
{
*(_DWORD *)(a1 + 80) = a3;
if ( !a3 )
sub_8D46E(a1);
}
return 0;
}