//
// pugi::xml_attribute::as_int from 0x811c2e to 0x811c50 (34 bytes)
//
// 1 xrefs:
// > DS_Dictionary::checkCompatibility @ 0x80ac66
//
// 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:38 +0000
//
int __fastcall pugi::xml_attribute::as_int(pugi::xml_attribute *this, int a2)
{
int v2; // r3
const char *v3; // r4
int v4; // r2
v2 = *(_DWORD *)this;
if ( !*(_DWORD *)this )
return a2;
v3 = *(const char **)(v2 + 8);
if ( !v3 )
return a2;
v4 = sub_80F6CC(*(unsigned __int8 **)(v2 + 8));
return j_strtol(v3, nullptr, v4);
}