//
// tinyxml2::XMLAttribute::QueryBoolValue from 0x18009faa0 to 0x18009fad1 (49 bytes)
//
// 5 xrefs:
// > tinyxml2::XMLElement::BoolAttribute @ 0x1800d527b
// > tinyxml2::XMLAttribute::BoolValue @ 0x1800d529e
// > tinyxml2::XMLElement::QueryBoolAttribute @ 0x1800d55b9
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1434
//
// 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::XMLAttribute::QueryBoolValue(__int64 a1, bool *a2)
{
const char *Str; // rax
bool v4; // al
unsigned int v5; // ecx
Str = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(a1 + 32));
v4 = tinyxml2::XMLUtil::ToBool(Str, a2);
v5 = 2;
if ( v4 )
return 0;
return v5;
}