//
// sub_89438 from 0x89438 to 0x89488 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x89436
// > sub_894C2 @ 0x894c8
//
// 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:22 +0000
//
int __fastcall sub_89438(int a1, int a2, _DWORD *a3, int a4)
{
float *v4; // r0
float v5; // s0
v4 = (float *)(a1 + 33228);
switch ( a2 )
{
case 2:
*a3 = *(_DWORD *)v4;
if ( a4 )
{
v5 = *v4;
goto LABEL_10;
}
break;
case 1:
*a3 = *((_DWORD *)v4 + 2);
if ( a4 )
{
v5 = v4[2];
goto LABEL_10;
}
break;
case 0:
*a3 = *((_DWORD *)v4 + 1);
if ( a4 )
{
v5 = v4[1];
LABEL_10:
sub_BE420(a4, 32, "%.02f", v5);
}
break;
}
return 0;
}