//
// custom_exts_copy from 0xfd2c78 to 0xfd2cf8 (128 bytes)
//
// 3 xrefs:
// > ssl_cert_dup @ 0xfb85e0
// > ssl_cert_dup @ 0xfb85f0
// > ??> @ 0xfd138
//
// 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:30 +0000
//
__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;
}