//
// level_find_node from 0xad8978 to 0xad89e4 (108 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0xa60e8c
// > ??> @ 0x8206c
//
// 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:09:30 +0000
//
_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;
}