//
// cocos2d::CCPointArray::reverseInline from 0xab5128 to 0xab51e8 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x3ce58
//
// 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
//
void cocos2d::CCPointArray::reverseInline(cocos2d::CCPointArray *a1)
{
cocos2d::CCPointArray_vtbl *v1; // x0
float **copyWithZone; // x7
unsigned __int64 v3; // x2
unsigned __int64 v4; // x0
float *v5; // x4
unsigned int v6; // w6
__int64 v7; // x1
bool v8; // cf
float *v9; // x5
int v10; // w8
float v11; // s1
float v12; // s0
v1 = a1[1].__vftable;
copyWithZone = (float **)v1->copyWithZone;
v3 = ((char *)v1->~CCPointArray - (char *)v1->copyWithZone) >> 3;
if ( !((unsigned int)v3 >> 1) )
return;
if ( !v3 )
{
v7 = 0;
LABEL_10:
sub_D13C5C("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)", v7, v3);
}
v4 = (unsigned int)(v3 - 1);
v5 = *copyWithZone;
if ( v3 <= v4 )
{
LABEL_9:
v7 = v4;
goto LABEL_10;
}
v6 = v3 - 2;
v7 = 1;
while ( 1 )
{
v9 = copyWithZone[v4];
v10 = *((_DWORD *)v9 + 1);
v11 = (float)(int)*v5;
v12 = (float)(int)v5[1];
*v5 = *v9;
*((_DWORD *)v5 + 1) = v10;
*v9 = v11;
v9[1] = v12;
if ( (unsigned int)v3 >> 1 <= (unsigned int)v7 )
break;
if ( v3 == v7 )
goto LABEL_10;
v4 = v6;
v5 = copyWithZone[v7];
v8 = v6-- >= v3;
++v7;
if ( v8 )
goto LABEL_9;
}
}