//
// EC_POINT_get_affine_coordinates_GF2m from 0x7eae30 to 0x7eaebc (140 bytes)
//
// 12 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x7e9588
// > ecdh_simple_compute_key @ 0x7ed6f4
// > ossl_ecdsa_sign_setup @ 0x7edcac
// > ossl_ecdsa_sign_sig @ 0x7ee4f4
// > ossl_ecdsa_verify_sig @ 0x7eeefc
// > ec_GF2m_simple_point2oct @ 0x88920c
// > ec_GF2m_simple_cmp @ 0x88a01c
// > ec_GF2m_simple_cmp @ 0x88a09c
// > ec_GF2m_simple_make_affine @ 0x88a188
// > ec_GF2m_simple_add @ 0x88a474
// > ec_GF2m_simple_add @ 0x88a738
// > ??> @ 0x6179c
//
// 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_get_affine_coordinates_GF2m(int a1, _DWORD *a2)
{
if ( !*(_DWORD *)(*(_DWORD *)a1 + 76) )
{
ERR_put_error(16, 183, 66, "crypto/ec/ec_lib.c", 764);
return 0;
}
if ( *(_DWORD *)a1 != *a2 )
{
ERR_put_error(16, 183, 101, "crypto/ec/ec_lib.c", 769);
return 0;
}
return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 76))(a1);
}