//
// EC_POINT_add from 0xd91d6c to 0xd91e00 (148 bytes)
//
// 5 xrefs:
// > ec_wNAF_mul @ 0xd93530
// > ec_wNAF_mul @ 0xd93788
// > ec_wNAF_precompute_mult @ 0xd93adc
// > sub_D98060 @ 0xd984ac
// > ??> @ 0x30c78
//
// 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_add(__int64 *a1, _QWORD *a2, _QWORD *a3, _QWORD *a4)
{
__int64 v4; // x5
__int64 (*v5)(void); // x19
v4 = *a1;
v5 = *(__int64 (**)(void))(*a1 + 176);
if ( v5 )
{
if ( v4 == *a2 && v4 == *a3 && v4 == *a4 )
{
return v5();
}
else
{
ERR_put_error(16, 112, 101, "crypto/ec/ec_lib.c", 785);
return 0;
}
}
else
{
ERR_put_error(16, 112, 66, "crypto/ec/ec_lib.c", 780);
return 0;
}
}