//
// sub_46B04 from 0x46b04 to 0x46b54 (80 bytes)
//
// 1 xrefs:
// > sub_46B58 @ 0x46f98
//
// 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
//
float __fastcall sub_46B04(_DWORD *a1, int a2, int a3, float a4)
{
int v4; // r4
float v7; // [sp+Ch] [bp-Ch] BYREF
v7 = a4;
if ( a3 == 0x200000 )
{
v4 = 1;
LABEL_10:
sub_609B8(v4, a2, a1[26], a1[27], (int)&v7, *(float *)(a1[1] + 68260));
return v7;
}
if ( a3 != 0x4000000 )
{
if ( a3 == 0x800000 )
{
v4 = 3;
}
else if ( a3 == 0x400000 )
{
v4 = 0;
}
else
{
v4 = 2;
}
goto LABEL_10;
}
return 1.0;
}