//
// sub_100640F20 from 0x100640f20 to 0x100640f99 (121 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_100640F20(__int64 a1, _QWORD *a2)
{
__int64 v3; // r12
const char *v4; // r15
const char *v5; // rsi
*(_QWORD *)(a1 + 16) = a2[2];
*(_OWORD *)a1 = *(_OWORD *)a2;
if ( !*a2 )
sub_1007CCE10();
v3 = *(_QWORD *)(*a2 + 48LL);
if ( v3 )
{
v4 = (const char *)a2[2];
while ( 1 )
{
v5 = *(const char **)(v3 + 16);
if ( v5 )
{
if ( !strcmp(v4, v5) )
break;
}
v3 = *(_QWORD *)(v3 + 48);
if ( !v3 )
goto LABEL_8;
}
}
else
{
LABEL_8:
v3 = 0;
}
*a2 = v3;
return a1;
}