//
// EC_POINT_is_at_infinity from 0x7eb0a0 to 0x7eb120 (128 bytes)
//
// 26 xrefs:
// > ec_key_simple_check_key @ 0x7e9064
// > ec_key_simple_check_key @ 0x7e91b0
// > sub_7F02F0 @ 0x7f0304
// > ec_GFp_simple_point2oct @ 0x7f26f4
// > ec_GFp_simple_point_get_affine_coordinates @ 0x7f3594
// > ec_GFp_simple_dbl @ 0x7f38b4
// > ec_GFp_simple_cmp @ 0x7f4044
// > ec_GFp_simple_cmp @ 0x7f4058
// > ec_GFp_simple_cmp @ 0x7f4164
// > ec_GFp_simple_add @ 0x7f431c
// > ec_GFp_simple_add @ 0x7f4338
// > ec_GFp_simple_invert @ 0x7f48c0
// > ec_GFp_simple_is_on_curve @ 0x7f490c
// > ec_GFp_simple_make_affine @ 0x7f4c04
// > ec_GF2m_simple_point2oct @ 0x889124
// > ec_GF2m_simple_point_get_affine_coordinates @ 0x889e80
// > ec_GF2m_simple_cmp @ 0x889f90
// > ec_GF2m_simple_cmp @ 0x889fa4
// > ec_GF2m_simple_cmp @ 0x88a074
// > ec_GF2m_simple_make_affine @ 0x88a138
// > ec_GF2m_simple_is_on_curve @ 0x88a224
// > ec_GF2m_simple_add @ 0x88a39c
// > ec_GF2m_simple_add @ 0x88a3d0
// > ec_GF2m_simple_invert @ 0x88a7c4
// > sub_8D1010 @ 0x8d1068
// > ??> @ 0x6172c
//
// 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_is_at_infinity(int a1, _DWORD *a2)
{
int (*v2)(void); // r2
v2 = *(int (**)(void))(*(_DWORD *)a1 + 104);
if ( !v2 )
{
ERR_put_error(16, 118, 66, "crypto/ec/ec_lib.c", 822);
return 0;
}
if ( *(_DWORD *)a1 != *a2 )
{
ERR_put_error(16, 118, 101, "crypto/ec/ec_lib.c", 826);
return 0;
}
return v2();
}