//
// X509_policy_tree_get0_level from 0xad8808 to 0xad8844 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0x8517c
//
// 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:29 +0000
//
int __fastcall X509_policy_tree_get0_level(_DWORD *a1, unsigned int a2)
{
int v2; // r3
v2 = a2 >> 31;
if ( !a1 )
v2 = 1;
if ( v2 )
return 0;
if ( (signed int)a2 >= a1[1] )
return 0;
return *a1 + 16 * a2;
}