//
// cocos2d::CCTMXLayer::dCCTMXLayer from 0x100259eb0 to 0x100259f5f (175 bytes)
//
// 2 xrefs:
// > sub_100259F70 @ 0x100259f75
// > sub_100259F80 @ 0x100259f89
//
// 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
//
__int64 __fastcall cocos2d::CCTMXLayer::dCCTMXLayer(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
cocos2d::CCObject *v3; // rdi
cocos2d::CCObject *v4; // rdi
void *v5; // rdi
void *v6; // rdi
*(_QWORD *)a1 = off_1008EA8D0;
*(_QWORD *)(a1 + 320) = off_1008EAC90;
v2 = *(cocos2d::CCObject **)(a1 + 384);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *(cocos2d::CCObject **)(a1 + 456);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *(cocos2d::CCObject **)(a1 + 400);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *(void **)(a1 + 464);
if ( v5 )
{
sub_100668270(v5);
*(_QWORD *)(a1 + 464) = 0;
}
v6 = *(void **)(a1 + 376);
if ( v6 )
{
operator delete[](v6);
*(_QWORD *)(a1 + 376) = 0;
}
if ( (*(_BYTE *)(a1 + 408) & 1) != 0 )
operator delete(*(void **)(a1 + 424));
return cocos2d::CCSpriteBatchNode::dCCSpriteBatchNode((_QWORD *)a1);
}