//
// i2s_ASN1_IA5STRING from 0x8c463c to 0x8c46cc (144 bytes)
//
// 8 xrefs:
// > ??> @ 0x6b82c
// > ??> @ 0xab5728
// > ??> @ 0xab5760
// > ??> @ 0xab5798
// > ??> @ 0xab57d0
// > ??> @ 0xab5808
// > ??> @ 0xab5840
// > ??> @ 0xab5878
//
// 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
//
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;
}