//
// cocos2d::CCTMXMapInfo::formatWithTMXFile from 0x1800b2eb0 to 0x1800b2f41 (145 bytes)
//
// 4 xrefs:
// > cocos2d::CCTMXTiledMap::create @ 0x1800b18e6
// > cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x1800b1a43
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c276c
//
// 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:20 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTMXMapInfo *__fastcall cocos2d::CCTMXMapInfo::formatWithTMXFile(const char *a1)
{
cocos2d::CCTMXMapInfo *v2; // rax
cocos2d::CCTMXMapInfo *v3; // rbx
const char *v4; // rdx
v2 = (cocos2d::CCTMXMapInfo *)sub_1800E4AC0(0xF8u);
if ( v2 )
v3 = cocos2d::CCTMXMapInfo::CCTMXMapInfo(v2);
else
v3 = nullptr;
cocos2d::CCTMXMapInfo::internalInit(v3, a1, nullptr);
v4 = (char *)v3 + 136;
if ( *((_QWORD *)v3 + 20) > 0xFu )
v4 = *(const char **)v4;
if ( cocos2d::CCTMXMapInfo::parseXMLFile(v3, v4) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
if ( v3 )
(*(void (__fastcall **)(cocos2d::CCTMXMapInfo *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
return nullptr;
}
}