//
// cocos2d::CCPointArray::reverseInline from 0x1002d16d0 to 0x1002d1742 (114 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::CCPointArray::reverseInline(cocos2d::CCPointArray *a1)
{
cocos2d::CCPointArray_vtbl *v1; // rcx
cocos2d::CCObject *(__cdecl *copyWithZone)(cocos2d::CCPointArray *__hidden, cocos2d::CCZone *); // rax
__int64 v3; // rcx
unsigned __int64 v4; // rcx
unsigned __int64 v5; // rsi
__int64 v6; // rdi
_QWORD *v7; // r9
double *v8; // r8
__m128i v9; // xmm1
v1 = a1[1].__vftable;
copyWithZone = v1->copyWithZone;
v3 = (char *)v1->~CCPointArray - (char *)v1->copyWithZone;
if ( (v3 & 0x7FFFFFFF0LL) != 0 )
{
v4 = v3 >> 3;
v5 = v4 - 1;
v6 = 0;
do
{
if ( v5 == -1 || v4 <= (unsigned int)v5 )
sub_1002D2A00(v6);
v7 = *((_QWORD **)copyWithZone + v6);
v8 = *((double **)copyWithZone + (unsigned int)v5);
v9 = _mm_cvttps_epi32((__m128)(unsigned __int64)*v7);
*v7 = *(_QWORD *)v8;
_mm_storel_ps(v8, _mm_cvtepi32_ps(v9));
++v6;
--v5;
}
while ( (unsigned int)v4 >> 1 != v6 );
}
}