//
// a2i_IPADDRESS from 0x85e310 to 0x85e370 (96 bytes)
//
// 2 xrefs:
// > a2i_GENERAL_NAME @ 0x851058
// > ??> @ 0x6890c
//
// 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
//
int __fastcall a2i_IPADDRESS(char *a1)
{
int v1; // r6
int v2; // r0
int v3; // r4
int v4; // r5
int result; // r0
_BYTE v6[16]; // [sp+0h] [bp-10h] BYREF
v1 = a2i_ipadd(v6, a1);
if ( !v1 )
return 0;
v2 = ASN1_OCTET_STRING_new();
v3 = v2;
if ( !v2 )
return 0;
v4 = ASN1_OCTET_STRING_set(v2, v6, v1);
result = v3;
if ( !v4 )
{
ASN1_OCTET_STRING_free(v3);
return 0;
}
return result;
}