//
// sub_10071DB50 from 0x10071db50 to 0x10071dbc9 (121 bytes)
//
// 0 xrefs:
//
// 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:36:12 +0000
//
__int64 __fastcall sub_10071DB50(__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_1009A78B0();
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;
}