//
// X509_REQ_get1_email from 0x1082884 to 0x10828fc (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x66d78
//
// 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:11 +0000
//
int *__fastcall X509_REQ_get1_email(__int64 a1)
{
unsigned int *extensions; // x21
unsigned int *d2i; // x19
unsigned int **subject_name; // x0
int *v5; // x20
extensions = (unsigned int *)X509_REQ_get_extensions();
d2i = (unsigned int *)X509V3_get_d2i(extensions, 85, nullptr, nullptr);
subject_name = (unsigned int **)X509_REQ_get_subject_name(a1);
v5 = sub_1082650(subject_name, d2i);
OPENSSL_sk_pop_free((int *)d2i, (void (__fastcall *)(__int64))GENERAL_NAME_free);
OPENSSL_sk_pop_free((int *)extensions, (void (__fastcall *)(__int64))X509_EXTENSION_free);
return v5;
}