//
// X509_get_pathlen from 0x85b44c to 0x85b484 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x6962c
//
// 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_get_pathlen(int a1)
{
if ( X509_check_purpose(a1, -1, -1) == 1 && (*(_DWORD *)(a1 + 112) & 1) != 0 )
return *(_DWORD *)(a1 + 104);
else
return -1;
}