//
// EC_KEY_set_public_key from 0x7e940c to 0x7e945c (80 bytes)
//
// 2 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x7e963c
// > ??> @ 0x6175c
//
// 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_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;
}