//
// ASN1_STRING_copy from 0x9d7778 to 0x9d77dc (100 bytes)
//
// 8 xrefs:
// > ASN1_TIME_set_string @ 0x9d5e64
// > ASN1_STRING_dup @ 0x9d7928
// > OCSP_cert_id_new @ 0xa335a8
// > X509_set_serialNumber @ 0xa55598
// > X509_REVOKED_set_serialNumber @ 0xa5c21c
// > sub_A5E470 @ 0xa5e558
// > cms_set1_ias @ 0xa8aa10
// > ??> @ 0x77f4c
//
// 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:07:15 +0000
//
int __fastcall ASN1_STRING_copy(signed int *a1, int a2)
{
int v5; // r3
if ( !a2 )
return 0;
a1[1] = *(_DWORD *)(a2 + 4);
if ( !ASN1_STRING_set(a1, *(const char **)(a2 + 8), *(_DWORD *)a2) )
return 0;
v5 = a1[3] & 0x80;
a1[3] = v5;
a1[3] = *(_DWORD *)(a2 + 12) & 0xFFFFFF7F | v5;
return 1;
}