//
// cocos2d::CCTMXLayer::create from 0x100259910 to 0x1002599cc (188 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXTiledMap::parseLayer @ 0x100518a4a
//
// 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::CCTMXLayer *__fastcall cocos2d::CCTMXLayer::create(
cocos2d::CCTMXTilesetInfo *a1,
cocos2d::CCTMXLayerInfo *a2,
cocos2d::CCTMXMapInfo *a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x1E0u);
cocos2d::CCSpriteBatchNode::CCSpriteBatchNode((__int64)v4);
*(_QWORD *)v4 = off_1008EA8D0;
*((_QWORD *)v4 + 40) = off_1008EAC90;
sub_10028CFC0(v4 + 356, &unk_10099F5A0);
sub_10028CFC0(v4 + 364, &unk_10099F5A0);
*((_QWORD *)v4 + 50) = 0;
*((_WORD *)v4 + 204) = 0;
*(_OWORD *)(v4 + 376) = 0;
*(_OWORD *)(v4 + 456) = 0;
if ( !cocos2d::CCTMXLayer::initWithTilesetInfo((cocos2d::CCTMXLayer *)v4, a1, a2, a3) )
return nullptr;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (cocos2d::CCTMXLayer *)v4;
}