//
// cocos2d::CCTMXMapInfo::formatWithTMXFile from 0x1004c8d40 to 0x1004c8e34 (244 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXTiledMap::create @ 0x10051935d
// > cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x100519470
//
// 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 12:31:09 +0000
//
char *__fastcall cocos2d::CCTMXMapInfo::formatWithTMXFile(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0xE0u);
cocos2d::CCObject::CCObject((__int64)v1);
*(_QWORD *)v1 = off_100B5C6D8;
*((_QWORD *)v1 + 7) = off_100B5C790;
sub_100278630(v1 + 68, &qword_100BE4370);
sub_100278630(v1 + 76, &qword_100BE4370);
*((_DWORD *)v1 + 30) = 0;
v1[124] = 0;
*(_OWORD *)(v1 + 88) = 0;
*((_QWORD *)v1 + 13) = 0;
*((_OWORD *)v1 + 8) = 0;
*((_OWORD *)v1 + 9) = 0;
*((_OWORD *)v1 + 10) = 0;
*((_OWORD *)v1 + 11) = 0;
*((_OWORD *)v1 + 12) = 0;
*(_OWORD *)(v1 + 204) = 0;
cocos2d::CCTMXMapInfo::internalInit(v1, a1, 0);
if ( (v1[136] & 1) != 0 )
{
if ( !(unsigned __int8)cocos2d::CCTMXMapInfo::parseXMLFile(v1, *((_QWORD *)v1 + 19)) )
goto LABEL_3;
LABEL_5:
cocos2d::CCObject::autorelease((__int64)v1);
return v1;
}
if ( (unsigned __int8)cocos2d::CCTMXMapInfo::parseXMLFile(v1, v1 + 137) )
goto LABEL_5;
LABEL_3:
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}