//
// X509_PURPOSE_get0 from 0x107f0c8 to 0x107f104 (60 bytes)
//
// 7 xrefs:
// > X509_STORE_CTX_purpose_inherit @ 0x106b9f4
// > X509_STORE_CTX_purpose_inherit @ 0x106bab0
// > X509_STORE_CTX_init @ 0x106bf98
// > X509_PURPOSE_get_by_sname @ 0x107f11c
// > X509_PURPOSE_add @ 0x107f25c
// > X509_check_purpose @ 0x107fcb4
// > ??> @ 0xc7840
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:09 +0000
//
char *__fastcall X509_PURPOSE_get0(int a1)
{
if ( a1 < 0 )
return nullptr;
if ( a1 > 8 )
return (char *)OPENSSL_sk_value(qword_1568530, a1 - 9);
return (char *)&unk_15528A0 + 48 * a1;
}