//
// EC_POINT_set_to_infinity from 0x100fe38 to 0x100febc (132 bytes)
//
// 10 xrefs:
// > ec_wNAF_mul @ 0x1010f4c
// > ec_wNAF_mul @ 0x1011afc
// > sub_10150E8 @ 0x10151c8
// > ec_GFp_simple_oct2point @ 0x101722c
// > ec_GF2m_simple_oct2point @ 0x10b1138
// > ec_GF2m_simple_add @ 0x10b237c
// > sub_10FAC48 @ 0x10fad0c
// > sub_10FAC48 @ 0x10fb238
// > ec_GF2m_simple_mul @ 0x10fb5b8
// > ??> @ 0xd9cc0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:02 +0000
//
__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;
}
}