//
// sub_EFD580 from 0xefd580 to 0xefd624 (164 bytes)
//
// 1 xrefs:
// > sub_EFFC48 @ 0xeffcbc
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:12:17 +0000
//
float __fastcall sub_EFD580(unsigned int a1)
{
unsigned int v1; // w2
int v2; // w3
int v3; // w1
double v4; // d0
if ( a1 > 0xFFFF )
return log((double)a1) * 1.44269504;
v1 = a1;
v2 = 1;
v3 = 0;
do
{
v1 >>= 1;
++v3;
v2 *= 2;
}
while ( v1 > 0xFF );
v4 = (float)((float)v3 + flt_11E4D60[v1]);
if ( a1 > 0xFFF )
return v4 + (double)((23 * ((v2 - 1) & a1)) >> 4) / (double)(int)a1;
return v4;
}