//
// EC_POINT_set_affine_coordinates_GF2m from 0x9ffeb0 to 0x9fff88 (216 bytes)
//
// 5 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe168
// > ec_GF2m_simple_set_compressed_coordinates @ 0xa9db0c
// > ec_GF2m_simple_oct2point @ 0xa9e2b8
// > ec_GF2m_simple_add @ 0xa9f210
// > ??> @ 0x7b20c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:37 +0000
//
int __fastcall EC_POINT_set_affine_coordinates_GF2m(int a1, _DWORD *a2)
{
int (__fastcall *v2)(int); // r4
int result; // r0
v2 = *(int (__fastcall **)(int))(*(_DWORD *)a1 + 72);
if ( v2 )
{
if ( *(_DWORD *)a1 == *a2 )
{
result = v2(a1);
if ( result )
{
if ( EC_POINT_is_on_curve(a1, a2) <= 0 )
{
ERR_put_error(16, 185, 107, "crypto/ec/ec_lib.c", 733);
return 0;
}
else
{
return 1;
}
}
}
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;
}