//
// sub_180077E50 from 0x180077e50 to 0x180077f2a (218 bytes)
//
// 3 xrefs:
// > sub_180076390 @ 0x18007646c
// > sub_1800767F0 @ 0x1800768ca
// > ??> @ 0x1801f9c24
//
// 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
//
__int64 __fastcall sub_180077E50(float *a1, __int64 a2, float a3, float a4)
{
__m128 v6; // xmm0
float v8; // xmm3_4
float v9; // xmm2_4
float v10; // xmm5_4
float v11; // xmm2_4
v6 = 0;
*(double *)v6.m128_u64 = _libm_sse2_sincosf_();
v8 = _mm_shuffle_ps(v6, v6, 1).m128_f32[0] * -2.0;
a1[272] = v8;
a1[269] = v8;
v9 = v6.m128_f32[0] * (float)(0.5 / (float)(1.0 / a3));
v10 = v9 / a4;
v11 = v9 * a4;
a1[273] = 1.0 - v11;
a1[271] = v11 + 1.0;
a1[268] = v10 + 1.0;
a1[270] = 1.0 - v10;
return 0;
}