//
// o2i_ECPublicKey from 0x9fc770 to 0x9fc820 (176 bytes)
//
// 3 xrefs:
// > sub_9F8980 @ 0x9f911c
// > sub_9F95DC @ 0x9f965c
// > ??> @ 0x7abac
//
// 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:35 +0000
//
int __fastcall o2i_ECPublicKey(_DWORD *a1, _DWORD *a2, int a3)
{
int v3; // r4
if ( a1 && (v3 = *a1) != 0 && *(_DWORD *)(v3 + 12) )
{
if ( EC_KEY_oct2key(*a1, *a2, a3, 0) )
{
*a2 += a3;
}
else
{
v3 = 0;
ERR_put_error(16, 152, 16, "crypto/ec/ec_asn1.c", 1118);
}
}
else
{
ERR_put_error(16, 152, 67, "crypto/ec/ec_asn1.c", 1113);
return 0;
}
return v3;
}