//
// EC_KEY_dup from 0x100e02c to 0x100e07c (80 bytes)
//
// 3 xrefs:
// > sub_10B2654 @ 0x10b29b4
// > sub_10B2D58 @ 0x10b2dc8
// > ??> @ 0xe7a00
//
// 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:16:01 +0000
//
__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;
}