//
// EC_POINT_get_affine_coordinates_GFp from 0x9ff994 to 0x9ffa20 (140 bytes)
//
// 8 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe1ac
// > ecdh_simple_compute_key @ 0xa02528
// > ossl_ecdsa_sign_setup @ 0xa02958
// > ossl_ecdsa_sign_sig @ 0xa0321c
// > ossl_ecdsa_verify_sig @ 0xa03b4c
// > ec_GFp_simple_point2oct @ 0xa073cc
// > ec_GFp_simple_make_affine @ 0xa09854
// > ??> @ 0x7b22c
//
// 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_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);
}