//
// EC_POINT_get_affine_coordinates_GF2m from 0xd91ce8 to 0xd91d6c (132 bytes)
//
// 12 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0xd90530
// > ecdh_simple_compute_key @ 0xd942d8
// > ossl_ecdsa_sign_setup @ 0xd9486c
// > ossl_ecdsa_sign_sig @ 0xd94fdc
// > ossl_ecdsa_verify_sig @ 0xd958a8
// > ec_GF2m_simple_point2oct @ 0xe32a08
// > ec_GF2m_simple_cmp @ 0xe338f8
// > ec_GF2m_simple_cmp @ 0xe339b0
// > ec_GF2m_simple_make_affine @ 0xe33aa8
// > ec_GF2m_simple_add @ 0xe33dac
// > ec_GF2m_simple_add @ 0xe34038
// > ??> @ 0x5c0e8
//
// 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_get_affine_coordinates_GF2m(__int64 a1, _QWORD *a2)
{
__int64 (*v2)(void); // x19
v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 144LL);
if ( v2 )
{
if ( *(_QWORD *)a1 == *a2 )
{
return v2();
}
else
{
ERR_put_error(16, 183, 101, "crypto/ec/ec_lib.c", 769);
return 0;
}
}
else
{
ERR_put_error(16, 183, 66, "crypto/ec/ec_lib.c", 764);
return 0;
}
}