//
// tinyxml2::XMLElement::QueryBoolText from 0x18009bd70 to 0x18009bddb (107 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b7188
//
// 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::QueryBoolText(__int64 a1, bool *a2)
{
__int64 v4; // rcx
__int64 v5; // rax
const char *Str; // rax
bool v7; // al
unsigned int v8; // ecx
v4 = *(_QWORD *)(a1 + 48);
if ( !v4 || !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4) )
return 19;
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 48) + 16LL))(*(_QWORD *)(a1 + 48));
Str = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v5 + 24));
v7 = tinyxml2::XMLUtil::ToBool(Str, a2);
v8 = 18;
if ( v7 )
return 0;
return v8;
}