//
// sub_1800A1D40 from 0x1800a1d40 to 0x1800a1d69 (41 bytes)
//
// 3 xrefs:
// > cocos2d::CCArray::exchangeObject @ 0x180006fcf
// > cocos2d::CCArray::exchangeObjectAtIndex @ 0x180006ff4
// > cocos2d::CCArray::reverseObjects @ 0x180007439
//
// This function is hookable on this platform (idp: pc, 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 11:22:13 +0000
//
__int64 __fastcall sub_1800A1D40(__int64 a1, unsigned int a2, unsigned int a3)
{
__int64 v3; // r10
__int64 v4; // r11
_QWORD *v5; // r9
__int64 v6; // rdx
__int64 result; // rax
v3 = *(_QWORD *)(a1 + 16);
v4 = *(_QWORD *)(v3 + 8LL * a2);
v5 = (_QWORD *)(v3 + 8LL * a2);
v6 = 8LL * a3;
*v5 = *(_QWORD *)(v6 + v3);
result = *(_QWORD *)(a1 + 16);
*(_QWORD *)(v6 + result) = v4;
return result;
}