//
// i2s_ASN1_IA5STRING from 0xe70398 to 0xe70440 (168 bytes)
//
// 8 xrefs:
// > ??> @ 0x6d0b0
// > ??> @ 0x1227e18
// > ??> @ 0x1227e80
// > ??> @ 0x1227ee8
// > ??> @ 0x1227f50
// > ??> @ 0x1227fb8
// > ??> @ 0x1228020
// > ??> @ 0x1228088
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_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;
}