//
// EC_POINT_set_compressed_coordinates_GFp from 0xd93cec to 0xd93de8 (252 bytes)
//
// 2 xrefs:
// > ec_GFp_simple_oct2point @ 0xd98fdc
// > ??> @ 0x6bbf8
//
// 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_compressed_coordinates_GFp(
__int64 a1,
_QWORD *a2,
__int64 a3,
unsigned int a4,
__int64 a5)
{
_DWORD *v5; // x5
unsigned int (*v6)(void); // x8
v5 = *(_DWORD **)a1;
v6 = *(unsigned int (**)(void))(*(_QWORD *)a1 + 152LL);
if ( v6 )
{
if ( v5 != (_DWORD *)*a2 )
goto LABEL_3;
if ( (*v5 & 1) == 0 )
return v6();
}
else
{
if ( (*v5 & 1) == 0 )
{
ERR_put_error(16, 125, 66, "crypto/ec/ec_oct.c", 30);
return 0;
}
if ( v5 != (_DWORD *)*a2 )
{
LABEL_3:
ERR_put_error(16, 125, 101, "crypto/ec/ec_oct.c", 35);
return 0;
}
}
if ( v5[1] == 406 )
return ec_GFp_simple_set_compressed_coordinates(a1, a2, a3, a4, a5);
else
return ec_GF2m_simple_set_compressed_coordinates(a1, a2, a3, a4, a5);
}