//
// X509_VERIFY_PARAM_set1_email from 0x106cd28 to 0x106cdd8 (176 bytes)
//
// 3 xrefs:
// > X509_VERIFY_PARAM_inherit @ 0x106d074
// > X509_VERIFY_PARAM_inherit @ 0x106d0fc
// > ??> @ 0x46d98
//
// 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:16:58 +0000
//
void *__fastcall X509_VERIFY_PARAM_set1_email(__int64 a1, char *a2, void *a3)
{
void *v4; // x21
__int64 v5; // x23
void *result; // x0
void *v7; // x19
char *v8; // [xsp+48h] [xbp+48h]
v4 = a3;
v5 = a1 + 88;
if ( !a2 )
{
v7 = nullptr;
v4 = nullptr;
LABEL_5:
CRYPTO_free(*(void **)(a1 + 80), (__int64)"crypto/x509/x509_vpm.c", 273);
*(_QWORD *)(a1 + 80) = v7;
if ( v5 )
*(_QWORD *)(a1 + 88) = v4;
return dword_0 + 1;
}
if ( !a3 )
{
v8 = a2;
v4 = (void *)strlen(a2);
a2 = v8;
}
result = CRYPTO_memdup(a2, v4, (__int64)"crypto/x509/x509_vpm.c", 0x10Au);
v7 = result;
if ( result )
goto LABEL_5;
return result;
}