//
// X509_REQ_get1_email from 0xa72ad4 to 0xa72b34 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x8327c
//
// 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:42 +0000
//
int *__fastcall X509_REQ_get1_email(int a1)
{
_DWORD *extensions; // r6
_DWORD *d2i; // r4
int *subject_name; // r0
int *v5; // r5
extensions = (_DWORD *)X509_REQ_get_extensions();
d2i = (_DWORD *)X509V3_get_d2i(extensions, (_BYTE *)&dword_54 + 1, nullptr, nullptr);
subject_name = (int *)X509_REQ_get_subject_name(a1);
v5 = sub_A728C8(subject_name, d2i);
OPENSSL_sk_pop_free((int)d2i, (void (__fastcall *)(int))GENERAL_NAME_free);
OPENSSL_sk_pop_free((int)extensions, (void (__fastcall *)(int))X509_EXTENSION_free);
return v5;
}