//
// sub_7E6FF4 from 0x7e6ff4 to 0x7e706a (118 bytes)
//
// 2 xrefs:
// > sub_7E6F24 @ 0x7e6f96
// > cocos2d::CCFileUtils::writeToFile @ 0x7e70f0
//
// 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:00:54 +0000
//
tinyxml2::XMLNode *__fastcall sub_7E6FF4(int a1, tinyxml2::XMLDocument *this)
{
tinyxml2::XMLNode *v4; // r7
int v5; // r4
int v6; // r5
tinyxml2::XMLNode *v7; // r8
tinyxml2::XMLNode *v8; // r0
tinyxml2::XMLNode *v9; // r1
int v10; // r3
v4 = (tinyxml2::XMLNode *)tinyxml2::XMLDocument::NewElement(this, "dict");
if ( a1 )
{
v5 = *(_DWORD *)(a1 + 52);
if ( v5 )
v6 = *(_DWORD *)(v5 + 272);
else
v6 = 0;
while ( v5 )
{
v7 = (tinyxml2::XMLNode *)tinyxml2::XMLDocument::NewElement(this, "key");
tinyxml2::XMLNode::InsertEndChild(v4, v7);
v8 = (tinyxml2::XMLNode *)tinyxml2::XMLDocument::NewText(this, (const char *)v5);
tinyxml2::XMLNode::InsertEndChild(v7, v8);
v9 = sub_7E6F24(*(tinyxml2::XMLNode **)(v5 + 260), this);
if ( v9 )
tinyxml2::XMLNode::InsertEndChild(v4, v9);
if ( v6 )
v10 = *(_DWORD *)(v6 + 272);
else
v10 = 0;
v5 = v6;
v6 = v10;
}
}
return v4;
}