int find_peaks(histogram, peak1, peak2)
unsigned long histogram[];
int *peak1, *peak2;
{
  int distance[30], peaks[30][2];
  int i, j = 0, max = 0, max_place = 0;
  for (i = 0; i < 30; i++) {
    distance[i] = 0;
    peaks[i][0] = -1;
    peaks[i][1] = -1;
  }
  for (i = 0; i <= 255; i++) {
    max = histogram[i];
    max_place = i;
    insert_into_peaks(peaks, max, max_place);
  }
  for (i = 1; i < 30; i++) {
    distance[i] = peaks[0][1] - peaks[i][1];
    if (distance[i] < 0)
      distance[i] = distance[i] * (-1);
  }
  *peak1 = peaks[0][1];
  for (i = 30 - 1; i > 0; i--)
    if (distance[i] > 50)
      *peak2 = peaks[i][1];
  return (1);
}


x86 assembly (clang, -O0):
<find_peaks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x188(%rbp)
movl   $0x0,-0x18c(%rbp)
movl   $0x0,-0x190(%rbp)
movl   $0x0,-0x184(%rbp)
cmpl   $0x1e,-0x184(%rbp)
jge    11a6 <find_peaks+0x96>
movslq -0x184(%rbp),%rax
movl   $0x0,-0x90(%rbp,%rax,4)
movslq -0x184(%rbp),%rax
movl   $0xffffffff,-0x180(%rbp,%rax,8)
ff ff ff ff
movslq -0x184(%rbp),%rax
movl   $0xffffffff,-0x17c(%rbp,%rax,8)
ff ff ff ff
mov    -0x184(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x184(%rbp)
jmp    114f <find_peaks+0x3f>
movl   $0x0,-0x184(%rbp)
cmpl   $0xff,-0x184(%rbp)
jg     120f <find_peaks+0xff>
mov    -0x8(%rbp),%rax
movslq -0x184(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %eax,-0x18c(%rbp)
mov    -0x184(%rbp),%eax
mov    %eax,-0x190(%rbp)
lea    -0x180(%rbp),%rdi
mov    -0x18c(%rbp),%esi
mov    -0x190(%rbp),%edx
mov    $0x0,%al
call   1030 <insert_into_peaks@plt>
mov    -0x184(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x184(%rbp)
jmp    11b0 <find_peaks+0xa0>
movl   $0x1,-0x184(%rbp)
cmpl   $0x1e,-0x184(%rbp)
jge    1293 <find_peaks+0x183>
mov    -0x17c(%rbp),%ecx
movslq -0x184(%rbp),%rax
sub    -0x17c(%rbp,%rax,8),%ecx
movslq -0x184(%rbp),%rax
mov    %ecx,-0x90(%rbp,%rax,4)
movslq -0x184(%rbp),%rax
cmpl   $0x0,-0x90(%rbp,%rax,4)
jge    127a <find_peaks+0x16a>
movslq -0x184(%rbp),%rax
imul   $0xffffffff,-0x90(%rbp,%rax,4),%ecx
ff
movslq -0x184(%rbp),%rax
mov    %ecx,-0x90(%rbp,%rax,4)
jmp    127f <find_peaks+0x16f>
mov    -0x184(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x184(%rbp)
jmp    1219 <find_peaks+0x109>
mov    -0x17c(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1d,-0x184(%rbp)
cmpl   $0x0,-0x184(%rbp)
jle    12f8 <find_peaks+0x1e8>
movslq -0x184(%rbp),%rax
cmpl   $0x32,-0x90(%rbp,%rax,4)
32
jle    12df <find_peaks+0x1cf>
movslq -0x184(%rbp),%rax
mov    -0x17c(%rbp,%rax,8),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
jmp    12e4 <find_peaks+0x1d4>
mov    -0x184(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x184(%rbp)
jmp    12a9 <find_peaks+0x199>
mov    $0x1,%eax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_peaks>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x170,%rsp
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%r13
pxor   %xmm0,%xmm0
movdqa %xmm0,(%rsp)
movdqa %xmm0,0x10(%rsp)
movdqa %xmm0,0x20(%rsp)
movdqa %xmm0,0x30(%rsp)
movdqa %xmm0,0x40(%rsp)
movdqa %xmm0,0x50(%rsp)
movdqa %xmm0,0x60(%rsp)
movq   $0x0,0x70(%rsp)
pcmpeqd %xmm0,%xmm0
movdqa %xmm0,0x80(%rsp)
movdqa %xmm0,0x90(%rsp)
movdqa %xmm0,0xa0(%rsp)
movdqa %xmm0,0xb0(%rsp)
movdqa %xmm0,0xc0(%rsp)
movdqa %xmm0,0xd0(%rsp)
movdqa %xmm0,0xe0(%rsp)
movdqa %xmm0,0xf0(%rsp)
movdqa %xmm0,0x100(%rsp)
movdqa %xmm0,0x110(%rsp)
movdqa %xmm0,0x120(%rsp)
movdqa %xmm0,0x130(%rsp)
movdqa %xmm0,0x140(%rsp)
movdqa %xmm0,0x150(%rsp)
movdqa %xmm0,0x160(%rsp)
lea    0x80(%rsp),%r12
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x0(%r13,%rbx,8),%esi
mov    %r12,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <insert_into_peaks@plt>
add    $0x1,%rbx
cmp    $0x100,%rbx
jne    1200 <find_peaks+0xf0>
mov    0x84(%rsp),%eax
movd   %eax,%xmm0
pshufd $0x0,%xmm0,%xmm0
movups 0x9c(%rsp),%xmm1
movups 0x8c(%rsp),%xmm2
shufps $0x88,%xmm1,%xmm2
movdqa %xmm0,%xmm1
psubd  %xmm2,%xmm1
movdqa %xmm1,%xmm2
psrad  $0x1f,%xmm2
paddd  %xmm2,%xmm1
pxor   %xmm2,%xmm1
movdqu %xmm1,0x4(%rsp)
movups 0xbc(%rsp),%xmm1
movups 0xac(%rsp),%xmm2
shufps $0x88,%xmm1,%xmm2
movdqa %xmm0,%xmm1
psubd  %xmm2,%xmm1
movdqa %xmm1,%xmm2
psrad  $0x1f,%xmm2
paddd  %xmm2,%xmm1
pxor   %xmm2,%xmm1
movdqu %xmm1,0x14(%rsp)
movups 0xdc(%rsp),%xmm1
movups 0xcc(%rsp),%xmm2
shufps $0x88,%xmm1,%xmm2
movdqa %xmm0,%xmm1
psubd  %xmm2,%xmm1
movdqa %xmm1,%xmm2
psrad  $0x1f,%xmm2
paddd  %xmm2,%xmm1
pxor   %xmm2,%xmm1
movdqu %xmm1,0x24(%rsp)
movups 0xfc(%rsp),%xmm1
movups 0xec(%rsp),%xmm2
shufps $0x88,%xmm1,%xmm2
movdqa %xmm0,%xmm1
psubd  %xmm2,%xmm1
movdqa %xmm1,%xmm2
psrad  $0x1f,%xmm2
paddd  %xmm2,%xmm1
pxor   %xmm2,%xmm1
movdqu %xmm1,0x34(%rsp)
movups 0x11c(%rsp),%xmm1
movups 0x10c(%rsp),%xmm2
shufps $0x88,%xmm1,%xmm2
movdqa %xmm0,%xmm1
psubd  %xmm2,%xmm1
movdqa %xmm1,%xmm2
psrad  $0x1f,%xmm2
paddd  %xmm2,%xmm1
pxor   %xmm2,%xmm1
movdqu %xmm1,0x44(%rsp)
movups 0x13c(%rsp),%xmm1
movups 0x12c(%rsp),%xmm2
shufps $0x88,%xmm1,%xmm2
movdqa %xmm0,%xmm1
psubd  %xmm2,%xmm1
movdqa %xmm1,%xmm2
psrad  $0x1f,%xmm2
paddd  %xmm2,%xmm1
pxor   %xmm2,%xmm1
movdqu %xmm1,0x54(%rsp)
movups 0x15c(%rsp),%xmm1
movups 0x14c(%rsp),%xmm2
shufps $0x88,%xmm1,%xmm2
psubd  %xmm2,%xmm0
movdqa %xmm0,%xmm1
psrad  $0x1f,%xmm1
paddd  %xmm1,%xmm0
mov    %eax,%ecx
sub    0x16c(%rsp),%ecx
pxor   %xmm1,%xmm0
mov    %ecx,%edx
neg    %edx
cmovs  %ecx,%edx
movdqu %xmm0,0x64(%rsp)
mov    %edx,0x74(%rsp)
mov    %eax,(%r14)
mov    $0x1d,%eax
jmp    13b4 <find_peaks+0x2a4>
nopl   (%rax)
add    $0xfffffffffffffffe,%rax
cmpl   $0x33,(%rsp,%rax,4)
jl     13c4 <find_peaks+0x2b4>
mov    0x84(%rsp,%rax,8),%ecx
mov    %ecx,(%r15)
cmp    $0x2,%rax
jb     13da <find_peaks+0x2ca>
cmpl   $0x33,-0x4(%rsp,%rax,4)
jl     13b0 <find_peaks+0x2a0>
mov    0x7c(%rsp,%rax,8),%ecx
mov    %ecx,(%r15)
jmp    13b0 <find_peaks+0x2a0>
mov    $0x1,%eax
add    $0x170,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i32 @find_peaks(i64* nocapture %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2) {
%4 = alloca [30 x i32]
%5 = bitcast [30 x i32]* %4 to i8*
%6 = alloca [30 x [2 x i32]]
%7 = bitcast [30 x [2 x i32]]* %6 to i8*
%8 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 0
br label %75
9: ; preds = %75
%10 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 0, i64 1
%11 = load i32, i32* %10
%12 = insertelement <4 x i32> poison, i32 %11, i64 0
%13 = shufflevector <4 x i32> %12, <4 x i32> poison, <4 x i32> zeroinitializer
%14 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 1, i64 1
%15 = bitcast i32* %14 to <8 x i32>*
%16 = load <8 x i32>, <8 x i32>* %15
%17 = shufflevector <8 x i32> %16, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%18 = sub nsw <4 x i32> %13, %17
%19 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 1
%20 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %18, i1 true)
%21 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> %20, <4 x i32>* %21
%22 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 5, i64 1
%23 = bitcast i32* %22 to <8 x i32>*
%24 = load <8 x i32>, <8 x i32>* %23
%25 = shufflevector <8 x i32> %24, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%26 = sub nsw <4 x i32> %13, %25
%27 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 5
%28 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %26, i1 true)
%29 = bitcast i32* %27 to <4 x i32>*
store <4 x i32> %28, <4 x i32>* %29
%30 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 9, i64 1
%31 = bitcast i32* %30 to <8 x i32>*
%32 = load <8 x i32>, <8 x i32>* %31
%33 = shufflevector <8 x i32> %32, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%34 = sub nsw <4 x i32> %13, %33
%35 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 9
%36 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %34, i1 true)
%37 = bitcast i32* %35 to <4 x i32>*
store <4 x i32> %36, <4 x i32>* %37
%38 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 13, i64 1
%39 = bitcast i32* %38 to <8 x i32>*
%40 = load <8 x i32>, <8 x i32>* %39
%41 = shufflevector <8 x i32> %40, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%42 = sub nsw <4 x i32> %13, %41
%43 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 13
%44 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %42, i1 true)
%45 = bitcast i32* %43 to <4 x i32>*
store <4 x i32> %44, <4 x i32>* %45
%46 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 17, i64 1
%47 = bitcast i32* %46 to <8 x i32>*
%48 = load <8 x i32>, <8 x i32>* %47
%49 = shufflevector <8 x i32> %48, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%50 = sub nsw <4 x i32> %13, %49
%51 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 17
%52 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %50, i1 true)
%53 = bitcast i32* %51 to <4 x i32>*
store <4 x i32> %52, <4 x i32>* %53
%54 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 21, i64 1
%55 = bitcast i32* %54 to <8 x i32>*
%56 = load <8 x i32>, <8 x i32>* %55
%57 = shufflevector <8 x i32> %56, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%58 = sub nsw <4 x i32> %13, %57
%59 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 21
%60 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %58, i1 true)
%61 = bitcast i32* %59 to <4 x i32>*
store <4 x i32> %60, <4 x i32>* %61
%62 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 25, i64 1
%63 = bitcast i32* %62 to <8 x i32>*
%64 = load <8 x i32>, <8 x i32>* %63
%65 = shufflevector <8 x i32> %64, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%66 = sub nsw <4 x i32> %13, %65
%67 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 25
%68 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %66, i1 true)
%69 = bitcast i32* %67 to <4 x i32>*
store <4 x i32> %68, <4 x i32>* %69
%70 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 29, i64 1
%71 = load i32, i32* %70
%72 = sub nsw i32 %11, %71
%73 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 29
%74 = call i32 @llvm.abs.i32(i32 %72, i1 true)
store i32 %74, i32* %73
store i32 %11, i32* %1
br label %84
75: ; preds = %3, %75
%76 = phi i64 [ 0, %3 ], [ %82, %75 ]
%77 = getelementptr inbounds i64, i64* %0, i64 %76
%78 = load i64, i64* %77
%79 = trunc i64 %78 to i32
%80 = trunc i64 %76 to i32
%81 = call i32 ([2 x i32]*, i32, i32, ...) bitcast (i32 (...)* @insert_into_peaks to i32 ([2 x i32]*, i32, i32, ...)*)([2 x i32]* %8, i32 %79, i32 %80)
%82 = add nuw nsw i64 %76, 1
%83 = icmp eq i64 %82, 256
br i1 %83, label %9, label %75
84: ; preds = %102, %9
%85 = phi i64 [ 29, %9 ], [ %103, %102 ]
%86 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 %85
%87 = load i32, i32* %86
%88 = icmp sgt i32 %87, 50
br i1 %88, label %89, label %92
89: ; preds = %84
%90 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 %85, i64 1
%91 = load i32, i32* %90
store i32 %91, i32* %2
br label %92
92: ; preds = %84, %89
%93 = add nsw i64 %85, -1
%94 = icmp ugt i64 %85, 1
br i1 %94, label %95, label %104
95: ; preds = %92
%96 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 %93
%97 = load i32, i32* %96
%98 = icmp sgt i32 %97, 50
br i1 %98, label %99, label %102
99: ; preds = %95
%100 = getelementptr inbounds [30 x [2 x i32]], [30 x [2 x i32]]* %6, i64 0, i64 %93, i64 1
%101 = load i32, i32* %100
store i32 %101, i32* %2
br label %102
102: ; preds = %99, %95
%103 = add nsw i64 %85, -2
br label %84
104: ; preds = %92
ret i32 1
}