//
// sub_10004F000 from 0x10004f000 to 0x10004f0cc (204 bytes)
//
// 6 xrefs:
// > LevelStatsInfoPopup::buildInfoText @ 0x1004f2fbc
// > LevelStatsInfoPopup::buildInfoText @ 0x1004f3004
// > sub_100501B28 @ 0x100501c68
// > ThreadOptionsPopup::init @ 0x10050cb90
// > sub_100514348 @ 0x100514984
// > CommentOptionsPopup::init @ 0x1005224ec
//
// 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:57:42 +0000
//
_QWORD *__usercall sub_10004F000@(__int64 a1@, _QWORD *a2@)
{
tm *v3; // x0
char *v4; // x1
time_t v6; // [xsp+0h] [xbp-40h] BYREF
char v7[32]; // [xsp+8h] [xbp-38h] BYREF
v6 = a1;
if ( a1 <= 0 )
return sub_100009900(a2, "NA");
v3 = localtime(&v6);
if ( v3 )
{
strftime(v7, 0x20u, "%Y-%m-%d %H:%M:%S", v3);
v4 = v7;
}
else
{
v4 = "NA";
}
return sub_100009900(a2, v4);
}