//
// EC_POINT_set_affine_coordinates_GFp from 0x9ffdc0 to 0x9ffe98 (216 bytes)
//
// 7 xrefs:
// > EC_GROUP_new_by_curve_name @ 0x9fce98
// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe120
// > sub_A05194 @ 0xa05374
// > ec_GFp_simple_set_compressed_coordinates @ 0xa071d4
// > ec_GFp_simple_oct2point @ 0xa07838
// > ec_GFp_simple_make_affine @ 0xa09894
// > ??> @ 0x7b04c
//
// 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_set_affine_coordinates_GFp(int a1, _DWORD *a2)
{
int (__fastcall *v2)(int); // r4
int result; // r0
v2 = *(int (__fastcall **)(int))(*(_DWORD *)a1 + 72);
if ( v2 )
{
if ( *(_DWORD *)a1 == *a2 )
{
result = v2(a1);
if ( result )
{
if ( EC_POINT_is_on_curve(a1, a2) <= 0 )
{
ERR_put_error(16, 124, 107, "crypto/ec/ec_lib.c", 707);
return 0;
}
else
{
return 1;
}
}
}
else
{
ERR_put_error(16, 124, 101, "crypto/ec/ec_lib.c", 699);
return 0;
}
}
else
{
ERR_put_error(16, 124, 66, "crypto/ec/ec_lib.c", 694);
return 0;
}
return result;
}