//
// EC_POINT_set_to_infinity from 0xd91ad8 to 0xd91b5c (132 bytes)
//
// 10 xrefs:
// > ec_wNAF_mul @ 0xd92bec
// > ec_wNAF_mul @ 0xd9379c
// > sub_D96D88 @ 0xd96e68
// > ec_GFp_simple_oct2point @ 0xd98ecc
// > ec_GF2m_simple_oct2point @ 0xe32e38
// > ec_GF2m_simple_add @ 0xe3407c
// > sub_E7CC48 @ 0xe7cd0c
// > sub_E7CC48 @ 0xe7d238
// > ec_GF2m_simple_mul @ 0xe7d5b8
// > ??> @ 0xa5d80
//
// 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
//
__int64 __fastcall EC_POINT_set_to_infinity(__int64 a1, _QWORD *a2)
{
__int64 (*v2)(void); // x19
v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 112LL);
if ( v2 )
{
if ( *(_QWORD *)a1 == *a2 )
{
return v2();
}
else
{
ERR_put_error(16, 127, 101, "crypto/ec/ec_lib.c", 644);
return 0;
}
}
else
{
ERR_put_error(16, 127, 66, "crypto/ec/ec_lib.c", 640);
return 0;
}
}