//
// sub_ECCB8 from 0xeccb8 to 0xecd1c (100 bytes)
//
// 1 xrefs:
// > sub_F13AC @ 0xf203c
//
// 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 sub_ECCB8(__int64 a1)
{
unsigned int v1; // w8
unsigned int v2; // w9
unsigned int v3; // w10
unsigned int v4; // w11
int v5; // w14
v1 = *(_DWORD *)(a1 + 24);
if ( v1 )
{
v2 = *(_DWORD *)(a1 + 32);
v3 = *(_DWORD *)(*(_QWORD *)a1 + 4LL * *(unsigned int *)(a1 + 20));
v4 = 24 - v2;
while ( v2 < v1 )
{
v2 += 8;
v5 = dword_11AA88[(unsigned __int8)(v3 >> v4) ^ (*(_DWORD *)(a1 + 28) >> 8)];
v4 -= 8;
*(_DWORD *)(a1 + 28) = ((unsigned __int8)*(_DWORD *)(a1 + 28) << 8) ^ v5;
*(_DWORD *)(a1 + 32) = v2;
}
}
return *(unsigned int *)(a1 + 28);
}