//
// sub_10054A8C0 from 0x10054a8c0 to 0x10054a9d8 (280 bytes)
//
// 3 xrefs:
// > sub_10054A1EC @ 0x10054a574
// > sub_10054A1EC @ 0x10054a580
// > sub_10054A1EC @ 0x10054a58c
//
// 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
//
char *__fastcall sub_10054A8C0(char *result, __int64 a2)
{
if ( a2 < 1 )
{
strcpy(result, "--:--:--");
}
else if ( a2 > 359999 )
{
if ( a2 > 86399999 )
return (char *)sub_100562884(result, 9, "%7ldd");
else
return (char *)sub_100562884(result, 9, "%3ldd %02ldh");
}
else
{
return (char *)sub_100562884(result, 9, "%2ld:%02ld:%02ld");
}
return result;
}