//
// cocos2d::CCTMXTiledMap::createWithXML from 0x1800b1950 to 0x1800b19e3 (147 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2634
//
// 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:19 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTMXTiledMap *__fastcall cocos2d::CCTMXTiledMap::createWithXML(const char *a1, const char *a2)
{
cocos2d::CCTMXTiledMap *v4; // rax
cocos2d::CCTMXTiledMap *v5; // rdi
struct cocos2d::CCTMXMapInfo *v6; // rbx
cocos2d::CCArray *v7; // rax
v4 = (cocos2d::CCTMXTiledMap *)sub_1800E4AC0(0x170u);
if ( v4 )
v5 = cocos2d::CCTMXTiledMap::CCTMXTiledMap(v4);
else
v5 = nullptr;
(*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, _DWORD *))(*(_QWORD *)v5 + 312LL))(v5, dword_1801B3B38);
v6 = cocos2d::CCTMXMapInfo::formatWithXML(a1, a2);
v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCTMXMapInfo *))(*(_QWORD *)v6 + 88LL))(v6);
cocos2d::CCArray::count(v7);
cocos2d::CCTMXTiledMap::buildWithMapInfo(v5, v6);
cocos2d::CCObject::autorelease(v5);
return v5;
}