//
// x509_set1_time from 0xde8a90 to 0xde8ae4 (84 bytes)
//
// 5 xrefs:
// > X509_set1_notBefore @ 0xde8aec
// > X509_set1_notAfter @ 0xde8afc
// > X509_CRL_set1_lastUpdate @ 0xdef0b4
// > X509_CRL_set1_nextUpdate @ 0xdef0c4
// > ??> @ 0xa8030
//
// 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
//
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;
}