//
// EC_KEY_set_public_key from 0x9fe00c to 0x9fe05c (80 bytes)
//
// 2 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe23c
// > ??> @ 0x7b1dc
//
// 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:36 +0000
//
int __fastcall EC_KEY_set_public_key(_DWORD *a1, int a2)
{
int (*v3)(void); // r3
int result; // r0
int v6; // r0
v3 = *(int (**)(void))(*a1 + 28);
if ( !v3 || (result = v3()) != 0 )
{
EC_POINT_free(a1[4]);
v6 = EC_POINT_dup(a2, a1[3]);
a1[4] = v6;
return v6 != 0;
}
return result;
}