//
// x509_set1_time from 0x8409c4 to 0x840a04 (64 bytes)
//
// 5 xrefs:
// > X509_set1_notBefore @ 0x840a10
// > X509_set1_notAfter @ 0x840a20
// > X509_CRL_set1_lastUpdate @ 0x8474b0
// > X509_CRL_set1_nextUpdate @ 0x8474c0
// > ??> @ 0x6731c
//
// 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
//
int __fastcall x509_set1_time(int *a1, int a2)
{
int v3; // r4
int result; // r0
v3 = a2;
if ( *a1 != a2 )
{
v3 = ASN1_STRING_dup(a2);
if ( v3 )
{
ASN1_TIME_free(*a1);
*a1 = v3;
}
}
result = v3;
if ( v3 )
return 1;
return result;
}