//
// sub_10028CF00 from 0x10028cf00 to 0x10028cf73 (115 bytes)
//
// 1 xrefs:
// > cocos2d::ccpRotateByAngle @ 0x1003563c9
//
// 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
//
double *__fastcall sub_10028CF00(double *a1, unsigned int *a2, unsigned __int64 *a3, __m128 a4)
{
__m128 v5; // xmm1
__m128 v6; // xmm3
__m128 v7; // xmm4
__m128 v9; // [rsp+0h] [rbp-30h]
__m128 v10; // [rsp+10h] [rbp-20h]
v10 = (__m128)*a2;
v9 = (__m128)a2[1];
*(__float2 *)a4.f32 = __sincosf_stret(a4.f32[0]);
v5 = (__m128)*a3;
v6 = v10;
v6.f32[0] = v10.f32[0] - v5.f32[0];
v7 = v9;
v7.f32[0] = v9.f32[0] - _mm_movehdup_ps(v5).f32[0];
_mm_storel_ps(
a1,
_mm_add_ps(
_mm_add_ps(
_mm_mul_ps(_mm_shuffle_ps(a4, a4, 225), _mm_moveldup_ps(v6)),
_mm_mul_ps(_mm_insert_ps(_mm_xor_ps((__m128)xmmword_1008150B0, v7), v7, 28), a4)),
v5));
return a1;
}