//
// sub_100720D00 from 0x100720d00 to 0x100720dc1 (193 bytes)
//
// 1 xrefs:
// > sub_100720E00 @ 0x100720e05
//
// 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:13 +0000
//
__int64 __fastcall sub_100720D00(__int64 a1)
{
__int64 i; // r15
__int64 v3; // r14
__int64 v4; // r13
__int64 v5; // rdi
__int64 result; // rax
for ( i = 0; i != 64; ++i )
{
v3 = *(_QWORD *)(a1 + 8 * i);
if ( v3 )
{
LABEL_4:
v4 = *(_QWORD *)(v3 + 8);
switch ( *(_DWORD *)v3 )
{
case 1:
v5 = *(_QWORD *)(v3 + 40);
if ( v5 != v3 + 24 )
goto LABEL_8;
goto LABEL_9;
case 2:
case 4:
goto LABEL_9;
case 3:
v5 = *(_QWORD *)(v3 + 16);
if ( v5 )
LABEL_8:
off_100BE07E0(v5);
LABEL_9:
result = off_100BE07E0(v3);
v3 = v4;
if ( !v4 )
continue;
goto LABEL_4;
default:
__assert_rtn("delete_xpath_variable", "pugixml.cpp", 7168, "!\"Invalid variable type\"");
}
}
}
return result;
}