//
// level_find_node from 0x8c3978 to 0x8c39e4 (108 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0x84c28c
// > ??> @ 0x685ec
//
// 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
//
_DWORD *__fastcall level_find_node(int a1, int a2, int a3)
{
signed int v6; // r4
int v7; // r0
unsigned int v8; // r1
_DWORD *v10; // r0
_DWORD *v11; // r5
v6 = 0;
do
{
v7 = OPENSSL_sk_num(*(_DWORD *)(a1 + 4));
v8 = v6;
if ( v6++ >= v7 )
return nullptr;
v10 = (_DWORD *)OPENSSL_sk_value(*(_DWORD **)(a1 + 4), v8);
v11 = v10;
}
while ( v10[1] != a2 || OBJ_cmp(*(_DWORD *)(*v10 + 4), a3) );
return v11;
}