//
// cocos2d::CCArray::replaceObjectAtIndex from 0x5c2186 to 0x5c21a4 (30 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::replaceScene @ 0x5c370e
// > cocos2d::CCLayerMultiplex::switchToAndReleaseMe @ 0x5d02e2
//
// 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
//
int __fastcall cocos2d::CCArray::replaceObjectAtIndex(
cocos2d::CCArray *this,
unsigned int a2,
cocos2d::_ccArray *a3,
bool a4)
{
cocos2d::ccArrayInsertObjectAtIndex((cocos2d *)this->data, a3, (cocos2d::CCObject *)a2, a4);
return cocos2d::ccArrayRemoveObjectAtIndex((cocos2d *)this->data, (cocos2d::_ccArray *)(a2 + 1), 1u, a4);
}