//
// EVP_PKEY_CTX_hex2ctrl from 0x102c900 to 0x102c998 (152 bytes)
//
// 7 xrefs:
// > sub_102DC30 @ 0x102dc90
// > sub_1030A28 @ 0x1030aec
// > sub_1030A28 @ 0x1030b3c
// > sub_103103C @ 0x10310dc
// > sub_103103C @ 0x1031124
// > sub_109B694 @ 0x109b708
// > ??> @ 0x5d898
//
// 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:17 +0000
//
__int64 __fastcall EVP_PKEY_CTX_hex2ctrl(__int64 a1, unsigned int a2, __int64 a3)
{
__int64 result; // x0
__int64 v6; // x20
unsigned int v7; // w19
__int64 v8; // [xsp+38h] [xbp+38h] BYREF
result = OPENSSL_hexstr2buf(a3, &v8);
v6 = result;
if ( result )
{
v7 = -1;
if ( v8 <= 0x7FFFFFFF )
v7 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 192LL))(a1, a2);
CRYPTO_free(v6, "crypto/evp/pmeth_lib.c", 364);
return v7;
}
return result;
}