//
// cocos2d::CCPoint::rotateByAngle from 0x18000cd80 to 0x18000ce17 (151 bytes)
//
// 3 xrefs:
// > cocos2d::ccpRotateByAngle @ 0x180094172
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ade70
//
// 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
//
const struct cocos2d::CCPoint *__fastcall cocos2d::CCPoint::rotateByAngle(
cocos2d::CCPoint *this,
const struct cocos2d::CCPoint *a2,
float a3,
float a4)
{
float *v4; // r8
float *v5; // rdi
float v8; // xmm7_4
float v9; // xmm0_4
float v11; // xmm6_4
float v12; // xmm1_4
float v13; // xmm5_4
v5 = v4;
v8 = cosf(a4);
v9 = sinf(a4);
v11 = this->x - *v5;
v12 = this->y - v5[1];
v13 = (float)((float)(v12 * v8) + (float)(v11 * v9)) + v5[1];
a2->x = (float)((float)(v11 * v8) - (float)(v12 * v9)) + *v5;
a2->y = v13;
return a2;
}