//
// pugi::xml_attribute::as_bool from 0xdc4be8 to 0xdc4c34 (76 bytes)
//
// 1 xrefs:
// > ??> @ 0xdbef8
//
// 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:49 +0000
//
__int64 __fastcall pugi::xml_attribute::as_bool(pugi::xml_attribute *this, unsigned __int8 a2)
{
__int64 v2; // x2
__int64 result; // x0
unsigned __int8 *v4; // x1
int v5; // w1
v2 = *(_QWORD *)this;
result = a2;
if ( v2 )
{
v4 = *(unsigned __int8 **)(v2 + 16);
if ( v4 )
{
v5 = *v4;
result = (v5 == 116) | (unsigned int)(v5 == 49);
if ( !(_DWORD)result )
return ((v5 & 0xFFFFFFDF) == 89) | (unsigned int)(v5 == 84);
}
}
return result;
}