//
// pugi::xml_attribute::as_uint from 0x602588 to 0x6025aa (34 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
//
unsigned int __fastcall pugi::xml_attribute::as_uint(pugi::xml_attribute *this, unsigned int a2)
{
pugi::xml_attribute_struct *attr; // r3
const char *v3; // r4
int v4; // r2
attr = this->_attr;
if ( !this->_attr )
return a2;
v3 = *((const char **)attr + 2);
if ( !v3 )
return a2;
v4 = sub_6000A4(*((unsigned __int8 **)attr + 2));
return j_strtoul(v3, nullptr, v4);
}