//
// EC_POINT_get_affine_coordinates_GFp from 0x7ead94 to 0x7eae20 (140 bytes)
//
// 8 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x7e95ac
// > ecdh_simple_compute_key @ 0x7ed928
// > ossl_ecdsa_sign_setup @ 0x7edd58
// > ossl_ecdsa_sign_sig @ 0x7ee61c
// > ossl_ecdsa_verify_sig @ 0x7eef4c
// > ec_GFp_simple_point2oct @ 0x7f27cc
// > ec_GFp_simple_make_affine @ 0x7f4c54
// > ??> @ 0x617ac
//
// 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_GFp(int a1, _DWORD *a2)
{
if ( !*(_DWORD *)(*(_DWORD *)a1 + 76) )
{
ERR_put_error(16, 116, 66, "crypto/ec/ec_lib.c", 746);
return 0;
}
if ( *(_DWORD *)a1 != *a2 )
{
ERR_put_error(16, 116, 101, "crypto/ec/ec_lib.c", 751);
return 0;
}
return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 76))(a1);
}