//
// tinyxml2::XMLElement::QueryBoolText from 0x18009fa30 to 0x18009fa9b (107 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1428
//
// 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 11:22:13 +0000
//
__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;
}