//
// EC_POINT_copy from 0x100fab8 to 0x100fb4c (148 bytes)
//
// 16 xrefs:
// > EC_KEY_copy @ 0x100df0c
// > EC_GROUP_copy @ 0x100fbfc
// > EC_POINT_dup @ 0x100fdfc
// > EC_GROUP_set_generator @ 0x1010b18
// > ec_wNAF_mul @ 0x10117dc
// > ec_wNAF_mul @ 0x10118a8
// > ec_wNAF_mul @ 0x1011944
// > ec_wNAF_precompute_mult @ 0x1011db0
// > ec_wNAF_precompute_mult @ 0x1011e04
// > sub_10163C0 @ 0x1016728
// > sub_10163C0 @ 0x1016764
// > ec_GFp_simple_add @ 0x1018b10
// > ec_GF2m_simple_add @ 0x10b1fdc
// > ec_GF2m_simple_add @ 0x10b22f8
// > ec_GF2m_simple_mul @ 0x10fb6ec
// > ??> @ 0xbb330
//
// 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:02 +0000
//
__int64 __fastcall EC_POINT_copy(_QWORD *a1, _QWORD *a2)
{
__int64 (*v2)(void); // x19
v2 = *(__int64 (**)(void))(*a1 + 104LL);
if ( v2 )
{
if ( *a1 == *a2 )
{
if ( a1 == a2 )
return 1;
else
return v2();
}
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;
}
}