//
// HardStreak::quadCornerOffset from 0x100065250 to 0x100065321 (209 bytes)
//
// 0 xrefs:
//
// 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:19:42 +0000
//
__int64 __fastcall HardStreak::quadCornerOffset(__int64 a1, float a2, __int64 a3, float *a4, __int64 a5)
{
__m128 v6; // xmm0
if ( a2 >= 1.0 )
{
v6 = (__m128)*(unsigned int *)(a5 + 4);
*(double *)v6.i64 = atan2f(v6.f32[0] - a4[1], *(float *)a5 - *a4) * 180.0 / 3.141592653589793 + 90.0;
if ( *(double *)v6.i64 <= 360.0 )
{
if ( *(double *)v6.i64 < 0.0 )
*(double *)v6.i64 = *(double *)v6.i64 + 360.0;
}
else
{
*(double *)v6.i64 = *(double *)v6.i64 + -360.0;
}
v6.f32[0] = *(double *)v6.i64 * 3.141592653589793 / 180.0;
*(__float2 *)v6.f32 = __sincosf_stret(v6.f32[0]);
sub_100278250(a1, _mm_movehdup_ps(v6).f32[0] * (float)(a2 * 0.5), v6.f32[0] * (float)(a2 * 0.5));
}
else
{
sub_1002782D0(a1, &unk_100BE0FF0);
}
return a1;
}