//
// x509_set1_time from 0x1066dd0 to 0x1066e24 (84 bytes)
//
// 5 xrefs:
// > X509_set1_notBefore @ 0x1066e2c
// > X509_set1_notAfter @ 0x1066e3c
// > X509_CRL_set1_lastUpdate @ 0x106d3f4
// > X509_CRL_set1_nextUpdate @ 0x106d404
// > ??> @ 0xdc6c0
//
// 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 13:16:54 +0000
//
bool __fastcall x509_set1_time(__int64 *a1, __int64 a2)
{
__int64 v3; // x0
__int64 v5; // [xsp+28h] [xbp+28h]
if ( *a1 != a2 )
{
v3 = ASN1_STRING_dup(a2);
a2 = v3;
if ( v3 )
{
v5 = v3;
ASN1_TIME_free(*a1);
a2 = v5;
*a1 = v5;
}
}
return a2 != 0;
}