//
// BIO_ADDR_make from 0xd718fc to 0xd719a8 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0xc7950
//
// 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
//
__int64 __fastcall BIO_ADDR_make(_QWORD *a1, unsigned __int16 *a2)
{
int v4; // w2
__int64 v6; // x0
__int64 v7; // x1
__int64 v8; // x0
__int64 v9; // x1
v4 = *a2;
if ( v4 == 2 )
{
v6 = *(_QWORD *)a2;
v7 = *((_QWORD *)a2 + 1);
*a1 = v6;
a1[1] = v7;
return 1;
}
else if ( v4 == 10 )
{
v8 = *(_QWORD *)a2;
v9 = *((_QWORD *)a2 + 1);
*a1 = v8;
a1[1] = v9;
a1[2] = *((_QWORD *)a2 + 2);
*((_DWORD *)a1 + 6) = *((_DWORD *)a2 + 6);
return 1;
}
else if ( *(_WORD *)a1 == 1 )
{
memcpy(a1, a2, 0x6Eu);
return 1;
}
else
{
return 0;
}
}