//
// pugi::xml_attribute::as_bool from 0xb51408 to 0xb51454 (76 bytes)
//
// 1 xrefs:
// > ??> @ 0xa79d0
//
// 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_attribute::as_bool(pugi::xml_attribute *this, unsigned __int8 a2)
{
pugi::xml_attribute_struct *attr; // x2
__int64 result; // x0
unsigned __int8 *v4; // x1
int v5; // w1
attr = this->_attr;
result = a2;
if ( attr )
{
v4 = *((unsigned __int8 **)attr + 2);
if ( v4 )
{
v5 = *v4;
result = (v5 == 116) | (unsigned int)(v5 == 49);
if ( !(_DWORD)result )
return ((v5 & 0xFFFFFFDF) == 89) | (unsigned int)(v5 == 84);
}
}
return result;
}