//
// ASN1_STRING_copy from 0xfe7798 to 0xfe7804 (108 bytes)
//
// 8 xrefs:
// > ASN1_TIME_set_string @ 0xfe5db4
// > ASN1_STRING_dup @ 0xfe7958
// > OCSP_cert_id_new @ 0x10428dc
// > X509_set_serialNumber @ 0x1066da4
// > X509_REVOKED_set_serialNumber @ 0x106d58c
// > sub_106F640 @ 0x106f720
// > cms_set1_ias @ 0x109eafc
// > ??> @ 0x6df18
//
// 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:15:40 +0000
//
__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;
}