//
// sub_10073C7FC from 0x10073c7fc to 0x10073c990 (404 bytes)
//
// 1 xrefs:
// > sub_1006A9638 @ 0x1006abcec
//
// 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:13:18 +0000
//
__int64 __fastcall sub_10073C7FC(int *a1, int *a2, __int64 a3, __int64 a4)
{
__int64 v8; // x22
__int16 v9; // w2
int v10; // w4
__int16 v11; // w2
int v12; // w4
time_t v14; // [xsp+0h] [xbp-40h] BYREF
time_t v15; // [xsp+8h] [xbp-38h] BYREF
time(&v15);
if ( !sub_1007157BC(a1) )
{
v9 = 123;
v10 = 338;
LABEL_9:
sub_100706FB0(39, 115, v9, (__int64)"ocsp_cl.c", v10);
v8 = 0;
goto LABEL_10;
}
v14 = v15 + a3;
if ( (int)sub_100726C70(a1, &v14) < 1 )
{
v8 = 1;
}
else
{
sub_100706FB0(39, 115, 126, (__int64)"ocsp_cl.c", 343);
v8 = 0;
}
if ( (a4 & 0x8000000000000000LL) == 0 )
{
v14 = v15 - a4;
if ( (sub_100726C70(a1, &v14) & 0x80000000) != 0 )
{
v9 = 127;
v10 = 354;
goto LABEL_9;
}
}
LABEL_10:
if ( !a2 )
return v8;
if ( sub_1007157BC(a2) )
{
v14 = v15 - a3;
if ( (sub_100726C70(a2, &v14) & 0x80000000) == 0 )
goto LABEL_16;
v11 = 125;
v12 = 370;
}
else
{
v11 = 122;
v12 = 365;
}
sub_100706FB0(39, 115, v11, (__int64)"ocsp_cl.c", v12);
v8 = 0;
LABEL_16:
if ( (sub_100721D20((const void **)a2, (__int64)a1) & 0x80000000) != 0 )
{
sub_100706FB0(39, 115, 124, (__int64)"ocsp_cl.c", 378);
return 0;
}
return v8;
}