//
// EC_POINT_add from 0x9ffac8 to 0x9ffb6c (164 bytes)
//
// 5 xrefs:
// > ec_wNAF_mul @ 0xa01468
// > ec_wNAF_mul @ 0xa016ac
// > ec_wNAF_precompute_mult @ 0xa01aa0
// > sub_A067A0 @ 0xa06c6c
// > ??> @ 0x7b54c
//
// 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_add(int *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)
{
int v4; // r12
v4 = *a1;
if ( !*(_DWORD *)(*a1 + 92) )
{
ERR_put_error(16, 112, 66, "crypto/ec/ec_lib.c", 780);
return 0;
}
if ( v4 != *a2 || v4 != *a3 || v4 != *a4 )
{
ERR_put_error(16, 112, 101, "crypto/ec/ec_lib.c", 785);
return 0;
}
return (*(int (__fastcall **)(int *))(*a1 + 92))(a1);
}