// // jpeg_fdct_3x3 from 0x684570 to 0x68470c (412 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 jpeg_fdct_3x3(int *a1, _DWORD *a2, int a3) { unsigned __int8 *v6; // r3 int v7; // r5 int v8; // r0 int v9; // r2 int v10; // r3 int v11; // r12 int v12; // r0 int v13; // r6 unsigned __int8 *v14; // r3 int v15; // r1 int v16; // r2 int v17; // r3 int v18; // lr int v19; // r5 int v20; // r1 unsigned __int8 *v21; // r2 int v22; // r3 int v23; // r9 int v24; // r2 int v25; // r8 int v26; // r3 int v27; // r9 int v28; // r2 int v29; // r3 int v30; // r11 int result; // r0 memset(a1, 0, 0x100u); v6 = (unsigned __int8 *)(*a2 + a3); v7 = *v6; v8 = v6[2]; v9 = v6[1]; v10 = v7 + v8; v11 = 16 * (v7 + v8 + v9 - 384); *a1 = v11; v12 = (10033 * (v7 - v8) + 256) >> 9; v13 = (5793 * (v10 - 2 * v9) + 256) >> 9; a1[1] = v12; a1[2] = v13; v14 = (unsigned __int8 *)(a2[1] + a3); v15 = *v14; v16 = v14[2]; v17 = v14[1]; v18 = 16 * (v15 + v16 + v17 - 384); a1[8] = v18; v19 = (5793 * (v15 + v16 - 2 * v17) + 256) >> 9; v20 = (10033 * (v15 - v16) + 256) >> 9; a1[10] = v19; a1[9] = v20; v21 = (unsigned __int8 *)(a2[2] + a3); v22 = *v21; v23 = v21[2]; v24 = v21[1]; v25 = v22 + v23; v26 = v22 - v23; v27 = 16 * (v25 + v24 - 384); v28 = (5793 * (v25 - 2 * v24) + 256) >> 9; v29 = (10033 * v26 + 256) >> 9; v30 = v12 + v29; *a1 = (14564 * (v11 + v27 + v18) + 0x4000) >> 15; result = (17837 * (v12 - v29) + 0x4000) >> 15; a1[17] = (10298 * (v30 - 2 * v20) + 0x4000) >> 15; a1[16] = (10298 * (v11 + v27 - 2 * v18) + 0x4000) >> 15; a1[8] = (17837 * (v11 - v27) + 0x4000) >> 15; a1[9] = result; a1[1] = (14564 * (v30 + v20) + 0x4000) >> 15; a1[10] = (17837 * (v13 - v28) + 0x4000) >> 15; a1[2] = (14564 * (v13 + v28 + v19) + 0x4000) >> 15; a1[18] = (10298 * (v13 + v28 - 2 * v19) + 0x4000) >> 15; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source