// // jpeg_idct_float from 0x68e1f0 to 0x68e5a0 (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 // float *__fastcall jpeg_idct_float(int a1, int a2, int a3, int a4, int a5) { _WORD *v5; // r4 int v6; // r8 float *v7; // r5 float *v8; // r6 __int16 v9; // r7 __int16 v10; // lr __int16 v11; // r12 __int16 v12; // r1 __int16 v13; // r10 float v14; // s15 float v15; // s5 float v16; // s12 float v17; // s13 float v18; // s17 float v19; // s4 float v20; // s18 float v21; // s13 float v22; // s15 float v23; // s10 float v24; // s2 float v25; // s12 float v26; // s3 float v27; // s0 float v28; // s15 float v29; // s13 float v30; // s14 float v31; // s1 float v32; // s15 float v33; // s12 float v34; // s4 float v35; // s13 float v36; // s11 float v37; // s15 float v38; // s12 float v39; // s10 float v40; // s15 __int16 v41; // r0 int v42; // r7 float *result; // r0 int v44; // r3 int v45; // t1 float v46; // s12 _BYTE *v47; // r6 float v48; // s1 float v49; // s11 float v50; // s14 float v51; // s0 float v52; // s4 float v53; // s3 float v54; // s2 float v55; // s13 float v56; // s16 float v57; // s14 float v58; // s11 float v59; // s1 float v60; // s4 float v61; // s0 float v62; // s15 float v63; // s10 float v64; // s11 float v65; // s14 float v66; // s15 float v67; // s2 float v68; // s4 float v69; // s12 float v70; // s15 float v71; // s13 __int16 v72; // r2 float v73; // s14 float v74; // s15 int v75; // [sp+0h] [bp-104h] BYREF char v76; // [sp+20h] [bp-E4h] BYREF v5 = (_WORD *)(a3 + 2); v6 = *(_DWORD *)(a1 + 336) - 384; v7 = (float *)(*(_DWORD *)(a2 + 84) + 4); v8 = (float *)&v75; do { v41 = v5[15]; if ( v5[7] || v5[15] ) { v10 = v5[31]; v11 = v5[47]; v9 = v5[23]; v12 = v5[39]; v13 = v5[55]; goto LABEL_5; } v9 = v5[23]; v10 = v5[31]; if ( v9 ) { v11 = v5[47]; v12 = v5[39]; v13 = v5[55]; LABEL_5: ++v8; v14 = (float)(__int16)v5[7] * v7[7]; v15 = (float)v13 * v7[55]; v16 = (float)v9 * v7[23]; v17 = (float)v12 * v7[39]; v18 = v14 - v15; v19 = (float)((float)(v17 - v16) + (float)(v14 - v15)) * 1.8478; v20 = v19 - (float)((float)(v17 - v16) * 2.6131); v21 = v17 + v16; v22 = v14 + v15; v23 = (float)v11 * v7[47]; v24 = v22 + v21; v25 = (float)v41 * v7[15]; v26 = v20 - (float)(v22 + v21); v27 = v25 + v23; v28 = v22 - v21; v29 = v25 - v23; v30 = (float)(__int16)*(v5 - 1) * *(v7 - 1); v31 = (float)(v28 * 1.4142) - v26; v32 = v25 + v23; v33 = (float)v10 * v7[31]; v34 = v19 - (float)(v18 * 1.0824); v35 = (float)(v29 * 1.4142) - v32; v36 = (float)(v30 + v33) - v27; v37 = v30 - v33; v38 = (float)(v30 + v33) + v27; v39 = v37 - v35; v8[23] = v36 + (float)(v34 - v31); v40 = v37 + v35; v8[15] = v39 + v31; v8[7] = v40 + v26; v8[31] = v36 - (float)(v34 - v31); v8[39] = v39 - v31; *(v8 - 1) = v38 + v24; v8[47] = v40 - v26; v8[55] = v38 - v24; goto LABEL_6; } if ( v5[31] ) { v11 = v5[47]; v41 = v5[23]; v12 = v5[39]; v13 = v5[55]; goto LABEL_5; } v12 = v5[39]; v11 = v5[47]; if ( v12 ) { v9 = v5[31]; v13 = v5[55]; v41 = v9; goto LABEL_5; } v13 = v5[55]; if ( v5[47] ) { v9 = v5[39]; v10 = v9; v41 = v9; goto LABEL_5; } if ( v5[55] ) { v12 = v5[47]; v9 = v12; v10 = v12; v41 = v12; goto LABEL_5; } ++v8; v74 = (float)(__int16)*(v5 - 1) * *(v7 - 1); *(v8 - 1) = v74; v8[7] = v74; v8[15] = v74; v8[23] = v74; v8[31] = v74; v8[39] = v74; v8[47] = v74; v8[55] = v74; LABEL_6: ++v5; ++v7; } while ( v5 != (_WORD *)(a3 + 18) ); v42 = a4 - 4; result = (float *)&v76; v44 = a4 + 28; do { v45 = *(_DWORD *)(v42 + 4); v42 += 4; result += 8; v46 = *(result - 11); v47 = (_BYTE *)(v45 + a5); v48 = *(result - 9); v49 = *(result - 13); v50 = *(result - 15); v51 = *(result - 10); v52 = *(result - 14); v53 = v50 - v48; v54 = *(result - 12); v55 = (float)((float)(v46 - v49) + (float)(v50 - v48)) * 1.8478; v56 = v55 - (float)((float)(v46 - v49) * 2.6131); v57 = v50 + v48; v58 = v46 + v49; v59 = v52 + v51; v60 = v52 - v51; v61 = v57 + v58; v62 = *(result - 16) + 512.5; v63 = v56 - (float)(v57 + v58); v64 = v57 - v58; v65 = v54 + v62; v66 = v62 - v54; v67 = (float)(v64 * 1.4142) - v63; v68 = (float)(v60 * 1.4142) - v59; v69 = v66 + v68; v70 = v66 - v68; *v47 = *(_BYTE *)(v6 + ((int)(float)((float)(v65 + v59) + v61) & 0x3FF)); v71 = (float)(v55 - (float)(v53 * 1.0824)) - v67; v72 = (int)(float)((float)(v65 + v59) - v61); v73 = v65 - v59; v47[7] = *(_BYTE *)(v6 + (v72 & 0x3FF)); v47[1] = *(_BYTE *)(v6 + ((int)(float)(v69 + v63) & 0x3FF)); v47[6] = *(_BYTE *)(v6 + ((int)(float)(v69 - v63) & 0x3FF)); v47[2] = *(_BYTE *)(v6 + ((int)(float)(v70 + v67) & 0x3FF)); v47[5] = *(_BYTE *)(v6 + ((int)(float)(v70 - v67) & 0x3FF)); v47[3] = *(_BYTE *)(v6 + ((int)(float)(v73 + v71) & 0x3FF)); v47[4] = *(_BYTE *)(v6 + ((int)(float)(v73 - v71) & 0x3FF)); } while ( v42 != v44 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source