//
// BIO_ADDR_make from 0x9e0528 to 0x9e05a4 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x78dbc
//
// 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_make(_DWORD *a1, _DWORD *a2)
{
int v2; // r2
int v5; // r0
int v6; // r1
int v7; // r2
int v8; // r3
_DWORD *v9; // t0
_DWORD *v10; // r12
int v11; // r0
int v12; // r1
int v13; // r2
int v14; // r3
_DWORD *v15; // lr
int v16; // r1
int v17; // r2
v2 = *(unsigned __int16 *)a2;
if ( v2 == 2 )
{
v5 = *a2;
v9 = a2 + 1;
v6 = a2[1];
v7 = *++v9;
v8 = v9[1];
*a1 = v5;
a1[1] = v6;
a1[2] = v7;
a1[3] = v8;
return 1;
}
else if ( v2 == 10 )
{
v10 = a2;
v11 = *a2;
v12 = a2[1];
v13 = v10[2];
v14 = v10[3];
v10 += 4;
*a1 = v11;
a1[1] = v12;
a1[2] = v13;
a1[3] = v14;
v15 = a1 + 4;
v16 = v10[1];
v17 = v10[2];
*v15 = *v10;
v15[1] = v16;
v15[2] = v17;
return 1;
}
else if ( *(_WORD *)a1 == 1 )
{
memcpy(a1, a2, 0x6Eu);
return 1;
}
else
{
return 0;
}
}