//
// cocos2d::CCArray::exchangeObject from 0xd47484 to 0xd474e8 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0xb2ab0
//
// 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::exchangeObject(
cocos2d::CCArray *this,
cocos2d::CCObject *a2,
cocos2d::CCObject *a3)
{
__int64 result; // x0
unsigned int v5; // w20
result = cocos2d::ccArrayGetIndexOfObject(*((_QWORD *)this + 7), a2);
v5 = result;
if ( (_DWORD)result != -1 )
{
result = cocos2d::ccArrayGetIndexOfObject(*((_QWORD *)this + 7), a3);
if ( (_DWORD)result != -1 )
return cocos2d::ccArraySwapObjectsAtIndexes(*((_QWORD *)this + 7), v5, (unsigned int)result);
}
return result;
}