// // sub_6D878 from 0x6d878 to 0x6dc28 (944 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 // int __fastcall sub_6D878( int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, float a10, float a11, float a12) { int v13; // r1 int v14; // r2 int v15; // r1 int v16; // r10 float *v17; // r9 float *v18; // r4 float v19; // r0 float v20; // r0 float v21; // r0 float v22; // s22 float v23; // r0 float v24; // r0 float v25; // r0 float v26; // r0 float v27; // r0 float v28; // r0 float v29; // r0 float v30; // s22 float v31; // r0 float v32; // r0 float v33; // r0 float v34; // r0 float v35; // r1 float v36; // r0 float v37; // r0 float v38; // r0 float v39; // s22 float v40; // r0 float v41; // r0 float v42; // r0 float v43; // r0 float v44; // r0 float v45; // r0 float v46; // r0 float v47; // s22 float v48; // r0 float v49; // r0 float v50; // r0 float v51; // r0 float *v52; // r4 float v53; // r1 float v54; // r0 float v55; // r0 float v56; // r0 float v57; // s22 float v58; // r0 float v59; // r0 float v60; // r0 float v61; // r0 float v62; // r0 float v63; // r0 float v64; // r0 float v65; // s22 float v66; // r0 float v67; // r0 float v68; // r0 float v69; // r0 float *v70; // r4 float v71; // r1 float v72; // r0 float v73; // r0 float v74; // r0 float v75; // s22 float v76; // r0 float v77; // r0 float v78; // r0 float v79; // r0 float v80; // r0 float v81; // r0 float v82; // r0 float v83; // s22 float v84; // r0 float v85; // r0 float v86; // r0 float v87; // r0 int result; // r0 int v89; // r5 int i; // r11 float *v91; // r10 float v92; // r0 float v93; // r0 float v94; // r0 float v95; // s22 float v96; // r0 float v97; // r0 float v98; // r0 float v99; // r0 float v100; // r0 float v101; // r0 float v102; // r0 float v103; // s22 float v104; // r0 float v105; // r0 float v106; // r0 float v107; // s0 int v108; // [sp+0h] [bp-A0h] int v109; // [sp+4h] [bp-9Ch] float *v112; // [sp+10h] [bp-90h] int v113; // [sp+14h] [bp-8Ch] int v114; // [sp+18h] [bp-88h] int v115; // [sp+1Ch] [bp-84h] int v116; // [sp+20h] [bp-80h] int v117; // [sp+24h] [bp-7Ch] int v118; // [sp+28h] [bp-78h] int v119; // [sp+2Ch] [bp-74h] int v120; // [sp+30h] [bp-70h] int v121; // [sp+34h] [bp-6Ch] int v122; // [sp+38h] [bp-68h] int v123; // [sp+3Ch] [bp-64h] int v124; // [sp+40h] [bp-60h] int v125; // [sp+44h] [bp-5Ch] int v126; // [sp+48h] [bp-58h] int v127; // [sp+4Ch] [bp-54h] int v128; // [sp+50h] [bp-50h] int v129; // [sp+54h] [bp-4Ch] int v130; // [sp+58h] [bp-48h] int v131; // [sp+5Ch] [bp-44h] v131 = a9 + 16 * a5; v124 = v131 + 512; v130 = v131 + 1536; v123 = v131 + 1024; v122 = a8 + 16 * a5; v121 = v122 + 512; v119 = v122 + 1536; v120 = v122 + 1024; v13 = a7 + 16 * a5; v118 = v13 + 512; v116 = v13; v117 = v13 + 1024; v129 = v13 + 1536; v14 = 0; v128 = a6 + 16 * a5; v127 = v128 + 512; v125 = v128 + 1536; v108 = a3; v109 = 16 * a4; v126 = v128 + 1024; v15 = a3 >> 2; v115 = 4 * a4; v16 = a4; while ( 1 ) { v17 = (float *)(a1 + v14); v18 = (float *)(a2 + v14); if ( !v15 ) break; v114 = v15; v113 = v14; v19 = sub_6D5B0(v128, *v18); v20 = sub_6D5B0(v127, v19); v21 = sub_6D5B0(v126, v20); v22 = sub_6D5B0(v125, v21) * a10; v23 = sub_6D5B0(v122, *v18); v24 = sub_6D5B0(v121, v23); v25 = sub_6D5B0(v120, v24); v26 = sub_6D5B0(v119, v25); v27 = sub_6D5B0(v116, v26); v28 = sub_6D5B0(v118, v27); v29 = sub_6D5B0(v117, v28); v30 = v22 + (float)(sub_6D5B0(v129, v29) * a11); v31 = sub_6D5B0(v131, *v18); v32 = sub_6D5B0(v124, v31); v33 = sub_6D5B0(v123, v32); v34 = sub_6D5B0(v130, v33); v35 = v18[v16]; *v17 = v30 + (float)(v34 * a12); v36 = sub_6D5B0(v128, v35); v37 = sub_6D5B0(v127, v36); v38 = sub_6D5B0(v126, v37); v39 = sub_6D5B0(v125, v38) * a10; v40 = sub_6D5B0(v122, v18[v16]); v41 = sub_6D5B0(v121, v40); v42 = sub_6D5B0(v120, v41); v43 = sub_6D5B0(v119, v42); v44 = sub_6D5B0(v116, v43); v45 = sub_6D5B0(v118, v44); v46 = sub_6D5B0(v117, v45); v47 = v39 + (float)(sub_6D5B0(v129, v46) * a11); v48 = sub_6D5B0(v131, v18[v16]); v49 = sub_6D5B0(v124, v48); v50 = sub_6D5B0(v123, v49); v51 = sub_6D5B0(v130, v50); v52 = &v18[v16]; v53 = v52[v16]; v112 = &v17[v16]; *v112 = v47 + (float)(v51 * a12); v54 = sub_6D5B0(v128, v53); v55 = sub_6D5B0(v127, v54); v56 = sub_6D5B0(v126, v55); v57 = sub_6D5B0(v125, v56) * a10; v58 = sub_6D5B0(v122, v52[v16]); v59 = sub_6D5B0(v121, v58); v60 = sub_6D5B0(v120, v59); v61 = sub_6D5B0(v119, v60); v62 = sub_6D5B0(v116, v61); v63 = sub_6D5B0(v118, v62); v64 = sub_6D5B0(v117, v63); v65 = v57 + (float)(sub_6D5B0(v129, v64) * a11); v66 = sub_6D5B0(v131, v52[v16]); v67 = sub_6D5B0(v124, v66); v68 = sub_6D5B0(v123, v67); v69 = sub_6D5B0(v130, v68); v70 = &v52[v16]; v71 = v70[v16]; v112[v16] = v65 + (float)(v69 * a12); v72 = sub_6D5B0(v128, v71); v73 = sub_6D5B0(v127, v72); v74 = sub_6D5B0(v126, v73); v75 = sub_6D5B0(v125, v74) * a10; v76 = sub_6D5B0(v122, v70[v16]); v77 = sub_6D5B0(v121, v76); v78 = sub_6D5B0(v120, v77); v79 = sub_6D5B0(v119, v78); v80 = sub_6D5B0(v116, v79); v81 = sub_6D5B0(v118, v80); v82 = sub_6D5B0(v117, v81); v83 = v75 + (float)(sub_6D5B0(v129, v82) * a11); v84 = sub_6D5B0(v131, v70[v16]); v85 = sub_6D5B0(v124, v84); v86 = sub_6D5B0(v123, v85); v87 = sub_6D5B0(v130, v86); v15 = v114 - 1; v112[v16 + v16] = v83 + (float)(v87 * a12); v14 = v113 + v109; } result = v108; v89 = 0; for ( i = v108 & 3; i; --i ) { v91 = (float *)((char *)v17 + v89); v92 = sub_6D5B0(v128, *(float *)((char *)v18 + v89)); v93 = sub_6D5B0(v127, v92); v94 = sub_6D5B0(v126, v93); v95 = sub_6D5B0(v125, v94) * a10; v96 = sub_6D5B0(v122, *(float *)((char *)v18 + v89)); v97 = sub_6D5B0(v121, v96); v98 = sub_6D5B0(v120, v97); v99 = sub_6D5B0(v119, v98); v100 = sub_6D5B0(v116, v99); v101 = sub_6D5B0(v118, v100); v102 = sub_6D5B0(v117, v101); v103 = v95 + (float)(sub_6D5B0(v129, v102) * a11); v104 = sub_6D5B0(v131, *(float *)((char *)v18 + v89)); v105 = sub_6D5B0(v124, v104); v106 = sub_6D5B0(v123, v105); v107 = sub_6D5B0(v130, v106); result = v115; v89 += v115; *v91 = v103 + (float)(v107 * a12); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source