//
// EC_KEY_set_public_key from 0x100e6f8 to 0x100e74c (84 bytes)
//
// 2 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x100e92c
// > ??> @ 0x6c400
//
// 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:01 +0000
//
__int64 __fastcall EC_KEY_set_public_key(_QWORD *a1, __int64 a2)
{
__int64 (*v4)(void); // x2
__int64 result; // x0
__int64 v6; // x0
v4 = *(__int64 (**)(void))(*a1 + 56LL);
if ( !v4 || (result = v4(), (_DWORD)result) )
{
EC_POINT_free(a1[4]);
v6 = EC_POINT_dup(a2, a1[3]);
a1[4] = v6;
return v6 != 0;
}
return result;
}