//
// X509_PURPOSE_get0 from 0xe00d88 to 0xe00dc4 (60 bytes)
//
// 7 xrefs:
// > X509_STORE_CTX_purpose_inherit @ 0xded6b4
// > X509_STORE_CTX_purpose_inherit @ 0xded770
// > X509_STORE_CTX_init @ 0xdedc58
// > X509_PURPOSE_get_by_sname @ 0xe00ddc
// > X509_PURPOSE_add @ 0xe00f1c
// > X509_check_purpose @ 0xe01974
// > ??> @ 0x97200
//
// 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(qword_125F730, a1 - 9);
return (char *)&unk_12395C0 + 48 * a1;
}