//
// EC_POINT_make_affine from 0xd924b4 to 0xd92538 (132 bytes)
//
// 3 xrefs:
// > sub_D98060 @ 0xd9841c
// > ec_GF2m_simple_invert @ 0xe340e8
// > ??> @ 0x829f8
//
// 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_make_affine(__int64 a1, _QWORD *a2)
{
__int64 (*v2)(void); // x19
v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 224LL);
if ( v2 )
{
if ( *(_QWORD *)a1 == *a2 )
{
return v2();
}
else
{
ERR_put_error(16, 120, 101, "crypto/ec/ec_lib.c", 874);
return 0;
}
}
else
{
ERR_put_error(16, 120, 66, "crypto/ec/ec_lib.c", 870);
return 0;
}
}