//
// cocos2d::CCArray::reverseObjects from 0x5c21a4 to 0x5c21da (54 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::reverseKeyframeAnimationOrder @ 0x3694bc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCArray *__fastcall cocos2d::CCArray::reverseObjects(cocos2d::CCArray *this)
{
cocos2d::CCArray *v1; // r7
cocos2d::ccArray *data; // r3
int v3; // r4
cocos2d::_ccArray *v4; // r5
int v5; // s15
unsigned int v6; // r2
v1 = this;
data = this->data;
if ( data->num > 1 )
{
v3 = data->num - 1;
v4 = nullptr;
v5 = (int)vcvts_n_f32_u32(data->num, 1u);
while ( (int)v4 < v5 )
{
v6 = v3--;
this = (cocos2d::CCArray *)cocos2d::ccArraySwapObjectsAtIndexes((cocos2d *)v1->data, v4, v6, (unsigned int)data);
v4 = (cocos2d::_ccArray *)((char *)v4 + 1);
}
}
return this;
}