//
// EC_POINT_copy from 0x9ff420 to 0x9ff4b8 (152 bytes)
//
// 16 xrefs:
// > EC_KEY_copy @ 0x9fd79c
// > EC_GROUP_copy @ 0x9ff580
// > EC_POINT_dup @ 0x9ff798
// > EC_GROUP_set_generator @ 0xa0058c
// > ec_wNAF_mul @ 0xa013cc
// > ec_wNAF_mul @ 0xa01488
// > ec_wNAF_mul @ 0xa01558
// > ec_wNAF_precompute_mult @ 0xa019f8
// > ec_wNAF_precompute_mult @ 0xa01a64
// > sub_A067A0 @ 0xa06b58
// > sub_A067A0 @ 0xa06ba8
// > ec_GFp_simple_add @ 0xa090c0
// > ec_GF2m_simple_add @ 0xa9efb0
// > ec_GF2m_simple_add @ 0xa9f30c
// > ec_GF2m_simple_mul @ 0xae6b9c
// > ??> @ 0x7b10c
//
// 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_copy(_DWORD *a1, _DWORD *a2)
{
if ( *(_DWORD *)(*a1 + 56) )
{
if ( *a1 == *a2 )
{
if ( a1 == a2 )
return 1;
else
return (*(int (__fastcall **)(_DWORD *))(*a1 + 56))(a1);
}
else
{
ERR_put_error(16, 114, 101, "crypto/ec/ec_lib.c", 604);
return 0;
}
}
else
{
ERR_put_error(16, 114, 66, "crypto/ec/ec_lib.c", 600);
return 0;
}
}