//
// a2i_IPADDRESS from 0x1082cf8 to 0x1082d70 (120 bytes)
//
// 2 xrefs:
// > a2i_GENERAL_NAME @ 0x1076938
// > ??> @ 0x88588
//
// 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:17:11 +0000
//
__int64 __fastcall a2i_IPADDRESS(char *a1)
{
unsigned int v1; // w20
__int64 v2; // x0
__int64 v3; // x19
char v5[16]; // [xsp+30h] [xbp+30h] BYREF
v1 = a2i_ipadd(v5, a1);
if ( v1 )
{
v2 = ASN1_OCTET_STRING_new();
v3 = v2;
if ( v2 )
{
if ( (unsigned int)ASN1_OCTET_STRING_set(v2, v5, v1) )
return v3;
ASN1_OCTET_STRING_free(v3);
}
}
return 0;
}