//
// cocos2d::CCArray::replaceObjectAtIndex from 0xd474f0 to 0xd4752c (60 bytes)
//
// 4 xrefs:
// > cocos2d::CCDirector::replaceScene @ 0xd49a4c
// > cocos2d::CCDirector::replaceScene @ 0xd49aa8
// > cocos2d::CCLayerMultiplex::switchToAndReleaseMe @ 0xd5e0fc
// > ??> @ 0x7a5d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:35 +0000
//
__int64 __fastcall cocos2d::CCArray::replaceObjectAtIndex(cocos2d::CCArray *this, int a2, cocos2d::CCObject *a3)
{
cocos2d::ccArrayInsertObjectAtIndex(*((_QWORD *)this + 7), a3);
return cocos2d::ccArrayRemoveObjectAtIndex(*((_QWORD *)this + 7), (unsigned int)(a2 + 1), 1);
}