//
// BIO_ADDR_rawaddress from 0xfefe04 to 0xfefeb4 (176 bytes)
//
// 3 xrefs:
// > BIO_get_host_ip @ 0xff2fec
// > BIO_get_host_ip @ 0xff3010
// > ??> @ 0x71cb0
//
// 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:15:45 +0000
//
__int64 __fastcall BIO_ADDR_rawaddress(const char *a1, void *a2, size_t *a3)
{
int v5; // w4
__int64 result; // x0
const void *v7; // x19
size_t v8; // x21
void *v9; // [xsp+38h] [xbp+38h]
v5 = *(unsigned __int16 *)a1;
if ( v5 == 2 )
{
v7 = a1 + 4;
v8 = 4;
}
else if ( v5 == 10 )
{
v7 = a1 + 8;
v8 = 16;
}
else
{
result = 0;
if ( v5 != 1 )
return result;
v7 = a1 + 2;
v9 = a2;
v8 = strlen(a1 + 2);
a2 = v9;
}
if ( a2 )
memcpy(a2, v7, v8);
if ( a3 )
*a3 = v8;
return 1;
}