//
// level_find_node from 0x10ed6a8 to 0x10ed730 (136 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0x1071f50
// > ??> @ 0xff340
//
// 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:18:05 +0000
//
_QWORD *__fastcall level_find_node(__int64 a1, __int64 a2, __int64 a3)
{
int v6; // w19
bool v7; // cc
int v8; // w1
_QWORD *v9; // x20
v6 = 0;
do
{
v7 = v6 < (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 8));
v8 = v6++;
if ( !v7 )
return nullptr;
v9 = (_QWORD *)OPENSSL_sk_value(*(_QWORD *)(a1 + 8), v8);
}
while ( v9[1] != a2 || (unsigned int)OBJ_cmp(*(_QWORD *)(*v9 + 8LL), a3) );
return v9;
}