//
// cocos2d::CCTMXMapInfo::parseXMLFile from 0x1004c9280 to 0x1004c931e (158 bytes)
//
// 4 xrefs:
// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1004c8dfb
// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1004c8e1b
// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1004c8f42
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cb199
//
// 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::parseXMLFile(__int64 a1, __int64 a2)
{
__int64 v2; // rax
char *v3; // rsi
unsigned int v4; // ebx
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::setDelegator(v9, a1 + 56);
v2 = cocos2d::CCFileUtils::sharedFileUtils(v9, a1 + 56);
(*(void (__fastcall **)(char *, __int64, __int64, _QWORD))(*(_QWORD *)v2 + 48LL))(&v6, v2, a2, 0);
if ( (v6 & 1) != 0 )
v3 = (char *)__p;
else
v3 = &v7;
v4 = cocos2d::CCSAXParser::parse_1((__int64)v9, (__int64)v3);
if ( (v6 & 1) != 0 )
operator delete(__p);
}
else
{
v4 = 0;
}
cocos2d::CCSAXParser::dCCSAXParser();
return v4;
}