//
// tinyxml2::StrPair::GetStr from 0xd942ec to 0xd94670 (900 bytes)
//
// 71 xrefs:
// > cocos2d::XmlSaxHander::VisitExit @ 0xd7432c
// > cocos2d::XmlSaxHander::Visit @ 0xd74398
// > cocos2d::XmlSaxHander::Visit @ 0xd743a4
// > cocos2d::XmlSaxHander::VisitEnter @ 0xd74438
// > cocos2d::XmlSaxHander::VisitEnter @ 0xd74470
// > cocos2d::XmlSaxHander::VisitEnter @ 0xd74498
// > cocos2d::XmlSaxHander::VisitEnter @ 0xd744f4
// > sub_D904E4 @ 0xd905bc
// > cocos2d::CCUserDefault::getBoolForKey @ 0xd90774
// > cocos2d::CCUserDefault::getIntegerForKey @ 0xd90924
// > cocos2d::CCUserDefault::getFloatForKey @ 0xd90ad4
// > cocos2d::CCUserDefault::getDoubleForKey @ 0xd90c80
// > cocos2d::CCUserDefault::getStringForKey @ 0xd90e34
// > tinyxml2::XMLText::ShallowEqual @ 0xd946b0
// > tinyxml2::XMLText::ShallowEqual @ 0xd946bc
// > tinyxml2::XMLComment::ShallowEqual @ 0xd947dc
// > tinyxml2::XMLComment::ShallowEqual @ 0xd947e8
// > tinyxml2::XMLDeclaration::ShallowEqual @ 0xd94908
// > tinyxml2::XMLDeclaration::ShallowEqual @ 0xd94914
// > tinyxml2::XMLUnknown::ShallowEqual @ 0xd94a34
// > tinyxml2::XMLUnknown::ShallowEqual @ 0xd94a40
// > tinyxml2::XMLElement::ShallowEqual @ 0xd94b54
// > tinyxml2::XMLElement::ShallowEqual @ 0xd94b60
// > tinyxml2::XMLElement::ShallowEqual @ 0xd94c20
// > tinyxml2::XMLElement::ShallowEqual @ 0xd94c2c
// > tinyxml2::XMLNode::FirstChildElement @ 0xd956dc
// > tinyxml2::XMLNode::LastChildElement @ 0xd957d4
// > tinyxml2::XMLNode::NextSiblingElement @ 0xd958c4
// > tinyxml2::XMLNode::PreviousSiblingElement @ 0xd959b8
// > tinyxml2::XMLAttribute::QueryIntValue @ 0xd95c18
// > tinyxml2::XMLAttribute::QueryUnsignedValue @ 0xd95c4c
// > tinyxml2::XMLAttribute::QueryBoolValue @ 0xd95c80
// > tinyxml2::XMLAttribute::QueryFloatValue @ 0xd95cb4
// > tinyxml2::XMLAttribute::QueryDoubleValue @ 0xd95ce8
// > tinyxml2::XMLElement::FindAttribute @ 0xd96a2c
// > tinyxml2::XMLElement::FindAttribute @ 0xd96b00
// > tinyxml2::XMLElement::Attribute @ 0xd96bd0
// > tinyxml2::XMLElement::Attribute @ 0xd96c4c
// > tinyxml2::XMLElement::GetText @ 0xd96cc0
// > tinyxml2::XMLElement::QueryIntText @ 0xd96d1c
// > tinyxml2::XMLElement::QueryUnsignedText @ 0xd96d9c
// > tinyxml2::XMLElement::QueryBoolText @ 0xd96e1c
// > tinyxml2::XMLElement::QueryDoubleText @ 0xd96e9c
// > tinyxml2::XMLElement::QueryFloatText @ 0xd96f1c
// > tinyxml2::XMLElement::FindOrCreateAttribute @ 0xd96f8c
// > tinyxml2::XMLElement::FindOrCreateAttribute @ 0xd97008
// > tinyxml2::XMLElement::DeleteAttribute @ 0xd9726c
// > tinyxml2::XMLElement::DeleteAttribute @ 0xd972ec
// > tinyxml2::XMLElement::ShallowClone @ 0xd97684
// > tinyxml2::XMLElement::ShallowClone @ 0xd976a4
// > tinyxml2::XMLElement::ShallowClone @ 0xd976b0
// > tinyxml2::XMLComment::ShallowClone @ 0xd978b0
// > tinyxml2::XMLComment::ShallowClone @ 0xd978d0
// > tinyxml2::XMLText::ShallowClone @ 0xd97ab8
// > tinyxml2::XMLDeclaration::ShallowClone @ 0xd97cb4
// > tinyxml2::XMLDeclaration::ShallowClone @ 0xd97cd4
// > tinyxml2::XMLUnknown::ShallowClone @ 0xd97eac
// > tinyxml2::XMLUnknown::ShallowClone @ 0xd97ecc
// > tinyxml2::XMLNode::ParseDeep @ 0xd984cc
// > tinyxml2::XMLNode::ParseDeep @ 0xd984dc
// > tinyxml2::XMLNode::ParseDeep @ 0xd98554
// > tinyxml2::XMLElement::ParseAttributes @ 0xd987e8
// > tinyxml2::XMLElement::ParseAttributes @ 0xd9887c
// > tinyxml2::XMLPrinter::VisitEnter @ 0xd996a8
// > tinyxml2::XMLPrinter::VisitEnter @ 0xd996c0
// > tinyxml2::XMLPrinter::VisitEnter @ 0xd996cc
// > tinyxml2::XMLPrinter::Visit @ 0xd997a4
// > tinyxml2::XMLPrinter::Visit @ 0xd99a78
// > tinyxml2::XMLPrinter::Visit @ 0xd99bc0
// > tinyxml2::XMLPrinter::Visit @ 0xd99c7c
// > ??> @ 0x100630
//
// 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:20 +0000
//
__int64 __fastcall tinyxml2::StrPair::GetStr(tinyxml2::StrPair *this, __int64 a2, __int64 a3, int *a4)
{
int v5; // w1
unsigned __int8 *CharacterRef; // x19
unsigned __int64 v7; // x22
_BYTE *v8; // x21
int v9; // w0
int v11; // w2
int v12; // w1
int v13; // w0
__int64 v14; // x1
_BYTE *v15; // x0
int v16; // w1
char v17[4]; // [xsp+64h] [xbp+64h] BYREF
char v18[8]; // [xsp+68h] [xbp+68h] BYREF
__int16 v19; // [xsp+70h] [xbp+70h]
if ( (*(_DWORD *)this & 0x100) != 0 )
{
**((_BYTE **)this + 2) = 0;
v5 = *(_DWORD *)this ^ 0x100;
*(_DWORD *)this = v5;
if ( !v5 )
goto LABEL_15;
CharacterRef = *((unsigned __int8 **)this + 1);
v7 = *((_QWORD *)this + 2);
v8 = CharacterRef;
while ( (unsigned __int64)CharacterRef < v7 )
{
if ( (*(_DWORD *)this & 2) != 0 )
{
v9 = *CharacterRef;
if ( v9 == 13 )
{
v12 = CharacterRef[1];
*v8++ = 10;
if ( v12 == 10 )
CharacterRef += 2;
else
++CharacterRef;
v7 = *((_QWORD *)this + 2);
continue;
}
if ( v9 == 10 )
{
v11 = CharacterRef[1];
*v8++ = 10;
if ( v11 == 13 )
CharacterRef += 2;
else
++CharacterRef;
v7 = *((_QWORD *)this + 2);
continue;
}
}
else
{
v9 = *CharacterRef;
}
if ( (*(_DWORD *)this & 1) != 0 && v9 == 38 )
{
if ( CharacterRef[1] != 35 )
{
if ( !strncmp((const char *)CharacterRef + 1, "quot", 4u) && CharacterRef[5] == 59 )
{
v13 = 0;
v14 = 4;
}
else if ( !strncmp((const char *)CharacterRef + 1, "amp", 3u) && CharacterRef[4] == 59 )
{
v13 = 1;
v14 = 3;
}
else if ( !strncmp((const char *)CharacterRef + 1, "apos", 4u) && CharacterRef[5] == 59 )
{
v13 = 2;
v14 = 4;
}
else if ( !strncmp((const char *)CharacterRef + 1, "lt", 2u) )
{
if ( CharacterRef[3] != 59 )
{
LABEL_35:
++v8;
++CharacterRef;
continue;
}
v13 = 3;
v14 = 2;
}
else
{
if ( strncmp((const char *)CharacterRef + 1, "gt", 2u) || CharacterRef[3] != 59 )
goto LABEL_35;
v13 = 4;
v14 = 2;
}
CharacterRef += v14 + 2;
*v8++ = *((_BYTE *)&off_13FBAF0 + 16 * v13 + 12);
v7 = *((_QWORD *)this + 2);
continue;
}
*(_QWORD *)v18 = 0;
v19 = 0;
CharacterRef = (unsigned __int8 *)tinyxml2::XMLUtil::GetCharacterRef(
(tinyxml2::XMLUtil *)CharacterRef,
v18,
v17,
a4);
if ( *(int *)v17 > 0 )
{
v15 = v8 + 1;
*v8 = v18[0];
if ( *(int *)v17 > 1 )
{
v15 = v8 + 2;
v8[1] = v18[1];
if ( *(int *)v17 > 2 )
{
v15 = v8 + 3;
v8[2] = v18[2];
if ( *(int *)v17 > 3 )
{
v15 = v8 + 4;
v8[3] = v18[3];
v16 = *(_DWORD *)v17;
if ( *(int *)v17 > 4 )
{
v8[4] = v18[4];
v15 = v8 + 5;
if ( v16 > 5 )
{
v8[5] = v18[5];
v15 = v8 + 6;
if ( v16 > 6 )
{
v8[6] = v18[6];
v15 = v8 + 7;
if ( v16 > 7 )
{
v8[7] = v18[7];
v15 = v8 + 8;
if ( v16 > 8 )
{
v8[8] = v19;
v15 = v8 + 9;
if ( v16 > 9 )
{
v15 = v8 + 10;
v8[9] = HIBYTE(v19);
}
}
}
}
}
}
}
}
}
v8 = v15;
v7 = *((_QWORD *)this + 2);
continue;
}
}
else
{
*v8++ = v9;
++CharacterRef;
}
v7 = *((_QWORD *)this + 2);
}
*v8 = 0;
v5 = *(_DWORD *)this;
if ( (*(_DWORD *)this & 4) != 0 )
{
tinyxml2::StrPair::CollapseWhitespace((__int64)this);
v5 = *(_DWORD *)this;
}
LABEL_15:
*(_DWORD *)this = v5 & 0x200;
}
return *((_QWORD *)this + 1);
}