//
// sub_EFB3A0 from 0xefb3a0 to 0xefb46c (204 bytes)
//
// 3 xrefs:
// > sub_EE53C8 @ 0xee55f0
// > sub_EE53C8 @ 0xee5af8
// > sub_EE53C8 @ 0xee61a8
//
// 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:12:16 +0000
//
__int64 __fastcall sub_EFB3A0(__int64 a1, unsigned int a2, unsigned int a3, unsigned __int8 *a4, __int64 a5)
{
int v6; // w6
__int64 v8; // x5
int v9; // w2
__int64 v10; // x1
__int64 result; // x0
__int64 v12; // x6
unsigned int v13; // w8
unsigned int v14; // w7
v6 = *(_DWORD *)(a1 + 4);
v8 = *(unsigned int *)(a1 + 8);
v9 = 8 >> v6;
v10 = *(_QWORD *)(a1 + 16);
if ( 8 >> v6 > 7 )
return off_1569340(a4, v10, a5, a2, a3, v8);
result = (unsigned int)((1 << v6) - 1);
if ( (int)a2 < (int)a3 )
{
do
{
v12 = 0;
v13 = 0;
if ( (int)v8 > 0 )
{
do
{
if ( ((unsigned int)result & (unsigned int)v12) == 0 )
v13 = *a4++;
v14 = v13 & ((1 << v9) - 1);
v13 >>= v9;
*(_BYTE *)(a5 + v12++) = BYTE1(*(_DWORD *)(v10 + 4LL * v14));
}
while ( (int)v8 > (int)v12 );
a5 += (unsigned int)(v8 - 1) + 1LL;
}
++a2;
}
while ( a2 != a3 );
}
return result;
}