//
// cocos2d::CCTMXLayer::removeChild from 0x1800acb20 to 0x1800acb99 (121 bytes)
//
// 3 xrefs:
// > ??> @ 0x180105bf0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8184
//
// 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
//
void __fastcall cocos2d::CCTMXLayer::removeChild(cocos2d::CCTMXLayer *this, struct cocos2d::CCSprite *a2, char a3)
{
__int64 m_uAtlasIndex; // rdx
if ( a2 )
{
cocos2d::CCArray::containsObject(this->m_pChildren, a2);
m_uAtlasIndex = a2->m_uAtlasIndex;
*(_DWORD *)(*((_QWORD *)this + 47)
+ 4LL * *(unsigned int *)(*(_QWORD *)(*((_QWORD *)this + 59) + 16LL) + 8 * m_uAtlasIndex)) = 0;
sub_18009E360(*((_QWORD *)this + 59), m_uAtlasIndex);
cocos2d::CCSpriteBatchNode::removeChild(this, a2, a3);
}
}