//
// EC_POINT_dup from 0x9ff774 to 0x9ff7c0 (76 bytes)
//
// 2 xrefs:
// > EC_KEY_set_public_key @ 0x9fe044
// > ??> @ 0x7b1ec
//
// 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:37 +0000
//
int __fastcall EC_POINT_dup(_DWORD *a1, int *a2)
{
_DWORD *v3; // r0
int v4; // r4
int v5; // r5
int result; // r0
if ( !a1 )
return 0;
v3 = EC_POINT_new(a2);
v4 = (int)v3;
if ( !v3 )
return 0;
v5 = EC_POINT_copy(v3, a1);
result = v4;
if ( !v5 )
{
EC_POINT_free(v4);
return 0;
}
return result;
}