//
// custom_exts_copy from 0x9c1ea8 to 0x9c1efc (84 bytes)
//
// 3 xrefs:
// > ssl_cert_dup @ 0x9a5cf0
// > ssl_cert_dup @ 0x9a5d04
// > ??> @ 0x74c9c
//
// 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:04 +0000
//
int __fastcall custom_exts_copy(int *a1, _DWORD *a2)
{
int v2; // r3
int result; // r0
int v6; // r3
v2 = a2[1];
if ( !v2 )
return 1;
result = CRYPTO_memdup(*a2, 28 * v2, "ssl/t1_ext.c", 140);
if ( result )
v6 = a2[1];
*a1 = result;
if ( result )
{
a1[1] = v6;
return 1;
}
return result;
}