//
// sub_100640EB0 from 0x100640eb0 to 0x100640f19 (105 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
//
_QWORD *__fastcall sub_100640EB0(_QWORD *a1)
{
__int64 v1; // r15
const char *v2; // r14
const char *v3; // rsi
if ( !*a1 )
sub_1007CCDE0(a1);
v1 = *(_QWORD *)(*a1 + 48LL);
if ( v1 )
{
v2 = (const char *)a1[2];
while ( 1 )
{
v3 = *(const char **)(v1 + 16);
if ( v3 )
{
if ( !strcmp(v2, v3) )
break;
}
v1 = *(_QWORD *)(v1 + 48);
if ( !v1 )
goto LABEL_8;
}
}
else
{
LABEL_8:
v1 = 0;
}
*a1 = v1;
return a1;
}