//
// cocos2d::CCArray::exchangeObject from 0x7c929e to 0x7c92cc (46 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:28 +0000
//
int __fastcall cocos2d::CCArray::exchangeObject(cocos2d::CCArray *this, cocos2d::CCObject *a2, cocos2d::CCObject *a3)
{
int result; // r0
int v6; // r5
result = cocos2d::ccArrayGetIndexOfObject(*((_DWORD *)this + 13), a2);
v6 = result;
if ( result != -1 )
{
result = cocos2d::ccArrayGetIndexOfObject(*((_DWORD *)this + 13), a3);
if ( result != -1 )
return cocos2d::ccArraySwapObjectsAtIndexes(*((_DWORD *)this + 13), v6, result, result + 1);
}
return result;
}