//
// sub_100452010 from 0x100452010 to 0x1004525a8 (1432 bytes)
//
// 1 xrefs:
// > ??> @ 0x100858978
//
// 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
//
int32x2_t __fastcall sub_100452010(
__int64 a1,
const float *a2,
int a3,
int a4,
int a5,
__int64 a6,
__int64 a7,
__int64 a8,
float32_t a9,
float a10,
float32x2_t a11,
__int64 a12)
{
float32x4_t *v12; // x8
float32x4_t v13; // q7
float32x4_t *v14; // x9
float32x4_t v15; // q16
float32x4_t *v16; // x11
float32x4_t v17; // q17
float32x4_t *v18; // x12
float32x4_t v19; // q18
float32x4_t *v20; // x13
float32x4_t v21; // q19
float32x4_t *v22; // x14
float32x4_t v23; // q20
float32x4_t *v24; // x15
float32x4_t v25; // q5
float32x4_t *v26; // x16
float32x4_t v27; // q6
float32x4_t v28; // q4
__int64 v29; // x19
__int128 v30; // q21
__int128 v31; // q22
__int128 v32; // q31
__int128 v33; // q25
__int128 v34; // q24
__int128 v35; // q26
__int128 v36; // q27
__int128 v37; // q30
__int128 v38; // q29
__int128 v39; // q28
int32x4_t v40; // q13
int32x4_t v41; // q23
float32x4_t v42; // q8
float32x4_t v43; // q12
__int128 v44; // q13
float32x4_t v45; // q21
int32x4_t v46; // q23
__int128 v47; // q14
int32x4_t v48; // q22
__int64 *v49; // x6
int32x4_t v50; // q8
int32x4_t v51; // q9
float32x4_t v52; // q10
float32x4_t v53; // q8
float32x4_t v54; // q9
float32x4_t v55; // q8
float32x4_t v56; // q25
int32x4_t v57; // q24
int32x4_t v58; // q26
int32x4_t v59; // q31
int32x4_t v60; // q9
float32x4_t v61; // q8
float32x4_t v62; // q31
float32x4_t v63; // q27
int32x4_t v64; // q30
int32x4_t v65; // q29
int32x4_t v66; // q9
int32x4_t v67; // q8
float32x4_t v68; // q31
int8x16_t v69; // q15
float32x4_t v70; // q10
int32x4_t v71; // q11
float32x4_t v72; // q9
float32x4_t v73; // q8
int32x4_t v74; // q12
float32x4_t v75; // q31
float32x4_t v76; // q28
__int64 v77; // x21
__int64 v78; // x22
const float *v79; // x1
__int64 v80; // x23
float32x4_t v81; // q14
int32x4_t v82; // q0
int32x4_t v83; // q2
float32x4_t v84; // q3
float32x4_t v85; // q13
float32x4_t v86; // q0
float32x4_t v87; // q2
float32x4_t v88; // q0
int32x4_t v89; // q2
int32x4_t v90; // q3
float32x4_t v91; // q0
float32x4_t v92; // q2
int32x4_t v93; // q0
int32x4_t v94; // q3
float32x4_t v95; // q2
float32x4_t v96; // q0
int32x4_t v97; // q2
int32x4_t v98; // q3
float32x4_t v99; // q0
int8x16_t v100; // q13
float32x2_t v101; // d1
int32x4_t v102; // q0
float32x4_t v103; // q16
float32x4_t v104; // q17
float32x4_t v105; // q0
float32x4_t v106; // q7
float32x4_t v107; // q5
int32x4_t v108; // q5
float32x4_t v109; // q17
float32x4_t v110; // q5
float32x4_t v111; // q7
int32x4_t v112; // q7
float32x4_t v113; // q6
float32x4_t v114; // q3
int32x4_t v115; // q3
float32x4_t v116; // q7
float32x2_t v117; // d2
int32x2_t result; // d0
__int32 v120; // [xsp+10h] [xbp-A0h]
float32x2_t v121; // [xsp+20h] [xbp-90h]
v12 = *(float32x4_t **)(a6 + 8);
v13 = *v12;
v14 = *(float32x4_t **)(a8 + 8);
v15 = *v14;
v16 = *(float32x4_t **)(a12 + 8);
v17 = *v16;
v18 = *(float32x4_t **)(a6 + 1032);
v19 = *v18;
v20 = *(float32x4_t **)(a8 + 1032);
v21 = *v20;
v22 = *(float32x4_t **)(a12 + 1032);
v23 = *v22;
v24 = *(float32x4_t **)(a7 + 8);
v25 = *v24;
v26 = *(float32x4_t **)(a7 + 1032);
v27.i32[0] = v24[1].i32[0];
v28.i32[0] = v26[1].i32[0];
v27.i32[1] = v12[1].i32[0];
v27.i32[2] = v14[1].i32[0];
v27.i32[3] = v16[1].i32[0];
v28.i32[1] = v18[1].i32[0];
v28.i32[2] = v20[1].i32[0];
v28.i32[3] = v22[1].i32[0];
v29 = 16LL * a5;
v30 = *(_OWORD *)(a6 + v29);
v31 = *(_OWORD *)(a8 + v29);
v32 = *(_OWORD *)(a12 + v29);
v33 = *(_OWORD *)(a6 + v29 + 512);
v34 = *(_OWORD *)(a8 + v29 + 512);
v35 = *(_OWORD *)(a12 + v29 + 512);
v36 = *(_OWORD *)(a6 + v29 + 1024);
v37 = *(_OWORD *)(a8 + v29 + 1024);
v38 = *(_OWORD *)(a12 + v29 + 1024);
v39 = *(_OWORD *)(a6 + v29 + 1536);
v40 = (int32x4_t)vpaddq_f32((float32x4_t)0, vmulq_f32(*v12, (float32x4_t)vdupq_lane_s64(v30, 0)));
v41 = (int32x4_t)vpaddq_f32(
vmulq_f32(*v14, (float32x4_t)vdupq_lane_s64(v31, 0)),
vmulq_f32(*v16, (float32x4_t)vdupq_lane_s64(v32, 0)));
v42 = vaddq_f32(vld1q_dup_f32(a2), (float32x4_t)vuzp1q_s32(v40, v41));
v43 = vaddq_f32((float32x4_t)vuzp2q_s32(v40, v41), vmulq_f32(v42, v27));
v44 = *(_OWORD *)(a8 + v29 + 1536);
v45 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v42.f32, 1), vdupq_lane_s32(*(int32x2_t *)&v30, 0));
v46 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v42, 2), vdupq_lane_s32(*(int32x2_t *)&v31, 0));
v47 = *(_OWORD *)(a12 + v29 + 1536);
v48 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v42, 3), vdupq_lane_s32(*(int32x2_t *)&v32, 0));
v49 = (__int64 *)(a7 + v29);
v50 = (int32x4_t)vpaddq_f32((float32x4_t)0, vmulq_f32(*v12, (float32x4_t)vdupq_lane_s64(v33, 0)));
v51 = (int32x4_t)vpaddq_f32(
vmulq_f32(*v14, (float32x4_t)vdupq_lane_s64(v34, 0)),
vmulq_f32(*v16, (float32x4_t)vdupq_lane_s64(v35, 0)));
v52 = (float32x4_t)vuzp1q_s32(v50, v51);
v53 = (float32x4_t)vuzp2q_s32(v50, v51);
v54 = vaddq_f32(v52, v43);
v55 = vaddq_f32(v53, vmulq_f32(v54, v27));
v56 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v54.f32, 1), vdupq_lane_s32(*(int32x2_t *)&v33, 0));
v57 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v54, 2), vdupq_lane_s32(*(int32x2_t *)&v34, 0));
v58 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v54, 3), vdupq_lane_s32(*(int32x2_t *)&v35, 0));
v59 = (int32x4_t)vpaddq_f32((float32x4_t)0, vmulq_f32(*v18, (float32x4_t)vdupq_lane_s64(v36, 0)));
v60 = (int32x4_t)vpaddq_f32(
vmulq_f32(*v20, (float32x4_t)vdupq_lane_s64(v37, 0)),
vmulq_f32(*v22, (float32x4_t)vdupq_lane_s64(v38, 0)));
v61 = vaddq_f32((float32x4_t)vuzp1q_s32(v59, v60), v55);
v62 = vaddq_f32((float32x4_t)vuzp2q_s32(v59, v60), vmulq_f32(v61, v28));
v63 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v61.f32, 1), vdupq_lane_s32(*(int32x2_t *)&v36, 0));
v64 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v61, 2), vdupq_lane_s32(*(int32x2_t *)&v37, 0));
v65 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v61, 3), vdupq_lane_s32(*(int32x2_t *)&v38, 0));
v66 = (int32x4_t)vpaddq_f32((float32x4_t)0, vmulq_f32(*v18, (float32x4_t)vdupq_lane_s64(v39, 0)));
v67 = (int32x4_t)vpaddq_f32(
vmulq_f32(*v20, (float32x4_t)vdupq_lane_s64(v44, 0)),
vmulq_f32(*v22, (float32x4_t)vdupq_lane_s64(v47, 0)));
v68 = vaddq_f32((float32x4_t)vuzp1q_s32(v66, v67), v62);
v69 = (int8x16_t)vaddq_f32((float32x4_t)vuzp2q_s32(v66, v67), vmulq_f32(v68, v28));
v70 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v68.f32, 1), vdupq_lane_s32(*(int32x2_t *)&v39, 0));
v71 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v68, 2), vdupq_lane_s32(*(int32x2_t *)&v44, 0));
v72 = (float32x4_t)vdupq_lane_s64(*v49, 0);
v73 = (float32x4_t)vdupq_lane_s64(v49[64], 0);
v74 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v68, 3), vdupq_lane_s32(*(int32x2_t *)&v47, 0));
v75 = (float32x4_t)vdupq_lane_s64(v49[128], 0);
v76 = (float32x4_t)vdupq_lane_s64(v49[192], 0);
v120 = a11.i32[0];
if ( a3 < 2 )
{
v100 = v69;
v81 = *v26;
}
else
{
v77 = 0;
a11.f32[1] = a9;
v121 = a11;
v78 = a4;
v79 = &a2[v78];
v80 = (unsigned int)a3 - 1LL;
v81 = *v26;
do
{
v82 = (int32x4_t)vpaddq_f32(vmulq_f32(v25, v72), vmulq_f32(v13, v45));
v83 = (int32x4_t)vpaddq_f32(vmulq_f32(v15, (float32x4_t)v46), vmulq_f32(v17, (float32x4_t)v48));
v84 = (float32x4_t)vuzp1q_s32(v82, v83);
v85 = vld1q_dup_f32((const float *)((char *)v79 + v77));
v86 = (float32x4_t)vuzp2q_s32(v82, v83);
v85.i32[0] = v69.i32[2];
v87 = vaddq_f32(v84, v85);
v88 = vaddq_f32(v86, vmulq_f32(v87, v27));
v72 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v87.f32, 0), vdupq_lane_s32(*(int32x2_t *)v72.f32, 0));
v45 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v87.f32, 1), vdupq_lane_s32(*(int32x2_t *)v45.f32, 0));
v46 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v87, 2), vdupq_laneq_s32(v46, 2));
v48 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v87, 3), vdupq_laneq_s32(v48, 2));
v89 = (int32x4_t)vpaddq_f32(vmulq_f32(v25, v73), vmulq_f32(v13, v56));
v90 = (int32x4_t)vpaddq_f32(vmulq_f32(v15, (float32x4_t)v57), vmulq_f32(v17, (float32x4_t)v58));
v91 = vaddq_f32((float32x4_t)vuzp1q_s32(v89, v90), v88);
v92 = vaddq_f32((float32x4_t)vuzp2q_s32(v89, v90), vmulq_f32(v91, v27));
v73 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v91.f32, 0), vdupq_lane_s32(*(int32x2_t *)v73.f32, 0));
v56 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v91.f32, 1), vdupq_lane_s32(*(int32x2_t *)v56.f32, 0));
v57 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v91, 2), vdupq_laneq_s32(v57, 2));
v58 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v91, 3), vdupq_laneq_s32(v58, 2));
v93 = (int32x4_t)vpaddq_f32(vmulq_f32(v81, v75), vmulq_f32(v19, v63));
v94 = (int32x4_t)vpaddq_f32(vmulq_f32(v21, (float32x4_t)v64), vmulq_f32(v23, (float32x4_t)v65));
v95 = vaddq_f32((float32x4_t)vuzp1q_s32(v93, v94), v92);
v96 = vaddq_f32((float32x4_t)vuzp2q_s32(v93, v94), vmulq_f32(v95, v28));
v75 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v95.f32, 0), vdupq_lane_s32(*(int32x2_t *)v75.f32, 0));
v63 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v95.f32, 1), vdupq_lane_s32(*(int32x2_t *)v63.f32, 0));
v64 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v95, 2), vdupq_laneq_s32(v64, 2));
v65 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v95, 3), vdupq_laneq_s32(v65, 2));
v97 = (int32x4_t)vpaddq_f32(vmulq_f32(v81, v76), vmulq_f32(v19, v70));
v98 = (int32x4_t)vpaddq_f32(vmulq_f32(v21, (float32x4_t)v71), vmulq_f32(v23, (float32x4_t)v74));
v99 = vaddq_f32((float32x4_t)vuzp1q_s32(v97, v98), v96);
v100 = (int8x16_t)vaddq_f32((float32x4_t)vuzp2q_s32(v97, v98), vmulq_f32(v99, v28));
v76 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v99.f32, 0), vdupq_lane_s32(*(int32x2_t *)v76.f32, 0));
v70 = (float32x4_t)vzip1q_s32(vdupq_lane_s32(*(int32x2_t *)v99.f32, 1), vdupq_lane_s32(*(int32x2_t *)v70.f32, 0));
v71 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v99, 2), vdupq_laneq_s32(v71, 2));
v74 = vzip1q_s32(vdupq_laneq_s32((int32x4_t)v99, 3), vdupq_laneq_s32(v74, 2));
v69.i32[0] = vextq_s8(v69, v69, 8u).i32[1];
v101 = vmul_f32(*(float32x2_t *)v69.i8, v121);
*(float *)(a1 + v77) = v101.f32[0] + (float)(v101.f32[1] + vmuls_n_f32(a10, *(float *)v100.i32));
v77 += v78 * 4;
v69 = v100;
--v80;
}
while ( v80 );
}
v102 = (int32x4_t)vpaddq_f32(vmulq_f32(v25, v72), (float32x4_t)0);
v103 = (float32x4_t)vdupq_lane_s32(*(int32x2_t *)v100.i8, 0);
v103.i32[0] = v100.i32[2];
v104 = (float32x4_t)vuzp2q_s32(v102, v102);
v105 = vaddq_f32(v103, (float32x4_t)vuzp1q_s32(v102, v102));
v106 = vaddq_f32(v104, vmulq_f32(v105, v27));
v107 = vmulq_f32(v25, v73);
v108 = (int32x4_t)vpaddq_f32(v107, v107);
v109 = (float32x4_t)vuzp2q_s32(v108, v108);
v110 = vaddq_f32((float32x4_t)vuzp1q_s32(v108, v108), v106);
v111 = vmulq_f32(v81, v75);
v112 = (int32x4_t)vpaddq_f32(v111, v111);
v113 = vaddq_f32((float32x4_t)vuzp1q_s32(v112, v112), vaddq_f32(v109, vmulq_f32(v110, v27)));
v114 = vmulq_f32(v81, v76);
v115 = (int32x4_t)vpaddq_f32(v114, v114);
v116 = vaddq_f32(
(float32x4_t)vuzp1q_s32(v115, v115),
vaddq_f32((float32x4_t)vuzp2q_s32(v112, v112), vmulq_f32(v113, v28)));
v100.i32[0] = vextq_s8(v100, v100, 8u).i32[1];
v117 = vmul_f32(*(float32x2_t *)v100.i8, (float32x2_t)__PAIR64__(LODWORD(a9), v120));
*(float *)(a1 + 4LL * (a3 - 1) * a4) = v117.f32[0]
+ (float)(v117.f32[1]
+ vmuls_n_f32(
a10,
vaddq_f32(
(float32x4_t)vdupq_lane_s32(*(int32x2_t *)v115.i8, 1),
vmulq_f32(v116, v28)).f32[0]));
*(_QWORD *)(a6 + 16LL * a5) = v45.i64[0];
*(_QWORD *)(a8 + 16LL * a5) = v46.i64[0];
*(_QWORD *)(a12 + 16LL * a5) = v48.i64[0];
*(_QWORD *)(a6 + v29 + 512) = v56.i64[0];
*(_QWORD *)(a8 + v29 + 512) = v57.i64[0];
*(_QWORD *)(a12 + v29 + 512) = v58.i64[0];
*(_QWORD *)(a6 + v29 + 1024) = v63.i64[0];
*(_QWORD *)(a8 + v29 + 1024) = v64.i64[0];
*(_QWORD *)(a12 + v29 + 1024) = v65.i64[0];
*(_QWORD *)(a6 + v29 + 1536) = v70.i64[0];
*(_QWORD *)(a8 + v29 + 1536) = v71.i64[0];
*(_QWORD *)(a12 + v29 + 1536) = v74.i64[0];
*(int32x2_t *)v49 = vzip1_s32(*(int32x2_t *)v105.f32, *(int32x2_t *)v72.f32);
*((int32x2_t *)v49 + 64) = vzip1_s32(*(int32x2_t *)v110.f32, *(int32x2_t *)v73.f32);
*((int32x2_t *)v49 + 128) = vzip1_s32(*(int32x2_t *)v113.f32, *(int32x2_t *)v75.f32);
result = vzip1_s32(*(int32x2_t *)v116.f32, *(int32x2_t *)v76.f32);
v49[192] = (__int64)result;
return result;
}