//
// EVP_PKEY_CTX_hex2ctrl from 0xdae5a0 to 0xdae638 (152 bytes)
//
// 7 xrefs:
// > sub_DAF8D0 @ 0xdaf930
// > sub_DB26C8 @ 0xdb278c
// > sub_DB26C8 @ 0xdb27dc
// > sub_DB2CDC @ 0xdb2d7c
// > sub_DB2CDC @ 0xdb2dc4
// > sub_E1D394 @ 0xe1d408
// > ??> @ 0x41388
//
// 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
//
__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;
}