//
// cocos2d::CCTMXMapInfo::initWithXML from 0x1800af7a0 to 0x1800af858 (184 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b84c0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
char __fastcall cocos2d::CCTMXMapInfo::initWithXML(cocos2d::CCTMXMapInfo *this, const char *a2, const char *a3)
{
float v3; // xmm1_4
__int64 v6; // rbx
struct cocos2d::CCSAXDelegator *v8; // rdx
char v9; // bl
cocos2d::CCThread v10; // [rsp+38h] [rbp+10h] BYREF
cocos2d::CCTMXMapInfo::internalInit(this, nullptr, a3);
v6 = -1;
do
++v6;
while ( a2[v6] );
if ( !a2 || (int)v6 <= 0 )
return 0;
pugi::xml_node::xml_node(&v10);
if ( !cocos2d::CCComponent::serialize((cocos2d::CCComponent *)&v10, "UTF-8") )
{
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)&v10, v3);
return 0;
}
v8 = &this->cocos2d::CCSAXDelegator;
if ( !this )
v8 = nullptr;
cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)&v10, v8);
v9 = cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)&v10, a2, v6);
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)&v10, v3);
return v9;
}