//
// cocos2d::CCTMXTiledMap::create from 0x1800b18a0 to 0x1800b1943 (163 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2628
//
// 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::create(const char *a1)
{
cocos2d::CCTMXTiledMap *v2; // rax
cocos2d::CCTMXTiledMap *v3; // rbx
struct cocos2d::CCTMXMapInfo *v4; // rax
struct cocos2d::CCTMXMapInfo *v5; // rdi
cocos2d::CCArray *v6; // rax
v2 = (cocos2d::CCTMXTiledMap *)sub_1800E4AC0(0x170u);
if ( v2 )
v3 = cocos2d::CCTMXTiledMap::CCTMXTiledMap(v2);
else
v3 = nullptr;
(*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, _DWORD *))(*(_QWORD *)v3 + 312LL))(v3, dword_1801B3B38);
v4 = cocos2d::CCTMXMapInfo::formatWithTMXFile(a1);
v5 = v4;
if ( v4 )
{
v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCTMXMapInfo *))(*(_QWORD *)v4 + 88LL))(v4);
cocos2d::CCArray::count(v6);
cocos2d::CCTMXTiledMap::buildWithMapInfo(v3, v5);
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
(*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
return nullptr;
}
}