//
// sub_D93B4 from 0xd93b4 to 0xd96d4 (800 bytes)
//
// 1 xrefs:
// > sub_D96D4 @ 0xd9742
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:42:05 +0000
//
int32x4x2_t *__fastcall sub_D93B4(
int32x4x2_t *result,
int a2,
int a3,
int32x4_t *a4,
int32x4_t *a5,
int a6,
int a7,
int a8,
int a9,
int a10,
int a11)
{
int v12; // r5
int8x16_t v13; // q8
int8x16_t v14; // q9
int v15; // r4
unsigned __int32 v16; // t1
unsigned __int32 v17; // t1
int v18; // r11
unsigned int v19; // r12
int v20; // r5
int8x16_t v21; // q8
float32x4_t *v22; // r4
int32x4_t v23; // q8
float32x4_t *v24; // r4
int8x16_t v25; // q9
float *v26; // r5
int32x4_t *v27; // r8
int32x4_t *v28; // r11
float *v29; // r4
int v30; // r1
float *v31; // r6
int v32; // r2
int v33; // r12
int v34; // r3
float v35; // s0
float v36; // s2
float v37; // s0
float v38; // s2
float v39; // s4
float v40; // s0
float v41; // s2
float *v42; // r3
int v43; // r10
int v44; // r9
unsigned int v45; // r2
int8x16_t v46; // q9
float32x4_t *v47; // r4
float32x4_t v48; // q9
int8x16_t v49; // q11
int32x4_t v50; // q8
float32x4_t v51; // q9
int32x4_t *v52; // r4
int8x16_t v53; // q11
int32x4_t *v54; // r9
unsigned int v55; // r2
float *v56; // r11
int v57; // r6
int v58; // r4
float *v59; // r12
float *v60; // r5
float *v61; // r1
int v62; // lr
float v63; // s0
float v64; // s2
float *v65; // r5
int v66; // r1
int v67; // r2
int v68; // r3
float32x4_t *v69; // r5
float32x4_t *v70; // r5
int32x4_t *v71; // r5
int8x16_t v72; // q8
int8x16_t v73; // q9
int v74; // r3
int v75; // r4
float v76; // s0
float *v77; // r5
int v78; // [sp+4h] [bp-30h]
int v79; // [sp+8h] [bp-2Ch]
float *v80; // [sp+Ch] [bp-28h]
int32x4_t *v81; // [sp+Ch] [bp-28h]
float *v82; // [sp+10h] [bp-24h]
int v83; // [sp+14h] [bp-20h]
float32x4_t v84; // 0:q8.16
float32x4_t v85; // 0:q8.16
float32x4_t v86; // 0:q9.16
float32x4_t v87; // 0:q9.16
float32x4_t v88; // 0:q10.16
float32x4_t v89; // 0:q10.16
float32x4_t v90; // 0:q11.16
int32x4x2_t v91; // 0:q9.16,16:q8.16
v12 = a8 >> 2;
while ( v12 )
{
--a5;
--a4;
--v12;
v13 = vrev64q_s32(*a5);
v14 = vrev64q_s32(*a4);
*result++ = vzipq_s32(vextq_s8(v14, v14, 8u), vextq_s8(v13, v13, 8u));
}
v15 = a8 & 3;
while ( v15 )
{
v16 = a4[-1].n128_u32[3];
a4 = (int32x4_t *)((char *)a4 - 4);
--v15;
result->val[0].n128_u32[0] = v16;
v17 = a5[-1].n128_u32[3];
a5 = (int32x4_t *)((char *)a5 - 4);
result->val[0].n128_u32[1] = v17;
result = (int32x4x2_t *)((char *)result + 8);
}
v18 = a9 >> 2;
v19 = 0;
v20 = -1;
while ( v18 )
{
--v18;
v86 = *(float32x4_t *)(a2 + v20 * 16);
v21 = vrev64q_s32(vmulq_f32(v86, a5[v20]));
v90 = *(float32x4_t *)(a3 + v19);
v22 = &a4[v20--];
v23 = vmlaq_f32(vextq_s8(v21, v21, 8u), v90, *(float32x4_t *)(a7 + v19));
v88 = *v22;
v24 = (float32x4_t *)(a6 + v19);
v19 += 16;
v25 = vrev64q_s32(vmulq_f32(v86, v88));
*result++ = vzipq_s32(vmlaq_f32(vextq_s8(v25, v25, 8u), v90, *v24), v23);
}
v26 = (float *)(a3 + v19);
v27 = &a4[v19 / 0xFFFFFFF0];
v28 = &a5[v19 / 0xFFFFFFF0];
v29 = (float *)(a7 + v19);
v30 = a2 - v19;
v31 = (float *)(a6 + v19);
v32 = a7 - 4 + v19;
v33 = v19 + a6 - 4;
v34 = a9 & 3;
while ( v34 )
{
v33 += 4;
v32 += 4;
--v34;
v35 = v27[-1].n128_f32[3] * *(float *)(v30 - 4);
v36 = *v31++;
v27 = (int32x4_t *)((char *)v27 - 4);
result->val[0].n128_f32[0] = v35 + (float)(*v26 * v36);
v37 = *(float *)(v30 - 4);
v30 -= 4;
v38 = v28[-1].n128_f32[3];
v28 = (int32x4_t *)((char *)v28 - 4);
v39 = *v26++;
v40 = v38 * v37;
v41 = *v29++;
result->val[0].n128_f32[1] = v40 + (float)(v39 * v41);
result = (int32x4x2_t *)((char *)result + 8);
}
v78 = v32;
v80 = v29 - 4;
v42 = v29;
v43 = 0;
v79 = v33;
v44 = a10 >> 2;
v45 = 0;
while ( v44 )
{
v84 = v28[v45 / 0x10];
v33 -= 16;
--v44;
v89 = *(float32x4_t *)&v26[v45 / 4];
v46 = vrev64q_s32(*(int32x4_t *)(v30 - 16 + v43 * 4));
v47 = &v27[v45 / 0x10];
v45 += 16;
v48 = vextq_s8(v46, v46, 8u);
v49 = vrev64q_s32(*(int32x4_t *)&v80[v43]);
v50 = vmlsq_f32(vmulq_f32(v48, v84), vextq_s8(v49, v49, 8u), v89);
v51 = vmulq_f32(v48, *v47);
v52 = (int32x4_t *)&v31[v43 - 4];
v43 -= 4;
v53 = vrev64q_s32(*v52);
*result++ = vzipq_s32(vmlsq_f32(v51, vextq_s8(v53, v53, 8u), v89), v50);
}
v83 = v30 + v43 * 4;
v82 = &v26[v45 / 4];
v81 = &v27[v45 / 0x10];
v54 = &v28[v45 / 0x10];
v55 = 0;
v56 = &v31[v43];
v57 = 0;
v58 = a10 & 3;
while ( v58 )
{
v59 = (float *)((char *)v54 + v57 * 4);
--v58;
v60 = (float *)((char *)v81 + v57 * 4);
v61 = &v82[v57++];
v62 = v83 + v55;
v63 = *v60 * *(float *)(v83 + v55 - 4);
v64 = v56[v55 / 4 - 1];
v65 = &v42[v43 + v55 / 4];
v55 -= 4;
result->val[0].n128_f32[0] = v63 - (float)(*v61 * v64);
result->val[0].n128_f32[1] = (float)(*v59 * *(float *)(v62 - 4)) - (float)(*v61 * *(v65 - 1));
result = (int32x4x2_t *)((char *)result + 8);
}
v66 = v78 + v43 * 4 + v55;
v67 = v55 + v79 + v43 * 4;
v68 = a11 >> 2;
while ( v68 )
{
v69 = (float32x4_t *)(v66 - 12);
v66 -= 16;
v85 = *v69;
v70 = (float32x4_t *)(v67 - 12);
v67 -= 16;
v87 = *v70;
v71 = &result->val[1];
--v68;
v72 = vrev64q_s32(vnegq_f32(v85));
v73 = vrev64q_s32(vnegq_f32(v87));
v91 = vzipq_s32(vextq_s8(v73, v73, 8u), vextq_s8(v72, v72, 8u));
result->val[0] = v91.val[0];
++result;
*v71 = v91.val[1];
}
v74 = a11 & 3;
v75 = 0;
while ( v74 )
{
--v74;
v76 = *(float *)(v67 + v75);
v77 = (float *)(v66 + v75);
v75 -= 4;
result->val[0].n128_f32[0] = -v76;
result->val[0].n128_f32[1] = -*v77;
result = (int32x4x2_t *)((char *)result + 8);
}
return result;
}