//
// level_find_node from 0xe6f6a8 to 0xe6f730 (136 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0xdf3c10
// > ??> @ 0xc4128
//
// 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
//
_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;
}