#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ BGBBTJ_JPG_TransIDCT_Vert2(int *, int *, int);
int /*<<< orphan*/ PDJPG_TransIDCT_Horiz(int *, int *);
void PDJPG_TransIDCT(int *iblk, int *oblk, int dcbias, int rtm) {
  int s[64];
  int t[64];
  int *ob, *obe;
  int i, j, k;
  if (rtm == 2) {
    k = ((iblk[0] * 8281 + 32768) >> 16) + dcbias;
    ob = oblk;
    obe = ob + 64;
    while (ob < obe) {
      ob[0] = k;
      ob[1] = k;
      ob[2] = k;
      ob[3] = k;
      ob[4] = k;
      ob[5] = k;
      ob[6] = k;
      ob[7] = k;
      ob[8] = k;
      ob[9] = k;
      ob[10] = k;
      ob[11] = k;
      ob[12] = k;
      ob[13] = k;
      ob[14] = k;
      ob[15] = k;
      ob += 16;
    }
    return;
  }
  PDJPG_TransIDCT_Horiz(iblk + 0, s + 0);
  PDJPG_TransIDCT_Horiz(iblk + 8, s + 8);
  PDJPG_TransIDCT_Horiz(iblk + 16, s + 16);
  PDJPG_TransIDCT_Horiz(iblk + 24, s + 24);
  PDJPG_TransIDCT_Horiz(iblk + 32, s + 32);
  PDJPG_TransIDCT_Horiz(iblk + 40, s + 40);
  PDJPG_TransIDCT_Horiz(iblk + 48, s + 48);
  PDJPG_TransIDCT_Horiz(iblk + 56, s + 56);
  BGBBTJ_JPG_TransIDCT_Vert2(s + 0, oblk + 0, dcbias);
  BGBBTJ_JPG_TransIDCT_Vert2(s + 1, oblk + 1, dcbias);
  BGBBTJ_JPG_TransIDCT_Vert2(s + 2, oblk + 2, dcbias);
  BGBBTJ_JPG_TransIDCT_Vert2(s + 3, oblk + 3, dcbias);
  BGBBTJ_JPG_TransIDCT_Vert2(s + 4, oblk + 4, dcbias);
  BGBBTJ_JPG_TransIDCT_Vert2(s + 5, oblk + 5, dcbias);
  BGBBTJ_JPG_TransIDCT_Vert2(s + 6, oblk + 6, dcbias);
  BGBBTJ_JPG_TransIDCT_Vert2(s + 7, oblk + 7, dcbias);
}


x86 assembly (clang, -O0):
<PDJPG_TransIDCT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jne    12ac <PDJPG_TransIDCT+0x18c>
mov    -0x8(%rbp),%rax
imul   $0x2059,(%rax),%eax
add    $0x8000,%eax
sar    $0x10,%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x23c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x228(%rbp)
mov    -0x228(%rbp),%rax
add    $0x100,%rax
mov    %rax,-0x230(%rbp)
mov    -0x228(%rbp),%rax
cmp    -0x230(%rbp),%rax
jae    12a7 <PDJPG_TransIDCT+0x187>
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x18(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x1c(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x20(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x24(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x28(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x2c(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x30(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x34(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x38(%rax)
mov    -0x23c(%rbp),%ecx
mov    -0x228(%rbp),%rax
mov    %ecx,0x3c(%rax)
mov    -0x228(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x228(%rbp)
jmp    117d <PDJPG_TransIDCT+0x5d>
jmp    144c <PDJPG_TransIDCT+0x32c>
mov    -0x8(%rbp),%rdi
lea    -0x120(%rbp),%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
mov    -0x8(%rbp),%rdi
add    $0x20,%rdi
lea    -0x120(%rbp),%rsi
add    $0x20,%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
mov    -0x8(%rbp),%rdi
add    $0x40,%rdi
lea    -0x120(%rbp),%rsi
add    $0x40,%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
mov    -0x8(%rbp),%rdi
add    $0x60,%rdi
lea    -0x120(%rbp),%rsi
add    $0x60,%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
mov    -0x8(%rbp),%rdi
add    $0x80,%rdi
lea    -0x120(%rbp),%rsi
add    $0x80,%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
mov    -0x8(%rbp),%rdi
add    $0xa0,%rdi
lea    -0x120(%rbp),%rsi
add    $0xa0,%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
mov    -0x8(%rbp),%rdi
add    $0xc0,%rdi
lea    -0x120(%rbp),%rsi
add    $0xc0,%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
mov    -0x8(%rbp),%rdi
add    $0xe0,%rdi
lea    -0x120(%rbp),%rsi
add    $0xe0,%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
lea    -0x120(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    -0x120(%rbp),%rdi
add    $0x4,%rdi
mov    -0x10(%rbp),%rsi
add    $0x4,%rsi
mov    -0x14(%rbp),%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    -0x120(%rbp),%rdi
add    $0x8,%rdi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
mov    -0x14(%rbp),%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    -0x120(%rbp),%rdi
add    $0xc,%rdi
mov    -0x10(%rbp),%rsi
add    $0xc,%rsi
mov    -0x14(%rbp),%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    -0x120(%rbp),%rdi
add    $0x10,%rdi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
mov    -0x14(%rbp),%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    -0x120(%rbp),%rdi
add    $0x14,%rdi
mov    -0x10(%rbp),%rsi
add    $0x14,%rsi
mov    -0x14(%rbp),%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    -0x120(%rbp),%rdi
add    $0x18,%rdi
mov    -0x10(%rbp),%rsi
add    $0x18,%rsi
mov    -0x14(%rbp),%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    -0x120(%rbp),%rdi
add    $0x1c,%rdi
mov    -0x10(%rbp),%rsi
add    $0x1c,%rsi
mov    -0x14(%rbp),%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PDJPG_TransIDCT>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x108,%rsp
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
cmp    $0x2,%ecx
jne    11c6 <PDJPG_TransIDCT+0xa6>
imul   $0x2059,0x0(%rbp),%eax
add    $0x8000,%eax
sar    $0x10,%eax
add    %r14d,%eax
movd   %eax,%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqu %xmm0,(%rbx)
movdqu %xmm0,0x10(%rbx)
movdqu %xmm0,0x20(%rbx)
movdqu %xmm0,0x30(%rbx)
movdqu %xmm0,0x40(%rbx)
movdqu %xmm0,0x50(%rbx)
movdqu %xmm0,0x60(%rbx)
movdqu %xmm0,0x70(%rbx)
movdqu %xmm0,0x80(%rbx)
movdqu %xmm0,0x90(%rbx)
movdqu %xmm0,0xa0(%rbx)
movdqu %xmm0,0xb0(%rbx)
movdqu %xmm0,0xc0(%rbx)
movdqu %xmm0,0xd0(%rbx)
movdqu %xmm0,0xe0(%rbx)
movdqu %xmm0,0xf0(%rbx)
jmp    12d9 <PDJPG_TransIDCT+0x1b9>
mov    %rsp,%r15
mov    %rbp,%rdi
mov    %r15,%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
lea    0x20(%rbp),%rdi
lea    0x20(%rsp),%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
lea    0x40(%rbp),%rdi
lea    0x40(%rsp),%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
lea    0x60(%rbp),%rdi
lea    0x60(%rsp),%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
lea    0x80(%rbp),%rdi
lea    0x80(%rsp),%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
lea    0xa0(%rbp),%rdi
lea    0xa0(%rsp),%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
lea    0xc0(%rbp),%rdi
lea    0xc0(%rsp),%rsi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
add    $0xe0,%rbp
lea    0xe0(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <PDJPG_TransIDCT_Horiz@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    0x4(%rsp),%rdi
lea    0x4(%rbx),%rsi
mov    %r14d,%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    0x8(%rsp),%rdi
lea    0x8(%rbx),%rsi
mov    %r14d,%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    0xc(%rsp),%rdi
lea    0xc(%rbx),%rsi
mov    %r14d,%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    0x10(%rsp),%rdi
lea    0x10(%rbx),%rsi
mov    %r14d,%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    0x14(%rsp),%rdi
lea    0x14(%rbx),%rsi
mov    %r14d,%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    0x18(%rsp),%rdi
lea    0x18(%rbx),%rsi
mov    %r14d,%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
lea    0x1c(%rsp),%rdi
add    $0x1c,%rbx
mov    %rbx,%rsi
mov    %r14d,%edx
call   1030 <BGBBTJ_JPG_TransIDCT_Vert2@plt>
add    $0x108,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @PDJPG_TransIDCT(i32* %0, i32* %1, i32 %2, i32 %3) {
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca [64 x i32]
%10 = alloca [64 x i32]
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32* %0, i32** %5
store i32* %1, i32** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%16 = load i32, i32* %8
%17 = icmp eq i32 %16, 2
br i1 %17, label %18, label %86
18: ; preds = %4
%19 = load i32*, i32** %5
%20 = getelementptr inbounds i32, i32* %19, i64 0
%21 = load i32, i32* %20
%22 = mul nsw i32 %21, 8281
%23 = add nsw i32 %22, 32768
%24 = ashr i32 %23, 16
%25 = load i32, i32* %7
%26 = add nsw i32 %24, %25
store i32 %26, i32* %15
%27 = load i32*, i32** %6
store i32* %27, i32** %11
%28 = load i32*, i32** %11
%29 = getelementptr inbounds i32, i32* %28, i64 64
store i32* %29, i32** %12
br label %30
30: ; preds = %34, %18
%31 = load i32*, i32** %11
%32 = load i32*, i32** %12
%33 = icmp ult i32* %31, %32
br i1 %33, label %34, label %85
34: ; preds = %30
%35 = load i32, i32* %15
%36 = load i32*, i32** %11
%37 = getelementptr inbounds i32, i32* %36, i64 0
store i32 %35, i32* %37
%38 = load i32, i32* %15
%39 = load i32*, i32** %11
%40 = getelementptr inbounds i32, i32* %39, i64 1
store i32 %38, i32* %40
%41 = load i32, i32* %15
%42 = load i32*, i32** %11
%43 = getelementptr inbounds i32, i32* %42, i64 2
store i32 %41, i32* %43
%44 = load i32, i32* %15
%45 = load i32*, i32** %11
%46 = getelementptr inbounds i32, i32* %45, i64 3
store i32 %44, i32* %46
%47 = load i32, i32* %15
%48 = load i32*, i32** %11
%49 = getelementptr inbounds i32, i32* %48, i64 4
store i32 %47, i32* %49
%50 = load i32, i32* %15
%51 = load i32*, i32** %11
%52 = getelementptr inbounds i32, i32* %51, i64 5
store i32 %50, i32* %52
%53 = load i32, i32* %15
%54 = load i32*, i32** %11
%55 = getelementptr inbounds i32, i32* %54, i64 6
store i32 %53, i32* %55
%56 = load i32, i32* %15
%57 = load i32*, i32** %11
%58 = getelementptr inbounds i32, i32* %57, i64 7
store i32 %56, i32* %58
%59 = load i32, i32* %15
%60 = load i32*, i32** %11
%61 = getelementptr inbounds i32, i32* %60, i64 8
store i32 %59, i32* %61
%62 = load i32, i32* %15
%63 = load i32*, i32** %11
%64 = getelementptr inbounds i32, i32* %63, i64 9
store i32 %62, i32* %64
%65 = load i32, i32* %15
%66 = load i32*, i32** %11
%67 = getelementptr inbounds i32, i32* %66, i64 10
store i32 %65, i32* %67
%68 = load i32, i32* %15
%69 = load i32*, i32** %11
%70 = getelementptr inbounds i32, i32* %69, i64 11
store i32 %68, i32* %70
%71 = load i32, i32* %15
%72 = load i32*, i32** %11
%73 = getelementptr inbounds i32, i32* %72, i64 12
store i32 %71, i32* %73
%74 = load i32, i32* %15
%75 = load i32*, i32** %11
%76 = getelementptr inbounds i32, i32* %75, i64 13
store i32 %74, i32* %76
%77 = load i32, i32* %15
%78 = load i32*, i32** %11
%79 = getelementptr inbounds i32, i32* %78, i64 14
store i32 %77, i32* %79
%80 = load i32, i32* %15
%81 = load i32*, i32** %11
%82 = getelementptr inbounds i32, i32* %81, i64 15
store i32 %80, i32* %82
%83 = load i32*, i32** %11
%84 = getelementptr inbounds i32, i32* %83, i64 16
store i32* %84, i32** %11
br label %30
85: ; preds = %30
br label %175
86: ; preds = %4
%87 = load i32*, i32** %5
%88 = getelementptr inbounds i32, i32* %87, i64 0
%89 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%90 = getelementptr inbounds i32, i32* %89, i64 0
%91 = call i32 @PDJPG_TransIDCT_Horiz(i32* %88, i32* %90)
%92 = load i32*, i32** %5
%93 = getelementptr inbounds i32, i32* %92, i64 8
%94 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%95 = getelementptr inbounds i32, i32* %94, i64 8
%96 = call i32 @PDJPG_TransIDCT_Horiz(i32* %93, i32* %95)
%97 = load i32*, i32** %5
%98 = getelementptr inbounds i32, i32* %97, i64 16
%99 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%100 = getelementptr inbounds i32, i32* %99, i64 16
%101 = call i32 @PDJPG_TransIDCT_Horiz(i32* %98, i32* %100)
%102 = load i32*, i32** %5
%103 = getelementptr inbounds i32, i32* %102, i64 24
%104 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%105 = getelementptr inbounds i32, i32* %104, i64 24
%106 = call i32 @PDJPG_TransIDCT_Horiz(i32* %103, i32* %105)
%107 = load i32*, i32** %5
%108 = getelementptr inbounds i32, i32* %107, i64 32
%109 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%110 = getelementptr inbounds i32, i32* %109, i64 32
%111 = call i32 @PDJPG_TransIDCT_Horiz(i32* %108, i32* %110)
%112 = load i32*, i32** %5
%113 = getelementptr inbounds i32, i32* %112, i64 40
%114 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%115 = getelementptr inbounds i32, i32* %114, i64 40
%116 = call i32 @PDJPG_TransIDCT_Horiz(i32* %113, i32* %115)
%117 = load i32*, i32** %5
%118 = getelementptr inbounds i32, i32* %117, i64 48
%119 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%120 = getelementptr inbounds i32, i32* %119, i64 48
%121 = call i32 @PDJPG_TransIDCT_Horiz(i32* %118, i32* %120)
%122 = load i32*, i32** %5
%123 = getelementptr inbounds i32, i32* %122, i64 56
%124 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%125 = getelementptr inbounds i32, i32* %124, i64 56
%126 = call i32 @PDJPG_TransIDCT_Horiz(i32* %123, i32* %125)
%127 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%128 = getelementptr inbounds i32, i32* %127, i64 0
%129 = load i32*, i32** %6
%130 = getelementptr inbounds i32, i32* %129, i64 0
%131 = load i32, i32* %7
%132 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %128, i32* %130, i32 %131)
%133 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%134 = getelementptr inbounds i32, i32* %133, i64 1
%135 = load i32*, i32** %6
%136 = getelementptr inbounds i32, i32* %135, i64 1
%137 = load i32, i32* %7
%138 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %134, i32* %136, i32 %137)
%139 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%140 = getelementptr inbounds i32, i32* %139, i64 2
%141 = load i32*, i32** %6
%142 = getelementptr inbounds i32, i32* %141, i64 2
%143 = load i32, i32* %7
%144 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %140, i32* %142, i32 %143)
%145 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%146 = getelementptr inbounds i32, i32* %145, i64 3
%147 = load i32*, i32** %6
%148 = getelementptr inbounds i32, i32* %147, i64 3
%149 = load i32, i32* %7
%150 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %146, i32* %148, i32 %149)
%151 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%152 = getelementptr inbounds i32, i32* %151, i64 4
%153 = load i32*, i32** %6
%154 = getelementptr inbounds i32, i32* %153, i64 4
%155 = load i32, i32* %7
%156 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %152, i32* %154, i32 %155)
%157 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%158 = getelementptr inbounds i32, i32* %157, i64 5
%159 = load i32*, i32** %6
%160 = getelementptr inbounds i32, i32* %159, i64 5
%161 = load i32, i32* %7
%162 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %158, i32* %160, i32 %161)
%163 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%164 = getelementptr inbounds i32, i32* %163, i64 6
%165 = load i32*, i32** %6
%166 = getelementptr inbounds i32, i32* %165, i64 6
%167 = load i32, i32* %7
%168 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %164, i32* %166, i32 %167)
%169 = getelementptr inbounds [64 x i32], [64 x i32]* %9, i64 0, i64 0
%170 = getelementptr inbounds i32, i32* %169, i64 7
%171 = load i32*, i32** %6
%172 = getelementptr inbounds i32, i32* %171, i64 7
%173 = load i32, i32* %7
%174 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %170, i32* %172, i32 %173)
br label %175
175: ; preds = %86, %85
ret void
}

LLVM IR (-O2):
define void @PDJPG_TransIDCT(i32* %0, i32* %1, i32 %2, i32 %3) {
%5 = alloca [64 x i32]
%6 = bitcast [64 x i32]* %5 to i8*
%7 = icmp eq i32 %3, 2
br i1 %7, label %8, label %47
8: ; preds = %4
%9 = load i32, i32* %0
%10 = mul nsw i32 %9, 8281
%11 = add nsw i32 %10, 32768
%12 = ashr i32 %11, 16
%13 = add nsw i32 %12, %2
%14 = insertelement <4 x i32> poison, i32 %13, i64 0
%15 = shufflevector <4 x i32> %14, <4 x i32> poison, <4 x i32> zeroinitializer
%16 = bitcast i32* %1 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %16
%17 = getelementptr inbounds i32, i32* %1, i64 4
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %18
%19 = getelementptr inbounds i32, i32* %1, i64 8
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %20
%21 = getelementptr inbounds i32, i32* %1, i64 12
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %22
%23 = getelementptr inbounds i32, i32* %1, i64 16
%24 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %24
%25 = getelementptr inbounds i32, i32* %1, i64 20
%26 = bitcast i32* %25 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %26
%27 = getelementptr inbounds i32, i32* %1, i64 24
%28 = bitcast i32* %27 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %28
%29 = getelementptr inbounds i32, i32* %1, i64 28
%30 = bitcast i32* %29 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %30
%31 = getelementptr inbounds i32, i32* %1, i64 32
%32 = bitcast i32* %31 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %32
%33 = getelementptr inbounds i32, i32* %1, i64 36
%34 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %34
%35 = getelementptr inbounds i32, i32* %1, i64 40
%36 = bitcast i32* %35 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %36
%37 = getelementptr inbounds i32, i32* %1, i64 44
%38 = bitcast i32* %37 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %38
%39 = getelementptr inbounds i32, i32* %1, i64 48
%40 = bitcast i32* %39 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %40
%41 = getelementptr inbounds i32, i32* %1, i64 52
%42 = bitcast i32* %41 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %42
%43 = getelementptr inbounds i32, i32* %1, i64 56
%44 = bitcast i32* %43 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %44
%45 = getelementptr inbounds i32, i32* %1, i64 60
%46 = bitcast i32* %45 to <4 x i32>*
store <4 x i32> %15, <4 x i32>* %46
br label %93
47: ; preds = %4
%48 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 0
%49 = call i32 @PDJPG_TransIDCT_Horiz(i32* %0, i32* %48)
%50 = getelementptr inbounds i32, i32* %0, i64 8
%51 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 8
%52 = call i32 @PDJPG_TransIDCT_Horiz(i32* %50, i32* %51)
%53 = getelementptr inbounds i32, i32* %0, i64 16
%54 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 16
%55 = call i32 @PDJPG_TransIDCT_Horiz(i32* %53, i32* %54)
%56 = getelementptr inbounds i32, i32* %0, i64 24
%57 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 24
%58 = call i32 @PDJPG_TransIDCT_Horiz(i32* %56, i32* %57)
%59 = getelementptr inbounds i32, i32* %0, i64 32
%60 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 32
%61 = call i32 @PDJPG_TransIDCT_Horiz(i32* %59, i32* %60)
%62 = getelementptr inbounds i32, i32* %0, i64 40
%63 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 40
%64 = call i32 @PDJPG_TransIDCT_Horiz(i32* %62, i32* %63)
%65 = getelementptr inbounds i32, i32* %0, i64 48
%66 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 48
%67 = call i32 @PDJPG_TransIDCT_Horiz(i32* %65, i32* %66)
%68 = getelementptr inbounds i32, i32* %0, i64 56
%69 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 56
%70 = call i32 @PDJPG_TransIDCT_Horiz(i32* %68, i32* %69)
%71 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %48, i32* %1, i32 %2)
%72 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 1
%73 = getelementptr inbounds i32, i32* %1, i64 1
%74 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %72, i32* %73, i32 %2)
%75 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 2
%76 = getelementptr inbounds i32, i32* %1, i64 2
%77 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %75, i32* %76, i32 %2)
%78 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 3
%79 = getelementptr inbounds i32, i32* %1, i64 3
%80 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %78, i32* %79, i32 %2)
%81 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 4
%82 = getelementptr inbounds i32, i32* %1, i64 4
%83 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %81, i32* %82, i32 %2)
%84 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 5
%85 = getelementptr inbounds i32, i32* %1, i64 5
%86 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %84, i32* %85, i32 %2)
%87 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 6
%88 = getelementptr inbounds i32, i32* %1, i64 6
%89 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %87, i32* %88, i32 %2)
%90 = getelementptr inbounds [64 x i32], [64 x i32]* %5, i64 0, i64 7
%91 = getelementptr inbounds i32, i32* %1, i64 7
%92 = call i32 @BGBBTJ_JPG_TransIDCT_Vert2(i32* %90, i32* %91, i32 %2)
br label %93
93: ; preds = %8, %47
ret void
}