//
// rotatePoint from 0x54bb18 to 0x54bb8c (116 bytes)
//
// 7 xrefs:
// > ShaderLayer::updateEffectOffsets @ 0x54bcb0
// > ShaderLayer::updateEffectOffsets @ 0x54bf46
// > ShaderLayer::updateEffectOffsets @ 0x54c1cc
// > ShaderLayer::updateEffectOffsets @ 0x54c2a2
// > ShaderLayer::updateEffectOffsets @ 0x54c42a
// > ShaderLayer::updateEffectOffsets @ 0x54c568
// > ShaderLayer::updateEffectOffsets @ 0x54c63c
//
// 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 *__fastcall rotatePoint(float *result, float a2, float *a3)
{
float *v4; // r4
float v5; // s20
float v6; // s19
float v7; // s16
float v8; // s18
float v9; // s21
v4 = result;
if ( a2 != 0.0 )
{
v5 = *a3;
v6 = a3[1];
v7 = result[1] - v6;
v8 = *result - *a3;
v9 = cosf(a2 * 0.017453);
*(float *)&result = sinf(a2 * 0.017453);
*v4 = (float)((float)(v8 * v9) - (float)(v7 * *(float *)&result)) + v5;
v4[1] = (float)((float)(v7 * v9) + (float)(v8 * *(float *)&result)) + v6;
}
return result;
}