//
// policy_node_match from 0xe6f844 to 0xe6f8ec (168 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0xdf3864
// > ??> @ 0x82ab8
//
// 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
//
bool __fastcall policy_node_match(__int64 a1, __int64 *a2, __int64 a3)
{
int v3; // w19
__int64 v5; // x20
__int64 v7; // x0
bool v8; // cc
int v9; // w1
v3 = *(_DWORD *)(a1 + 24) & 0x400;
v5 = *a2;
if ( v3 || (*(_DWORD *)v5 & 3) == 0 )
return (unsigned int)OBJ_cmp(*(_QWORD *)(v5 + 8), a3) == 0;
do
{
v8 = v3 < (int)OPENSSL_sk_num(*(unsigned int **)(v5 + 24));
v9 = v3++;
if ( !v8 )
return 0;
v7 = OPENSSL_sk_value(*(_QWORD *)(v5 + 24), v9);
}
while ( (unsigned int)OBJ_cmp(v7, a3) );
return 1;
}