//
// EVP_PKEY_asn1_find_str from 0xfe6d34 to 0xfe6e38 (260 bytes)
//
// 10 xrefs:
// > ssl_load_ciphers @ 0xfbac9c
// > ssl_load_ciphers @ 0xfbad0c
// > ssl_load_ciphers @ 0xfbad78
// > ssl_load_ciphers @ 0xfbade4
// > ssl_load_ciphers @ 0xfbae4c
// > EVP_PKEY_set_type_str @ 0x102a6c8
// > PEM_bytes_read_bio @ 0x1046cc8
// > PEM_bytes_read_bio @ 0x1046ebc
// > PEM_read_bio_PrivateKey @ 0x10471cc
// > ??> @ 0x9d6d8
//
// 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:15:40 +0000
//
__int64 __fastcall EVP_PKEY_asn1_find_str(_QWORD *a1, char *a2, unsigned int a3)
{
unsigned int v3; // w22
__int64 str; // x20
int v8; // w19
bool v9; // cc
int v10; // w0
__int64 v11; // x0
__int64 v12; // x20
const char *v13; // x21
__int64 v14; // [xsp+48h] [xbp+48h] BYREF
v3 = a3;
if ( a3 == -1 )
v3 = strlen(a2);
if ( a1 )
{
str = ENGINE_pkey_asn1_find_str(&v14, a2, v3);
if ( str )
{
if ( !(unsigned int)ENGINE_init(v14) )
str = 0;
ENGINE_free(v14);
*a1 = v14;
return str;
}
*a1 = 0;
}
v8 = 0;
while ( 1 )
{
v9 = v8 < (int)EVP_PKEY_asn1_get_count();
v10 = v8++;
if ( !v9 )
return 0;
v11 = EVP_PKEY_asn1_get0(v10);
v12 = v11;
if ( (*(_QWORD *)(v11 + 8) & 1) == 0 )
{
v13 = *(const char **)(v11 + 16);
if ( v3 == (unsigned int)strlen(v13) && !strncasecmp(v13, a2, (int)v3) )
break;
}
}
return v12;
}