//
// i2s_ASN1_IA5STRING from 0x10ee398 to 0x10ee440 (168 bytes)
//
// 8 xrefs:
// > ??> @ 0x932f8
// > ??> @ 0x153fba0
// > ??> @ 0x153fc08
// > ??> @ 0x153fc70
// > ??> @ 0x153fcd8
// > ??> @ 0x153fd40
// > ??> @ 0x153fda8
// > ??> @ 0x153fe10
//
// 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:18:05 +0000
//
_BYTE *__fastcall i2s_ASN1_IA5STRING(__int64 a1, const void **a2)
{
_BYTE *v3; // x0
_BYTE *v4; // x21
_BYTE *result; // x0
if ( !a2 )
return nullptr;
if ( !*(_DWORD *)a2 )
return nullptr;
v3 = CRYPTO_malloc((void *)(*(_DWORD *)a2 + 1), (__int64)"crypto/x509v3/v3_ia5.c", 34);
v4 = v3;
if ( v3 )
{
memcpy(v3, a2[1], *(int *)a2);
result = v4;
v4[*(int *)a2] = 0;
}
else
{
ERR_put_error(34, 149, 65, (__int64)"crypto/x509v3/v3_ia5.c", 35);
return nullptr;
}
return result;
}