//
// std::__ndk1::__num_put_base::__format_int from 0x9620f4 to 0x962152 (94 bytes)
//
// 8 xrefs:
// > std::__ndk1::num_put>>::do_put @ 0x962028
// > std::__ndk1::num_put>>::do_put @ 0x962476
// > std::__ndk1::num_put>>::do_put @ 0x962578
// > std::__ndk1::num_put>>::do_put @ 0x962672
// > std::__ndk1::num_put>>::do_put @ 0x9631d4
// > std::__ndk1::num_put>>::do_put @ 0x963602
// > std::__ndk1::num_put>>::do_put @ 0x963700
// > std::__ndk1::num_put>>::do_put @ 0x9637f6
//
// 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:05:39 +0000
//
char *__fastcall std::__num_put_base::__format_int(char *this, char *a2, const char *a3, __int16 a4, unsigned int a5)
{
char v5; // r12
char *v6; // r1
int v7; // t1
char v8; // r1
if ( (a4 & 0x800) != 0 )
*this++ = 43;
if ( (a4 & 0x200) != 0 )
*this++ = 35;
v5 = *a2;
if ( *a2 )
{
v6 = a2 + 1;
do
{
*this++ = v5;
v7 = (unsigned __int8)*v6++;
v5 = v7;
}
while ( v7 );
}
if ( (a4 & 0x4A) == 8 )
{
if ( (a4 & 0x4000) != 0 )
v8 = 88;
else
v8 = 120;
}
else if ( (a4 & 0x4A) == 0x40 )
{
v8 = 111;
}
else if ( a3 == (_BYTE *)&dword_0 + 1 )
{
v8 = 100;
}
else
{
v8 = 117;
}
*this = v8;
return this;
}