//
// custom_exts_copy from 0xd54924 to 0xd549a4 (128 bytes)
//
// 3 xrefs:
// > ssl_cert_dup @ 0xd3a28c
// > ssl_cert_dup @ 0xd3a29c
// > ??> @ 0xc2568
//
// 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 custom_exts_copy(__int64 *a1, _QWORD *a2)
{
__int64 v2; // x2
unsigned int v3; // w21
__int64 v7; // x0
v2 = a2[1];
v3 = 1;
if ( !v2 )
return v3;
v7 = CRYPTO_memdup(*a2, 48 * v2, "ssl/t1_ext.c", 140);
*a1 = v7;
if ( !v7 )
return 0;
a1[1] = a2[1];
return 1;
}