//
// sub_180137954 from 0x180137954 to 0x180137a40 (236 bytes)
//
// 4 xrefs:
// > fp_format_a @ 0x18013769a
// > sub_180137FE0 @ 0x1801382a9
// > ??> @ 0x1802035f0
// > ??> @ 0x1802035fc
//
// 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
//
int __fastcall sub_180137954(
_QWORD *a1,
char *a2,
unsigned __int64 a3,
char *a4,
rsize_t a5,
int a6,
bool a7,
unsigned int a8,
struct __crt_locale_pointers *a9,
int a10)
{
int v12; // eax
int result; // eax
_DWORD v14[6]; // [rsp+40h] [rbp-18h] BYREF
v12 = _acrt_fltout(*a1, a6 + 1, 1, (int)v14, a4, a5);
result = sub_18013DC24(&a2[(v14[0] == 45) + (unsigned __int64)(a6 > 0)], v12, a10);
if ( !result )
return fp_format_e_internal(a2, a3, a6, a7, a8, (struct _strflt *const)v14, 0, a9);
*a2 = 0;
return result;
}