//
// EC_POINT_get_affine_coordinates_GFp from 0x100ffc4 to 0x1010048 (132 bytes)
//
// 8 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x100e8b0
// > ecdh_simple_compute_key @ 0x1012860
// > ossl_ecdsa_sign_setup @ 0x1012c70
// > ossl_ecdsa_sign_sig @ 0x1013450
// > ossl_ecdsa_verify_sig @ 0x1013c4c
// > ec_GFp_simple_point2oct @ 0x1016e3c
// > ec_GFp_simple_make_affine @ 0x10191c4
// > ??> @ 0x87658
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:02 +0000
//
__int64 __fastcall EC_POINT_get_affine_coordinates_GFp(__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, 116, 101, "crypto/ec/ec_lib.c", 751);
return 0;
}
}
else
{
ERR_put_error(16, 116, 66, "crypto/ec/ec_lib.c", 746);
return 0;
}
}