//
// pugi::xml_attribute::as_int from 0x602566 to 0x602588 (34 bytes)
//
// 1 xrefs:
// > DS_Dictionary::checkCompatibility @ 0x5fc796
//
// 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
//
int __fastcall pugi::xml_attribute::as_int(pugi::xml_attribute *this, 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_strtol(v3, nullptr, v4);
}