//
// EC_POINT_set_compressed_coordinates_GF2m from 0x7ed1f8 to 0x7ed2f4 (252 bytes)
//
// 2 xrefs:
// > ec_GF2m_simple_oct2point @ 0x8896f0
// > ??> @ 0x61bec
//
// 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_compressed_coordinates_GF2m(int a1, _DWORD *a2)
{
_DWORD *v2; // r12
v2 = *(_DWORD **)a1;
if ( *(_DWORD *)(*(_DWORD *)a1 + 80) )
{
if ( v2 != (_DWORD *)*a2 )
goto LABEL_3;
if ( (*v2 & 1) == 0 )
return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 80))(a1);
}
else
{
if ( (*v2 & 1) == 0 )
{
ERR_put_error(16, 186, 66, "crypto/ec/ec_oct.c", 66);
return 0;
}
if ( v2 != (_DWORD *)*a2 )
{
LABEL_3:
ERR_put_error(16, 186, 101, "crypto/ec/ec_oct.c", 71);
return 0;
}
}
if ( v2[1] == 406 )
return ec_GFp_simple_set_compressed_coordinates();
else
return ec_GF2m_simple_set_compressed_coordinates();
}