//
// sub_1004E6894 from 0x1004e6894 to 0x1004e691c (136 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall sub_1004E6894(float a1)
{
int v1; // w19
long double v2; // d8
float v3; // s0
float v4; // s0
int v5; // w20
float v6; // s0
v1 = a1 < 0.0;
if ( a1 < 0.0 )
a1 = -a1;
v2 = a1;
v3 = log(a1);
v4 = floor(v3 / 0.693147181);
v5 = (int)v4;
v6 = ldexp(v2, 20 - (int)v4);
return ((v5 << 21) + 1610612736) | (v1 << 31) | (unsigned int)(int)rintf(v6);
}