//
// HardStreak::quadCornerOffset from 0x825738 to 0x825820 (232 bytes)
//
// 2 xrefs:
// > HardStreak::updateStroke @ 0x825ae0
// > ??> @ 0x58fc8
//
// 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
//
cocos2d::CCPoint HardStreak::quadCornerOffset(HardStreak *a1, cocos2d::CCPoint a2, cocos2d::CCPoint a3, float a4)
{
float *v4; // x1
float *v5; // x2
cocos2d::CCPoint *v6; // x8
cocos2d::CCPoint *v7; // x19
float v8; // s10
double v9; // d0
float v10; // s8
float v11; // s9
float v12; // s0
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v7 = v6;
if ( a2.x < 1.0 )
{
cocos2d::CCPoint::CCPoint(v6, &stru_1242B78);
}
else
{
v8 = a2.x * 0.5;
v9 = atan2((float)(v5[1] - v4[1]), (float)(*v5 - *v4));
v10 = HardStreak::normalizeAngle(a1, v9 * 180.0 / 3.14159265 + 90.0) * 3.14159265 / 180.0;
v11 = sinf(v10);
v12 = cosf(v10);
cocos2d::CCPoint::CCPoint(v7, v8 * v12, v8 * v11);
}
return result;
}