//
// std::__ndk1::__num_put_base::__format_int from 0xf572f4 to 0xf57380 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0xa7c38
//
// 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:21 +0000
//
_BYTE *__fastcall std::__num_put_base::__format_int(_BYTE *this, char *a2, const char *a3, __int16 a4)
{
char v4; // w8
char *v5; // x9
int v6; // t1
if ( (a4 & 0x800) != 0 )
*this++ = 43;
if ( (a4 & 0x200) != 0 )
*this++ = 35;
v4 = *a2;
if ( *a2 )
{
v5 = a2 + 1;
do
{
*this++ = v4;
v6 = (unsigned __int8)*v5++;
v4 = v6;
}
while ( v6 );
}
if ( (a4 & 0x4A) == 8 )
{
if ( (a4 & 0x4000) != 0 )
*this = 88;
else
*this = 120;
}
else if ( (a4 & 0x4A) == 0x40 )
{
*this = 111;
}
else if ( ((unsigned __int8)a3 & 1) != 0 )
{
*this = 100;
}
else
{
*this = 117;
}
return this;
}