//
// policy_node_match from 0x8c3b00 to 0x8c3b7c (124 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0x84bedc
// > ??> @ 0x685cc
//
// 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(int a1, _DWORD **a2, int a3)
{
signed int v4; // r4
_DWORD *v5; // r5
int v7; // r0
v4 = *(_DWORD *)(a1 + 12) & 0x400;
v5 = *a2;
if ( v4 || (*v5 & 3) == 0 )
return OBJ_cmp(v5[1], a3) == 0;
do
{
if ( v4 >= OPENSSL_sk_num(v5[3]) )
return 0;
v7 = OPENSSL_sk_value((_DWORD *)v5[3], v4++);
}
while ( OBJ_cmp(v7, a3) );
return 1;
}