//
// sub_918FC from 0x918fc to 0x9193a (62 bytes)
//
// 2 xrefs:
// > sub_91750 @ 0x9183c
// > sub_91E20 @ 0x91ebe
//
// 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_918FC(int a1)
{
int *v1; // r1
int *v2; // r2
bool v3; // zf
float v4; // s0
float v5; // s2
v1 = *(int **)(a1 + 400);
v2 = (int *)(a1 + 400);
v3 = v1 == (int *)(a1 + 400);
if ( v1 == (int *)(a1 + 400) )
v3 = *(_DWORD *)(a1 + 404) == (_DWORD)v2;
if ( !v3 )
{
v4 = 0.0;
while ( v2 != v1 )
{
v5 = *((float *)v1 + 2);
if ( v4 > v5 )
v5 = v4;
v1 = (int *)*v1;
v4 = v5;
}
*(float *)(a1 + 496) = v4;
}
return 0;
}