//
// pugi::xml_text::as_bool from 0xdcad34 to 0xdcada8 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x4bee0
//
// This function is hookable on this platform (idp: arm, 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 13:08:54 +0000
//
__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;
}