//
// cocos2d::CCArray::reverseObjects from 0x1800073e0 to 0x18000745b (123 bytes)
//
// 4 xrefs:
// > ??> @ 0x18013a4ac
// > ??> @ 0x18013a4bc
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7a14
//
// 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:21:18 +0000
//
void __fastcall cocos2d::CCArray::reverseObjects(cocos2d::CCArray *this)
{
int v2; // edi
int v3; // ebp
unsigned int v4; // edi
int i; // ebx
v2 = **((_DWORD **)this + 7);
if ( (unsigned int)v2 > 1 )
{
v3 = (int)floorf((float)v2 * 0.5);
v4 = v2 - 1;
for ( i = 0; i < v3; ++i )
sub_1800A1D40(*((_QWORD *)this + 7), (unsigned int)i, v4--);
}
}