//
// tinyxml2::XMLElement::QueryIntText from 0x18009bfa0 to 0x18009c013 (115 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b71d0
//
// 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 tinyxml2::XMLElement::QueryIntText(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rax
char *Str; // rax
int v5; // eax
unsigned int v6; // ecx
v2 = *(_QWORD *)(a1 + 48);
if ( !v2 || !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2) )
return 19;
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 48) + 16LL))(*(_QWORD *)(a1 + 48));
Str = (char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v3 + 24));
v5 = sub_18009D490(Str, "%d");
v6 = 18;
if ( v5 == 1 )
return 0;
return v6;
}