//
// pugi::xml_text::as_bool from 0x8139cc to 0x8139fe (50 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:39 +0000
//
bool __fastcall pugi::xml_text::as_bool(pugi::xml_text *this, int a2)
{
_DWORD *v3; // r0
unsigned __int8 *v4; // r3
int v5; // r0
v3 = pugi::xml_text::_data(this);
if ( !v3 )
return a2;
v4 = (unsigned __int8 *)v3[3];
if ( !v4 )
return a2;
v5 = *v4;
return v5 == 49 || (v5 & 0xDF) == 0x54 || v5 == 121 || v5 == 89;
}