//
// cocos2d::CCTMXMapInfo::parseXMLFile from 0x1800b3330 to 0x1800b345b (299 bytes)
//
// 5 xrefs:
// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800b2f02
// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800b30ea
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b4311
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c27a8
//
// 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 11:22:20 +0000
//
// Hidden C++ exception states: #wind=2
_BOOL8 __fastcall cocos2d::CCTMXMapInfo::parseXMLFile(cocos2d::CCTMXMapInfo *this, const char *a2)
{
float v2; // xmm1_4
bool v5; // bl
struct cocos2d::CCSAXDelegator *v6; // rdx
struct cocos2d::CCFileUtils *v7; // rax
__int64 v8; // rax
_BYTE *v9; // r8
_BYTE v11[8]; // [rsp+30h] [rbp-38h] BYREF
void *Block; // [rsp+38h] [rbp-30h] BYREF
__m128i si128; // [rsp+48h] [rbp-20h]
cocos2d::CCThread::CCThread((cocos2d::CCThread *)v11);
if ( cocos2d::CCComponent::serialize((cocos2d::CCComponent *)v11, "UTF-8") )
{
v6 = (cocos2d::CCTMXMapInfo *)((char *)this + 56);
if ( !this )
v6 = nullptr;
cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)v11, v6);
v7 = cocos2d::CCFileUtils::sharedFileUtils();
v8 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))(*(_QWORD *)v7 + 40LL))(
v7,
&Block,
a2,
0);
if ( *(_QWORD *)(v8 + 24) > 0xFu )
v8 = *(_QWORD *)v8;
v5 = cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)v11, (const char *)v8);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v9 = Block;
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v9 = *((_BYTE **)Block - 1);
if ( (unsigned __int64)((_BYTE *)Block - v9 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v9);
}
si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500);
LOBYTE(Block) = 0;
}
else
{
v5 = 0;
}
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)v11, v2);
return v5;
}