//
// sub_E6A330 from 0xe6a330 to 0xe6a3e4 (180 bytes)
//
// 1 xrefs:
// > sub_E68414 @ 0xe685b8
//
// 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:10:33 +0000
//
__int64 __fastcall sub_E6A330(__int64 a1, __int16 **a2)
{
__int64 v4; // x22
int v5; // w1
_BYTE *v6; // x22
int v7; // w23
int i; // w19
__int16 *v9; // t1
v4 = *(_QWORD *)(a1 + 560);
if ( *(_DWORD *)(a1 + 316) )
{
v5 = *(_DWORD *)(v4 + 96);
if ( !v5 )
{
sub_E699F0((_QWORD **)a1, *(_DWORD *)(v4 + 100));
v5 = *(_DWORD *)(a1 + 316);
*(_DWORD *)(v4 + 100) = ((unsigned __int8)*(_DWORD *)(v4 + 100) + 1) & 7;
}
*(_DWORD *)(v4 + 96) = v5 - 1;
}
v6 = (_BYTE *)(v4 + 360);
v7 = *(_DWORD *)(a1 + 472);
for ( i = 0; *(_DWORD *)(a1 + 416) > i; ++i )
{
v9 = *a2++;
sub_E68AE4(a1, v6, (*v9 >> v7) & 1);
}
return 1;
}