//
// sub_46B04 from 0x46b04 to 0x46b54 (80 bytes)
//
// 1 xrefs:
// > sub_46B58 @ 0x46f98
//
// 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:40:38 +0000
//
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;
}