//
// EC_POINT_add from 0x10100cc to 0x1010160 (148 bytes)
//
// 5 xrefs:
// > ec_wNAF_mul @ 0x1011890
// > ec_wNAF_mul @ 0x1011ae8
// > ec_wNAF_precompute_mult @ 0x1011e3c
// > sub_10163C0 @ 0x101680c
// > ??> @ 0x48aa8
//
// 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_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;
}
}