//
// ASN1_dup from 0xa756a0 to 0xa75758 (184 bytes)
//
// 2 xrefs:
// > GENERAL_NAME_dup @ 0xa6b968
// > ??> @ 0x82b1c
//
// 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:43 +0000
//
int __fastcall ASN1_dup(int (__fastcall *a1)(int, void **), int (__fastcall *a2)(_DWORD, void **, int), int a3)
{
int v6; // r0
void *v7; // r7
int v8; // r0
int v9; // r4
void *v11; // [sp+8h] [bp-20h] BYREF
void *v12; // [sp+Ch] [bp-1Ch] BYREF
if ( !a3 )
return 0;
v6 = a1(a3, nullptr);
v7 = CRYPTO_malloc((void *)(v6 + 10), (int)"crypto/asn1/a_dup.c", 27);
if ( v7 )
{
v11 = v7;
v8 = a1(a3, &v11);
v12 = v7;
v9 = a2(0, &v12, v8);
CRYPTO_free(v7, (int)"crypto/asn1/a_dup.c", 36);
return v9;
}
else
{
ERR_put_error(13, 111, 65, (int)"crypto/asn1/a_dup.c", 29);
return 0;
}
}