//
// OBJ_NAME_get from 0xdc12ac to 0xdc135c (176 bytes)
//
// 3 xrefs:
// > EVP_get_cipherbyname @ 0xdabc4c
// > EVP_get_digestbyname @ 0xdabc90
// > ??> @ 0xc3000
//
// 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 OBJ_NAME_get(__int64 a1, int a2)
{
__int64 v4; // x0
unsigned int v5; // w2
int v6; // w21
int v7; // w19
__int64 v8; // x0
unsigned int v10; // [xsp+38h] [xbp+38h] BYREF
__int64 v11; // [xsp+40h] [xbp+40h]
if ( !a1 )
return 0;
v4 = qword_125F188;
if ( !qword_125F188 )
{
if ( !OBJ_NAME_init() )
return 0;
v4 = qword_125F188;
}
v5 = a2 & 0xFFFF7FFF;
v11 = a1;
v6 = a2 & 0x8000;
v7 = 11;
v10 = v5;
while ( 1 )
{
v8 = OPENSSL_LH_retrieve(v4, (__int64)&v10);
--v7;
if ( !v8 )
break;
if ( v6 || !*(_DWORD *)(v8 + 4) )
return *(_QWORD *)(v8 + 16);
if ( !v7 )
return 0;
v11 = *(_QWORD *)(v8 + 16);
v4 = qword_125F188;
}
return 0;
}