//
// sub_1005EF834 from 0x1005ef834 to 0x1005ef8f4 (192 bytes)
//
// 2 xrefs:
// > sub_100600B08 @ 0x100600e94
// > sub_100600F44 @ 0x100600fc4
//
// 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
//
const char **__fastcall sub_1005EF834(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_10058A068(&v11, &v10);
v8 = v7;
if ( v7 )
{
if ( (a3 || a4) && !(unsigned int)sub_10058A08C(&v7->tm_sec, a3, a4) )
{
return nullptr;
}
else if ( (unsigned int)(v8->tm_year - 50) > 0x63 )
{
return (const char **)sub_1005EF6F4((__int64)a1, v11, a3, a4);
}
else
{
return sub_1005EF0C4(a1, v11, a3, a4);
}
}
else
{
sub_1005E0E48(13, 217, 173, (__int64)"a_time.c", 115);
return nullptr;
}
}