//
// cocos2d::CCTMXMapInfo::formatWithXML from 0x1004c8f50 to 0x1004c9030 (224 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXTiledMap::createWithXML @ 0x100519536
// > cocos2d::CCTMXTiledMap::initWithXML @ 0x1005195c9
//
// 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::formatWithXML(__int64 a1, __int64 a2)
{
char *v2; // rbx
v2 = (char *)operator new(0xE0u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = off_100B5C6D8;
*((_QWORD *)v2 + 7) = off_100B5C790;
sub_100278630(v2 + 68, &qword_100BE4370);
sub_100278630(v2 + 76, &qword_100BE4370);
*((_DWORD *)v2 + 30) = 0;
v2[124] = 0;
*(_OWORD *)(v2 + 88) = 0;
*((_QWORD *)v2 + 13) = 0;
*((_OWORD *)v2 + 8) = 0;
*((_OWORD *)v2 + 9) = 0;
*((_OWORD *)v2 + 10) = 0;
*((_OWORD *)v2 + 11) = 0;
*((_OWORD *)v2 + 12) = 0;
*(_OWORD *)(v2 + 204) = 0;
cocos2d::CCTMXMapInfo::internalInit(v2, 0, a2);
if ( (unsigned __int8)cocos2d::CCTMXMapInfo::parseXMLString(v2, a1) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}