// // sub_D3C68 from 0xd3c68 to 0xd426e (1542 bytes) // // 0 xrefs: // // 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 // void __fastcall sub_D3C68(float32x4_t *a1, float32x4_t *a2, int a3, float *a4, int a5, int a6, int a7) { float32x4_t *v7; // r6 int v8; // r8 float32x4_t *v9; // r5 float32x4_t *v10; // r2 int v11; // r1 float v12; // s2 int v13; // r11 float32x4_t *v14; // r1 int v15; // r12 int v16; // lr int v17; // r10 float32x4_t *v18; // r4 float32x4_t *v19; // r9 float32x4_t *v20; // r1 float32x4_t *v21; // r5 float32x4_t *v22; // r6 float32x4_t *v23; // kr00_4 float32x4_t *v24; // r2 float32x4_t *v25; // r6 float32x4_t *v26; // r6 float32x4_t *v27; // r6 float32x4_t *v28; // r2 float32x4_t *v29; // r6 float32x4_t *v30; // r6 float32x4_t *v31; // r2 float32x4_t *v32; // r6 float *v33; // r6 float v34; // s0 float v35; // s0 float32x4_t *v36; // r5 float32x4_t *v37; // r1 float32x4_t *v38; // r12 int v39; // r3 float32x4_t *v40; // lr float32x4_t *v41; // r6 float32x4_t *v42; // r9 float32x4_t *v43; // r10 float32x4_t *v44; // kr08_4 float32x4_t *v45; // r5 float32x4_t *v46; // r1 float32x4_t *v47; // r10 float32x4_t *v48; // r5 float32x4_t *v49; // r1 int v50; // r0 float32x4_t *v51; // r10 float32x4_t *v52; // r5 float32x4_t *v53; // r10 float32x4_t *v54; // r5 float32x4_t *v55; // r1 float32x4_t *v56; // r10 float32x4_t *v57; // r5 float32x4_t *v58; // r10 float32x4_t *v59; // r5 float32x4_t *v60; // r1 float32x4_t *v61; // r10 float32x4_t *v62; // r5 float *v63; // r5 float32x4_t *v64; // r10 float v65; // s0 float v66; // s2 float v67; // s0 float v68; // s2 float32x4_t *v69; // r9 int v70; // r2 float32x4_t *v71; // r12 float32x4_t *v72; // kr1C_4 float32x4_t *v73; // r0 float32x4_t *v74; // r5 float32x4_t *v75; // r5 float32x4_t *v76; // r1 float32x4_t *v77; // r5 float32x4_t *v78; // r5 float32x4_t *v79; // r1 float32x4_t *v80; // r5 float32x4_t *v81; // r5 float32x4_t *v82; // r1 float32x4_t *v83; // r5 float32x4_t *v84; // r6 float32x4_t *v85; // r10 float32x4_t *v86; // r9 float32x4_t *v87; // kr20_4 float32x4_t *v88; // kr24_4 float32x4_t *v89; // kr2C_4 float32x4_t *v90; // r0 float32x4_t *v91; // r6 float32x4_t *v92; // r6 float32x4_t *v93; // r0 float32x4_t *v94; // r6 float32x4_t *v95; // r6 float32x4_t *v96; // r0 float32x4_t *v97; // r6 float32x4_t *v98; // r6 float32x4_t *v99; // r0 float32x4_t v100; // [sp-80h] [bp-C0h] BYREF _BYTE v101[120]; // [sp-70h] [bp-B0h] BYREF int v102; // [sp+8h] [bp-38h] float32x4_t *v103; // [sp+10h] [bp-30h] int v104; // [sp+14h] [bp-2Ch] float32x4_t *v105; // [sp+18h] [bp-28h] float32x4_t *v106; // [sp+1Ch] [bp-24h] float32x4_t v107; // 0:q8.16 float32x4_t v108; // 0:q8.16 float32x4_t v109; // 0:q8.16 float32x4_t v110; // 0:q8.16 float32x4_t v111; // 0:q8.16 float32x4_t v112; // 0:q8.16 float32x4_t v113; // 0:q8.16 float32x4_t v114; // 0:q8.16 float32x4_t v115; // 0:q8.16 float32x4_t v116; // 0:q8.16 float32x4_t v117; // 0:q8.16 float32x4_t v118; // 0:q8.16 float32x4_t v119; // 0:q8.16 float32x4_t v120; // 0:q8.16 float32x4_t v121; // 0:q8.16 float32x4_t v122; // 0:q8.16 float32x4_t v123; // 0:q8.16 float32x4_t v124; // 0:q8.16 float32x4_t v125; // 0:q8.16 float32x4_t v126; // 0:q8.16 float32x4_t v127; // 0:q9.16 float32x4_t v128; // 0:q9.16 float32x4_t v129; // 0:q9.16 float32x4_t v130; // 0:q9.16 float32x4_t v131; // 0:q9.16 float32x4_t v132; // 0:q9.16 float32x4_t v133; // 0:q9.16 float32x4_t v134; // 0:q9.16 float32x4_t v135; // 0:q9.16 float32x4_t v136; // 0:q9.16 float32x4_t v137; // 0:q9.16 float32x4_t v138; // 0:q9.16 float32x4_t v139; // 0:q9.16 float32x4_t v140; // 0:q9.16 float32x4_t v141; // 0:q9.16 float32x4_t v142; // 0:q9.16 float32x4_t v143; // 0:q9.16 float32x4_t v144; // 0:q9.16 float32x4_t v145; // 0:q9.16 float32x4_t v146; // 0:q9.16 float32x4_t v147; // 0:q9.16 float32x4_t v148; // 0:q9.16 float32x4_t v149; // 0:q9.16 float32x4_t v150; // 0:q9.16 float32x4_t v151; // 0:q9.16 float32x4_t v152; // 0:q9.16 float32x4_t v153; // 0:q10.16 float32x4_t v154; // 0:q10.16 float32x4_t v155; // 0:q10.16 float32x4_t v156; // 0:q10.16 float32x4_t v157; // 0:q10.16 float32x4_t v158; // 0:q10.16 v103 = (float32x4_t *)a4; v106 = a1; v8 = a3; switch ( a6 ) { case 8: v102 = a7; sub_D45BE(v106, a2, a3); return; case 6: v102 = a7; sub_D43A4(v106, a2, a3); return; case 2: v102 = a7; sub_D426E(v106, a2, a3); return; } v105 = a2; v9 = &v100; v10 = nullptr; v11 = 1; while ( (int)v10 < a6 ) { v12 = *a4; a4 += 33; v10 = (float32x4_t *)((char *)v10 + 1); v9->n128_f32[0] = v12; v7 = (float32x4_t *)(v12 == 1.0); v11 &= (unsigned int)v7; v9 = (float32x4_t *)((char *)v9 + 4); } if ( a7 ) { if ( v11 << 31 ) { qmemcpy(v105, v106, 4 * a6 * v8); return; } v36 = v105; memset(v105, 0, 4 * a6 * v8); v13 = a6 & 3; v37 = v36; if ( (a6 & 3) != 0 ) goto LABEL_39; LABEL_64: v69 = v106; v70 = 0; v71 = v37; while ( v8 ) { v72 = v7; v7 = (float32x4_t *)((char *)v106 + v70); v73 = (float32x4_t *)((char *)v37 + v70); switch ( a6 >> 2 ) { case 1: v74 = &v100; goto LABEL_81; case 2: v75 = &v100; v76 = (float32x4_t *)((char *)v37 + v70); goto LABEL_80; case 3: v77 = &v100; goto LABEL_79; case 4: v78 = &v100; v79 = (float32x4_t *)((char *)v37 + v70); goto LABEL_78; case 5: v80 = &v100; goto LABEL_77; case 6: v81 = &v100; v82 = (float32x4_t *)((char *)v37 + v70); goto LABEL_76; case 7: v83 = &v100; v84 = v69; v85 = v71; goto LABEL_75; case 8: v117 = *v7; v84 = v7 + 1; v83 = (float32x4_t *)v101; v85 = v73 + 1; *v73 = vmlaq_f32(*v73, v100, v117); LABEL_75: v118 = *v84; v7 = v84 + 1; v82 = v85 + 1; v141 = *v83; v81 = v83 + 1; v73 = v85 + 1; *v85 = vmlaq_f32(*v85, v141, v118); LABEL_76: v119 = *v7++; v142 = *v81; v80 = v81 + 1; v156 = *v73++; *v82 = vmlaq_f32(v156, v142, v119); LABEL_77: v120 = *v7++; v143 = *v80; v78 = v80 + 1; v79 = v73 + 1; *v73 = vmlaq_f32(*v73, v143, v120); ++v73; LABEL_78: v121 = *v7++; v144 = *v78; v77 = v78 + 1; v157 = *v73++; *v79 = vmlaq_f32(v157, v144, v121); LABEL_79: v122 = *v7++; v145 = *v77; v75 = v77 + 1; v76 = v73 + 1; *v73 = vmlaq_f32(*v73, v145, v122); ++v73; LABEL_80: v123 = *v7++; v146 = *v75; v74 = v75 + 1; v158 = *v73++; *v76 = vmlaq_f32(v158, v146, v123); LABEL_81: v37 = v105; *v73 = vmlaq_f32(*v73, *v74, *v7); break; default: v7 = v72; break; } v70 += 4 * a6; --v8; v71 = (float32x4_t *)((char *)v71 + 4 * a6); v69 = (float32x4_t *)((char *)v69 + 4 * a6); } return; } v13 = a6 & 3; if ( !(v11 << 31) ) { v37 = v105; if ( (a6 & 3) != 0 ) { LABEL_39: v38 = v106; v104 = 4 * a6; v103 = (float32x4_t *)v101; v39 = 0; v40 = v37; while ( 1 ) { if ( !v8 ) return; v41 = (float32x4_t *)((char *)v37 + v39); v42 = (float32x4_t *)((char *)v106 + v39); v44 = v37; v43 = &v100; v45 = v38; v46 = v40; switch ( a6 >> 2 ) { case 1: v47 = &v100; v48 = (float32x4_t *)((char *)v106 + v39); v49 = v41; v50 = a6; goto LABEL_55; case 2: v51 = &v100; v52 = (float32x4_t *)((char *)v106 + v39); v50 = a6; goto LABEL_54; case 3: v53 = &v100; v54 = (float32x4_t *)((char *)v106 + v39); v55 = v41; v50 = a6; goto LABEL_53; case 4: v56 = &v100; v57 = (float32x4_t *)((char *)v106 + v39); v50 = a6; goto LABEL_52; case 5: v58 = &v100; v59 = (float32x4_t *)((char *)v106 + v39); v60 = v41; v50 = a6; goto LABEL_51; case 6: v61 = &v100; v62 = (float32x4_t *)((char *)v106 + v39); goto LABEL_50; case 7: goto LABEL_49; case 8: v46 = v41 + 1; v45 = v42 + 1; v43 = v103; *v41 = vmlaq_f32(*v41, v100, *v42); LABEL_49: v110 = *v45; v62 = v45 + 1; v134 = *v43; v61 = v43 + 1; v41 = v46 + 1; *v46 = vmlaq_f32(*v46, v134, v110); LABEL_50: v111 = *v62; v59 = v62 + 1; v135 = *v61; v58 = v61 + 1; v60 = v41 + 1; v50 = a6; *v41 = vmlaq_f32(*v41, v135, v111); ++v41; LABEL_51: v112 = *v59; v57 = v59 + 1; v136 = *v58; v56 = v58 + 1; v153 = *v41++; *v60 = vmlaq_f32(v153, v136, v112); LABEL_52: v113 = *v57; v54 = v57 + 1; v137 = *v56; v53 = v56 + 1; v55 = v41 + 1; *v41 = vmlaq_f32(*v41, v137, v113); ++v41; LABEL_53: v114 = *v54; v52 = v54 + 1; v138 = *v53; v51 = v53 + 1; v154 = *v41++; *v55 = vmlaq_f32(v154, v138, v114); LABEL_54: v115 = *v52; v48 = v52 + 1; v139 = *v51; v47 = v51 + 1; v49 = v41 + 1; *v41 = vmlaq_f32(*v41, v139, v115); ++v41; LABEL_55: v116 = *v48; v63 = (float *)&v48[1]; v140 = *v47; v64 = v47 + 1; v155 = *v41++; *v49 = vmlaq_f32(v155, v140, v116); v37 = v105; break; default: v37 = v44; v64 = &v100; v63 = (float *)((char *)v106 + v39); v50 = a6; break; } if ( v13 != 1 ) { if ( v13 != 2 ) { if ( v13 != 3 ) goto LABEL_62; v65 = *v63++; v66 = v64->n128_f32[0]; v64 = (float32x4_t *)((char *)v64 + 4); v41->n128_f32[0] = v41->n128_f32[0] + (float)(v66 * v65); v41 = (float32x4_t *)((char *)v41 + 4); } v67 = *v63++; v68 = v64->n128_f32[0]; v64 = (float32x4_t *)((char *)v64 + 4); v41->n128_f32[0] = v41->n128_f32[0] + (float)(v68 * v67); v41 = (float32x4_t *)((char *)v41 + 4); } v41->n128_f32[0] = v41->n128_f32[0] + (float)(v64->n128_f32[0] * *v63); LABEL_62: v40 = (float32x4_t *)((char *)v40 + 4 * v50); v38 = (float32x4_t *)((char *)v38 + 4 * v50); --v8; v39 += v104; } } goto LABEL_64; } v14 = v105; v15 = a6 >> 2; v16 = 4 * a6; v17 = 0; v18 = v105; if ( (a6 & 3) != 0 ) { v19 = v106; while ( v8 ) { v20 = (float32x4_t *)((char *)v14 + v17); v21 = (float32x4_t *)((char *)v106 + v17); v23 = v10; v22 = v19; v24 = v18; switch ( v15 ) { case 1: v25 = (float32x4_t *)((char *)v106 + v17); v10 = v20; goto LABEL_32; case 2: v26 = (float32x4_t *)((char *)v106 + v17); goto LABEL_31; case 3: v27 = (float32x4_t *)((char *)v106 + v17); v28 = v20; goto LABEL_30; case 4: v29 = (float32x4_t *)((char *)v106 + v17); goto LABEL_29; case 5: v30 = (float32x4_t *)((char *)v106 + v17); v31 = v20; goto LABEL_28; case 6: v32 = (float32x4_t *)((char *)v106 + v17); goto LABEL_27; case 7: goto LABEL_26; case 8: v24 = v20 + 1; v22 = v21 + 1; *v20 = vaddq_f32(*v21, *v20); LABEL_26: v127 = *v22; v32 = v22 + 1; v20 = v24 + 1; *v24 = vaddq_f32(v127, *v24); LABEL_27: v128 = *v32; v30 = v32 + 1; v31 = v20 + 1; *v20 = vaddq_f32(v128, *v20); ++v20; LABEL_28: v107 = *v20++; v129 = *v30; v29 = v30 + 1; *v31 = vaddq_f32(v129, v107); LABEL_29: v130 = *v29; v27 = v29 + 1; v28 = v20 + 1; *v20 = vaddq_f32(v130, *v20); ++v20; LABEL_30: v108 = *v20++; v131 = *v27; v26 = v27 + 1; *v28 = vaddq_f32(v131, v108); LABEL_31: v132 = *v26; v25 = v26 + 1; v10 = v20 + 1; *v20 = vaddq_f32(v132, *v20); ++v20; LABEL_32: v109 = *v20++; v133 = *v25; v33 = (float *)&v25[1]; *v10 = vaddq_f32(v133, v109); break; default: v10 = v23; v33 = (float *)((char *)v106 + v17); break; } if ( v13 != 1 ) { if ( v13 != 2 ) { v34 = *v33++; v20->n128_f32[0] = v20->n128_f32[0] + v34; v20 = (float32x4_t *)((char *)v20 + 4); } v35 = *v33++; v20->n128_f32[0] = v20->n128_f32[0] + v35; v20 = (float32x4_t *)((char *)v20 + 4); } v20->n128_f32[0] = v20->n128_f32[0] + *v33; v17 += v16; --v8; v14 = v105; v18 = (float32x4_t *)((char *)v18 + 4 * a6); v19 = (float32x4_t *)((char *)v19 + 4 * a6); } } else { v86 = v106; while ( v8 ) { v87 = v10; v88 = v7; v89 = v9; v9 = (float32x4_t *)((char *)v14 + v17); v90 = (float32x4_t *)((char *)v106 + v17); v91 = v86; v10 = v18; switch ( v15 ) { case 1: v7 = (float32x4_t *)((char *)v106 + v17); v14 = v105; goto LABEL_99; case 2: v92 = (float32x4_t *)((char *)v106 + v17); v93 = (float32x4_t *)((char *)v14 + v17); v14 = v105; goto LABEL_98; case 3: v94 = (float32x4_t *)((char *)v106 + v17); v14 = v105; goto LABEL_97; case 4: v95 = (float32x4_t *)((char *)v106 + v17); v96 = (float32x4_t *)((char *)v14 + v17); v14 = v105; goto LABEL_96; case 5: v97 = (float32x4_t *)((char *)v106 + v17); goto LABEL_95; case 6: v98 = (float32x4_t *)((char *)v106 + v17); v99 = (float32x4_t *)((char *)v14 + v17); goto LABEL_94; case 7: goto LABEL_93; case 8: v10 = v9 + 1; v91 = v90 + 1; *v9 = vaddq_f32(*v90, *v9); LABEL_93: v147 = *v91; v98 = v91 + 1; v99 = v10 + 1; v9 = v10 + 1; *v10 = vaddq_f32(v147, *v10); LABEL_94: v124 = *v9++; v148 = *v98; v97 = v98 + 1; *v99 = vaddq_f32(v148, v124); LABEL_95: v149 = *v97; v95 = v97 + 1; v96 = v9 + 1; v14 = v105; *v9 = vaddq_f32(v149, *v9); ++v9; LABEL_96: v125 = *v9++; v150 = *v95; v94 = v95 + 1; *v96 = vaddq_f32(v150, v125); LABEL_97: v151 = *v94; v92 = v94 + 1; v93 = v9 + 1; *v9 = vaddq_f32(v151, *v9); ++v9; LABEL_98: v126 = *v9++; v152 = *v92; v7 = v92 + 1; *v93 = vaddq_f32(v152, v126); LABEL_99: *v9 = vaddq_f32(*v7, *v9); break; default: v9 = v89; v7 = v88; v10 = v87; break; } v17 += v16; --v8; v18 = (float32x4_t *)((char *)v18 + 4 * a6); v86 = (float32x4_t *)((char *)v86 + 4 * a6); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source