//
// o2i_ECPublicKey from 0x100d00c to 0x100d0b4 (168 bytes)
//
// 3 xrefs:
// > sub_1009820 @ 0x1009e28
// > sub_100A414 @ 0x100a498
// > ??> @ 0xeb810
//
// 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:00 +0000
//
__int64 __fastcall o2i_ECPublicKey(__int64 *a1, _QWORD *a2, __int64 a3)
{
__int64 v5; // x19
if ( a1 && (v5 = *a1) != 0 && *(_QWORD *)(v5 + 24) )
{
if ( (unsigned int)EC_KEY_oct2key(v5, *a2, a3, 0) )
{
*a2 += a3;
}
else
{
v5 = 0;
ERR_put_error(16, 152, 16, "crypto/ec/ec_asn1.c", 1118);
}
}
else
{
v5 = 0;
ERR_put_error(16, 152, 67, "crypto/ec/ec_asn1.c", 1113);
}
return v5;
}