#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 /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
char getopt(int, char **, char *);
int /*<<< orphan*/ optarg;
int optind;
int parse_int(char, int /*<<< orphan*/, int *);
int /*<<< orphan*/ print_usage(int);
int /*<<< orphan*/ stderr;
int parse_args(int argc, char **argv, char **image_path, int *image_width,
               int *image_height, int *tx_channel) {
  int rc;
  int width, height, tx_channel_id;
  char option;
  if (argc < 2) {
    fprintf(stderr, "Error: Too few command line arguments.\n");
    print_usage(false);
    return -EINVAL;
  }
  *image_width = 640;
  *image_height = 480;
  *tx_channel = -1;
  while ((option = getopt(argc, argv, "w:i:t:h")) != (char)-1) {
    switch (option) {
    case 'w':
      rc = parse_int(option, optarg, &width);
      if (rc < 0) {
        return rc;
      }
      *image_width = width;
      break;
    case 'i':
      rc = parse_int(option, optarg, &height);
      if (rc < 0) {
        return rc;
      }
      *image_height = height;
      break;
    case 't':
      rc = parse_int(option, optarg, &tx_channel_id);
      if (rc < 0) {
        return rc;
      }
      *tx_channel = tx_channel_id;
      break;
    case 'h':
      print_usage(true);
      exit(0);
    default:
      print_usage(false);
      return -EINVAL;
    }
  }
  if (optind != argc - 1) {
    fprintf(stderr, "Error: Too many command line arguments.\n");
    print_usage(false);
    return -EINVAL;
  }
  if (*image_width <= 0) {
    fprintf(stderr, "Error: Image width must be positive.\n");
    print_usage(false);
    return -EINVAL;
  }
  if (*image_height <= 0) {
    fprintf(stderr, "Error: Image hieght must be positive.\n");
    print_usage(false);
    return -EINVAL;
  }
  *image_path = argv[optind];
  return 0;
}


x86 assembly (clang, -O0):
<parse_args>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11a8 <parse_args+0x58>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
lea    0xeb7(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1060 <print_usage@plt>
xor    %eax,%eax
mov    0x2e2a(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    13da <parse_args+0x28a>
mov    -0x20(%rbp),%rax
movl   $0x280,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1e0,(%rax)
mov    -0x30(%rbp),%rax
movl   $0xffffffff,(%rax)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe94(%rip),%rdx
call   1040 <getopt@plt>
mov    %al,-0x41(%rbp)
movsbl %al,%eax
cmp    $0xffffffff,%eax
je     12fc <parse_args+0x1ac>
movsbl -0x41(%rbp),%eax
add    $0xffffff98,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0xf,%eax
ja     12dd <parse_args+0x18d>
mov    -0x50(%rbp),%rax
lea    0xdf7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x41(%rbp),%al
mov    0x2ddc(%rip),%rcx
mov    (%rcx),%esi
lea    -0x38(%rbp),%rdx
movsbl %al,%edi
call   1070 <parse_int@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    1242 <parse_args+0xf2>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13da <parse_args+0x28a>
mov    -0x38(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
jmp    12f7 <parse_args+0x1a7>
mov    -0x41(%rbp),%al
mov    0x2d9e(%rip),%rcx
mov    (%rcx),%esi
lea    -0x3c(%rbp),%rdx
movsbl %al,%edi
call   1070 <parse_int@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    1280 <parse_args+0x130>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13da <parse_args+0x28a>
mov    -0x3c(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
jmp    12f7 <parse_args+0x1a7>
mov    -0x41(%rbp),%al
mov    0x2d60(%rip),%rcx
mov    (%rcx),%esi
lea    -0x40(%rbp),%rdx
movsbl %al,%edi
call   1070 <parse_int@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    12be <parse_args+0x16e>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13da <parse_args+0x28a>
mov    -0x40(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
jmp    12f7 <parse_args+0x1a7>
mov    $0x1,%edi
call   1060 <print_usage@plt>
xor    %edi,%edi
call   1050 <exit@plt>
xor    %edi,%edi
call   1060 <print_usage@plt>
xor    %eax,%eax
mov    0x2cdb(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    13da <parse_args+0x28a>
jmp    11c6 <parse_args+0x76>
mov    0x2cdd(%rip),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     1342 <parse_args+0x1f2>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
lea    0xd4d(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1060 <print_usage@plt>
xor    %eax,%eax
mov    0x2c90(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    13da <parse_args+0x28a>
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jg     137e <parse_args+0x22e>
mov    0x2c7a(%rip),%rax
mov    (%rax),%edi
lea    0xd3a(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1060 <print_usage@plt>
xor    %eax,%eax
mov    0x2c54(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    13da <parse_args+0x28a>
mov    -0x28(%rbp),%rax
cmpl   $0x0,(%rax)
jg     13ba <parse_args+0x26a>
mov    0x2c3e(%rip),%rax
mov    (%rax),%edi
lea    0xd24(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1060 <print_usage@plt>
xor    %eax,%eax
mov    0x2c18(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    13da <parse_args+0x28a>
mov    -0x10(%rbp),%rax
mov    0x2c1b(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_args>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
cmp    $0x1,%edi
jg     1178 <parse_args+0x28>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
jmp    12cf <parse_args+0x17f>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    %rdx,0x28(%rsp)
mov    %rcx,0x20(%rsp)
movl   $0x280,(%rcx)
mov    %r8,0x18(%rsp)
movl   $0x1e0,(%r8)
mov    %r9,0x30(%rsp)
movl   $0xffffffff,(%r9)
lea    0xebc(%rip),%rdx
call   1040 <getopt@plt>
cmp    $0xff,%al
je     1260 <parse_args+0x110>
lea    0xe40(%rip),%r12
mov    0x2e31(%rip),%r13
lea    0xe9a(%rip),%r14
jmp    11e3 <parse_args+0x93>
mov    %eax,(%rcx)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1040 <getopt@plt>
cmp    $0xff,%al
je     1260 <parse_args+0x110>
movsbl %al,%edi
lea    -0x68(%rdi),%eax
cmp    $0xf,%eax
ja     12d4 <parse_args+0x184>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
mov    0x0(%r13),%esi
lea    0x10(%rsp),%rdx
call   1070 <parse_int@plt>
test   %eax,%eax
js     12a8 <parse_args+0x158>
mov    0x10(%rsp),%eax
mov    0x18(%rsp),%rcx
jmp    11d0 <parse_args+0x80>
nopl   0x0(%rax)
mov    0x0(%r13),%esi
lea    0xc(%rsp),%rdx
call   1070 <parse_int@plt>
test   %eax,%eax
js     12a8 <parse_args+0x158>
mov    0xc(%rsp),%eax
mov    0x30(%rsp),%rcx
jmp    11d0 <parse_args+0x80>
nopl   (%rax)
mov    0x0(%r13),%esi
lea    0x14(%rsp),%rdx
call   1070 <parse_int@plt>
test   %eax,%eax
js     12a8 <parse_args+0x158>
mov    0x14(%rsp),%eax
mov    0x20(%rsp),%rcx
jmp    11d0 <parse_args+0x80>
mov    0x2d79(%rip),%rax
movslq (%rax),%rax
add    $0xffffffff,%ebp
cmp    %ebp,%eax
jne    1296 <parse_args+0x146>
mov    0x20(%rsp),%rcx
cmpl   $0x0,(%rcx)
jle    12ad <parse_args+0x15d>
mov    0x18(%rsp),%rcx
cmpl   $0x0,(%rcx)
jle    12bf <parse_args+0x16f>
mov    (%rbx,%rax,8),%rax
mov    0x28(%rsp),%rcx
mov    %rax,(%rcx)
xor    %r15d,%r15d
jmp    12e8 <parse_args+0x198>
mov    0x2d33(%rip),%rax
mov    (%rax),%edi
lea    0xdca(%rip),%rsi
jmp    12cf <parse_args+0x17f>
mov    %eax,%r15d
jmp    12e8 <parse_args+0x198>
mov    0x2d1c(%rip),%rax
mov    (%rax),%edi
lea    0xddc(%rip),%rsi
jmp    12cf <parse_args+0x17f>
mov    0x2d0a(%rip),%rax
mov    (%rax),%edi
lea    0xdf0(%rip),%rsi
call   1030 <fprintf@plt>
xor    %r15d,%r15d
xor    %edi,%edi
call   1060 <print_usage@plt>
mov    0x2ce3(%rip),%rax
sub    (%rax),%r15d
mov    %r15d,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%edi
call   1060 <print_usage@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [40 x i8] c"Error: Too few command line arguments.\0A\00"
@EINVAL = global i32 0
@.str.1 = [8 x i8] c"w:i:t:h\00"
@optarg = global i32 0
@optind = global i32 0
@.str.2 = [41 x i8] c"Error: Too many command line arguments.\0A\00"
@.str.3 = [38 x i8] c"Error: Image width must be positive.\0A\00"
@.str.4 = [39 x i8] c"Error: Image hieght must be positive.\0A\00"
define i32 @parse_args(i32 %0, i8** %1, i8** %2, i32* %3, i32* %4, i32* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8**
%10 = alloca i8**
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8
store i32 %0, i32* %8
store i8** %1, i8*** %9
store i8** %2, i8*** %10
store i32* %3, i32** %11
store i32* %4, i32** %12
store i32* %5, i32** %13
%19 = load i32, i32* %8
%20 = icmp slt i32 %19, 2
br i1 %20, label %21, label %27
21: ; preds = %6
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%24 = call i32 @print_usage(i32 0)
%25 = load i32, i32* @EINVAL
%26 = sub nsw i32 0, %25
store i32 %26, i32* %7
br label %119
27: ; preds = %6
%28 = load i32*, i32** %11
store i32 640, i32* %28
%29 = load i32*, i32** %12
store i32 480, i32* %29
%30 = load i32*, i32** %13
store i32 -1, i32* %30
br label %31
31: ; preds = %80, %27
%32 = load i32, i32* %8
%33 = load i8**, i8*** %9
%34 = call signext i8 @getopt(i32 %32, i8** %33, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
store i8 %34, i8* %18
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, -1
br i1 %36, label %37, label %81
37: ; preds = %31
%38 = load i8, i8* %18
%39 = sext i8 %38 to i32
switch i32 %39, label %76 [
i32 119, label %40
i32 105, label %51
i32 116, label %62
i32 104, label %73
]
40: ; preds = %37
%41 = load i8, i8* %18
%42 = load i32, i32* @optarg
%43 = call i32 @parse_int(i8 signext %41, i32 %42, i32* %15)
store i32 %43, i32* %14
%44 = load i32, i32* %14
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = load i32, i32* %14
store i32 %47, i32* %7
br label %119
48: ; preds = %40
%49 = load i32, i32* %15
%50 = load i32*, i32** %11
store i32 %49, i32* %50
br label %80
51: ; preds = %37
%52 = load i8, i8* %18
%53 = load i32, i32* @optarg
%54 = call i32 @parse_int(i8 signext %52, i32 %53, i32* %16)
store i32 %54, i32* %14
%55 = load i32, i32* %14
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %51
%58 = load i32, i32* %14
store i32 %58, i32* %7
br label %119
59: ; preds = %51
%60 = load i32, i32* %16
%61 = load i32*, i32** %12
store i32 %60, i32* %61
br label %80
62: ; preds = %37
%63 = load i8, i8* %18
%64 = load i32, i32* @optarg
%65 = call i32 @parse_int(i8 signext %63, i32 %64, i32* %17)
store i32 %65, i32* %14
%66 = load i32, i32* %14
%67 = icmp slt i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %62
%69 = load i32, i32* %14
store i32 %69, i32* %7
br label %119
70: ; preds = %62
%71 = load i32, i32* %17
%72 = load i32*, i32** %13
store i32 %71, i32* %72
br label %80
73: ; preds = %37
%74 = call i32 @print_usage(i32 1)
%75 = call i32 @exit(i32 0)
unreachable
76: ; preds = %37
%77 = call i32 @print_usage(i32 0)
%78 = load i32, i32* @EINVAL
%79 = sub nsw i32 0, %78
store i32 %79, i32* %7
br label %119
80: ; preds = %70, %59, %48
br label %31
81: ; preds = %31
%82 = load i32, i32* @optind
%83 = load i32, i32* %8
%84 = sub nsw i32 %83, 1
%85 = icmp ne i32 %82, %84
br i1 %85, label %86, label %92
86: ; preds = %81
%87 = load i32, i32* @stderr
%88 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%89 = call i32 @print_usage(i32 0)
%90 = load i32, i32* @EINVAL
%91 = sub nsw i32 0, %90
store i32 %91, i32* %7
br label %119
92: ; preds = %81
%93 = load i32*, i32** %11
%94 = load i32, i32* %93
%95 = icmp sle i32 %94, 0
br i1 %95, label %96, label %102
96: ; preds = %92
%97 = load i32, i32* @stderr
%98 = call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%99 = call i32 @print_usage(i32 0)
%100 = load i32, i32* @EINVAL
%101 = sub nsw i32 0, %100
store i32 %101, i32* %7
br label %119
102: ; preds = %92
%103 = load i32*, i32** %12
%104 = load i32, i32* %103
%105 = icmp sle i32 %104, 0
br i1 %105, label %106, label %112
106: ; preds = %102
%107 = load i32, i32* @stderr
%108 = call i32 @fprintf(i32 %107, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%109 = call i32 @print_usage(i32 0)
%110 = load i32, i32* @EINVAL
%111 = sub nsw i32 0, %110
store i32 %111, i32* %7
br label %119
112: ; preds = %102
%113 = load i8**, i8*** %9
%114 = load i32, i32* @optind
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8*, i8** %113, i64 %115
%117 = load i8*, i8** %116
%118 = load i8**, i8*** %10
store i8* %117, i8** %118
store i32 0, i32* %7
br label %119
119: ; preds = %112, %106, %96, %86, %76, %68, %57, %46, %21
%120 = load i32, i32* %7
ret i32 %120
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [40 x i8] c"Error: Too few command line arguments.\0A\00"
@EINVAL = global i32 0
@.str.1 = [8 x i8] c"w:i:t:h\00"
@optarg = global i32 0
@optind = global i32 0
@.str.2 = [41 x i8] c"Error: Too many command line arguments.\0A\00"
@.str.3 = [38 x i8] c"Error: Image width must be positive.\0A\00"
@.str.4 = [39 x i8] c"Error: Image hieght must be positive.\0A\00"
define i32 @parse_args(i32 %0, i8** %1, i8** nocapture writeonly %2, i32* nocapture %3, i32* nocapture %4, i32* nocapture writeonly %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = bitcast i32* %7 to i8*
%11 = bitcast i32* %8 to i8*
%12 = bitcast i32* %9 to i8*
%13 = icmp slt i32 %0, 2
br i1 %13, label %14, label %20
14: ; preds = %6
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 @print_usage(i32 0)
%18 = load i32, i32* @EINVAL
%19 = sub nsw i32 0, %18
br label %86
20: ; preds = %6
store i32 640, i32* %3
store i32 480, i32* %4
store i32 -1, i32* %5
%21 = call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp eq i8 %21, -1
br i1 %22, label %54, label %23
23: ; preds = %20, %51
%24 = phi i8 [ %52, %51 ], [ %21, %20 ]
%25 = sext i8 %24 to i32
switch i32 %25, label %47 [
i32 119, label %26
i32 105, label %32
i32 116, label %38
i32 104, label %44
]
26: ; preds = %23
%27 = load i32, i32* @optarg
%28 = call i32 @parse_int(i8 signext %24, i32 %27, i32* %7)
%29 = icmp slt i32 %28, 0
br i1 %29, label %86, label %30
30: ; preds = %26
%31 = load i32, i32* %7
store i32 %31, i32* %3
br label %51
32: ; preds = %23
%33 = load i32, i32* @optarg
%34 = call i32 @parse_int(i8 signext %24, i32 %33, i32* %8)
%35 = icmp slt i32 %34, 0
br i1 %35, label %86, label %36
36: ; preds = %32
%37 = load i32, i32* %8
store i32 %37, i32* %4
br label %51
38: ; preds = %23
%39 = load i32, i32* @optarg
%40 = call i32 @parse_int(i8 signext %24, i32 %39, i32* %9)
%41 = icmp slt i32 %40, 0
br i1 %41, label %86, label %42
42: ; preds = %38
%43 = load i32, i32* %9
store i32 %43, i32* %5
br label %51
44: ; preds = %23
%45 = call i32 @print_usage(i32 1)
%46 = call i32 @exit(i32 0)
unreachable
47: ; preds = %23
%48 = call i32 @print_usage(i32 0)
%49 = load i32, i32* @EINVAL
%50 = sub nsw i32 0, %49
br label %86
51: ; preds = %42, %36, %30
%52 = call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%53 = icmp eq i8 %52, -1
br i1 %53, label %54, label %23
54: ; preds = %51, %20
%55 = load i32, i32* @optind
%56 = add nsw i32 %0, -1
%57 = icmp eq i32 %55, %56
br i1 %57, label %64, label %58
58: ; preds = %54
%59 = load i32, i32* @stderr
%60 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%61 = call i32 @print_usage(i32 0)
%62 = load i32, i32* @EINVAL
%63 = sub nsw i32 0, %62
br label %86
64: ; preds = %54
%65 = load i32, i32* %3
%66 = icmp slt i32 %65, 1
br i1 %66, label %67, label %73
67: ; preds = %64
%68 = load i32, i32* @stderr
%69 = call i32 @fprintf(i32 %68, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%70 = call i32 @print_usage(i32 0)
%71 = load i32, i32* @EINVAL
%72 = sub nsw i32 0, %71
br label %86
73: ; preds = %64
%74 = load i32, i32* %4
%75 = icmp slt i32 %74, 1
br i1 %75, label %76, label %82
76: ; preds = %73
%77 = load i32, i32* @stderr
%78 = call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%79 = call i32 @print_usage(i32 0)
%80 = load i32, i32* @EINVAL
%81 = sub nsw i32 0, %80
br label %86
82: ; preds = %73
%83 = sext i32 %55 to i64
%84 = getelementptr inbounds i8*, i8** %1, i64 %83
%85 = load i8*, i8** %84
store i8* %85, i8** %2
br label %86
86: ; preds = %38, %32, %26, %82, %76, %67, %58, %47, %14
%87 = phi i32 [ %19, %14 ], [ %50, %47 ], [ %63, %58 ], [ %72, %67 ], [ %81, %76 ], [ 0, %82 ], [ %40, %38 ], [ %34, %32 ], [ %28, %26 ]
ret i32 %87
}