#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 /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getopt(int, char **, char *);
scalar_t__ opterr;
int optind;
int optopt;
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char *, char *);
int sysgeep_print_setup(int);
int sysgeep_restore(char *, int);
int sysgeep_save(char *, int);
int sysgeep_setup(char *, int);
int /*<<< orphan*/ usage();
int main(int argc, char **argv) {
  int c;
  int hflag = 0;
  int sflag = 0;
  opterr = 0;
  while ((c = getopt(argc, argv, "hs")) != -1)
    switch (c) {
    case 'h':
      hflag = 1;
      break;
    case 's':
      sflag = 1;
      break;
    case '?':
      fprintf(stderr, "Error: unknown option `-%c'.\n", optopt);
    default:
      abort();
    }
  int remaining_args = argc - optind;
  if (remaining_args == 0) {
    fprintf(stderr, "Error: at least one more argument is required.\n");
    usage();
    return 1;
  }
  if (hflag || !strcmp("help", argv[optind])) {
    usage();
    return 0;
  }
  if (!strcmp("setup", argv[optind])) {
    if (remaining_args < 2)
      return sysgeep_print_setup(sflag);
    else
      return sysgeep_setup(argv[optind + 1], sflag);
  } else if (!strcmp("save", argv[optind])) {
    if (remaining_args < 2) {
      fprintf(stderr, "Error: one more argument is required.\n");
      usage();
      return 1;
    }
    return sysgeep_save(argv[optind + 1], sflag);
  } else if (!strcmp("restore", argv[optind])) {
    if (remaining_args < 2) {
      fprintf(stderr, "Error: one more argument is required.\n");
      usage();
      return 1;
    }
    return sysgeep_restore(argv[optind + 1], sflag);
  } else {
    fprintf(stderr, "Error: unknown action.\n");
    usage();
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    0x2e0d(%rip),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe30(%rip),%rdx
call   10a0 <getopt@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     125b <main+0xcb>
mov    -0x14(%rbp),%eax
mov    %eax,-0x24(%rbp)
sub    $0x3f,%eax
je     122f <main+0x9f>
jmp    11f5 <main+0x65>
mov    -0x24(%rbp),%eax
sub    $0x68,%eax
je     1217 <main+0x87>
jmp    1206 <main+0x76>
mov    -0x24(%rbp),%eax
sub    $0x73,%eax
je     1223 <main+0x93>
jmp    124f <main+0xbf>
movl   $0x1,-0x18(%rbp)
jmp    1256 <main+0xc6>
movl   $0x1,-0x1c(%rbp)
jmp    1256 <main+0xc6>
mov    0x2d9a(%rip),%rax
mov    (%rax),%edi
mov    0x2da9(%rip),%rax
mov    (%rax),%edx
lea    0xdbb(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11c2 <main+0x32>
mov    -0x8(%rbp),%eax
mov    0x2d7b(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jne    129e <main+0x10e>
mov    0x2d55(%rip),%rax
mov    (%rax),%edi
lea    0xd9d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   1080 <usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    1473 <main+0x2e3>
cmpl   $0x0,-0x18(%rbp)
jne    12cf <main+0x13f>
mov    -0x10(%rbp),%rax
mov    0x2d2d(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd90(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    12e2 <main+0x152>
mov    $0x0,%al
call   1080 <usage@plt>
movl   $0x0,-0x4(%rbp)
jmp    1473 <main+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2cf3(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd5b(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    134a <main+0x1ba>
cmpl   $0x2,-0x20(%rbp)
jge    1323 <main+0x193>
mov    -0x1c(%rbp),%edi
call   1040 <sysgeep_print_setup@plt>
mov    %eax,-0x4(%rbp)
jmp    1473 <main+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2cb2(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x1c(%rbp),%esi
call   10b0 <sysgeep_setup@plt>
mov    %eax,-0x4(%rbp)
jmp    1473 <main+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c8b(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xcf9(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    13cc <main+0x23c>
cmpl   $0x2,-0x20(%rbp)
jge    13a5 <main+0x215>
mov    0x2c4e(%rip),%rax
mov    (%rax),%edi
lea    0xcd6(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   1080 <usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    1473 <main+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c30(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x1c(%rbp),%esi
call   1090 <sysgeep_save@plt>
mov    %eax,-0x4(%rbp)
jmp    1473 <main+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c09(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xca3(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    144e <main+0x2be>
cmpl   $0x2,-0x20(%rbp)
jge    1427 <main+0x297>
mov    0x2bcc(%rip),%rax
mov    (%rax),%edi
lea    0xc54(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   1080 <usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    1473 <main+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2bae(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x1c(%rbp),%esi
call   1070 <sysgeep_restore@plt>
mov    %eax,-0x4(%rbp)
jmp    1473 <main+0x2e3>
mov    0x2b7b(%rip),%rax
mov    (%rax),%edi
lea    0xc32(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   1080 <usage@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%ebp
mov    0x2e21(%rip),%rax
movq   $0x0,(%rax)
xor    %ebx,%ebx
mov    $0x1,%r13b
lea    0xe46(%rip),%r15
mov    %ebx,%ecx
nopl   0x0(%rax)
mov    %ecx,%ebx
mov    %ebp,%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   10a0 <getopt@plt>
mov    $0x1,%ecx
cmp    $0x73,%eax
je     11c0 <main+0x30>
cmp    $0xffffffff,%eax
je     11ec <main+0x5c>
cmp    $0x68,%eax
jne    1331 <main+0x1a1>
xor    %r13d,%r13d
jmp    11ba <main+0x2a>
mov    0x2ded(%rip),%rax
movslq (%rax),%r12
sub    %r12d,%ebp
je     1276 <main+0xe6>
test   $0x1,%r13b
je     126b <main+0xdb>
mov    (%r14,%r12,8),%r15
lea    0xe45(%rip),%rdi
mov    %r15,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     126b <main+0xdb>
lea    0xe37(%rip),%rdi
mov    %r15,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12aa <main+0x11a>
lea    0xe2a(%rip),%rdi
mov    %r15,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12c4 <main+0x134>
lea    0xe3f(%rip),%rdi
mov    %r15,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12fd <main+0x16d>
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
lea    0xe27(%rip),%rsi
jmp    1286 <main+0xf6>
xor    %ebx,%ebx
xor    %eax,%eax
call   1080 <usage@plt>
jmp    1299 <main+0x109>
mov    0x2d53(%rip),%rax
mov    (%rax),%edi
lea    0xd9b(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   1080 <usage@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    $0x1,%ebp
jg     12e3 <main+0x153>
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <sysgeep_print_setup@plt>
cmp    $0x1,%ebp
jle    1302 <main+0x172>
mov    0x8(%r14,%r12,8),%rdi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1090 <sysgeep_save@plt>
mov    0x8(%r14,%r12,8),%rdi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10b0 <sysgeep_setup@plt>
cmp    $0x1,%ebp
jg     1317 <main+0x187>
mov    0x2cc7(%rip),%rax
mov    (%rax),%edi
lea    0xd4f(%rip),%rsi
jmp    1286 <main+0xf6>
mov    0x8(%r14,%r12,8),%rdi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <sysgeep_restore@plt>
cmp    $0x3f,%eax
jne    1356 <main+0x1c6>
mov    0x2c93(%rip),%rax
mov    (%rax),%edi
mov    0x2ca2(%rip),%rax
mov    (%rax),%edx
lea    0xcb4(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@opterr = global i64 0
@.str = [3 x i8] c"hs\00"
@stderr = global i32 0
@.str.1 = [30 x i8] c"Error: unknown option `-%c'.\0A\00"
@optopt = global i32 0
@optind = global i32 0
@.str.2 = [48 x i8] c"Error: at least one more argument is required.\0A\00"
@.str.3 = [5 x i8] c"help\00"
@.str.4 = [6 x i8] c"setup\00"
@.str.5 = [5 x i8] c"save\00"
@.str.6 = [39 x i8] c"Error: one more argument is required.\0A\00"
@.str.7 = [8 x i8] c"restore\00"
@.str.8 = [24 x i8] c"Error: unknown action.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 0, i32* %8
store i64 0, i64* @opterr
br label %10
10: ; preds = %25, %2
%11 = load i32, i32* %4
%12 = load i8**, i8*** %5
%13 = call i32 @getopt(i32 %11, i8** %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 %13, i32* %6
%14 = icmp ne i32 %13, -1
br i1 %14, label %15, label %26
15: ; preds = %10
%16 = load i32, i32* %6
switch i32 %16, label %23 [
i32 104, label %17
i32 115, label %18
i32 63, label %19
]
17: ; preds = %15
store i32 1, i32* %7
br label %25
18: ; preds = %15
store i32 1, i32* %8
br label %25
19: ; preds = %15
%20 = load i32, i32* @stderr
%21 = load i32, i32* @optopt
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %21)
br label %23
23: ; preds = %15, %19
%24 = call i32 (...) @abort()
unreachable
25: ; preds = %18, %17
br label %10
26: ; preds = %10
%27 = load i32, i32* %4
%28 = load i32, i32* @optind
%29 = sub nsw i32 %27, %28
store i32 %29, i32* %9
%30 = load i32, i32* %9
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %26
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%35 = call i32 (...) @usage()
store i32 1, i32* %3
br label %124
36: ; preds = %26
%37 = load i32, i32* %7
%38 = icmp ne i32 %37, 0
br i1 %38, label %47, label %39
39: ; preds = %36
%40 = load i8**, i8*** %5
%41 = load i32, i32* @optind
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8*, i8** %40, i64 %42
%44 = load i8*, i8** %43
%45 = call i32 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %44)
%46 = icmp ne i32 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %39, %36
%48 = call i32 (...) @usage()
store i32 0, i32* %3
br label %124
49: ; preds = %39
%50 = load i8**, i8*** %5
%51 = load i32, i32* @optind
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8*, i8** %50, i64 %52
%54 = load i8*, i8** %53
%55 = call i32 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %54)
%56 = icmp ne i32 %55, 0
br i1 %56, label %72, label %57
57: ; preds = %49
%58 = load i32, i32* %9
%59 = icmp slt i32 %58, 2
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load i32, i32* %8
%62 = call i32 @sysgeep_print_setup(i32 %61)
store i32 %62, i32* %3
br label %124
63: ; preds = %57
%64 = load i8**, i8*** %5
%65 = load i32, i32* @optind
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8*, i8** %64, i64 %67
%69 = load i8*, i8** %68
%70 = load i32, i32* %8
%71 = call i32 @sysgeep_setup(i8* %69, i32 %70)
store i32 %71, i32* %3
br label %124
72: ; preds = %49
%73 = load i8**, i8*** %5
%74 = load i32, i32* @optind
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8*, i8** %73, i64 %75
%77 = load i8*, i8** %76
%78 = call i32 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %77)
%79 = icmp ne i32 %78, 0
br i1 %79, label %96, label %80
80: ; preds = %72
%81 = load i32, i32* %9
%82 = icmp slt i32 %81, 2
br i1 %82, label %83, label %87
83: ; preds = %80
%84 = load i32, i32* @stderr
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%86 = call i32 (...) @usage()
store i32 1, i32* %3
br label %124
87: ; preds = %80
%88 = load i8**, i8*** %5
%89 = load i32, i32* @optind
%90 = add nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8*, i8** %88, i64 %91
%93 = load i8*, i8** %92
%94 = load i32, i32* %8
%95 = call i32 @sysgeep_save(i8* %93, i32 %94)
store i32 %95, i32* %3
br label %124
96: ; preds = %72
%97 = load i8**, i8*** %5
%98 = load i32, i32* @optind
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8*, i8** %97, i64 %99
%101 = load i8*, i8** %100
%102 = call i32 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* %101)
%103 = icmp ne i32 %102, 0
br i1 %103, label %120, label %104
104: ; preds = %96
%105 = load i32, i32* %9
%106 = icmp slt i32 %105, 2
br i1 %106, label %107, label %111
107: ; preds = %104
%108 = load i32, i32* @stderr
%109 = call i32 (i32, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%110 = call i32 (...) @usage()
store i32 1, i32* %3
br label %124
111: ; preds = %104
%112 = load i8**, i8*** %5
%113 = load i32, i32* @optind
%114 = add nsw i32 %113, 1
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8*, i8** %112, i64 %115
%117 = load i8*, i8** %116
%118 = load i32, i32* %8
%119 = call i32 @sysgeep_restore(i8* %117, i32 %118)
store i32 %119, i32* %3
br label %124
120: ; preds = %96
%121 = load i32, i32* @stderr
%122 = call i32 (i32, i8*, ...) @fprintf(i32 %121, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%123 = call i32 (...) @usage()
store i32 1, i32* %3
br label %124
124: ; preds = %120, %111, %107, %87, %83, %63, %60, %47, %32
%125 = load i32, i32* %3
ret i32 %125
}

LLVM IR (-O2):
@opterr = global i64 0
@.str = [3 x i8] c"hs\00"
@stderr = global i32 0
@.str.1 = [30 x i8] c"Error: unknown option `-%c'.\0A\00"
@optopt = global i32 0
@optind = global i32 0
@.str.2 = [48 x i8] c"Error: at least one more argument is required.\0A\00"
@.str.3 = [5 x i8] c"help\00"
@.str.4 = [6 x i8] c"setup\00"
@.str.5 = [5 x i8] c"save\00"
@.str.6 = [39 x i8] c"Error: one more argument is required.\0A\00"
@.str.7 = [8 x i8] c"restore\00"
@.str.8 = [24 x i8] c"Error: unknown action.\0A\00"
define i32 @main(i32 %0, i8** %1) {
store i64 0, i64* @opterr
br label %3
3: ; preds = %6, %2
%4 = phi i1 [ true, %2 ], [ false, %6 ]
%5 = phi i32 [ 0, %2 ], [ %7, %6 ]
br label %6
6: ; preds = %6, %3
%7 = phi i32 [ %5, %3 ], [ 1, %6 ]
%8 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
switch i32 %8, label %13 [
i32 -1, label %15
i32 104, label %3
i32 115, label %6
i32 63, label %9
]
9: ; preds = %6
%10 = load i32, i32* @stderr
%11 = load i32, i32* @optopt
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %11)
br label %13
13: ; preds = %6, %9
%14 = tail call i32 (...) @abort()
unreachable
15: ; preds = %6
%16 = load i32, i32* @optind
%17 = sub nsw i32 %0, %16
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %15
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%22 = tail call i32 (...) @usage()
br label %79
23: ; preds = %15
br i1 %4, label %24, label %30
24: ; preds = %23
%25 = sext i32 %16 to i64
%26 = getelementptr inbounds i8*, i8** %1, i64 %25
%27 = load i8*, i8** %26
%28 = tail call i32 @strcmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* dereferenceable(1) %27)
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24, %23
%31 = tail call i32 (...) @usage()
br label %79
32: ; preds = %24
%33 = tail call i32 @strcmp(i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* dereferenceable(1) %27)
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %45
35: ; preds = %32
%36 = icmp slt i32 %17, 2
br i1 %36, label %37, label %39
37: ; preds = %35
%38 = tail call i32 @sysgeep_print_setup(i32 %7)
br label %79
39: ; preds = %35
%40 = add nsw i32 %16, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8*, i8** %1, i64 %41
%43 = load i8*, i8** %42
%44 = tail call i32 @sysgeep_setup(i8* %43, i32 %7)
br label %79
45: ; preds = %32
%46 = tail call i32 @strcmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* dereferenceable(1) %27)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %60
48: ; preds = %45
%49 = icmp slt i32 %17, 2
br i1 %49, label %50, label %54
50: ; preds = %48
%51 = load i32, i32* @stderr
%52 = tail call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%53 = tail call i32 (...) @usage()
br label %79
54: ; preds = %48
%55 = add nsw i32 %16, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8*, i8** %1, i64 %56
%58 = load i8*, i8** %57
%59 = tail call i32 @sysgeep_save(i8* %58, i32 %7)
br label %79
60: ; preds = %45
%61 = tail call i32 @strcmp(i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* dereferenceable(1) %27)
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %75
63: ; preds = %60
%64 = icmp slt i32 %17, 2
br i1 %64, label %65, label %69
65: ; preds = %63
%66 = load i32, i32* @stderr
%67 = tail call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%68 = tail call i32 (...) @usage()
br label %79
69: ; preds = %63
%70 = add nsw i32 %16, 1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8*, i8** %1, i64 %71
%73 = load i8*, i8** %72
%74 = tail call i32 @sysgeep_restore(i8* %73, i32 %7)
br label %79
75: ; preds = %60
%76 = load i32, i32* @stderr
%77 = tail call i32 (i32, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%78 = tail call i32 (...) @usage()
br label %79
79: ; preds = %75, %69, %65, %54, %50, %39, %37, %30, %19
%80 = phi i32 [ 1, %19 ], [ 0, %30 ], [ 1, %75 ], [ 1, %65 ], [ %74, %69 ], [ 1, %50 ], [ %59, %54 ], [ %38, %37 ], [ %44, %39 ]
ret i32 %80
}