//
// sub_10008F5A4 from 0x10008f5a4 to 0x10008f5f4 (80 bytes)
//
// 1 xrefs:
// > sub_10008F008 @ 0x10008f1d8
//
// 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 10:58:23 +0000
//
__int64 __fastcall sub_10008F5A4(char *a1, size_t a2, const char *a3, __int64 a4, __int64 a5, double a6)
{
double v7; // [xsp+8h] [xbp-18h]
double v8; // [xsp+10h] [xbp-10h]
if ( (_DWORD)a4 )
{
if ( (a5 & 0x80000000) != 0 )
{
v7 = a6;
}
else
{
v8 = a6;
v7 = *(double *)&a5;
}
return snprintf(a1, a2, a3, a4, *(_QWORD *)&v7, *(_QWORD *)&v8);
}
else if ( (a5 & 0x80000000) != 0 )
{
return snprintf(a1, a2, a3, *(_QWORD *)&a6);
}
else
{
return snprintf(a1, a2, a3, a5, *(_QWORD *)&a6);
}
}