//
// std::__ndk1::__num_put_base::__format_float from 0xf58308 to 0xf583d4 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x48a78
//
// 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:13:22 +0000
//
__int64 __fastcall std::__num_put_base::__format_float(std::__num_put_base *this, char *a2, const char *a3)
{
int v3; // w9
unsigned int v4; // w8
char v5; // w10
char *v6; // x11
int v7; // t1
char v8; // w9
unsigned int v9; // w10
if ( ((unsigned __int16)a3 & 0x800) != 0 )
{
*(_BYTE *)this = 43;
this = (std::__num_put_base *)((char *)this + 1);
}
if ( ((unsigned __int16)a3 & 0x400) != 0 )
{
*(_BYTE *)this = 35;
this = (std::__num_put_base *)((char *)this + 1);
}
v3 = (unsigned __int16)a3 & 0x104;
if ( v3 == 260 )
{
v4 = 0;
}
else
{
*(_WORD *)this = 10798;
this = (std::__num_put_base *)((char *)this + 2);
v4 = 1;
}
v5 = *a2;
if ( *a2 )
{
v6 = a2 + 1;
do
{
*(_BYTE *)this = v5;
this = (std::__num_put_base *)((char *)this + 1);
v7 = (unsigned __int8)*v6++;
v5 = v7;
}
while ( v7 );
}
if ( ((unsigned __int16)a3 & 0x104) == 0x100 )
{
if ( ((unsigned __int16)a3 & 0x4000) != 0 )
v8 = 69;
else
v8 = 101;
}
else if ( v3 == 4 )
{
if ( ((unsigned __int16)a3 & 0x4000) != 0 )
v8 = 70;
else
v8 = 102;
}
else
{
v9 = ((unsigned int)a3 >> 14) & 1;
if ( v3 == 260 )
{
if ( v9 )
v8 = 65;
else
v8 = 97;
}
else if ( v9 )
{
v8 = 71;
}
else
{
v8 = 103;
}
}
*(_BYTE *)this = v8;
return v4;
}