//
// cocos2d::CCTMXLayer::dCCTMXLayer from 0x100243e40 to 0x100243eef (175 bytes)
//
// 2 xrefs:
// > sub_100243F00 @ 0x100243f05
// > sub_100243F10 @ 0x100243f19
//
// 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:27:19 +0000
//
__int64 __fastcall cocos2d::CCTMXLayer::dCCTMXLayer(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
__int64 v4; // rdi
void *v5; // rdi
void *v6; // rdi
*(_QWORD *)a1 = off_100AF02D0;
*(_QWORD *)(a1 + 320) = off_100AF06A0;
v2 = *(_QWORD *)(a1 + 384);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *(_QWORD *)(a1 + 456);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *(_QWORD *)(a1 + 400);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *(void **)(a1 + 464);
if ( v5 )
{
sub_1007477A0(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 sub_100155AB0((_QWORD *)a1);
}