//
// ENGINE_pkey_asn1_find_str from 0x101cc48 to 0x101cd28 (224 bytes)
//
// 2 xrefs:
// > EVP_PKEY_asn1_find_str @ 0xfe6d6c
// > ??> @ 0x543b8
//
// 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:08 +0000
//
__int64 __fastcall ENGINE_pkey_asn1_find_str(_QWORD *a1, __int64 a2, int a3)
{
__int64 v4; // x1
__int64 v6; // [xsp+30h] [xbp+30h] BYREF
__int64 v7; // [xsp+38h] [xbp+38h]
__int64 v8; // [xsp+40h] [xbp+40h]
int v9; // [xsp+48h] [xbp+48h]
v8 = a2;
v6 = 0;
v7 = 0;
v9 = a3;
if ( (unsigned int)CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_)
&& do_engine_lock_init_ossl_ret_ )
{
CRYPTO_THREAD_write_lock(global_engine_lock);
engine_table_doall(qword_1566410, sub_101C7EC, &v6);
v4 = v6;
if ( v6 )
++*(_DWORD *)(v6 + 156);
*a1 = v4;
CRYPTO_THREAD_unlock(global_engine_lock);
return v7;
}
else
{
ERR_put_error(38, 197, 65, "crypto/engine/tb_asnmth.c", 193);
return 0;
}
}