//
// cocos2d::CCTMXTiledMap::initWithTMXFile from 0x1800ae1a0 to 0x1800ae204 (100 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b837c
//
// 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
//
bool __fastcall cocos2d::CCTMXTiledMap::initWithTMXFile(cocos2d::CCTMXTiledMap *this, const char *a2)
{
struct cocos2d::CCTMXMapInfo *v4; // rax
cocos2d::CCNode *v5; // rbx
cocos2d::CCArray *v6; // rax
((void (__fastcall *)(cocos2d::CCTMXTiledMap *, _DWORD *))this->setContentSize)(this, dword_1801A9AD8);
v4 = cocos2d::CCTMXMapInfo::formatWithTMXFile(a2);
v5 = (cocos2d::CCNode *)v4;
if ( v4 )
{
v6 = (cocos2d::CCArray *)((__int64 (__fastcall *)(struct cocos2d::CCTMXMapInfo *))v4->getTilesets)(v4);
cocos2d::CCArray::count(v6);
cocos2d::CCTMXTiledMap::buildWithMapInfo(this, v5);
LOBYTE(v4) = 1;
}
return (char)v4;
}