//
// sub_100719600 from 0x100719600 to 0x1007196e9 (233 bytes)
//
// 1 xrefs:
// > sub_10071E070 @ 0x10071e116
//
// 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:10 +0000
//
__int64 __fastcall sub_100719600(_QWORD **a1, _DWORD **a2)
{
unsigned int v2; // ebx
_QWORD *v3; // rdi
__int64 v4; // rcx
__int64 v5; // rax
int v6; // edx
__int64 v7; // rbx
__int64 v8; // rbx
_QWORD v10[3]; // [rsp+8h] [rbp-18h] BYREF
if ( *a2 )
{
v2 = (**a2 & 7) + 1;
v3 = *a1;
if ( !v3 )
return 0;
}
else
{
v2 = 0;
v3 = *a1;
if ( !v3 )
return 0;
}
v4 = *v3 & 7LL;
if ( (unsigned int)v4 >= 2 || v2 < 2 || (_DWORD)v4 != 0 && v2 >= 7 )
return 0;
v5 = sub_100718E30((__int64)v3, *(__int64 **)(*v3 & 0xFFFFFFFFFFFFFFE0LL), v2);
if ( v2 == 7 )
{
if ( v5 )
{
if ( (*(_DWORD *)v5 & 7) != 7 )
{
v6 = 98;
if ( _bittest(&v6, *(_DWORD *)v5 & 7) )
{
v7 = v5;
sub_100717DB0((const char **)(v5 + 16), (__int64 *)v5, 16, "xml");
v5 = v7;
}
}
v10[0] = v5;
goto LABEL_14;
}
}
else
{
v10[0] = v5;
if ( v5 )
{
LABEL_14:
v8 = v5;
sub_1007196F0(v10, a2, v10);
return v8;
}
}
return 0;
}