//
// X509_PURPOSE_get0 from 0x85a5f8 to 0x85a638 (64 bytes)
//
// 7 xrefs:
// > X509_STORE_CTX_purpose_inherit @ 0x845970
// > X509_STORE_CTX_purpose_inherit @ 0x845a28
// > X509_STORE_CTX_init @ 0x845fa8
// > X509_PURPOSE_get_by_sname @ 0x85a650
// > X509_PURPOSE_add @ 0x85a768
// > X509_check_purpose @ 0x85b1e8
// > ??> @ 0x677ac
//
// 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
//
char *__fastcall X509_PURPOSE_get0(int a1)
{
if ( a1 < 0 )
return nullptr;
if ( a1 > 8 )
return (char *)OPENSSL_sk_value((_DWORD *)dword_AD4854, a1 - 9);
return (char *)&unk_AC1114 + 28 * a1;
}