//
// cocos2d::CCArray::reverseObjects from 0x7c92f0 to 0x7c9326 (54 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::reverseKeyframeAnimationOrder @ 0x462c14
// > FriendsProfilePage::sortUsers @ 0x5f345e
//
// 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:29 +0000
//
int __fastcall cocos2d::CCArray::reverseObjects(int this)
{
int v1; // r7
unsigned int *v2; // r3
int v3; // r4
int v4; // r5
int v5; // s15
int v6; // r2
v1 = this;
v2 = *(unsigned int **)(this + 52);
if ( *v2 > 1 )
{
v3 = *v2 - 1;
v4 = 0;
v5 = (int)vcvts_n_f32_u32(*v2, 1u);
while ( v4 < v5 )
{
v6 = v3--;
this = cocos2d::ccArraySwapObjectsAtIndexes(*(_DWORD *)(v1 + 52), v4++, v6, v2);
}
}
return this;
}