//
// EC_POINT_set_affine_coordinates_GF2m from 0x1010444 to 0x1010514 (208 bytes)
//
// 5 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x100e874
// > ec_GF2m_simple_set_compressed_coordinates @ 0x10b0a30
// > ec_GF2m_simple_oct2point @ 0x10b1210
// > ec_GF2m_simple_add @ 0x10b2208
// > ??> @ 0x95068
//
// 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_affine_coordinates_GF2m(__int64 a1, _QWORD *a2)
{
__int64 (*v2)(void); // x19
__int64 result; // x0
bool v6; // cc
v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 136LL);
if ( v2 )
{
if ( *(_QWORD *)a1 == *a2 )
{
result = v2();
if ( (_DWORD)result )
{
v6 = (int)EC_POINT_is_on_curve(a1, a2) <= 0;
result = 1;
if ( v6 )
{
ERR_put_error(16, 185, 107, "crypto/ec/ec_lib.c", 733);
return 0;
}
}
}
else
{
ERR_put_error(16, 185, 101, "crypto/ec/ec_lib.c", 725);
return 0;
}
}
else
{
ERR_put_error(16, 185, 66, "crypto/ec/ec_lib.c", 720);
return 0;
}
return result;
}