//
// EC_POINT_set_to_infinity from 0x7eabc8 to 0x7eac48 (128 bytes)
//
// 10 xrefs:
// > ec_wNAF_mul @ 0x7ebff4
// > ec_wNAF_mul @ 0x7eca40
// > sub_7F0594 @ 0x7f1458
// > ec_GFp_simple_oct2point @ 0x7f2b8c
// > ec_GF2m_simple_oct2point @ 0x88960c
// > ec_GF2m_simple_add @ 0x88a788
// > sub_8D1010 @ 0x8d1098
// > sub_8D1010 @ 0x8d1660
// > ec_GF2m_simple_mul @ 0x8d1a1c
// > ??> @ 0x61a9c
//
// 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_set_to_infinity(int a1, _DWORD *a2)
{
int (*v2)(void); // r2
v2 = *(int (**)(void))(*(_DWORD *)a1 + 60);
if ( !v2 )
{
ERR_put_error(16, 127, 66, "crypto/ec/ec_lib.c", 640);
return 0;
}
if ( *(_DWORD *)a1 != *a2 )
{
ERR_put_error(16, 127, 101, "crypto/ec/ec_lib.c", 644);
return 0;
}
return v2();
}