#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 EINVAL;
int clearstats(int, char const **);
int dump_regs(int, char const **);
int filter_cmd(int, char const **);
int get_sge_context(int, char const **);
int loadfw(int, char const **);
int memdump(int, char const **);
int read_i2c(int, char const **);
int read_tcb(int, char const **);
int register_io(int, char const **, int);
int /*<<< orphan*/ strcmp(char const *, char *);
int /*<<< orphan*/ warnx(char *, char const *);
int run_cmd(int argc, const char *argv[]) {
  int rc = -1;
  const char *cmd = argv[0];
  argc--;
  argv++;
  if (!strcmp(cmd, "reg") || !strcmp(cmd, "reg32"))
    rc = register_io(argc, argv, 4);
  else if (!strcmp(cmd, "reg64"))
    rc = register_io(argc, argv, 8);
  else if (!strcmp(cmd, "regdump"))
    rc = dump_regs(argc, argv);
  else if (!strcmp(cmd, "filter"))
    rc = filter_cmd(argc, argv);
  else if (!strcmp(cmd, "context"))
    rc = get_sge_context(argc, argv);
  else if (!strcmp(cmd, "loadfw"))
    rc = loadfw(argc, argv);
  else if (!strcmp(cmd, "memdump"))
    rc = memdump(argc, argv);
  else if (!strcmp(cmd, "tcb"))
    rc = read_tcb(argc, argv);
  else if (!strcmp(cmd, "i2c"))
    rc = read_i2c(argc, argv);
  else if (!strcmp(cmd, "clearstats"))
    rc = clearstats(argc, argv);
  else {
    rc = EINVAL;
    warnx("invalid command \"%s\"", cmd);
  }
  return (rc);
}


x86 assembly (clang, -O0):
<run_cmd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xffffffff,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xe0f(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
je     1218 <run_cmd+0x68>
mov    -0x20(%rbp),%rdi
lea    0xdfa(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1231 <run_cmd+0x81>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1050 <register_io@plt>
mov    %eax,-0x14(%rbp)
jmp    1414 <run_cmd+0x264>
mov    -0x20(%rbp),%rdi
lea    0xdce(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1263 <run_cmd+0xb3>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x8,%edx
call   1050 <register_io@plt>
mov    %eax,-0x14(%rbp)
jmp    140f <run_cmd+0x25f>
mov    -0x20(%rbp),%rdi
lea    0xda2(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1290 <run_cmd+0xe0>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10a0 <dump_regs@plt>
mov    %eax,-0x14(%rbp)
jmp    140a <run_cmd+0x25a>
mov    -0x20(%rbp),%rdi
lea    0xd7d(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    12bd <run_cmd+0x10d>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10c0 <filter_cmd@plt>
mov    %eax,-0x14(%rbp)
jmp    1405 <run_cmd+0x255>
mov    -0x20(%rbp),%rdi
lea    0xd57(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    12ea <run_cmd+0x13a>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <get_sge_context@plt>
mov    %eax,-0x14(%rbp)
jmp    1400 <run_cmd+0x250>
mov    -0x20(%rbp),%rdi
lea    0xd32(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1317 <run_cmd+0x167>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <loadfw@plt>
mov    %eax,-0x14(%rbp)
jmp    13fb <run_cmd+0x24b>
mov    -0x20(%rbp),%rdi
lea    0xd0c(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1344 <run_cmd+0x194>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10d0 <memdump@plt>
mov    %eax,-0x14(%rbp)
jmp    13f6 <run_cmd+0x246>
mov    -0x20(%rbp),%rdi
lea    0xce7(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1371 <run_cmd+0x1c1>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <read_tcb@plt>
mov    %eax,-0x14(%rbp)
jmp    13f1 <run_cmd+0x241>
mov    -0x20(%rbp),%rdi
lea    0xcbe(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    139e <run_cmd+0x1ee>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10b0 <read_i2c@plt>
mov    %eax,-0x14(%rbp)
jmp    13ec <run_cmd+0x23c>
mov    -0x20(%rbp),%rdi
lea    0xc95(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    13cb <run_cmd+0x21b>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <clearstats@plt>
mov    %eax,-0x14(%rbp)
jmp    13e7 <run_cmd+0x237>
mov    0x2c0e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xc67(%rip),%rdi
call   1070 <warnx@plt>
jmp    13ec <run_cmd+0x23c>
jmp    13f1 <run_cmd+0x241>
jmp    13f6 <run_cmd+0x246>
jmp    13fb <run_cmd+0x24b>
jmp    1400 <run_cmd+0x250>
jmp    1405 <run_cmd+0x255>
jmp    140a <run_cmd+0x25a>
jmp    140f <run_cmd+0x25f>
jmp    1414 <run_cmd+0x264>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_cmd>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%ebp
mov    (%rsi),%r14
add    $0xffffffff,%ebp
add    $0x8,%rbx
lea    0xe36(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     12df <run_cmd+0x12f>
lea    0xe23(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     12df <run_cmd+0x12f>
lea    0xe12(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     12f2 <run_cmd+0x142>
lea    0xe01(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     12fe <run_cmd+0x14e>
lea    0xdf2(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     130c <run_cmd+0x15c>
lea    0xde2(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     131a <run_cmd+0x16a>
lea    0xdd3(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1328 <run_cmd+0x178>
lea    0xdc3(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1336 <run_cmd+0x186>
lea    0xdb4(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1344 <run_cmd+0x194>
lea    0xda1(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1352 <run_cmd+0x1a2>
lea    0xd8e(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1360 <run_cmd+0x1b0>
mov    0x2d19(%rip),%rax
mov    (%rax),%ebx
lea    0xd79(%rip),%rdi
mov    %r14,%rsi
call   1070 <warnx@plt>
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x4,%edx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <register_io@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
jmp    12e9 <run_cmd+0x139>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10a0 <dump_regs@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10c0 <filter_cmd@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <get_sge_context@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1080 <loadfw@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10d0 <memdump@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <read_tcb@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10b0 <read_i2c@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <clearstats@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"reg\00"
@.str.1 = [6 x i8] c"reg32\00"
@.str.2 = [6 x i8] c"reg64\00"
@.str.3 = [8 x i8] c"regdump\00"
@.str.4 = [7 x i8] c"filter\00"
@.str.5 = [8 x i8] c"context\00"
@.str.6 = [7 x i8] c"loadfw\00"
@.str.7 = [8 x i8] c"memdump\00"
@.str.8 = [4 x i8] c"tcb\00"
@.str.9 = [4 x i8] c"i2c\00"
@.str.10 = [11 x i8] c"clearstats\00"
@EINVAL = global i32 0
@.str.11 = [21 x i8] c"invalid command \22%s\22\00"
define i32 @run_cmd(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 -1, i32* %5
%7 = load i8**, i8*** %4
%8 = getelementptr inbounds i8*, i8** %7, i64 0
%9 = load i8*, i8** %8
store i8* %9, i8** %6
%10 = load i32, i32* %3
%11 = add nsw i32 %10, -1
store i32 %11, i32* %3
%12 = load i8**, i8*** %4
%13 = getelementptr inbounds i8*, i8** %12, i32 1
store i8** %13, i8*** %4
%14 = load i8*, i8** %6
%15 = call i32 @strcmp(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i8*, i8** %6
%19 = call i32 @strcmp(i8* %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp ne i32 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %17, %2
%22 = load i32, i32* %3
%23 = load i8**, i8*** %4
%24 = call i32 @register_io(i32 %22, i8** %23, i32 4)
store i32 %24, i32* %5
br label %110
25: ; preds = %17
%26 = load i8*, i8** %6
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = load i32, i32* %3
%31 = load i8**, i8*** %4
%32 = call i32 @register_io(i32 %30, i8** %31, i32 8)
store i32 %32, i32* %5
br label %109
33: ; preds = %25
%34 = load i8*, i8** %6
%35 = call i32 @strcmp(i8* %34, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%36 = icmp ne i32 %35, 0
br i1 %36, label %41, label %37
37: ; preds = %33
%38 = load i32, i32* %3
%39 = load i8**, i8*** %4
%40 = call i32 @dump_regs(i32 %38, i8** %39)
store i32 %40, i32* %5
br label %108
41: ; preds = %33
%42 = load i8*, i8** %6
%43 = call i32 @strcmp(i8* %42, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%44 = icmp ne i32 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %41
%46 = load i32, i32* %3
%47 = load i8**, i8*** %4
%48 = call i32 @filter_cmd(i32 %46, i8** %47)
store i32 %48, i32* %5
br label %107
49: ; preds = %41
%50 = load i8*, i8** %6
%51 = call i32 @strcmp(i8* %50, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%52 = icmp ne i32 %51, 0
br i1 %52, label %57, label %53
53: ; preds = %49
%54 = load i32, i32* %3
%55 = load i8**, i8*** %4
%56 = call i32 @get_sge_context(i32 %54, i8** %55)
store i32 %56, i32* %5
br label %106
57: ; preds = %49
%58 = load i8*, i8** %6
%59 = call i32 @strcmp(i8* %58, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%60 = icmp ne i32 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %57
%62 = load i32, i32* %3
%63 = load i8**, i8*** %4
%64 = call i32 @loadfw(i32 %62, i8** %63)
store i32 %64, i32* %5
br label %105
65: ; preds = %57
%66 = load i8*, i8** %6
%67 = call i32 @strcmp(i8* %66, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%68 = icmp ne i32 %67, 0
br i1 %68, label %73, label %69
69: ; preds = %65
%70 = load i32, i32* %3
%71 = load i8**, i8*** %4
%72 = call i32 @memdump(i32 %70, i8** %71)
store i32 %72, i32* %5
br label %104
73: ; preds = %65
%74 = load i8*, i8** %6
%75 = call i32 @strcmp(i8* %74, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%76 = icmp ne i32 %75, 0
br i1 %76, label %81, label %77
77: ; preds = %73
%78 = load i32, i32* %3
%79 = load i8**, i8*** %4
%80 = call i32 @read_tcb(i32 %78, i8** %79)
store i32 %80, i32* %5
br label %103
81: ; preds = %73
%82 = load i8*, i8** %6
%83 = call i32 @strcmp(i8* %82, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%84 = icmp ne i32 %83, 0
br i1 %84, label %89, label %85
85: ; preds = %81
%86 = load i32, i32* %3
%87 = load i8**, i8*** %4
%88 = call i32 @read_i2c(i32 %86, i8** %87)
store i32 %88, i32* %5
br label %102
89: ; preds = %81
%90 = load i8*, i8** %6
%91 = call i32 @strcmp(i8* %90, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%92 = icmp ne i32 %91, 0
br i1 %92, label %97, label %93
93: ; preds = %89
%94 = load i32, i32* %3
%95 = load i8**, i8*** %4
%96 = call i32 @clearstats(i32 %94, i8** %95)
store i32 %96, i32* %5
br label %101
97: ; preds = %89
%98 = load i32, i32* @EINVAL
store i32 %98, i32* %5
%99 = load i8*, i8** %6
%100 = call i32 @warnx(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i8* %99)
br label %101
101: ; preds = %97, %93
br label %102
102: ; preds = %101, %85
br label %103
103: ; preds = %102, %77
br label %104
104: ; preds = %103, %69
br label %105
105: ; preds = %104, %61
br label %106
106: ; preds = %105, %53
br label %107
107: ; preds = %106, %45
br label %108
108: ; preds = %107, %37
br label %109
109: ; preds = %108, %29
br label %110
110: ; preds = %109, %21
%111 = load i32, i32* %5
ret i32 %111
}

LLVM IR (-O2):
@.str = [4 x i8] c"reg\00"
@.str.1 = [6 x i8] c"reg32\00"
@.str.2 = [6 x i8] c"reg64\00"
@.str.3 = [8 x i8] c"regdump\00"
@.str.4 = [7 x i8] c"filter\00"
@.str.5 = [8 x i8] c"context\00"
@.str.6 = [7 x i8] c"loadfw\00"
@.str.7 = [8 x i8] c"memdump\00"
@.str.8 = [4 x i8] c"tcb\00"
@.str.9 = [4 x i8] c"i2c\00"
@.str.10 = [11 x i8] c"clearstats\00"
@EINVAL = global i32 0
@.str.11 = [21 x i8] c"invalid command \22%s\22\00"
define i32 @run_cmd(i32 %0, i8** %1) {
%3 = load i8*, i8** %1
%4 = add nsw i32 %0, -1
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8, %2
%12 = tail call i32 @register_io(i32 %4, i8** %5, i32 4)
br label %61
13: ; preds = %8
%14 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = tail call i32 @register_io(i32 %4, i8** %5, i32 8)
br label %61
18: ; preds = %13
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 @dump_regs(i32 %4, i8** %5)
br label %61
23: ; preds = %18
%24 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = tail call i32 @filter_cmd(i32 %4, i8** %5)
br label %61
28: ; preds = %23
%29 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = tail call i32 @get_sge_context(i32 %4, i8** %5)
br label %61
33: ; preds = %28
%34 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = tail call i32 @loadfw(i32 %4, i8** %5)
br label %61
38: ; preds = %33
%39 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = tail call i32 @memdump(i32 %4, i8** %5)
br label %61
43: ; preds = %38
%44 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = tail call i32 @read_tcb(i32 %4, i8** %5)
br label %61
48: ; preds = %43
%49 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = tail call i32 @read_i2c(i32 %4, i8** %5)
br label %61
53: ; preds = %48
%54 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(11) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = tail call i32 @clearstats(i32 %4, i8** %5)
br label %61
58: ; preds = %53
%59 = load i32, i32* @EINVAL
%60 = tail call i32 @warnx(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i8* %3)
br label %61
61: ; preds = %16, %26, %36, %46, %56, %58, %51, %41, %31, %21, %11
%62 = phi i32 [ %59, %58 ], [ %57, %56 ], [ %52, %51 ], [ %47, %46 ], [ %42, %41 ], [ %37, %36 ], [ %32, %31 ], [ %27, %26 ], [ %22, %21 ], [ %17, %16 ], [ %12, %11 ]
ret i32 %62
}