//
// sub_100550DB0 from 0x100550db0 to 0x100550e18 (104 bytes)
//
// 1 xrefs:
// > sub_10060F234 @ 0x10060ff0c
//
// 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 11:07:53 +0000
//
__int64 __fastcall sub_100550DB0(__int64 a1)
{
unsigned int v1; // w8
unsigned int v2; // w9
unsigned int v3; // w10
unsigned int v4; // w11
unsigned int v5; // w12
v1 = *(_DWORD *)(a1 + 24);
if ( v1 )
{
v2 = *(_DWORD *)(a1 + 32);
if ( v2 < v1 )
{
v3 = *(_DWORD *)(*(_QWORD *)a1 + 4LL * *(unsigned int *)(a1 + 20));
v4 = *(_DWORD *)(a1 + 28);
v5 = 24 - v2;
do
{
v4 = ((unsigned __int8)v4 << 8) ^ dword_1009D4760[(unsigned __int8)(v3 >> v5) ^ (v4 >> 8)];
v2 += 8;
*(_DWORD *)(a1 + 28) = v4;
*(_DWORD *)(a1 + 32) = v2;
v5 -= 8;
}
while ( v2 < v1 );
}
}
return *(unsigned __int16 *)(a1 + 28);
}