//
// s2i_ASN1_IA5STRING from 0x10ee440 to 0x10ee4e0 (160 bytes)
//
// 8 xrefs:
// > ??> @ 0xf8830
// > ??> @ 0x153fba8
// > ??> @ 0x153fc10
// > ??> @ 0x153fc78
// > ??> @ 0x153fce0
// > ??> @ 0x153fd48
// > ??> @ 0x153fdb0
// > ??> @ 0x153fe18
//
// 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
//
__int64 __fastcall s2i_ASN1_IA5STRING(__int64 a1, __int64 a2, char *a3)
{
__int64 v4; // x19
int v5; // w0
__int64 v7; // x0
if ( a3 )
{
v4 = ASN1_IA5STRING_new();
if ( v4 )
{
v5 = strlen(a3);
if ( !(unsigned int)ASN1_STRING_set(v4, a3, v5) )
{
v7 = v4;
v4 = 0;
ASN1_IA5STRING_free(v7);
}
}
else
{
ERR_put_error(34, 100, 65, (__int64)"crypto/x509v3/v3_ia5.c", 63);
}
}
else
{
v4 = 0;
ERR_put_error(34, 100, 107, (__int64)"crypto/x509v3/v3_ia5.c", 49);
}
return v4;
}