//
// BIO_ADDR_rawaddress from 0x9e0674 to 0x9e06fc (136 bytes)
//
// 3 xrefs:
// > BIO_get_host_ip @ 0x9e39fc
// > BIO_get_host_ip @ 0x9e3a1c
// > ??> @ 0x78dec
//
// 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:07:20 +0000
//
int __fastcall BIO_ADDR_rawaddress(const char *a1, void *a2, size_t *a3)
{
int v3; // r3
const void *v5; // r4
size_t v6; // r6
int result; // r0
size_t v8; // r0
void *v9; // [sp+4h] [bp-4h]
v3 = *(unsigned __int16 *)a1;
switch ( v3 )
{
case 2:
v5 = a1 + 4;
v6 = 4;
break;
case 10:
v5 = a1 + 8;
v6 = 16;
break;
case 1:
v5 = a1 + 2;
v9 = a2;
v8 = strlen(a1 + 2);
a2 = v9;
v6 = v8;
break;
default:
return 0;
}
if ( a2 )
memcpy(a2, v5, v6);
result = 1;
if ( a3 )
*a3 = v6;
return result;
}