//
// sub_75360 from 0x75360 to 0x75568 (520 bytes)
//
// 3 xrefs:
// > sub_75568 @ 0x75898
// > sub_7B7A8 @ 0x7b808
// > sub_BA08C @ 0xba1d0
//
// 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_75360(int *a1, int a2, float *a3, long double a4, float a5, float a6, float a7, float a8)
{
float v15; // s0
float v16; // s12
long double v17; // q0
__int64 v18; // x0
int v19; // w1
float *v20; // x2
int v21; // w3
float v22; // s0
__int64 v23; // x0
int *v24; // x0
char v25; // w1
int v26; // w2
float v27; // s0
float v28; // s1
long double v29; // q2
float v30; // s3
float v31; // s4
long double v32; // q0
__int64 v33; // x0
int v34; // w1
float *v35; // x2
int v36; // w3
float *v37; // x4
float v38; // s0
int *v39; // x0
char v40; // w1
int v41; // w2
__int64 v42; // x3
float v43; // s0
float v44; // s1
long double v45; // q2
float v46; // s3
float v47; // s4
__int64 v48; // x9
__int64 v49; // x8
float v50; // s0
__int64 v51; // x11
float *v52; // x11
float v53; // s2
unsigned int v54; // w8
float *v55; // x8
float v56; // s0
float v57; // s1
float v58; // s0
__int64 v60; // [xsp+0h] [xbp-E0h] BYREF
if ( a1[1] || a1[42] )
{
v15 = sub_73984(a6 - *(float *)&a4, -180.0, 180.0);
v16 = v15;
if ( v15 >= 0.0 )
{
v24 = (int *)sub_75E94(v15 + -90.0);
v23 = sub_75330(v24, v25, v26, (__int64)a3, v27, v28, v29, v30, v31);
}
else
{
((void (*)(void))sub_75EBC)();
sub_75D64((float)(v16 * 0.5) + -90.0, v16 + 180.0);
*(__n128 *)&v17 = sub_75D64((float)(v16 * 0.5) + 180.0, -v16);
v18 = sub_75F68((unsigned int)*a1, v17);
v23 = sub_739D8(v18, v19, v20, v21, a3, v22);
}
if ( v16 <= 0.0 )
{
v39 = (int *)sub_75E94(v16 + 90.0);
sub_75330(v39, v40, v41, v42, v43, v44, v45, v46, v47);
}
else
{
sub_75EBC(v23);
sub_75D64((float)(v16 * 0.5) + 90.0, 180.0 - v16);
sub_75330(a1, 0, 1, (__int64)&v60, (float)(v16 * 0.5) + -180.0, v16, a4, a5, a8);
v33 = sub_75F68((unsigned int)*a1, v32);
sub_739D8(v33, v34, v35, v36, v37, v38);
}
}
else
{
v48 = a1[39];
v49 = 0;
v50 = a8 * 0.70711;
while ( v49 < v48 )
{
v51 = *(int *)(*((_QWORD *)a1 + 20) + 4 * v49++);
v52 = &a3[v51 * a2];
v53 = v52[1] + v50;
*v52 = *v52 + v50;
v52[1] = v53;
}
}
v54 = a1[38];
if ( v54 != -1 )
{
v55 = &a3[v54 * a2];
v56 = (float)(a8 * 0.70711) * a7;
v57 = *v55 + v56;
v58 = v55[1] + v56;
*v55 = v57;
v55[1] = v58;
}
return 0;
}