//
// x509_set1_time from 0xa555c4 to 0xa55604 (64 bytes)
//
// 5 xrefs:
// > X509_set1_notBefore @ 0xa55610
// > X509_set1_notAfter @ 0xa55620
// > X509_CRL_set1_lastUpdate @ 0xa5c0b0
// > X509_CRL_set1_nextUpdate @ 0xa5c0c0
// > ??> @ 0x80d9c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:25 +0000
//
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;
}