//
// BIO_ADDR_rawaddress from 0x7cba74 to 0x7cbafc (136 bytes)
//
// 3 xrefs:
// > BIO_get_host_ip @ 0x7cedfc
// > BIO_get_host_ip @ 0x7cee1c
// > ??> @ 0x5f36c
//
// 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 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;
}