//
// EC_POINT_make_affine from 0x7eb6a8 to 0x7eb728 (128 bytes)
//
// 3 xrefs:
// > sub_7F1BA0 @ 0x7f1fcc
// > ec_GF2m_simple_invert @ 0x88a7f4
// > ??> @ 0x61afc
//
// 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_make_affine(int a1, _DWORD *a2)
{
int (*v2)(void); // r12
v2 = *(int (**)(void))(*(_DWORD *)a1 + 116);
if ( !v2 )
{
ERR_put_error(16, 120, 66, "crypto/ec/ec_lib.c", 870);
return 0;
}
if ( *(_DWORD *)a1 != *a2 )
{
ERR_put_error(16, 120, 101, "crypto/ec/ec_lib.c", 874);
return 0;
}
return v2();
}