//
// cocos2d::CCTMXTiledMap::initWithTMXFile from 0x1800b1a20 to 0x1800b1a84 (100 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2640
//
// 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
//
bool __fastcall cocos2d::CCTMXTiledMap::initWithTMXFile(cocos2d::CCTMXTiledMap *this, const char *a2)
{
struct cocos2d::CCTMXMapInfo *v4; // rax
struct cocos2d::CCTMXMapInfo *v5; // rbx
cocos2d::CCArray *v6; // rax
(*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, _DWORD *))(*(_QWORD *)this + 312LL))(this, dword_1801B3B38);
v4 = cocos2d::CCTMXMapInfo::formatWithTMXFile(a2);
v5 = v4;
if ( v4 )
{
v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCTMXMapInfo *))(*(_QWORD *)v4 + 88LL))(v4);
cocos2d::CCArray::count(v6);
cocos2d::CCTMXTiledMap::buildWithMapInfo(this, v5);
LOBYTE(v4) = 1;
}
return (char)v4;
}