//
// X509_PURPOSE_get0 from 0xa6f1f8 to 0xa6f238 (64 bytes)
//
// 7 xrefs:
// > X509_STORE_CTX_purpose_inherit @ 0xa5a570
// > X509_STORE_CTX_purpose_inherit @ 0xa5a628
// > X509_STORE_CTX_init @ 0xa5aba8
// > X509_PURPOSE_get_by_sname @ 0xa6f250
// > X509_PURPOSE_add @ 0xa6f368
// > X509_check_purpose @ 0xa6fde8
// > ??> @ 0x8122c
//
// 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:08:41 +0000
//
char *__fastcall X509_PURPOSE_get0(int a1)
{
if ( a1 < 0 )
return nullptr;
if ( a1 > 8 )
return (char *)OPENSSL_sk_value((_DWORD *)dword_D35AE0, a1 - 9);
return (char *)&unk_D262EC + 28 * a1;
}