//
// tinyxml2::XMLElement::QueryIntText from 0x5ee446 to 0x5ee47a (52 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
//
int __fastcall tinyxml2::XMLElement::QueryIntText(tinyxml2::XMLElement *this, const char *a2)
{
int v3; // r0
int v6; // r0
tinyxml2::XMLUtil *Str; // r0
int *v8; // r2
v3 = *((_DWORD *)this + 6);
if ( !v3 || !(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 28))(v3) )
return 19;
v6 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 6) + 28))(*((_DWORD *)this + 6));
Str = (tinyxml2::XMLUtil *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 12));
if ( tinyxml2::XMLUtil::ToInt(Str, a2, v8) )
return 0;
else
return 18;
}