//
// BIO_ADDR_rawmake from 0xd719a8 to 0xd71a9c (244 bytes)
//
// 2 xrefs:
// > BIO_lookup @ 0xd72344
// > ??> @ 0x2b020
//
// 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_rawmake(__int64 a1, int a2, char *a3, __int64 a4, __int16 a5)
{
__int64 result; // x0
__int64 v7; // x3
if ( a2 == 1 )
{
result = 0;
if ( (unsigned __int64)(a4 + 1) <= 0x6C )
{
*(_DWORD *)(a1 + 104) = 0;
*(_WORD *)(a1 + 108) = 0;
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 56) = 0;
*(_QWORD *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 72) = 0;
*(_QWORD *)(a1 + 80) = 0;
*(_QWORD *)(a1 + 88) = 0;
*(_QWORD *)(a1 + 96) = 0;
*(_WORD *)a1 = 1;
strncpy((char *)(a1 + 2), a3, 0x6Bu);
return 1;
}
}
else if ( a2 == 2 )
{
result = 0;
if ( a4 == 4 )
{
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_WORD *)a1 = 2;
*(_WORD *)(a1 + 2) = a5;
*(_DWORD *)(a1 + 4) = *(_DWORD *)a3;
return 1;
}
}
else if ( a2 == 10 && a4 == 16 )
{
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_DWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 16) = 0;
*(_WORD *)(a1 + 2) = a5;
*(_WORD *)a1 = 10;
v7 = *((_QWORD *)a3 + 1);
*(_QWORD *)(a1 + 8) = *(_QWORD *)a3;
*(_QWORD *)(a1 + 16) = v7;
return 1;
}
else
{
return 0;
}
return result;
}