//
// pugi::xml_attribute::as_bool from 0x6025ec to 0x602618 (44 bytes)
//
// 0 xrefs:
//
// 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
//
bool __fastcall pugi::xml_attribute::as_bool(pugi::xml_attribute *this, int a2)
{
unsigned __int8 *v2; // r3
int v3; // r0
if ( !this->_attr )
return a2;
v2 = *((unsigned __int8 **)this->_attr + 2);
if ( !v2 )
return a2;
v3 = *v2;
return v3 == 49 || (v3 & 0xDF) == 0x54 || v3 == 121 || v3 == 89;
}