//
// cocos2d::CCNode::removeFromParentAndCleanup from 0x180004760 to 0x18000477e (30 bytes)
//
// 86 xrefs:
// > ??> @ 0x1800e55d8
// > ??> @ 0x1800e5c38
// > ??> @ 0x1800e5fa8
// > ??> @ 0x1800e6908
// > ??> @ 0x1800e6e10
// > ??> @ 0x1800eb5d8
// > ??> @ 0x1800eba78
// > ??> @ 0x1800ebf50
// > ??> @ 0x1800ec478
// > ??> @ 0x1800ecad0
// > ??> @ 0x1800ed0e8
// > ??> @ 0x1800ed5a8
// > ??> @ 0x1800edae0
// > ??> @ 0x1800ee048
// > ??> @ 0x1800ee620
// > ??> @ 0x1800eeae0
// > ??> @ 0x1800eee68
// > ??> @ 0x1800ef1e8
// > ??> @ 0x1800ef570
// > ??> @ 0x1800ef8f0
// > ??> @ 0x1800efc70
// > ??> @ 0x1800f0010
// > ??> @ 0x1800f03b0
// > ??> @ 0x1800f0750
// > ??> @ 0x1800f0af0
// > ??> @ 0x1800f0e90
// > ??> @ 0x1800f1230
// > ??> @ 0x1800f15d0
// > ??> @ 0x1800f1970
// > ??> @ 0x1800f1d00
// > ??> @ 0x1800f2088
// > ??> @ 0x1800f2410
// > ??> @ 0x1800f2798
// > ??> @ 0x1800f2b20
// > ??> @ 0x1800f2ea8
// > ??> @ 0x1800f3230
// > ??> @ 0x1800f35b8
// > ??> @ 0x1800f3938
// > ??> @ 0x1800f3cc8
// > ??> @ 0x1800f4060
// > ??> @ 0x1800f43f8
// > ??> @ 0x1800f4790
// > ??> @ 0x1800f4b28
// > ??> @ 0x1800f4ec0
// > ??> @ 0x1800f5270
// > ??> @ 0x1800f55f8
// > ??> @ 0x1800f5988
// > ??> @ 0x1800f5d18
// > ??> @ 0x1800f60a8
// > ??> @ 0x1800f6438
// > ??> @ 0x1800f67c8
// > ??> @ 0x1800f6b58
// > ??> @ 0x1800f6ef0
// > ??> @ 0x1800f7458
// > ??> @ 0x1800f7880
// > ??> @ 0x1800f7cc8
// > ??> @ 0x1800f8110
// > ??> @ 0x1800f8558
// > ??> @ 0x1800f89b8
// > ??> @ 0x1800f8e18
// > ??> @ 0x1800f9268
// > ??> @ 0x1800f9630
// > ??> @ 0x1800f9a48
// > ??> @ 0x1800f9e58
// > ??> @ 0x1800fa288
// > ??> @ 0x1800fa8f8
// > ??> @ 0x1800faf68
// > ??> @ 0x1800fb5d8
// > ??> @ 0x1800fbc48
// > ??> @ 0x1800fc2b8
// > ??> @ 0x1800fc928
// > ??> @ 0x1800fcf98
// > ??> @ 0x1800fd608
// > ??> @ 0x1800fdc78
// > ??> @ 0x1800fe2e8
// > ??> @ 0x1800fe958
// > ??> @ 0x1800ff1a0
// > ??> @ 0x1800ffc40
// > ??> @ 0x180103988
// > ??> @ 0x180103e78
// > ??> @ 0x1801053b0
// > ??> @ 0x180105788
// > ??> @ 0x180105be0
// > ??> @ 0x180106048
// > ??> @ 0x180106980
// > ??> @ 0x1801438a8
//
// 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::CCNode::removeFromParentAndCleanup(cocos2d::CCNode *this, unsigned __int8 a2)
{
__int64 v2; // r8
cocos2d::CCNode *m_pParent; // rcx
v2 = a2;
m_pParent = this->m_pParent;
if ( m_pParent )
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCNode *, __int64))m_pParent->removeChild)(m_pParent, this, v2);
}