//
// sub_7710F0 from 0x7710f0 to 0x771166 (118 bytes)
//
// 2 xrefs:
// > DeathTrackerPopup::buildHistory @ 0x7733f8
// > DeathTrackerPopup::refreshView @ 0x774c2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:15 +0000
//
int *__fastcall sub_7710F0(int *a1, int a2)
{
int *v2; // r4
size_t v3; // r2
char *v4; // r1
struct tm *v5; // r7
size_t v6; // r0
time_t v8; // [sp+0h] [bp-24h] BYREF
char v9[24]; // [sp+4h] [bp-20h] BYREF
v2 = a1;
if ( a2 > 0 )
{
v8 = a2;
v5 = localtime(&v8);
memset(v9, 0, sizeof(v9));
if ( v5 )
strftime(v9, 0x18u, "%m/%d/%y", v5);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v6 = strlen(v9);
v4 = v9;
v3 = v6;
a1 = v2;
}
else
{
v3 = 0;
*a1 = 0;
a1[1] = 0;
v4 = (char *)&unk_B6B226;
a1[2] = 0;
}
std::string::__init(a1, v4, v3);
return v2;
}