//
// sub_100479840 from 0x100479840 to 0x10047988c (76 bytes)
//
// 4 xrefs:
// > sub_1004797B0 @ 0x1004797ec
// > sub_1008910A0 @ 0x1008910dc
// > sub_100891120 @ 0x10089115c
// > sub_1008911A0 @ 0x1008911dc
//
// This function is hookable on this platform (idp: pc, 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 12:30:36 +0000
//
__int64 __fastcall sub_100479840(const char *a1)
{
const char *v1; // rbx
int v2; // eax
const char *v3; // r14
__int64 result; // rax
v1 = a1;
v2 = strlen(a1);
if ( !v2 )
return 0;
v3 = &a1[v2];
LODWORD(result) = 0;
do
result = (16777619 * (_DWORD)result) ^ (unsigned int)(unsigned __int8)__toupper(*v1++);
while ( v1 < v3 );
return result;
}