//
// GameToolbox::timestampToDayString from 0x1400ac260 to 0x1400ac329 (201 bytes)
//
// 4 xrefs:
// > AccountReviewPopup::buildReportedRows @ 0x1400b478c
// > AccountReviewPopup::buildReportedRows @ 0x1400b50b8
// > AccountReviewPopup::buildHistoryRows @ 0x1400b777b
// > ??> @ 0x140913418
//
// This function is hookable on this platform (idp: pc, 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 11:26:10 +0000
//
_QWORD *__fastcall GameToolbox::timestampToDayString(_QWORD *a1, __time64_t a2)
{
struct tm *v3; // rax
size_t v4; // r8
__time64_t Time[2]; // [rsp+20h] [rbp-48h] BYREF
char Buffer[16]; // [rsp+30h] [rbp-38h] BYREF
__int128 v8; // [rsp+40h] [rbp-28h]
Time[0] = (__time64_t)a1;
if ( a2 > 0 )
{
Time[0] = a2;
v3 = localtime64(Time);
*(_OWORD *)Buffer = 0;
v8 = 0;
if ( v3 )
strftime(Buffer, 0x20u, "%Y-%m-%d", v3);
*(_OWORD *)a1 = 0;
a1[2] = 0;
v4 = -1;
a1[3] = 0;
do
++v4;
while ( Buffer[v4] );
sub_14003D230(a1, Buffer, v4);
}
else
{
*(_OWORD *)a1 = 0;
a1[2] = 0;
a1[3] = 15;
*(_BYTE *)a1 = 0;
}
return a1;
}