//
// BIO_ADDR_rawmake from 0xfefd08 to 0xfefdfc (244 bytes)
//
// 2 xrefs:
// > BIO_lookup @ 0xff06a4
// > ??> @ 0x41668
//
// 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_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;
}