//
// __extendsfdf2 from 0xaf5b88 to 0xaf5bc8 (64 bytes)
//
// 3 xrefs:
// > __aeabi_f2ulz @ 0xaf65f8
// > ??> @ 0x857ec
// > ??> @ 0x857fc
//
// 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 12:11:02 +0000
//
// Alternative name is '__aeabi_f2d'
int __fastcall _extendsfdf2(int a1, int a2, int a3, unsigned int a4)
{
int v4; // r2
int result; // r0
bool v6; // zf
v4 = 2 * a1;
v6 = 2 * a1 == 0;
result = a1 << 29;
if ( v6 || (a4 = v4 & 0xFF000000, (v4 & 0xFF000000) == 0) || a4 == 0xFF000000 )
{
v6 = v4 == 0;
if ( v4 )
v6 = a4 == 0xFF000000;
if ( !v6 )
JUMPOUT(0xAF59D8);
}
return result;
}