//
// cocos2d::CCTMXMapInfo::parseXMLString from 0x1004c91d0 to 0x1004c925f (143 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXMapInfo::formatWithXML @ 0x1004c9004
// > cocos2d::CCTMXMapInfo::initWithXML @ 0x1004c907e
//
// This function is hookable on this platform (idp: pc, 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 12:31:09 +0000
//
__int64 __fastcall cocos2d::CCTMXMapInfo::parseXMLString(__int64 a1, const char *a2)
{
signed int v2; // eax
unsigned int v3; // ebx
unsigned int v4; // r15d
_QWORD v6[5]; // [rsp+8h] [rbp-28h] BYREF
v2 = strlen(a2);
if ( a2 == nullptr || v2 <= 0 )
{
return 0;
}
else
{
v4 = v2;
cocos2d::CCSAXParser::CCSAXParser(v6);
if ( cocos2d::CCSAXParser::init() )
{
cocos2d::CCSAXParser::setDelegator(v6, a1 + 56);
v3 = cocos2d::CCSAXParser::parse((__int64)v6, a2, v4);
}
else
{
v3 = 0;
}
cocos2d::CCSAXParser::dCCSAXParser();
}
return v3;
}