#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*/ SHA1_HMAC(char *, char *, char *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
void printSHA1HMAC(const unsigned int argc, char **argv) {
  unsigned int max = argc, argsCount = 0;
  char text_input[500];
  strcpy(text_input, "");
  char key_input[500];
  strcpy(key_input, "");
  char next[6];
  strcpy(next, "");
  while (++argsCount < max) {
    if (strlen(next) > 0) {
      if (strcmp(next, "key") == 0) {
        strcpy(key_input, argv[argsCount]);
      } else if (strcmp(next, "text") == 0) {
        strcpy(text_input, argv[argsCount]);
      }
      strcpy(next, "");
    } else if (!strcmp(argv[argsCount], "-k") ||
               !strcmp(argv[argsCount], "-key")) {
      strcpy(next, "key");
    } else if (!strcmp(argv[argsCount], "-t") ||
               !strcmp(argv[argsCount], "-text")) {
      strcpy(next, "text");
    } else if (argv[argsCount][0] == '-' ||
               (strlen(text_input) > 0 && strlen(key_input) > 0)) {
      continue;
    } else {
      if (strlen(text_input) < 1) {
        strncpy(text_input, argv[argsCount], 500);
      } else {
        strncpy(key_input, argv[argsCount], 500);
      }
    }
  }
  if (strlen(text_input) > 1 && strlen(key_input) > 1) {
    char dst[500];
    SHA1_HMAC(dst, key_input, text_input, 1);
  } else {
    printf("[-] Comand line options NOT correct for SHA1-HMAC generation\n");
    exit(1);
  }
}


x86 assembly (clang, -O0):
<printSHA1HMAC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x610,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    -0x210(%rbp),%rdi
lea    0xeb1(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x410(%rbp),%rdi
lea    0xe9e(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x416(%rbp),%rdi
lea    0xe8b(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmp    -0x14(%rbp),%eax
jae    13de <printSHA1HMAC+0x26e>
lea    -0x416(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%eax
jle    1279 <printSHA1HMAC+0x109>
lea    -0x416(%rbp),%rdi
lea    0xe07(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1228 <printSHA1HMAC+0xb8>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rsi
call   1040 <strcpy@plt>
jmp    1261 <printSHA1HMAC+0xf1>
lea    -0x416(%rbp),%rdi
lea    0xdd6(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    125c <printSHA1HMAC+0xec>
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rsi
call   1040 <strcpy@plt>
jmp    1261 <printSHA1HMAC+0xf1>
lea    -0x416(%rbp),%rdi
lea    0xddf(%rip),%rsi
call   1040 <strcpy@plt>
jmp    13d9 <printSHA1HMAC+0x269>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
lea    0xd75(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
je     12bb <printSHA1HMAC+0x14b>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
lea    0xd57(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12d3 <printSHA1HMAC+0x163>
lea    -0x416(%rbp),%rdi
lea    0xd3b(%rip),%rsi
call   1040 <strcpy@plt>
jmp    13d4 <printSHA1HMAC+0x264>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
lea    0xd23(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
je     1315 <printSHA1HMAC+0x1a5>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
lea    0xd05(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    132d <printSHA1HMAC+0x1bd>
lea    -0x416(%rbp),%rdi
lea    0xce9(%rip),%rsi
call   1040 <strcpy@plt>
jmp    13cf <printSHA1HMAC+0x25f>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     136e <printSHA1HMAC+0x1fe>
lea    -0x210(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%eax
jle    1373 <printSHA1HMAC+0x203>
lea    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%eax
jle    1373 <printSHA1HMAC+0x203>
jmp    11c8 <printSHA1HMAC+0x58>
lea    -0x210(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x1,%eax
jge    13a9 <printSHA1HMAC+0x239>
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rsi
mov    $0x1f4,%edx
call   1030 <strncpy@plt>
jmp    13c5 <printSHA1HMAC+0x255>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rsi
mov    $0x1f4,%edx
call   1030 <strncpy@plt>
jmp    13ca <printSHA1HMAC+0x25a>
jmp    13cf <printSHA1HMAC+0x25f>
jmp    13d4 <printSHA1HMAC+0x264>
jmp    13d9 <printSHA1HMAC+0x269>
jmp    11c8 <printSHA1HMAC+0x58>
lea    -0x210(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x1,%eax
jle    142c <printSHA1HMAC+0x2bc>
lea    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x1,%eax
jle    142c <printSHA1HMAC+0x2bc>
lea    -0x610(%rbp),%rdi
lea    -0x410(%rbp),%rsi
lea    -0x210(%rbp),%rdx
mov    $0x1,%ecx
call   1060 <SHA1_HMAC@plt>
jmp    1442 <printSHA1HMAC+0x2d2>
lea    0xbde(%rip),%rdi
call   1070 <printf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
add    $0x610,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printSHA1HMAC>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x608,%rsp
mov    %rsi,%r12
mov    %edi,%ebx
lea    0xe75(%rip),%rbp
lea    0x10(%rsp),%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
lea    0x210(%rsp),%r15
mov    %r15,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
lea    0xa(%rsp),%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
cmp    $0x2,%ebx
jb     1305 <printSHA1HMAC+0x195>
mov    %ebx,%r14d
mov    $0x1,%ebp
lea    0xa(%rsp),%rbx
lea    0xe2d(%rip),%r13
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    1230 <printSHA1HMAC+0xc0>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1080 <strcmp@plt>
mov    %r15,%rdi
test   %rax,%rax
je     1218 <printSHA1HMAC+0xa8>
mov    %rbx,%rdi
lea    0xe03(%rip),%rsi
call   1080 <strcmp@plt>
lea    0x10(%rsp),%rdi
test   %rax,%rax
jne    1221 <printSHA1HMAC+0xb1>
mov    (%r12,%rbp,8),%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
lea    0xdd7(%rip),%rsi
jmp    12e0 <printSHA1HMAC+0x170>
mov    (%r12,%rbp,8),%rdi
lea    0xdc5(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12c0 <printSHA1HMAC+0x150>
mov    (%r12,%rbp,8),%rdi
lea    0xdb3(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12c0 <printSHA1HMAC+0x150>
mov    (%r12,%rbp,8),%rdi
lea    0xda3(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12c8 <printSHA1HMAC+0x158>
mov    (%r12,%rbp,8),%rdi
lea    0xd91(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12c8 <printSHA1HMAC+0x158>
mov    (%r12,%rbp,8),%rax
cmpb   $0x2d,(%rax)
je     12e5 <printSHA1HMAC+0x175>
lea    0x10(%rsp),%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    12a7 <printSHA1HMAC+0x137>
mov    %r15,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jg     12e5 <printSHA1HMAC+0x175>
lea    0x10(%rsp),%rdi
call   1060 <strlen@plt>
mov    (%r12,%rbp,8),%rsi
test   %eax,%eax
jle    12f4 <printSHA1HMAC+0x184>
mov    %r15,%rdi
jmp    12f9 <printSHA1HMAC+0x189>
xchg   %ax,%ax
mov    %rbx,%rdi
mov    %r13,%rsi
jmp    12e0 <printSHA1HMAC+0x170>
mov    %rbx,%rdi
lea    0xd3a(%rip),%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
call   1040 <strcpy@plt>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    11e0 <printSHA1HMAC+0x70>
jmp    1305 <printSHA1HMAC+0x195>
lea    0x10(%rsp),%rdi
mov    $0x1f4,%edx
call   1030 <strncpy@plt>
jmp    12e5 <printSHA1HMAC+0x175>
lea    0x10(%rsp),%rdi
call   1060 <strlen@plt>
cmp    $0x2,%eax
jl     1357 <printSHA1HMAC+0x1e7>
lea    0x210(%rsp),%rdi
call   1060 <strlen@plt>
cmp    $0x2,%eax
jl     1357 <printSHA1HMAC+0x1e7>
lea    0x410(%rsp),%rdi
lea    0x210(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    $0x1,%ecx
call   1070 <SHA1_HMAC@plt>
add    $0x608,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcb3(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"key\00"
@.str.2 = [5 x i8] c"text\00"
@.str.3 = [3 x i8] c"-k\00"
@.str.4 = [5 x i8] c"-key\00"
@.str.5 = [3 x i8] c"-t\00"
@.str.6 = [6 x i8] c"-text\00"
@.str.7 = [62 x i8] c"[-] Comand line options NOT correct for SHA1-HMAC generation\0A\00"
define void @printSHA1HMAC(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca [500 x i8]
%8 = alloca [500 x i8]
%9 = alloca [6 x i8]
%10 = alloca [500 x i8]
store i32 %0, i32* %3
store i8** %1, i8*** %4
%11 = load i32, i32* %3
store i32 %11, i32* %5
store i32 0, i32* %6
%12 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%13 = call i32 @strcpy(i8* %12, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%14 = getelementptr inbounds [500 x i8], [500 x i8]* %8, i64 0, i64 0
%15 = call i32 @strcpy(i8* %14, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%16 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%17 = call i32 @strcpy(i8* %16, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %18
18: ; preds = %136, %111, %2
%19 = load i32, i32* %6
%20 = add i32 %19, 1
store i32 %20, i32* %6
%21 = load i32, i32* %5
%22 = icmp ult i32 %20, %21
br i1 %22, label %23, label %137
23: ; preds = %18
%24 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%25 = call i32 @strlen(i8* %24)
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %55
27: ; preds = %23
%28 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %39
31: ; preds = %27
%32 = getelementptr inbounds [500 x i8], [500 x i8]* %8, i64 0, i64 0
%33 = load i8**, i8*** %4
%34 = load i32, i32* %6
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %33, i64 %35
%37 = load i8*, i8** %36
%38 = call i32 @strcpy(i8* %32, i8* %37)
br label %52
39: ; preds = %27
%40 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %51
43: ; preds = %39
%44 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%45 = load i8**, i8*** %4
%46 = load i32, i32* %6
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds i8*, i8** %45, i64 %47
%49 = load i8*, i8** %48
%50 = call i32 @strcpy(i8* %44, i8* %49)
br label %51
51: ; preds = %43, %39
br label %52
52: ; preds = %51, %31
%53 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%54 = call i32 @strcpy(i8* %53, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %136
55: ; preds = %23
%56 = load i8**, i8*** %4
%57 = load i32, i32* %6
%58 = zext i32 %57 to i64
%59 = getelementptr inbounds i8*, i8** %56, i64 %58
%60 = load i8*, i8** %59
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %71
63: ; preds = %55
%64 = load i8**, i8*** %4
%65 = load i32, i32* %6
%66 = zext i32 %65 to i64
%67 = getelementptr inbounds i8*, i8** %64, i64 %66
%68 = load i8*, i8** %67
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%70 = icmp ne i64 %69, 0
br i1 %70, label %74, label %71
71: ; preds = %63, %55
%72 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%73 = call i32 @strcpy(i8* %72, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %135
74: ; preds = %63
%75 = load i8**, i8*** %4
%76 = load i32, i32* %6
%77 = zext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %75, i64 %77
%79 = load i8*, i8** %78
%80 = call i64 @strcmp(i8* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %90
82: ; preds = %74
%83 = load i8**, i8*** %4
%84 = load i32, i32* %6
%85 = zext i32 %84 to i64
%86 = getelementptr inbounds i8*, i8** %83, i64 %85
%87 = load i8*, i8** %86
%88 = call i64 @strcmp(i8* %87, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%89 = icmp ne i64 %88, 0
br i1 %89, label %93, label %90
90: ; preds = %82, %74
%91 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%92 = call i32 @strcpy(i8* %91, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %134
93: ; preds = %82
%94 = load i8**, i8*** %4
%95 = load i32, i32* %6
%96 = zext i32 %95 to i64
%97 = getelementptr inbounds i8*, i8** %94, i64 %96
%98 = load i8*, i8** %97
%99 = getelementptr inbounds i8, i8* %98, i64 0
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 45
br i1 %102, label %111, label %103
103: ; preds = %93
%104 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%105 = call i32 @strlen(i8* %104)
%106 = icmp sgt i32 %105, 0
br i1 %106, label %107, label %112
107: ; preds = %103
%108 = getelementptr inbounds [500 x i8], [500 x i8]* %8, i64 0, i64 0
%109 = call i32 @strlen(i8* %108)
%110 = icmp sgt i32 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107, %93
br label %18
112: ; preds = %107, %103
%113 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%114 = call i32 @strlen(i8* %113)
%115 = icmp slt i32 %114, 1
br i1 %115, label %116, label %124
116: ; preds = %112
%117 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%118 = load i8**, i8*** %4
%119 = load i32, i32* %6
%120 = zext i32 %119 to i64
%121 = getelementptr inbounds i8*, i8** %118, i64 %120
%122 = load i8*, i8** %121
%123 = call i32 @strncpy(i8* %117, i8* %122, i32 500)
br label %132
124: ; preds = %112
%125 = getelementptr inbounds [500 x i8], [500 x i8]* %8, i64 0, i64 0
%126 = load i8**, i8*** %4
%127 = load i32, i32* %6
%128 = zext i32 %127 to i64
%129 = getelementptr inbounds i8*, i8** %126, i64 %128
%130 = load i8*, i8** %129
%131 = call i32 @strncpy(i8* %125, i8* %130, i32 500)
br label %132
132: ; preds = %124, %116
br label %133
133: ; preds = %132
br label %134
134: ; preds = %133, %90
br label %135
135: ; preds = %134, %71
br label %136
136: ; preds = %135, %52
br label %18
137: ; preds = %18
%138 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%139 = call i32 @strlen(i8* %138)
%140 = icmp sgt i32 %139, 1
br i1 %140, label %141, label %150
141: ; preds = %137
%142 = getelementptr inbounds [500 x i8], [500 x i8]* %8, i64 0, i64 0
%143 = call i32 @strlen(i8* %142)
%144 = icmp sgt i32 %143, 1
br i1 %144, label %145, label %150
145: ; preds = %141
%146 = getelementptr inbounds [500 x i8], [500 x i8]* %10, i64 0, i64 0
%147 = getelementptr inbounds [500 x i8], [500 x i8]* %8, i64 0, i64 0
%148 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%149 = call i32 @SHA1_HMAC(i8* %146, i8* %147, i8* %148, i32 1)
br label %153
150: ; preds = %141, %137
%151 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%152 = call i32 @exit(i32 1)
unreachable
153: ; preds = %145
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"key\00"
@.str.2 = [5 x i8] c"text\00"
@.str.3 = [3 x i8] c"-k\00"
@.str.4 = [5 x i8] c"-key\00"
@.str.5 = [3 x i8] c"-t\00"
@.str.6 = [6 x i8] c"-text\00"
@str = [61 x i8] c"[-] Comand line options NOT correct for SHA1-HMAC generation\00"
define void @printSHA1HMAC(i32 %0, i8** nocapture %1) {
%3 = alloca [500 x i8]
%4 = alloca [500 x i8]
%5 = alloca [6 x i8]
%6 = alloca [500 x i8]
%7 = getelementptr inbounds [500 x i8], [500 x i8]* %3, i64 0, i64 0
%8 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%9 = getelementptr inbounds [500 x i8], [500 x i8]* %4, i64 0, i64 0
%10 = call i32 @strcpy(i8* %9, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 0
%12 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%13 = icmp ugt i32 %0, 1
br i1 %13, label %14, label %75
14: ; preds = %2
%15 = zext i32 %0 to i64
br label %16
16: ; preds = %14, %64
%17 = phi i64 [ 1, %14 ], [ %65, %64 ]
%18 = call i32 @strlen(i8* %11)
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %33
20: ; preds = %16
%21 = call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %23, %20
%27 = phi i8* [ %9, %20 ], [ %7, %23 ]
%28 = getelementptr inbounds i8*, i8** %1, i64 %17
%29 = load i8*, i8** %28
%30 = call i32 @strcpy(i8* %27, i8* %29)
br label %31
31: ; preds = %26, %23
%32 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %64
33: ; preds = %16
%34 = getelementptr inbounds i8*, i8** %1, i64 %17
%35 = load i8*, i8** %34
%36 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %42, label %38
38: ; preds = %33
%39 = load i8*, i8** %34
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38, %33
%43 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %64
44: ; preds = %38
%45 = load i8*, i8** %34
%46 = call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %52, label %48
48: ; preds = %44
%49 = load i8*, i8** %34
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %48, %44
%53 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %64
54: ; preds = %48
%55 = load i8*, i8** %34
%56 = load i8, i8* %55
%57 = icmp eq i8 %56, 45
br i1 %57, label %64, label %58
58: ; preds = %54
%59 = call i32 @strlen(i8* %7)
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %58
%62 = call i32 @strlen(i8* %9)
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %31, %52, %71, %73, %42, %54, %61
%65 = add nuw nsw i64 %17, 1
%66 = icmp eq i64 %65, %15
br i1 %66, label %75, label %16
67: ; preds = %61, %58
%68 = call i32 @strlen(i8* %7)
%69 = icmp slt i32 %68, 1
%70 = load i8*, i8** %34
br i1 %69, label %71, label %73
71: ; preds = %67
%72 = call i32 @strncpy(i8* %7, i8* %70, i32 500)
br label %64
73: ; preds = %67
%74 = call i32 @strncpy(i8* %9, i8* %70, i32 500)
br label %64
75: ; preds = %64, %2
%76 = call i32 @strlen(i8* %7)
%77 = icmp sgt i32 %76, 1
br i1 %77, label %78, label %84
78: ; preds = %75
%79 = call i32 @strlen(i8* %9)
%80 = icmp sgt i32 %79, 1
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%83 = call i32 @SHA1_HMAC(i8* %82, i8* %9, i8* %7, i32 1)
ret void
84: ; preds = %78, %75
%85 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
%86 = call i32 @exit(i32 1)
unreachable
}