//
// cocos2d::CCTMXTiledMap::initWithTMXFile from 0x805244 to 0x805278 (52 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXTiledMap::create @ 0x805292
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:23 +0000
//
int __fastcall cocos2d::CCTMXTiledMap::initWithTMXFile(cocos2d::CCTMXTiledMap *this, cocos2d::CCTMXMapInfo *a2)
{
const char *v4; // r1
int result; // r0
cocos2d::CCTMXMapInfo *v6; // r4
cocos2d::CCArray *v7; // r0
(*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, void *))(*(_DWORD *)this + 160))(this, &unk_D312D8);
result = cocos2d::CCTMXMapInfo::formatWithTMXFile(a2, v4);
v6 = (cocos2d::CCTMXMapInfo *)result;
if ( result )
{
v7 = (cocos2d::CCArray *)(*(int (__fastcall **)(int))(*(_DWORD *)result + 48))(result);
cocos2d::CCArray::count(v7);
cocos2d::CCTMXTiledMap::buildWithMapInfo(this, v6);
return 1;
}
return result;
}