//
// sub_918FC from 0x918fc to 0x9193a (62 bytes)
//
// 2 xrefs:
// > sub_91750 @ 0x9183c
// > sub_91E20 @ 0x91ebe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:26 +0000
//
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;
}