//
// OBJ_NAME_get from 0x103f60c to 0x103f6bc (176 bytes)
//
// 3 xrefs:
// > EVP_get_cipherbyname @ 0x1029fac
// > EVP_get_digestbyname @ 0x1029ff0
// > ??> @ 0xfde88
//
// 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:29 +0000
//
__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_1567F88;
if ( !qword_1567F88 )
{
if ( !OBJ_NAME_init() )
return 0;
v4 = qword_1567F88;
}
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_1567F88;
}
return 0;
}