//
// cocos2d::CCTMXTiledMap::initWithTMXFile from 0xdad134 to 0xdad1a8 (116 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXTiledMap::create @ 0xdad1d0
// > ??> @ 0xb6608
//
// This function is hookable on this platform (idp: arm, 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 13:08:36 +0000
//
__int64 __fastcall cocos2d::CCTMXTiledMap::initWithTMXFile(cocos2d::CCTMXTiledMap *this, cocos2d::CCTMXMapInfo *a2)
{
const char *v4; // x1
__int64 v5; // x0
cocos2d::CCArray *v6; // x0
cocos2d::CCTMXMapInfo *v8; // [xsp+28h] [xbp+28h]
(*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, void *))(*(_QWORD *)this + 320LL))(this, &unk_1562458);
v5 = cocos2d::CCTMXMapInfo::formatWithTMXFile(a2, v4);
if ( !v5 )
return 0;
v8 = (cocos2d::CCTMXMapInfo *)v5;
v6 = (cocos2d::CCArray *)(*(__int64 (**)(void))(*(_QWORD *)v5 + 96LL))();
cocos2d::CCArray::count(v6);
cocos2d::CCTMXTiledMap::buildWithMapInfo(this, v8);
return 1;
}