//
// sub_100022A98 from 0x100022a98 to 0x100022af4 (92 bytes)
//
// 1 xrefs:
// > cocos2d::ccpRotateByAngle @ 0x1001aea7c
//
// 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
//
float __usercall sub_100022A98@(float *a1@, float *a2@, float *a3@, float a4@)
{
float v5; // s8
float v6; // s9
float v7; // s10
float v8; // s11
float result; // s0
__float2 v10; // 0:kr00_8.8
v5 = *a2;
v6 = a2[1];
v7 = *a1 - *a2;
v8 = a1[1] - v6;
v10 = __sincosf_stret(a4);
result = v6 + (float)((float)(v10.__cosval * v8) + (float)(v7 * v10.__sinval));
*a3 = v5 + (float)((float)(v7 * v10.__cosval) - (float)(v8 * v10.__sinval));
a3[1] = result;
return result;
}