//
// EC_POINT_dbl from 0x7eaf78 to 0x7eb008 (144 bytes)
//
// 9 xrefs:
// > ec_wNAF_mul @ 0x7ec7f8
// > ec_wNAF_mul @ 0x7eca78
// > ec_wNAF_precompute_mult @ 0x7ece50
// > ec_wNAF_precompute_mult @ 0x7ed004
// > ec_wNAF_precompute_mult @ 0x7ed030
// > sub_7F1BA0 @ 0x7f202c
// > ec_GFp_simple_add @ 0x7f44a4
// > ec_GFp_simple_add @ 0x7f4538
// > ??> @ 0x61adc
//
// 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
//
int __fastcall EC_POINT_dbl(int *a1, _DWORD *a2, _DWORD *a3)
{
int v3; // r12
v3 = *a1;
if ( !*(_DWORD *)(*a1 + 96) )
{
ERR_put_error(16, 115, 66, "crypto/ec/ec_lib.c", 795);
return 0;
}
if ( v3 != *a2 || v3 != *a3 )
{
ERR_put_error(16, 115, 101, "crypto/ec/ec_lib.c", 799);
return 0;
}
return (*(int (__fastcall **)(int *))(*a1 + 96))(a1);
}