#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 dgt3000Mode25();
int /*<<< orphan*/ dgt3000SetCC();
int /*<<< orphan*/ dgt3000Wake();
int /*<<< orphan*/ i2cReset();
int /*<<< orphan*/ usleep(int);
int dgtpicom_configure() {
  int e;
  int wakeCount = 0;
  int setCCCount = 0;
  int resetCount = 0;
  while (1) {
    e = dgt3000Mode25();
    if (e == -1 || e == -2) {
      setCCCount++;
      if (setCCCount > 3) {
        return e;
      }
      usleep(10000);
      dgt3000SetCC();
    } else if (e == -6) {
      resetCount++;
      if (resetCount > 1) {
        return e;
      }
      i2cReset();
      continue;
    } else if (e == -4 || e == -5) {
      continue;
    } else if (e == -3) {
      wakeCount++;
      if (wakeCount > 3) {
        return e;
      }
      dgt3000Wake();
      continue;
    } else {
      usleep(5000);
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<dgtpicom_configure>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x0,%al
call   1060 <dgt3000Mode25@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
je     118b <dgtpicom_configure+0x3b>
cmpl   $0xfffffffe,-0x8(%rbp)
jne    11bf <dgtpicom_configure+0x6f>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x3,-0x10(%rbp)
jle    11a9 <dgtpicom_configure+0x59>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    125b <dgtpicom_configure+0x10b>
mov    $0x2710,%edi
call   1070 <usleep@plt>
mov    $0x0,%al
call   1050 <dgt3000SetCC@plt>
jmp    124f <dgtpicom_configure+0xff>
cmpl   $0xfffffffa,-0x8(%rbp)
jne    11f3 <dgtpicom_configure+0xa3>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jle    11e7 <dgtpicom_configure+0x97>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    125b <dgtpicom_configure+0x10b>
mov    $0x0,%al
call   1040 <i2cReset@plt>
jmp    116d <dgtpicom_configure+0x1d>
cmpl   $0xfffffffc,-0x8(%rbp)
je     1207 <dgtpicom_configure+0xb7>
cmpl   $0xfffffffb,-0x8(%rbp)
jne    120c <dgtpicom_configure+0xbc>
jmp    116d <dgtpicom_configure+0x1d>
cmpl   $0xfffffffd,-0x8(%rbp)
jne    1240 <dgtpicom_configure+0xf0>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jle    1234 <dgtpicom_configure+0xe4>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    125b <dgtpicom_configure+0x10b>
mov    $0x0,%al
call   1030 <dgt3000Wake@plt>
jmp    116d <dgtpicom_configure+0x1d>
mov    $0x1388,%edi
call   1070 <usleep@plt>
jmp    1254 <dgtpicom_configure+0x104>
jmp    116d <dgtpicom_configure+0x1d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dgtpicom_configure>:
push   %rbp
push   %r14
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <dgt3000Mode25@plt>
cmp    $0xfffffffe,%eax
jae    11d7 <dgtpicom_configure+0x87>
cmp    $0xfffffffa,%eax
je     118b <dgtpicom_configure+0x3b>
lea    0x5(%rax),%ecx
cmp    $0x2,%ecx
jb     1160 <dgtpicom_configure+0x10>
xor    %ebp,%ebp
xor    %ebx,%ebx
cmp    $0xfffffffd,%eax
je     12f4 <dgtpicom_configure+0x1a4>
jmp    143b <dgtpicom_configure+0x2eb>
xor    %eax,%eax
call   1040 <i2cReset@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1060 <dgt3000Mode25@plt>
cmp    $0xfffffffd,%eax
ja     11d2 <dgtpicom_configure+0x82>
cmp    $0xfffffffa,%eax
je     142a <dgtpicom_configure+0x2da>
lea    0x5(%rax),%ecx
cmp    $0x2,%ecx
jb     11a0 <dgtpicom_configure+0x50>
mov    $0x1,%ebx
xor    %ebp,%ebp
cmp    $0xfffffffd,%eax
je     12f4 <dgtpicom_configure+0x1a4>
jmp    143b <dgtpicom_configure+0x2eb>
mov    $0x1,%ebx
mov    $0x2710,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1050 <dgt3000SetCC@plt>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <dgt3000Mode25@plt>
cmp    $0xfffffffd,%eax
ja     1221 <dgtpicom_configure+0xd1>
cmp    $0xfffffffa,%eax
je     120b <dgtpicom_configure+0xbb>
lea    0x5(%rax),%ecx
cmp    $0x2,%ecx
jb     11f0 <dgtpicom_configure+0xa0>
jmp    1271 <dgtpicom_configure+0x121>
test   %ebx,%ebx
jne    142a <dgtpicom_configure+0x2da>
xor    %eax,%eax
call   1040 <i2cReset@plt>
mov    $0x1,%ebx
jmp    11f0 <dgtpicom_configure+0xa0>
mov    $0x2710,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1050 <dgt3000SetCC@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1060 <dgt3000Mode25@plt>
cmp    $0xfffffffd,%eax
ja     1281 <dgtpicom_configure+0x131>
cmp    $0xfffffffa,%eax
je     125b <dgtpicom_configure+0x10b>
lea    0x5(%rax),%ecx
cmp    $0x2,%ecx
jb     1240 <dgtpicom_configure+0xf0>
jmp    12d7 <dgtpicom_configure+0x187>
test   %ebx,%ebx
jne    142a <dgtpicom_configure+0x2da>
xor    %eax,%eax
call   1040 <i2cReset@plt>
mov    $0x1,%ebx
jmp    1240 <dgtpicom_configure+0xf0>
mov    $0x1,%ebp
cmp    $0xfffffffd,%eax
jne    143b <dgtpicom_configure+0x2eb>
jmp    12f4 <dgtpicom_configure+0x1a4>
mov    $0x2710,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1050 <dgt3000SetCC@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1060 <dgt3000Mode25@plt>
cmp    $0xfffffffd,%eax
ja     1447 <dgtpicom_configure+0x2f7>
cmp    $0xfffffffa,%eax
je     12c1 <dgtpicom_configure+0x171>
mov    %eax,%ecx
add    $0x5,%ecx
cmp    $0x2,%ecx
jb     12a0 <dgtpicom_configure+0x150>
jmp    12e6 <dgtpicom_configure+0x196>
test   %ebx,%ebx
jne    142a <dgtpicom_configure+0x2da>
xor    %eax,%eax
call   1040 <i2cReset@plt>
mov    $0x1,%ebx
jmp    12a0 <dgtpicom_configure+0x150>
mov    $0x2,%ebp
cmp    $0xfffffffd,%eax
je     12f4 <dgtpicom_configure+0x1a4>
jmp    143b <dgtpicom_configure+0x2eb>
mov    $0x3,%ebp
cmp    $0xfffffffd,%eax
jne    143b <dgtpicom_configure+0x2eb>
xor    %eax,%eax
call   1030 <dgt3000Wake@plt>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <dgt3000Mode25@plt>
cmp    $0xfffffffd,%eax
ja     131b <dgtpicom_configure+0x1cb>
cmp    $0xfffffffa,%eax
je     133a <dgtpicom_configure+0x1ea>
lea    0x5(%rax),%ecx
cmp    $0x2,%ecx
jb     1300 <dgtpicom_configure+0x1b0>
jmp    1350 <dgtpicom_configure+0x200>
cmp    $0x3,%ebp
je     1447 <dgtpicom_configure+0x2f7>
add    $0x1,%ebp
mov    $0x2710,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1050 <dgt3000SetCC@plt>
jmp    1300 <dgtpicom_configure+0x1b0>
test   %ebx,%ebx
jne    142a <dgtpicom_configure+0x2da>
xor    %eax,%eax
call   1040 <i2cReset@plt>
mov    $0x1,%ebx
jmp    1300 <dgtpicom_configure+0x1b0>
cmp    $0xfffffffd,%eax
jne    143b <dgtpicom_configure+0x2eb>
xor    %eax,%eax
call   1030 <dgt3000Wake@plt>
cmp    $0x4,%ebp
mov    $0x3,%r14d
cmovge %ebp,%r14d
nopl   (%rax)
xor    %eax,%eax
call   1060 <dgt3000Mode25@plt>
cmp    $0xfffffffd,%eax
ja     138b <dgtpicom_configure+0x23b>
cmp    $0xfffffffa,%eax
je     13aa <dgtpicom_configure+0x25a>
lea    0x5(%rax),%ecx
cmp    $0x2,%ecx
jb     1370 <dgtpicom_configure+0x220>
jmp    13c0 <dgtpicom_configure+0x270>
cmp    %r14d,%ebp
je     1447 <dgtpicom_configure+0x2f7>
add    $0x1,%ebp
mov    $0x2710,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1050 <dgt3000SetCC@plt>
jmp    1370 <dgtpicom_configure+0x220>
test   %ebx,%ebx
jne    142a <dgtpicom_configure+0x2da>
xor    %eax,%eax
call   1040 <i2cReset@plt>
mov    $0x1,%ebx
jmp    1370 <dgtpicom_configure+0x220>
cmp    $0xfffffffd,%eax
jne    143b <dgtpicom_configure+0x2eb>
xor    %eax,%eax
call   1030 <dgt3000Wake@plt>
cmp    $0x4,%ebp
mov    $0x3,%r14d
cmovge %ebp,%r14d
nopl   0x0(%rax)
xor    %eax,%eax
call   1060 <dgt3000Mode25@plt>
mov    %eax,%ecx
cmp    $0xfffffffd,%eax
ja     13fd <dgtpicom_configure+0x2ad>
cmp    $0xfffffffa,%ecx
je     1418 <dgtpicom_configure+0x2c8>
lea    0x5(%rcx),%eax
cmp    $0x2,%eax
jb     13e0 <dgtpicom_configure+0x290>
jmp    1431 <dgtpicom_configure+0x2e1>
cmp    %r14d,%ebp
je     144c <dgtpicom_configure+0x2fc>
add    $0x1,%ebp
mov    $0x2710,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1050 <dgt3000SetCC@plt>
jmp    13e0 <dgtpicom_configure+0x290>
test   %ebx,%ebx
jne    142a <dgtpicom_configure+0x2da>
xor    %eax,%eax
call   1040 <i2cReset@plt>
mov    $0x1,%ebx
jmp    13e0 <dgtpicom_configure+0x290>
mov    $0xfffffffa,%eax
jmp    1447 <dgtpicom_configure+0x2f7>
mov    $0xfffffffd,%eax
cmp    $0xfffffffd,%ecx
je     1447 <dgtpicom_configure+0x2f7>
mov    $0x1388,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %ecx,%eax
jmp    1447 <dgtpicom_configure+0x2f7>

LLVM IR (-O0):
define i32 @dgtpicom_configure() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %0, %33, %41, %52, %56
%7 = call i32 (...) @dgt3000Mode25()
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, -1
br i1 %9, label %13, label %10
10: ; preds = %6
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, -2
br i1 %12, label %13, label %23
13: ; preds = %10, %6
%14 = load i32, i32* %4
%15 = add nsw i32 %14, 1
store i32 %15, i32* %4
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 3
br i1 %17, label %18, label %20
18: ; preds = %13
%19 = load i32, i32* %2
store i32 %19, i32* %1
br label %58
20: ; preds = %13
%21 = call i32 @usleep(i32 10000)
%22 = call i32 (...) @dgt3000SetCC()
br label %56
23: ; preds = %10
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, -6
br i1 %25, label %26, label %35
26: ; preds = %23
%27 = load i32, i32* %5
%28 = add nsw i32 %27, 1
store i32 %28, i32* %5
%29 = load i32, i32* %5
%30 = icmp sgt i32 %29, 1
br i1 %30, label %31, label %33
31: ; preds = %26
%32 = load i32, i32* %2
store i32 %32, i32* %1
br label %58
33: ; preds = %26
%34 = call i32 (...) @i2cReset()
br label %6
35: ; preds = %23
%36 = load i32, i32* %2
%37 = icmp eq i32 %36, -4
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = load i32, i32* %2
%40 = icmp eq i32 %39, -5
br i1 %40, label %41, label %42
41: ; preds = %38, %35
br label %6
42: ; preds = %38
%43 = load i32, i32* %2
%44 = icmp eq i32 %43, -3
br i1 %44, label %45, label %54
45: ; preds = %42
%46 = load i32, i32* %3
%47 = add nsw i32 %46, 1
store i32 %47, i32* %3
%48 = load i32, i32* %3
%49 = icmp sgt i32 %48, 3
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = load i32, i32* %2
store i32 %51, i32* %1
br label %58
52: ; preds = %45
%53 = call i32 (...) @dgt3000Wake()
br label %6
54: ; preds = %42
%55 = call i32 @usleep(i32 5000)
br label %57
56: ; preds = %20
br label %6
57: ; preds = %54
store i32 0, i32* %1
br label %58
58: ; preds = %57, %50, %31, %18
%59 = load i32, i32* %1
ret i32 %59
}

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