//
// cocos2d::CCTMXMapInfo::parseXMLFile from 0x1004cd710 to 0x1004cd7ae (158 bytes)
//
// 4 xrefs:
// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1004cd28b
// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1004cd2ab
// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1004cd3d2
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cf629
//
// 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
//
bool __fastcall cocos2d::CCTMXMapInfo::parseXMLFile(cocos2d::CCTMXMapInfo *a1, const char *a2)
{
cocos2d::CCFileUtils *v2; // rax
const char *v3; // rsi
bool v4; // bl
char v6; // [rsp+8h] [rbp-38h] BYREF
char v7; // [rsp+9h] [rbp-37h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
_QWORD v9[4]; // [rsp+20h] [rbp-20h] BYREF
cocos2d::CCSAXParser::CCSAXParser(v9);
if ( cocos2d::CCSAXParser::init((cocos2d::CCSAXParser *)v9, "UTF-8") )
{
cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)v9, &a1->cocos2d::CCSAXDelegator);
v2 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(char *, cocos2d::CCFileUtils *, const char *, _QWORD))v2->createCCArrayWithContentsOfFile)(
&v6,
v2,
a2,
0);
if ( (v6 & 1) != 0 )
v3 = (const char *)__p;
else
v3 = &v7;
v4 = cocos2d::CCSAXParser::parse_1((cocos2d::CCSAXParser *)v9, v3);
if ( (v6 & 1) != 0 )
operator delete(__p);
}
else
{
v4 = 0;
}
cocos2d::CCSAXParser::dCCSAXParser();
return v4;
}