//
// ASN1_STRING_copy from 0xd69438 to 0xd694a4 (108 bytes)
//
// 8 xrefs:
// > ASN1_TIME_set_string @ 0xd67a54
// > ASN1_STRING_dup @ 0xd695f8
// > OCSP_cert_id_new @ 0xdc457c
// > X509_set_serialNumber @ 0xde8a64
// > X509_REVOKED_set_serialNumber @ 0xdef24c
// > sub_DF1300 @ 0xdf13e0
// > cms_set1_ias @ 0xe207fc
// > ??> @ 0x4e900
//
// 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
//
__int64 __fastcall ASN1_STRING_copy(__int64 a1, __int64 a2)
{
int v4; // w3
char *v5; // x1
int v6; // w2
__int64 v8; // x1
if ( !a2 )
return 0;
v4 = *(_DWORD *)(a2 + 4);
v5 = *(char **)(a2 + 8);
v6 = *(_DWORD *)a2;
*(_DWORD *)(a1 + 4) = v4;
if ( !(unsigned int)ASN1_STRING_set(a1, v5, v6) )
return 0;
v8 = *(_QWORD *)(a1 + 16) & 0x80LL;
*(_QWORD *)(a1 + 16) = v8;
*(_QWORD *)(a1 + 16) = *(_QWORD *)(a2 + 16) & 0xFFFFFFFFFFFFFF7FLL | v8;
return 1;
}