//
// sub_83E6D0 from 0x83e6d0 to 0x83e6f8 (40 bytes)
//
// 0 xrefs:
//
// 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:02:19 +0000
//
int __fastcall sub_83E6D0(unsigned __int8 *a1, int a2, unsigned int a3)
{
unsigned __int8 *v3; // r1
unsigned __int8 *v4; // r3
bool v5; // cf
unsigned int v6; // r0
int v7; // t1
v3 = &a1[a2];
v4 = a1;
v5 = a1 >= v3;
v6 = 5381;
if ( !v5 )
{
do
{
v7 = *v4++;
v6 = (33 * v6) ^ v7;
}
while ( v4 != v3 );
}
return v6 % a3;
}