//
// cocos2d::CCSAXParser::parse_1 from 0x100155520 to 0x1001555ee (206 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXMapInfo::parseXMLFile @ 0x1004c92f2
//
// 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:25:03 +0000
//
__int64 __fastcall cocos2d::CCSAXParser::parse_1(__int64 a1, __int64 a2)
{
__int64 v2; // rax
char *v3; // rbx
unsigned int v4; // r12d
unsigned int v5; // r14d
_BYTE v7[640]; // [rsp+8h] [rbp-2B8h] BYREF
_QWORD v8[2]; // [rsp+288h] [rbp-38h] BYREF
_QWORD v9[5]; // [rsp+298h] [rbp-28h] BYREF
v9[0] = 0;
v2 = cocos2d::CCFileUtils::sharedFileUtils();
v3 = (char *)(*(__int64 (__fastcall **)(__int64, __int64, const char *, _QWORD *))(*(_QWORD *)v2 + 32LL))(
v2,
a2,
"rt",
v9);
v4 = v9[0];
if ( v3 != nullptr && v9[0] != 0 )
{
sub_10005F740((__int64)v7, 1, 0);
sub_1000603A0((__int64)v7, v3, v4);
v8[0] = off_100AC6438;
v8[1] = a1;
v5 = sub_10005BF40((__int64)v7, (__int64)v8);
sub_10005FB90((__int64)v7);
LABEL_4:
operator delete[](v3);
return v5;
}
v5 = 0;
if ( v3 )
goto LABEL_4;
return v5;
}