//
// OBJ_NAME_get from 0xa30644 to 0xa30708 (196 bytes)
//
// 3 xrefs:
// > EVP_get_cipherbyname @ 0xa19934
// > EVP_get_digestbyname @ 0xa19964
// > ??> @ 0x7d46c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:04 +0000
//
int __fastcall OBJ_NAME_get(int a1, int a2)
{
int v3; // r0
unsigned int v5; // r3
int v6; // r5
int v7; // r4
int v8; // r3
int v9; // r0
_BOOL4 v10; // r3
unsigned int v12; // [sp+0h] [bp-28h] BYREF
int v13; // [sp+8h] [bp-20h]
if ( a1 )
{
v3 = dword_D35794;
if ( !dword_D35794 )
{
if ( !OBJ_NAME_init() )
return 0;
v3 = dword_D35794;
}
v5 = a2 & 0xFFFF7FFF;
v6 = a2 & 0x8000;
v7 = 11;
v13 = a1;
v12 = v5;
while ( 1 )
{
v9 = OPENSSL_LH_retrieve(v3, (int)&v12);
if ( !v9 )
break;
v10 = v6 == 0;
if ( !*(_DWORD *)(v9 + 4) )
v10 = 0;
if ( !v10 )
return *(_DWORD *)(v9 + 12);
if ( !--v7 )
return 0;
v8 = *(_DWORD *)(v9 + 12);
v3 = dword_D35794;
v13 = v8;
}
return 0;
}
return 0;
}