//
// sub_10071D070 from 0x10071d070 to 0x10071d155 (229 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_10071D070(__int64 *a1, int a2)
{
__int64 v2; // r15
__int64 v3; // rcx
__int64 v4; // rdx
char v6[128]; // [rsp+0h] [rbp-B0h] BYREF
v2 = *a1;
if ( *a1 )
{
v3 = *(_QWORD *)v2 & 6LL;
if ( v3 == 2 )
goto LABEL_10;
v4 = *(_QWORD *)(v2 + 32);
if ( v4 )
{
while ( (*(_DWORD *)v4 & 6) != 2 )
{
v4 = *(_QWORD *)(v4 + 48);
if ( !v4 )
goto LABEL_6;
}
v2 = v4;
goto LABEL_10;
}
LABEL_6:
if ( !v3 )
{
v2 = sub_100718E30(*a1, *(__int64 **)(*(_QWORD *)v2 & 0xFFFFFFFFFFFFFFE0LL), 3);
if ( v2 )
{
LABEL_10:
sprintf(v6, "%d", a2);
sub_100717DB0((const char **)(v2 + 24), (__int64 *)v2, 8, v6);
}
}
}
return a1;
}