//
// cocos2d::CCTMXMapInfo::initWithXML from 0x1800b30f0 to 0x1800b31a3 (179 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2790
//
// 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=1
char __fastcall cocos2d::CCTMXMapInfo::initWithXML(cocos2d::CCTMXMapInfo *this, const char *a2, const char *a3)
{
float v3; // xmm1_4
int v6; // eax
unsigned int v7; // ebx
struct cocos2d::CCSAXDelegator *v9; // rdx
char v10; // bl
char v11; // [rsp+38h] [rbp+10h] BYREF
cocos2d::CCTMXMapInfo::internalInit(this, nullptr, a3);
v6 = strlen(a2);
v7 = v6;
if ( !a2 || v6 <= 0 )
return 0;
cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v11);
if ( !cocos2d::CCComponent::serialize((cocos2d::CCComponent *)&v11, "UTF-8") )
{
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)&v11, v3);
return 0;
}
v9 = (cocos2d::CCTMXMapInfo *)((char *)this + 56);
if ( !this )
v9 = nullptr;
cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)&v11, v9);
v10 = cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)&v11, a2, v7);
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)&v11, v3);
return v10;
}