#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 */
typedef int /*<<< orphan*/ q;

/* Variables and functions */
int /*<<< orphan*/ memset(short *, int /*<<< orphan*/, int);
int /*<<< orphan*/ vp8_dc_only_idct_add_c(short, unsigned char *, int,
                                          unsigned char *, int);
int /*<<< orphan*/ vp8_dequant_idct_add_c(short *, short *, unsigned char *,
                                          int);
void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dstu,
                                     unsigned char *dstv, int stride,
                                     char *eobs) {
  int i, j;
  for (i = 0; i < 2; i++) {
    for (j = 0; j < 2; j++) {
      if (*eobs++ > 1)
        vp8_dequant_idct_add_c(q, dq, dstu, stride);
      else {
        vp8_dc_only_idct_add_c(q[0] * dq[0], dstu, stride, dstu, stride);
        memset(q, 0, 2 * sizeof(q[0]));
      }
      q += 16;
      dstu += 4;
    }
    dstu += 4 * stride - 8;
  }
  for (i = 0; i < 2; i++) {
    for (j = 0; j < 2; j++) {
      if (*eobs++ > 1)
        vp8_dequant_idct_add_c(q, dq, dstv, stride);
      else {
        vp8_dc_only_idct_add_c(q[0] * dq[0], dstv, stride, dstv, stride);
        memset(q, 0, 2 * sizeof(q[0]));
      }
      q += 16;
      dstv += 4;
    }
    dstv += 4 * stride - 8;
  }
}


x86 assembly (clang, -O0):
<vp8_dequant_idct_add_uv_block_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    1229 <vp8_dequant_idct_add_uv_block_c+0xf9>
movl   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x38(%rbp)
jge    1204 <vp8_dequant_idct_add_uv_block_c+0xd4>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movsbl (%rax),%eax
cmp    $0x1,%eax
jle    11a6 <vp8_dequant_idct_add_uv_block_c+0x76>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x24(%rbp),%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    11de <vp8_dequant_idct_add_uv_block_c+0xae>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    -0x10(%rbp),%rcx
movswl (%rcx),%ecx
imul   %ecx,%eax
mov    -0x18(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x24(%rbp),%r8d
movswl %ax,%edi
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x8(%rbp)
mov    -0x18(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x18(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1168 <vp8_dequant_idct_add_uv_block_c+0x38>
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
sub    $0x8,%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1157 <vp8_dequant_idct_add_uv_block_c+0x27>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    1302 <vp8_dequant_idct_add_uv_block_c+0x1d2>
movl   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x38(%rbp)
jge    12dd <vp8_dequant_idct_add_uv_block_c+0x1ad>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movsbl (%rax),%eax
cmp    $0x1,%eax
jle    127f <vp8_dequant_idct_add_uv_block_c+0x14f>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    12b7 <vp8_dequant_idct_add_uv_block_c+0x187>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    -0x10(%rbp),%rcx
movswl (%rcx),%ecx
imul   %ecx,%eax
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
movswl %ax,%edi
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x8(%rbp)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1241 <vp8_dequant_idct_add_uv_block_c+0x111>
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
sub    $0x8,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1230 <vp8_dequant_idct_add_uv_block_c+0x100>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vp8_dequant_idct_add_uv_block_c>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8d,%r12d
mov    %rcx,0x20(%rsp)
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%r14
lea    -0x8(,%r12,4),%ebp
ff
mov    %r9,0x8(%rsp)
cmpb   $0x2,(%r9)
jl     1175 <vp8_dequant_idct_add_uv_block_c+0x45>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12d,%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    11a0 <vp8_dequant_idct_add_uv_block_c+0x70>
movzwl (%rbx),%eax
imul   (%r14),%ax
movswl %ax,%edi
mov    %r13,%rsi
mov    %r12d,%edx
mov    %r13,%rcx
mov    %r12d,%r8d
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
movslq %ebp,%rax
mov    %rax,0x18(%rsp)
lea    0x20(%r14),%rbp
lea    0x4(%r13),%rcx
mov    0x8(%rsp),%rax
cmpb   $0x1,0x1(%rax)
mov    %rbx,0x10(%rsp)
jle    11d3 <vp8_dequant_idct_add_uv_block_c+0xa3>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %rcx,%rdx
mov    %r12d,%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    11fb <vp8_dequant_idct_add_uv_block_c+0xcb>
movzwl (%rbx),%eax
imul   0x0(%rbp),%ax
movswl %ax,%edi
mov    %rcx,%rsi
mov    %r12d,%edx
mov    %r12d,%r8d
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
lea    0x40(%r14),%r15
mov    0x18(%rsp),%rax
lea    (%rax,%r13,1),%rbp
add    $0x8,%rbp
mov    0x8(%rsp),%rax
cmpb   $0x1,0x2(%rax)
jle    122f <vp8_dequant_idct_add_uv_block_c+0xff>
mov    %r15,%rdi
mov    0x10(%rsp),%r15
mov    %r15,%rsi
mov    %rbp,%rdx
mov    %r12d,%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    1262 <vp8_dequant_idct_add_uv_block_c+0x132>
mov    0x10(%rsp),%rbx
movzwl (%rbx),%eax
imul   (%r15),%ax
movswl %ax,%edi
mov    %rbp,%rsi
mov    %r12d,%edx
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    %r15,%rdi
mov    %rbx,%r15
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
lea    0x60(%r14),%r13
add    $0x4,%rbp
mov    0x8(%rsp),%rax
cmpb   $0x1,0x3(%rax)
jle    1288 <vp8_dequant_idct_add_uv_block_c+0x158>
mov    %r13,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
mov    %r12d,%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    12b5 <vp8_dequant_idct_add_uv_block_c+0x185>
movzwl (%r15),%eax
imul   0x0(%r13),%ax
movswl %ax,%edi
mov    %rbp,%rsi
mov    %r12d,%edx
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
lea    0x80(%r14),%rbx
mov    0x8(%rsp),%rax
cmpb   $0x2,0x4(%rax)
mov    0x20(%rsp),%r13
jl     12df <vp8_dequant_idct_add_uv_block_c+0x1af>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
mov    %r12d,%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    130a <vp8_dequant_idct_add_uv_block_c+0x1da>
movzwl (%r15),%eax
imul   (%rbx),%ax
movswl %ax,%edi
mov    %r13,%rsi
mov    %r12d,%edx
mov    %r13,%rcx
mov    %r12d,%r8d
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
lea    0xa0(%r14),%rbp
lea    0x4(%r13),%rcx
mov    0x8(%rsp),%rax
cmpb   $0x1,0x5(%rax)
jle    1333 <vp8_dequant_idct_add_uv_block_c+0x203>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %rcx,%rdx
mov    %r12d,%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    135c <vp8_dequant_idct_add_uv_block_c+0x22c>
movzwl (%r15),%eax
imul   0x0(%rbp),%ax
movswl %ax,%edi
mov    %rcx,%rsi
mov    %r12d,%edx
mov    %r12d,%r8d
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
lea    0xc0(%r14),%rbx
mov    0x18(%rsp),%rax
lea    (%rax,%r13,1),%rbp
add    $0x8,%rbp
mov    0x8(%rsp),%rax
cmpb   $0x1,0x6(%rax)
jle    138e <vp8_dequant_idct_add_uv_block_c+0x25e>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
mov    %r12d,%ecx
call   1050 <vp8_dequant_idct_add_c@plt>
jmp    13b9 <vp8_dequant_idct_add_uv_block_c+0x289>
movzwl (%r15),%eax
imul   (%rbx),%ax
movswl %ax,%edi
mov    %rbp,%rsi
mov    %r12d,%edx
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
add    $0xe0,%r14
add    $0x4,%rbp
mov    0x8(%rsp),%rax
cmpb   $0x1,0x7(%rax)
jle    13ee <vp8_dequant_idct_add_uv_block_c+0x2be>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
mov    %r12d,%ecx
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <vp8_dequant_idct_add_c@plt>
movzwl (%r15),%eax
imul   (%r14),%ax
movswl %ax,%edi
mov    %rbp,%rsi
mov    %r12d,%edx
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1030 <vp8_dc_only_idct_add_c@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x4,%edx
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <memset@plt>

LLVM IR (-O0):
define void @vp8_dequant_idct_add_uv_block_c(i16* %0, i16* %1, i8* %2, i8* %3, i32 %4, i8* %5) {
%7 = alloca i16*
%8 = alloca i16*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i32
store i16* %0, i16** %7
store i16* %1, i16** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32 %4, i32* %11
store i8* %5, i8** %12
store i32 0, i32* %13
br label %15
15: ; preds = %67, %6
%16 = load i32, i32* %13
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %70
18: ; preds = %15
store i32 0, i32* %14
br label %19
19: ; preds = %57, %18
%20 = load i32, i32* %14
%21 = icmp slt i32 %20, 2
br i1 %21, label %22, label %60
22: ; preds = %19
%23 = load i8*, i8** %12
%24 = getelementptr inbounds i8, i8* %23, i32 1
store i8* %24, i8** %12
%25 = load i8, i8* %23
%26 = sext i8 %25 to i32
%27 = icmp sgt i32 %26, 1
br i1 %27, label %28, label %34
28: ; preds = %22
%29 = load i16*, i16** %7
%30 = load i16*, i16** %8
%31 = load i8*, i8** %9
%32 = load i32, i32* %11
%33 = call i32 @vp8_dequant_idct_add_c(i16* %29, i16* %30, i8* %31, i32 %32)
br label %52
34: ; preds = %22
%35 = load i16*, i16** %7
%36 = getelementptr inbounds i16, i16* %35, i64 0
%37 = load i16, i16* %36
%38 = sext i16 %37 to i32
%39 = load i16*, i16** %8
%40 = getelementptr inbounds i16, i16* %39, i64 0
%41 = load i16, i16* %40
%42 = sext i16 %41 to i32
%43 = mul nsw i32 %38, %42
%44 = trunc i32 %43 to i16
%45 = load i8*, i8** %9
%46 = load i32, i32* %11
%47 = load i8*, i8** %9
%48 = load i32, i32* %11
%49 = call i32 @vp8_dc_only_idct_add_c(i16 signext %44, i8* %45, i32 %46, i8* %47, i32 %48)
%50 = load i16*, i16** %7
%51 = call i32 @memset(i16* %50, i32 0, i32 4)
br label %52
52: ; preds = %34, %28
%53 = load i16*, i16** %7
%54 = getelementptr inbounds i16, i16* %53, i64 16
store i16* %54, i16** %7
%55 = load i8*, i8** %9
%56 = getelementptr inbounds i8, i8* %55, i64 4
store i8* %56, i8** %9
br label %57
57: ; preds = %52
%58 = load i32, i32* %14
%59 = add nsw i32 %58, 1
store i32 %59, i32* %14
br label %19
60: ; preds = %19
%61 = load i32, i32* %11
%62 = mul nsw i32 4, %61
%63 = sub nsw i32 %62, 8
%64 = load i8*, i8** %9
%65 = sext i32 %63 to i64
%66 = getelementptr inbounds i8, i8* %64, i64 %65
store i8* %66, i8** %9
br label %67
67: ; preds = %60
%68 = load i32, i32* %13
%69 = add nsw i32 %68, 1
store i32 %69, i32* %13
br label %15
70: ; preds = %15
store i32 0, i32* %13
br label %71
71: ; preds = %123, %70
%72 = load i32, i32* %13
%73 = icmp slt i32 %72, 2
br i1 %73, label %74, label %126
74: ; preds = %71
store i32 0, i32* %14
br label %75
75: ; preds = %113, %74
%76 = load i32, i32* %14
%77 = icmp slt i32 %76, 2
br i1 %77, label %78, label %116
78: ; preds = %75
%79 = load i8*, i8** %12
%80 = getelementptr inbounds i8, i8* %79, i32 1
store i8* %80, i8** %12
%81 = load i8, i8* %79
%82 = sext i8 %81 to i32
%83 = icmp sgt i32 %82, 1
br i1 %83, label %84, label %90
84: ; preds = %78
%85 = load i16*, i16** %7
%86 = load i16*, i16** %8
%87 = load i8*, i8** %10
%88 = load i32, i32* %11
%89 = call i32 @vp8_dequant_idct_add_c(i16* %85, i16* %86, i8* %87, i32 %88)
br label %108
90: ; preds = %78
%91 = load i16*, i16** %7
%92 = getelementptr inbounds i16, i16* %91, i64 0
%93 = load i16, i16* %92
%94 = sext i16 %93 to i32
%95 = load i16*, i16** %8
%96 = getelementptr inbounds i16, i16* %95, i64 0
%97 = load i16, i16* %96
%98 = sext i16 %97 to i32
%99 = mul nsw i32 %94, %98
%100 = trunc i32 %99 to i16
%101 = load i8*, i8** %10
%102 = load i32, i32* %11
%103 = load i8*, i8** %10
%104 = load i32, i32* %11
%105 = call i32 @vp8_dc_only_idct_add_c(i16 signext %100, i8* %101, i32 %102, i8* %103, i32 %104)
%106 = load i16*, i16** %7
%107 = call i32 @memset(i16* %106, i32 0, i32 4)
br label %108
108: ; preds = %90, %84
%109 = load i16*, i16** %7
%110 = getelementptr inbounds i16, i16* %109, i64 16
store i16* %110, i16** %7
%111 = load i8*, i8** %10
%112 = getelementptr inbounds i8, i8* %111, i64 4
store i8* %112, i8** %10
br label %113
113: ; preds = %108
%114 = load i32, i32* %14
%115 = add nsw i32 %114, 1
store i32 %115, i32* %14
br label %75
116: ; preds = %75
%117 = load i32, i32* %11
%118 = mul nsw i32 4, %117
%119 = sub nsw i32 %118, 8
%120 = load i8*, i8** %10
%121 = sext i32 %119 to i64
%122 = getelementptr inbounds i8, i8* %120, i64 %121
store i8* %122, i8** %10
br label %123
123: ; preds = %116
%124 = load i32, i32* %13
%125 = add nsw i32 %124, 1
store i32 %125, i32* %13
br label %71
126: ; preds = %71
ret void
}

LLVM IR (-O2):
define void @vp8_dequant_idct_add_uv_block_c(i16* %0, i16* %1, i8* %2, i8* %3, i32 %4, i8* nocapture %5) {
%7 = shl nsw i32 %4, 2
%8 = add nsw i32 %7, -8
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, i8* %5, i64 1
%11 = load i8, i8* %5
%12 = icmp sgt i8 %11, 1
br i1 %12, label %13, label %15
13: ; preds = %6
%14 = tail call i32 @vp8_dequant_idct_add_c(i16* %0, i16* %1, i8* %2, i32 %4)
br label %21
15: ; preds = %6
%16 = load i16, i16* %0
%17 = load i16, i16* %1
%18 = mul i16 %17, %16
%19 = tail call i32 @vp8_dc_only_idct_add_c(i16 signext %18, i8* %2, i32 %4, i8* %2, i32 %4)
%20 = tail call i32 @memset(i16* %0, i32 0, i32 4)
br label %21
21: ; preds = %15, %13
%22 = getelementptr inbounds i16, i16* %0, i64 16
%23 = getelementptr inbounds i8, i8* %2, i64 4
%24 = load i8, i8* %10
%25 = icmp sgt i8 %24, 1
br i1 %25, label %32, label %26
26: ; preds = %21
%27 = load i16, i16* %22
%28 = load i16, i16* %1
%29 = mul i16 %28, %27
%30 = tail call i32 @vp8_dc_only_idct_add_c(i16 signext %29, i8* %23, i32 %4, i8* %23, i32 %4)
%31 = tail call i32 @memset(i16* %22, i32 0, i32 4)
br label %34
32: ; preds = %21
%33 = tail call i32 @vp8_dequant_idct_add_c(i16* %22, i16* %1, i8* %23, i32 %4)
br label %34
34: ; preds = %32, %26
%35 = getelementptr inbounds i16, i16* %0, i64 32
%36 = getelementptr inbounds i8, i8* %2, i64 8
%37 = getelementptr i8, i8* %5, i64 2
%38 = getelementptr inbounds i8, i8* %36, i64 %9
%39 = getelementptr i8, i8* %5, i64 3
%40 = load i8, i8* %37
%41 = icmp sgt i8 %40, 1
br i1 %41, label %48, label %42
42: ; preds = %34
%43 = load i16, i16* %35
%44 = load i16, i16* %1
%45 = mul i16 %44, %43
%46 = tail call i32 @vp8_dc_only_idct_add_c(i16 signext %45, i8* %38, i32 %4, i8* %38, i32 %4)
%47 = tail call i32 @memset(i16* %35, i32 0, i32 4)
br label %50
48: ; preds = %34
%49 = tail call i32 @vp8_dequant_idct_add_c(i16* %35, i16* %1, i8* %38, i32 %4)
br label %50
50: ; preds = %48, %42
%51 = getelementptr inbounds i16, i16* %0, i64 48
%52 = getelementptr inbounds i8, i8* %38, i64 4
%53 = load i8, i8* %39
%54 = icmp sgt i8 %53, 1
br i1 %54, label %61, label %55
55: ; preds = %50
%56 = load i16, i16* %51
%57 = load i16, i16* %1
%58 = mul i16 %57, %56
%59 = tail call i32 @vp8_dc_only_idct_add_c(i16 signext %58, i8* %52, i32 %4, i8* %52, i32 %4)
%60 = tail call i32 @memset(i16* %51, i32 0, i32 4)
br label %63
61: ; preds = %50
%62 = tail call i32 @vp8_dequant_idct_add_c(i16* %51, i16* %1, i8* %52, i32 %4)
br label %63
63: ; preds = %61, %55
%64 = getelementptr inbounds i16, i16* %0, i64 64
%65 = getelementptr i8, i8* %5, i64 4
%66 = getelementptr i8, i8* %5, i64 5
%67 = load i8, i8* %65
%68 = icmp sgt i8 %67, 1
br i1 %68, label %69, label %71
69: ; preds = %63
%70 = tail call i32 @vp8_dequant_idct_add_c(i16* %64, i16* %1, i8* %3, i32 %4)
br label %77
71: ; preds = %63
%72 = load i16, i16* %64
%73 = load i16, i16* %1
%74 = mul i16 %73, %72
%75 = tail call i32 @vp8_dc_only_idct_add_c(i16 signext %74, i8* %3, i32 %4, i8* %3, i32 %4)
%76 = tail call i32 @memset(i16* %64, i32 0, i32 4)
br label %77
77: ; preds = %71, %69
%78 = getelementptr inbounds i16, i16* %0, i64 80
%79 = getelementptr inbounds i8, i8* %3, i64 4
%80 = load i8, i8* %66
%81 = icmp sgt i8 %80, 1
br i1 %81, label %88, label %82
82: ; preds = %77
%83 = load i16, i16* %78
%84 = load i16, i16* %1
%85 = mul i16 %84, %83
%86 = tail call i32 @vp8_dc_only_idct_add_c(i16 signext %85, i8* %79, i32 %4, i8* %79, i32 %4)
%87 = tail call i32 @memset(i16* %78, i32 0, i32 4)
br label %90
88: ; preds = %77
%89 = tail call i32 @vp8_dequant_idct_add_c(i16* %78, i16* %1, i8* %79, i32 %4)
br label %90
90: ; preds = %88, %82
%91 = getelementptr inbounds i16, i16* %0, i64 96
%92 = getelementptr inbounds i8, i8* %3, i64 8
%93 = getelementptr i8, i8* %5, i64 6
%94 = getelementptr inbounds i8, i8* %92, i64 %9
%95 = getelementptr i8, i8* %5, i64 7
%96 = load i8, i8* %93
%97 = icmp sgt i8 %96, 1
br i1 %97, label %104, label %98
98: ; preds = %90
%99 = load i16, i16* %91
%100 = load i16, i16* %1
%101 = mul i16 %100, %99
%102 = tail call i32 @vp8_dc_only_idct_add_c(i16 signext %101, i8* %94, i32 %4, i8* %94, i32 %4)
%103 = tail call i32 @memset(i16* %91, i32 0, i32 4)
br label %106
104: ; preds = %90
%105 = tail call i32 @vp8_dequant_idct_add_c(i16* %91, i16* %1, i8* %94, i32 %4)
br label %106
106: ; preds = %104, %98
%107 = getelementptr inbounds i16, i16* %0, i64 112
%108 = getelementptr inbounds i8, i8* %94, i64 4
%109 = load i8, i8* %95
%110 = icmp sgt i8 %109, 1
br i1 %110, label %117, label %111
111: ; preds = %106
%112 = load i16, i16* %107
%113 = load i16, i16* %1
%114 = mul i16 %113, %112
%115 = tail call i32 @vp8_dc_only_idct_add_c(i16 signext %114, i8* %108, i32 %4, i8* %108, i32 %4)
%116 = tail call i32 @memset(i16* %107, i32 0, i32 4)
br label %119
117: ; preds = %106
%118 = tail call i32 @vp8_dequant_idct_add_c(i16* %107, i16* %1, i8* %108, i32 %4)
br label %119
119: ; preds = %117, %111
ret void
}