//
// sub_10071D340 from 0x10071d340 to 0x10071d3df (159 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:11 +0000
//
__int64 *__fastcall sub_10071D340(__int64 *a1, char a2)
{
__int64 v4; // rsi
__int64 v5; // rcx
__int64 v6; // rdi
char v7; // r14
__int64 v8; // rax
const char *v9; // rcx
v4 = *a1;
if ( *a1 )
{
v5 = *(_QWORD *)v4 & 6LL;
if ( v5 != 2 )
{
v6 = *(_QWORD *)(v4 + 32);
if ( v6 )
{
while ( (*(_DWORD *)v6 & 6) != 2 )
{
v6 = *(_QWORD *)(v6 + 48);
if ( !v6 )
goto LABEL_6;
}
v4 = v6;
}
else
{
LABEL_6:
if ( v5 )
return a1;
v7 = a2;
v8 = sub_100718E30(v4, *(__int64 **)(*(_QWORD *)v4 & 0xFFFFFFFFFFFFFFE0LL), 3);
a2 = v7;
v4 = v8;
if ( !v8 )
return a1;
}
}
v9 = "false";
if ( a2 )
v9 = "true";
sub_100717DB0((const char **)(v4 + 24), (__int64 *)v4, 8, v9);
}
return a1;
}