//
// cocos2d::CCTMXLayer::removeChild from 0xdac4ec to 0xdac564 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x63b20
// > ??> @ 0x1530bc8
//
// This function is hookable on this platform (idp: arm, 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 13:08:35 +0000
//
cocos2d::CCTextureAtlas **__fastcall cocos2d::CCTMXLayer::removeChild(
cocos2d::CCTextureAtlas **this,
cocos2d::CCNode *a2,
unsigned __int8 a3)
{
__int64 v4; // x19
__int64 v6; // x1
if ( a2 )
{
v4 = (__int64)this;
cocos2d::CCArray::containsObject(*(this + 26), a2);
v6 = *((unsigned int *)a2 + 90);
*(_DWORD *)(*(_QWORD *)(v4 + 376)
+ 4LL * (unsigned int)*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v4 + 464) + 16LL) + 8 * v6)) = 0;
cocos2d::ccCArrayRemoveValueAtIndex(*(unsigned int **)(v4 + 464), v6);
return cocos2d::CCSpriteBatchNode::removeChild((cocos2d::CCTextureAtlas **)v4, a2, a3);
}
return this;
}