//
// pugi::xml_text::as_bool from 0xb570d0 to 0xb57144 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x336a8
//
// 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 pugi::xml_text::as_bool(pugi::xml_text *this, unsigned __int8 a2)
{
unsigned int v2; // w19
_QWORD *v3; // x0
unsigned __int8 *v4; // x1
__int64 result; // x0
int v6; // w1
v2 = a2;
v3 = pugi::xml_text::_data(this);
if ( !v3 )
return v2;
v4 = (unsigned __int8 *)v3[3];
result = v2;
if ( v4 )
{
v6 = *v4;
result = (v6 == 116) | (unsigned int)(v6 == 49);
if ( !(_DWORD)result )
return ((v6 & 0xFFFFFFDF) == 89) | (unsigned int)(v6 == 84);
}
return result;
}