//
// pugi::xml_text::as_ullong from 0xdcae4c to 0xdcaef0 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x103198
//
// 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
//
unsigned __int64 __fastcall pugi::xml_text::as_ullong(pugi::xml_text *this, __int64 a2)
{
_QWORD *v2; // x0
const char *v3; // x0
int v4; // w2
const char *v5; // x1
int v6; // t1
bool v7; // zf
int v8; // w2
v2 = pugi::xml_text::_data(this);
if ( !v2 )
return a2;
v3 = (const char *)v2[3];
if ( !v3 )
return a2;
v4 = *(unsigned __int8 *)v3;
if ( (byte_11AECC0[*(unsigned __int8 *)v3] & 8) != 0 )
{
v5 = v3;
do
{
v6 = *(unsigned __int8 *)++v5;
v4 = v6;
}
while ( (byte_11AECC0[v6] & 8) != 0 );
}
else
{
v5 = v3;
}
v7 = v4 == 45;
v8 = 10;
if ( v7 )
++v5;
if ( *v5 == 48 )
{
if ( (v5[1] & 0xDF) == 0x58 )
v8 = 16;
else
v8 = 10;
}
return strtoull(v3, nullptr, v8);
}