//
// a2i_IPADDRESS from 0xa72f10 to 0xa72f70 (96 bytes)
//
// 2 xrefs:
// > a2i_GENERAL_NAME @ 0xa65c58
// > ??> @ 0x8238c
//
// 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:08:43 +0000
//
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;
}