//
// cocos2d::CCTileMapAtlas::create from 0x10022c8f0 to 0x10022c998 (168 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCTileMapAtlas *__fastcall cocos2d::CCTileMapAtlas::create(const char *a1, const char *a2, int a3, int a4)
{
char *v6; // rbx
v6 = (char *)operator new(0x1B0u);
cocos2d::CCAtlasNode::CCAtlasNode(v6);
*(_QWORD *)v6 = off_1008E0D30;
*((_QWORD *)v6 + 40) = off_1008E1178;
*((_QWORD *)v6 + 43) = off_1008E11F8;
*(_OWORD *)(v6 + 408) = 0;
*((_DWORD *)v6 + 106) = 0;
if ( cocos2d::CCTileMapAtlas::initWithTileFile((cocos2d::CCTileMapAtlas *)v6, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return (cocos2d::CCTileMapAtlas *)v6;
}