//
// sub_100644670 from 0x100644670 to 0x10064470e (158 bytes)
//
// 0 xrefs:
//
// 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_100644670(const char *a1, const char *a2)
{
char v2; // dl
char *v3; // rax
unsigned int v4; // ecx
unsigned int v5; // eax
__int64 v6; // r14
unsigned int v7; // eax
v2 = *a2;
if ( *a2 )
{
v3 = (char *)(a2 + 1);
v4 = 0;
do
{
v4 = (1025 * (v4 + v2)) ^ ((1025 * (v4 + v2)) >> 6);
v2 = *v3++;
}
while ( v2 );
v5 = 9 * v4;
}
else
{
v5 = 0;
}
v6 = *(_QWORD *)&a1[8 * (((unsigned __int8)v5 ^ (unsigned __int8)(v5 >> 11)) & 0x3F)];
if ( !v6 )
return 0;
while ( 1 )
{
v7 = *(_DWORD *)v6 - 1;
if ( v7 >= 4 )
sub_1007CD800(a1);
a1 = (const char *)(v6 + qword_100822B50[v7]);
if ( !strcmp(a1, a2) )
break;
v6 = *(_QWORD *)(v6 + 8);
if ( !v6 )
return 0;
}
return v6;
}