//
// cocos2d::CCTMXLayer::removeChild from 0xb39c5c to 0xb39cd4 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x46398
// > ??> @ 0x121ab88
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void cocos2d::CCTMXLayer::removeChild(cocos2d::CCTMXLayer *a1, cocos2d::CCNode *a2, bool a3)
{
__int64 v6; // x0
__int64 m_unknown2; // x1
if ( a2 )
{
cocos2d::CCArray::containsObject(a1->m_pChildren, (cocos2d::_ccArray *)a2, (cocos2d::CCObject *)a3);
v6 = *(_QWORD *)&a1[1].m_fSkewY;
m_unknown2 = (unsigned int)a2[1].m_unknown2;
*(_DWORD *)(*(_QWORD *)&a1[1].m_nTag + 4LL * (unsigned int)*(_QWORD *)(*(_QWORD *)(v6 + 16) + 8 * m_unknown2)) = 0;
cocos2d::ccCArrayRemoveValueAtIndex((unsigned int *)v6, m_unknown2);
cocos2d::CCSpriteBatchNode::removeChild(a1, a2, a3);
}
}