//
// cocos2d::CCTMXTiledMap::create from 0x1005192e0 to 0x1005193a3 (195 bytes)
//
// 0 xrefs:
//
// 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:40 +0000
//
_OWORD *__fastcall cocos2d::CCTMXTiledMap::create(__int64 a1)
{
_OWORD *v1; // rbx
char *v2; // rax
char *v3; // r14
__int64 v4; // rax
v1 = operator new(0x168u);
cocos2d::CCNode::CCNode((__int64)v1);
*(_QWORD *)v1 = off_100B6CF48;
sub_100278630((_OWORD *)((char *)v1 + 316), &qword_100BE54F8);
sub_100278630((_OWORD *)((char *)v1 + 324), &qword_100BE54F8);
v1[21] = 0;
*((_QWORD *)v1 + 44) = 0;
(*(void (__fastcall **)(_OWORD *, _QWORD *))(*(_QWORD *)v1 + 320LL))(v1, &qword_100BE54F8);
v2 = cocos2d::CCTMXMapInfo::formatWithTMXFile(a1);
if ( v2 )
{
v3 = v2;
v4 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v2 + 96LL))(v2);
sub_1007FEF90(v4);
cocos2d::CCTMXTiledMap::buildWithMapInfo(v1, v3);
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}