//
// cocos2d::CCPointArray::reverseInline from 0x1002be3a0 to 0x1002be412 (114 bytes)
//
// 0 xrefs:
//
// 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 12:28:04 +0000
//
__int64 __fastcall cocos2d::CCPointArray::reverseInline(__int64 a1)
{
__int64 *v1; // rcx
__int64 result; // 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 = *(__int64 **)(a1 + 56);
result = *v1;
v3 = v1[1] - *v1;
if ( (v3 & 0x7FFFFFFF0LL) != 0 )
{
v4 = v3 >> 3;
v5 = v4 - 1;
v6 = 0;
do
{
if ( v5 == -1 || v4 <= (unsigned int)v5 )
sub_1002BF6D0(v6);
v7 = *(_QWORD **)(result + 8 * v6);
v8 = *(double **)(result + 8LL * (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 );
}
return result;
}