//
// EC_KEY_dup from 0xd8fccc to 0xd8fd1c (80 bytes)
//
// 3 xrefs:
// > sub_E34354 @ 0xe346b4
// > sub_E34A58 @ 0xe34ac8
// > ??> @ 0xb1078
//
// 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 EC_KEY_dup(__int64 *a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x19
v2 = EC_KEY_new_method(a1[1]);
v3 = v2;
if ( !v2 )
return v3;
v4 = EC_KEY_copy(v2, a1);
if ( v4 )
return v3;
EC_KEY_free(v3);
return v4;
}