//
// cocos2d::CCSAXParser::parse from 0x7e6cf4 to 0x7e6d54 (96 bytes)
//
// 3 xrefs:
// > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x7e748a
// > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x7e7532
// > cocos2d::CCTMXMapInfo::parseXMLFile @ 0x8058d4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:54 +0000
//
int __fastcall cocos2d::CCSAXParser::parse(cocos2d::CCSAXParser *this, const char *a2)
{
int v4; // r0
char *v5; // r6
int v6; // r4
unsigned int v8[2]; // [sp+0h] [bp-8h] BYREF
v8[1] = (unsigned int)a2;
v8[0] = 0;
v4 = cocos2d::CCFileUtils::sharedFileUtils(this);
v5 = (char *)(*(int (__fastcall **)(int, const char *, const char *, unsigned int *))(*(_DWORD *)v4 + 16))(
v4,
a2,
"rt",
v8);
if ( !v5 )
return 0;
if ( v8[0] )
v6 = cocos2d::CCSAXParser::parse(this, v5, v8[0]);
else
v6 = 0;
operator delete[](v5);
return v6;
}