//
// sub_1006447B0 from 0x1006447b0 to 0x10064489d (237 bytes)
//
// 3 xrefs:
// > sub_100644A10 @ 0x100644a15
// > sub_100647BD0 @ 0x100647be9
// > sub_100647DE0 @ 0x100647e00
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1006447B0(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v3; // rbx
_QWORD **v4; // r15
__int64 result; // rax
_QWORD *v6; // r14
_QWORD *v7; // rdi
*a1 = 0;
a1[1] = (__int64)"Internal error";
a1[2] = 0;
v3 = off_10099E670();
*(_QWORD *)v3 = 0;
v4 = (_QWORD **)(v3 + 8);
*(_QWORD *)(v3 + 8) = v3 + 32;
*(_OWORD *)(v3 + 16) = 0;
*(_QWORD *)(v3 + 32) = 0;
result = sub_100644920(a2, a3, v3 + 8, a1 + 1);
*(_QWORD *)v3 = result;
if ( result )
{
*a1 = v3;
a1[1] = 0;
}
else
{
v6 = *v4;
if ( !*v4 )
__assert_rtn("release", "pugixml.cpp", 6232, "cur");
while ( *v6 )
{
v7 = v6;
v6 = (_QWORD *)*v6;
off_10099E668(v7);
}
return off_10099E668(v3);
}
return result;
}