//
// EC_POINT_copy from 0xd91758 to 0xd917ec (148 bytes)
//
// 16 xrefs:
// > EC_KEY_copy @ 0xd8fbac
// > EC_GROUP_copy @ 0xd9189c
// > EC_POINT_dup @ 0xd91a9c
// > EC_GROUP_set_generator @ 0xd927b8
// > ec_wNAF_mul @ 0xd9347c
// > ec_wNAF_mul @ 0xd93548
// > ec_wNAF_mul @ 0xd935e4
// > ec_wNAF_precompute_mult @ 0xd93a50
// > ec_wNAF_precompute_mult @ 0xd93aa4
// > sub_D98060 @ 0xd983c8
// > sub_D98060 @ 0xd98404
// > ec_GFp_simple_add @ 0xd9a7b0
// > ec_GF2m_simple_add @ 0xe33cdc
// > ec_GF2m_simple_add @ 0xe33ff8
// > ec_GF2m_simple_mul @ 0xe7d6ec
// > ??> @ 0x8d678
//
// 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_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;
}
}