//
// cocos2d::CCArray::replaceObjectAtIndex from 0xad46d0 to 0xad470c (60 bytes)
//
// 4 xrefs:
// > cocos2d::CCDirector::replaceScene @ 0xad6e0c
// > cocos2d::CCDirector::replaceScene @ 0xad6e68
// > cocos2d::CCLayerMultiplex::switchToAndReleaseMe @ 0xaec39c
// > ??> @ 0x58e48
//
// 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
//
__int64 __fastcall cocos2d::CCArray::replaceObjectAtIndex(
cocos2d::CCArray *this,
unsigned int a2,
cocos2d::_ccArray *a3,
unsigned int a4)
{
bool v6; // w3
cocos2d::ccArrayInsertObjectAtIndex((cocos2d *)this->data, a3, (cocos2d::CCObject *)a2, a4);
return cocos2d::ccArrayRemoveObjectAtIndex((cocos2d *)this->data, (cocos2d::_ccArray *)(a2 + 1), 1u, v6);
}