//
// X509_policy_tree_get0_level from 0x8c3808 to 0x8c3844 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0x6b6fc
//
// 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
//
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;
}