//
// policy_node_match from 0xad8b00 to 0xad8b7c (124 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0xa60adc
// > ??> @ 0x8204c
//
// 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
//
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;
}