//
// cocos2d::CCTMXMapInfo::parseXMLFile from 0xdadd44 to 0xdade28 (228 bytes)
//
// 3 xrefs:
// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0xdae888
// > cocos2d::CCTMXMapInfo::startElement @ 0xdaf570
// > ??> @ 0xbb900
//
// This function is hookable on this platform (idp: arm, 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 13:08:36 +0000
//
__int64 __fastcall cocos2d::CCTMXMapInfo::parseXMLFile(cocos2d::CCTMXMapInfo *this, const char *a2)
{
unsigned __int8 v4; // w0
unsigned int v5; // w21
cocos2d::CCFileUtils *v7; // x0
__int64 v8; // x0
char *v9; // x1
__int64 v10; // [xsp+48h] [xbp+48h] BYREF
char v11; // [xsp+50h] [xbp+50h]
_BYTE v12[7]; // [xsp+51h] [xbp+51h] BYREF
char *v13; // [xsp+60h] [xbp+60h]
cocos2d::CCSAXParser::CCSAXParser(&v10);
v4 = cocos2d::CCSAXParser::init((cocos2d::CCSAXParser *)&v10, "UTF-8");
v5 = v4;
if ( v4 )
{
v7 = (cocos2d::CCFileUtils *)cocos2d::CCSAXParser::setDelegator(&v10, (__int64)this + 56);
v8 = cocos2d::CCFileUtils::sharedFileUtils(v7);
(*(void (__fastcall **)(__int64, const char *, _QWORD))(*(_QWORD *)v8 + 48LL))(v8, a2, 0);
v9 = v12;
if ( (v11 & 1) != 0 )
v9 = v13;
v5 = (unsigned __int8)cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)&v10, v9);
if ( (v11 & 1) != 0 )
operator delete(v13);
}
cocos2d::CCSAXParser::~CCSAXParser((cocos2d::CCSAXParser *)&v10);
return v5;
}