//
// sub_100278570 from 0x100278570 to 0x1002785e3 (115 bytes)
//
// 1 xrefs:
// > cocos2d::ccpRotateByAngle @ 0x100341ad9
//
// 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:27:40 +0000
//
double *__fastcall sub_100278570(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_100A035F0, v7), v7, 28), a4)),
v5));
return a1;
}