//
// cocos2d::CCTMXMapInfo::parseXMLString from 0x1004cd660 to 0x1004cd6ef (143 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXMapInfo::formatWithXML @ 0x1004cd494
// > cocos2d::CCTMXMapInfo::initWithXML @ 0x1004cd50e
//
// 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::parseXMLString(cocos2d::CCTMXMapInfo *a1, const char *a2)
{
signed int v2; // eax
bool v3; // bl
unsigned int v4; // r15d
_QWORD v6[5]; // [rsp+8h] [rbp-28h] BYREF
v2 = strlen(a2);
if ( a2 == nullptr || v2 <= 0 )
return 0;
v4 = v2;
cocos2d::CCSAXParser::CCSAXParser(v6);
if ( cocos2d::CCSAXParser::init((cocos2d::CCSAXParser *)v6, "UTF-8") )
{
cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)v6, &a1->cocos2d::CCSAXDelegator);
v3 = cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)v6, a2, v4);
}
else
{
v3 = 0;
}
cocos2d::CCSAXParser::dCCSAXParser();
return v3;
}