//
// i2s_ASN1_IA5STRING from 0xad963c to 0xad96cc (144 bytes)
//
// 8 xrefs:
// > ??> @ 0x852ac
// > ??> @ 0xd19e04
// > ??> @ 0xd19e3c
// > ??> @ 0xd19e74
// > ??> @ 0xd19eac
// > ??> @ 0xd19ee4
// > ??> @ 0xd19f1c
// > ??> @ 0xd19f54
//
// 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:09:30 +0000
//
size_t __fastcall i2s_ASN1_IA5STRING(int a1, int a2)
{
size_t result; // r0
_BYTE *v4; // r0
_BYTE *v5; // r4
if ( !a2 )
return 0;
result = *(_DWORD *)a2;
if ( *(_DWORD *)a2 )
{
v4 = CRYPTO_malloc((void *)(result + 1), (int)"crypto/x509v3/v3_ia5.c", 34);
v5 = v4;
if ( v4 )
{
memcpy(v4, *(const void **)(a2 + 8), *(_DWORD *)a2);
v5[*(_DWORD *)a2] = 0;
return (size_t)v5;
}
else
{
ERR_put_error(34, 149, 65, (int)"crypto/x509v3/v3_ia5.c", 35);
return 0;
}
}
return result;
}