//
// sub_10071599C from 0x10071599c to 0x100715a5c (192 bytes)
//
// 2 xrefs:
// > sub_100726C70 @ 0x100726ffc
// > sub_1007270AC @ 0x10072712c
//
// 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 11:12:59 +0000
//
const char **__fastcall sub_10071599C(const char **a1, time_t a2, int a3, __int64 a4)
{
tm *v7; // x0
tm *v8; // x22
tm v10; // [xsp+0h] [xbp-60h] BYREF
time_t v11; // [xsp+38h] [xbp-28h] BYREF
v11 = a2;
v7 = sub_1006B01D0(&v11, &v10);
v8 = v7;
if ( v7 )
{
if ( (a3 || a4) && !(unsigned int)sub_1006B01F4(&v7->tm_sec, a3, a4) )
{
return nullptr;
}
else if ( (unsigned int)(v8->tm_year - 50) > 0x63 )
{
return (const char **)sub_10071585C((__int64)a1, v11, a3, a4);
}
else
{
return sub_10071522C(a1, v11, a3, a4);
}
}
else
{
sub_100706FB0(13, 217, 173, (__int64)"a_time.c", 115);
return nullptr;
}
}