// // sub_D90FA from 0xd90fa to 0xd93b4 (698 bytes) // // 1 xrefs: // > sub_D96D4 @ 0xd971c // // 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_D90FA(int8x16_t *a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9) { int v10; // r5 int8x16_t *v11; // r10 int v12; // r8 int v13; // r6 int8x16_t *v14; // r4 int8x16_t v15; // q8 int8x16_t v16; // q9 int v17; // lr int v18; // r8 int v19; // r6 int v20; // r4 int v21; // r3 char *v22; // r2 int v23; // r0 int v24; // r3 int v25; // lr int v26; // r6 int v27; // r8 int v28; // r12 float32x4_t *v29; // r10 int8x16_t v30; // q8 float32x4_t v31; // q8 float32x4_t *v32; // r5 float32x4_t *v33; // r5 int8x16_t v34; // q8 float *v35; // r6 int v36; // r0 int v37; // r10 float *v38; // r1 float32x4_t *v39; // r5 int v40; // r9 int v41; // lr float *v42; // r11 _OWORD *v43; // r3 int v44; // r2 float v45; // s4 float v46; // s0 float v47; // s2 unsigned int v48; // r2 int v49; // r1 float32x4_t *v50; // r0 float32x4_t *v51; // r4 int8x16_t v52; // q10 int8x16_t v53; // q12 float32x4_t v54; // q9 int8x16_t v55; // q11 float32x4_t v56; // q8 int32x4_t v57; // q11 int8x16_t v58; // q11 float *v59; // r12 int v60; // lr float *v61; // r1 float *v62; // r8 int v63; // r3 int v64; // r6 float *v65; // r2 float v66; // s0 float *v67; // r4 float v68; // s2 float v69; // s0 float v70; // s2 int v71; // r0 float32x4_t *v72; // r4 int8x16_t *v73; // r4 int8x16_t v74; // q8 int8x16_t v75; // q9 int i; // r0 float v77; // s0 __int64 v79; // [sp+0h] [bp-2Ch] int v80; // [sp+Ch] [bp-20h] float32x4_t v81; // 0:q8.16 float32x4_t v82; // 0:q8.16 float32x4_t v83; // 0:q9.16 float32x4_t v84; // 0:q9.16 float32x4_t v85; // 0:q9.16 float32x4_t v86; // 0:q10.16 float32x4_t v87; // 0:q11.16 float32x4_t v88; // 0:q11.16 float32x4_t v89; // 0:q12.16 v10 = 0; v11 = a1; v12 = a6 >> 3; while ( v12 ) { v13 = a4 + v10; v10 -= 32; --v12; v14 = v11 + 1; v15 = vrev64q_s32(*(int32x4_t *)(v13 - 32)); v16 = vrev64q_s32(*(int32x4_t *)(v13 - 16)); *v11 = vextq_s8(v16, v16, 8u); v11 += 2; *v14 = vextq_s8(v15, v15, 8u); } v17 = a4 + v10; v18 = -v10; v19 = a6 & 7; while ( v19 ) { v20 = a4 + v10; v10 -= 4; --v19; v17 -= 4; *(unsigned __int32 *)((char *)a1->n128_u32 + v18) = *(_DWORD *)(v20 - 4); v18 += 4; } v21 = a4 + v10; v22 = (char *)a1 - v10; HIDWORD(v79) = a2 - 4; LODWORD(v79) = a5 - 4; v23 = v21 - 16; v80 = v21; v24 = v21 - 32; v25 = a2 - 16; v26 = a7 >> 3; v27 = 0; v28 = 0; while ( v26 ) { --v26; v29 = (float32x4_t *)(a3 + v27 + 16); v30 = vrev64q_s32(vmulq_f32(*(float32x4_t *)(v25 + v28), *(float32x4_t *)(v23 + v28))); v31 = vmlaq_f32(vextq_s8(v30, v30, 8u), *(float32x4_t *)(a3 + v27), *(float32x4_t *)(a5 + v27)); v86 = *(float32x4_t *)(a5 + v27 + 16); v87 = *(float32x4_t *)(a2 - 32 + v28); v32 = (float32x4_t *)(v24 + v28); v28 -= 32; v89 = *v32; v33 = (float32x4_t *)&v22[v27]; v27 += 32; v83 = *v29; *v33 = v31; v34 = vrev64q_s32(vmulq_f32(v87, v89)); v33[1] = vmlaq_f32(vextq_s8(v34, v34, 8u), v83, v86); } v35 = (float *)&v22[v27]; v36 = a2 + v28; v37 = v79 - v28; v38 = (float *)(a5 - v28); v39 = (float32x4_t *)(v25 + v28); v40 = HIDWORD(v79) + v28; v41 = v80 + v28; v42 = (float *)(a3 - v28); v43 = (_OWORD *)(a5 - 16 - v28); v44 = a7 & 7; while ( v44 ) { v39 = (float32x4_t *)((char *)v39 - 4); v43 = (_OWORD *)((char *)v43 + 4); v45 = *v42; v40 -= 4; v46 = *(float *)(v41 - 4) * *(float *)(v36 - 4); v47 = *v38; v37 += 4; --v44; ++v38; ++v42; v41 -= 4; v36 -= 4; *v35++ = v46 + (float)(v45 * v47); } v48 = 0; v49 = a8 >> 3; while ( 1 ) { v50 = (float32x4_t *)&v35[v48 / 4]; if ( !v49 ) break; --v49; v81 = *(float32x4_t *)(v41 + v48); v84 = *(float32x4_t *)(v41 + v48 + 16); v51 = (float32x4_t *)&v42[v48 / 4]; v48 += 32; v52 = vrev64q_s32(v39[-1]); v53 = vrev64q_s32((int32x4_t)*(v43 - 1)); v54 = vmlsq_f32(vmulq_f32(vextq_s8(v52, v52, 8u), v84), v51[1], vextq_s8(v53, v53, 8u)); v88 = *v39; v39 -= 2; v55 = vrev64q_s32(v88); v56 = vmulq_f32(vextq_s8(v55, v55, 8u), v81); v57 = *(int32x4_t *)v43; v43 -= 2; v58 = vrev64q_s32(v57); *v50 = vmlsq_f32(v56, vextq_s8(v58, v58, 8u), *v51); v50[1] = v54; } v59 = &v42[v48 / 4]; v60 = v41 + v48; v61 = (float *)(v37 - v48); v62 = (float *)(v40 - v48); v63 = 0; v64 = a8 & 7; while ( 1 ) { v65 = (float *)((char *)v50 + v63 * 4); if ( !v64 ) break; v66 = *v62; v67 = &v59[v63]; --v62; v68 = *(float *)(v60 + v63 * 4); ++v63; --v64; v69 = v68 * v66; v70 = *v61--; *v65 = v69 - (float)(*v67 * v70); } v71 = a9 >> 3; while ( v71 ) { --v71; v82 = *(float32x4_t *)(v61 - 7); v72 = (float32x4_t *)(v61 - 3); v61 -= 8; v85 = *v72; v73 = (int8x16_t *)(v65 + 4); v74 = vrev64q_s32(vnegq_f32(v82)); v75 = vrev64q_s32(vnegq_f32(v85)); *(int8x16_t *)v65 = vextq_s8(v75, v75, 8u); v65 += 8; *v73 = vextq_s8(v74, v74, 8u); } for ( i = a9 & 7; i; --i ) { v77 = *v61--; *v65++ = -v77; } return v79; }
GD Web Decomp Icon

GD Web Decomp

Raw Source