//
// tinyxml2::StrPair::GetStr from 0x180099440 to 0x18009963e (510 bytes)
//
// 70 xrefs:
// > tinyxml2::XMLAttribute::Name @ 0x1800725e4
// > tinyxml2::XMLAttribute::Value @ 0x1800725f4
// > tinyxml2::XMLNode::Value @ 0x180072604
// > sub_180072610 @ 0x180072629
// > sub_180072610 @ 0x180072634
// > sub_180072680 @ 0x1800726c4
// > sub_180072680 @ 0x180072701
// > sub_180072680 @ 0x180072782
// > sub_180072800 @ 0x18007280d
// > tinyxml2::XMLElement::Attribute @ 0x180098a3a
// > tinyxml2::XMLElement::Attribute @ 0x180098aa2
// > tinyxml2::XMLElement::DeleteAttribute @ 0x180098d64
// > tinyxml2::XMLElement::FindAttribute @ 0x180099047
// > tinyxml2::XMLElement::FindOrCreateAttribute @ 0x180099107
// > tinyxml2::XMLNode::FirstChildElement @ 0x18009924d
// > tinyxml2::XMLElement::GetText @ 0x180099670
// > tinyxml2::XMLNode::LastChildElement @ 0x180099add
// > tinyxml2::XMLNode::NextSiblingElement @ 0x18009a13d
// > tinyxml2::XMLElement::ParseAttributes @ 0x18009a45a
// > tinyxml2::XMLElement::ParseAttributes @ 0x18009a473
// > tinyxml2::XMLElement::ParseAttributes @ 0x18009a53e
// > tinyxml2::XMLNode::ParseDeep @ 0x18009a9bb
// > tinyxml2::XMLNode::ParseDeep @ 0x18009a9c8
// > tinyxml2::XMLNode::ParseDeep @ 0x18009aa23
// > tinyxml2::XMLNode::PreviousSiblingElement @ 0x18009af1d
// > tinyxml2::XMLElement::QueryBoolText @ 0x18009bda2
// > tinyxml2::XMLAttribute::QueryBoolValue @ 0x18009bded
// > tinyxml2::XMLElement::QueryDoubleText @ 0x18009be52
// > tinyxml2::XMLAttribute::QueryDoubleValue @ 0x18009bead
// > tinyxml2::XMLElement::QueryFloatText @ 0x18009bf12
// > tinyxml2::XMLAttribute::QueryFloatValue @ 0x18009bf6d
// > tinyxml2::XMLElement::QueryIntText @ 0x18009bfd2
// > tinyxml2::XMLAttribute::QueryIntValue @ 0x18009c02d
// > tinyxml2::XMLElement::QueryUnsignedText @ 0x18009c092
// > tinyxml2::XMLAttribute::QueryUnsignedValue @ 0x18009c0ed
// > tinyxml2::XMLComment::ShallowClone @ 0x18009c9e6
// > tinyxml2::XMLDeclaration::ShallowClone @ 0x18009ca16
// > tinyxml2::XMLElement::ShallowClone @ 0x18009ca52
// > tinyxml2::XMLElement::ShallowClone @ 0x18009ca74
// > tinyxml2::XMLElement::ShallowClone @ 0x18009ca80
// > tinyxml2::XMLText::ShallowClone @ 0x18009cadd
// > tinyxml2::XMLUnknown::ShallowClone @ 0x18009cb16
// > tinyxml2::XMLComment::ShallowEqual @ 0x18009cb52
// > tinyxml2::XMLComment::ShallowEqual @ 0x18009cb68
// > tinyxml2::XMLDeclaration::ShallowEqual @ 0x18009cc02
// > tinyxml2::XMLDeclaration::ShallowEqual @ 0x18009cc18
// > tinyxml2::XMLElement::ShallowEqual @ 0x18009ccba
// > tinyxml2::XMLElement::ShallowEqual @ 0x18009ccc6
// > tinyxml2::XMLElement::ShallowEqual @ 0x18009cd3d
// > tinyxml2::XMLElement::ShallowEqual @ 0x18009cd49
// > tinyxml2::XMLText::ShallowEqual @ 0x18009cdf2
// > tinyxml2::XMLText::ShallowEqual @ 0x18009ce08
// > tinyxml2::XMLUnknown::ShallowEqual @ 0x18009cea2
// > tinyxml2::XMLUnknown::ShallowEqual @ 0x18009ceb8
// > tinyxml2::XMLPrinter::Visit @ 0x18009d2ed
// > tinyxml2::XMLPrinter::Visit @ 0x18009d31d
// > tinyxml2::XMLPrinter::Visit @ 0x18009d354
// > tinyxml2::XMLPrinter::Visit @ 0x18009d38d
// > tinyxml2::XMLPrinter::VisitEnter @ 0x18009d3f4
// > tinyxml2::XMLPrinter::VisitEnter @ 0x18009d414
// > tinyxml2::XMLPrinter::VisitEnter @ 0x18009d420
// > cocos2d::CCUserDefault::getBoolForKey @ 0x18009e91b
// > cocos2d::CCUserDefault::getDoubleForKey @ 0x18009e9c4
// > cocos2d::CCUserDefault::getIntegerForKey @ 0x18009ea93
// > cocos2d::CCUserDefault::getStringForKey @ 0x18009ebd9
// > sub_18009EE00 @ 0x18009ef39
// > ??> @ 0x18013e7bc
// > ??> @ 0x18013e800
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6e04
//
// 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
//
const char *__fastcall tinyxml2::StrPair::GetStr(tinyxml2::StrPair *this)
{
bool v2; // zf
const char *CharacterRef; // rbx
char *v4; // rsi
__int64 v5; // rdi
int v6; // r14d
int *v7; // rdi
__int64 v8; // rbp
__int64 v9; // rbp
size_t Size; // [rsp+20h] [rbp-48h] BYREF
__int64 Src; // [rsp+28h] [rbp-40h] BYREF
__int16 v13; // [rsp+30h] [rbp-38h]
if ( (*(_DWORD *)this & 0x100) == 0 )
return *((const char **)this + 1);
**((_BYTE **)this + 2) = 0;
v2 = *(_DWORD *)this == 0x100;
*(_DWORD *)this ^= 0x100u;
if ( !v2 )
{
CharacterRef = *((const char **)this + 1);
v4 = (char *)CharacterRef;
if ( (unsigned __int64)CharacterRef < *((_QWORD *)this + 2) )
{
while ( 1 )
{
if ( (*(_DWORD *)this & 2) == 0 )
goto LABEL_12;
if ( *CharacterRef != 13 )
break;
if ( CharacterRef[1] != 10 )
goto LABEL_8;
CharacterRef += 2;
*v4 = 10;
LABEL_27:
++v4;
LABEL_28:
if ( (unsigned __int64)CharacterRef >= *((_QWORD *)this + 2) )
goto LABEL_29;
}
if ( *CharacterRef == 10 )
{
if ( CharacterRef[1] == 13 )
{
CharacterRef += 2;
*v4 = 10;
goto LABEL_27;
}
LABEL_8:
++CharacterRef;
*v4 = 10;
goto LABEL_27;
}
LABEL_12:
if ( (*(_DWORD *)this & 1) != 0 && *CharacterRef == 38 )
{
if ( CharacterRef[1] == 35 )
{
Src = 0;
v13 = 0;
CharacterRef = tinyxml2::XMLUtil::GetCharacterRef(CharacterRef, (char *)&Src, (int *)&Size);
if ( (int)Size > 0 )
{
v5 = (unsigned int)Size;
memcpy(v4, &Src, (unsigned int)Size);
v4 += v5;
}
goto LABEL_28;
}
v6 = 0;
v7 = (int *)&unk_1801045D8;
v8 = 0;
while ( strncmp(CharacterRef + 1, *((const char **)v7 - 1), *v7) || CharacterRef[*v7 + 1] != 59 )
{
++v6;
++v8;
v7 += 4;
if ( (__int64)v7 >= (__int64)"amp" )
goto LABEL_23;
}
v9 = 2 * v8;
*v4++ = *((_BYTE *)&off_1801045D0 + 8 * v9 + 12);
CharacterRef += LODWORD((&off_1801045D0)[v9 + 1]) + 2;
LABEL_23:
if ( v6 != 5 )
goto LABEL_28;
}
else
{
*v4 = *CharacterRef;
}
++CharacterRef;
goto LABEL_27;
}
LABEL_29:
*v4 = 0;
}
if ( (*(_BYTE *)this & 4) != 0 )
tinyxml2::StrPair::CollapseWhitespace(this);
*(_DWORD *)this &= 0x200u;
return *((const char **)this + 1);
}