#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 */
unsigned long atol(char *);
int collect_crypto_bytes(char const *, char const *, unsigned long,
                         unsigned long, char const *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strcmp(char *, char *);
int update_crypto_hmac(unsigned char *, unsigned char *, unsigned long);
int main(int argc, char **argv) {
  if (argc < 2) {
    printf("\nUsage : \n");
    printf("fips_crypto_utils -u vmlinux_file hmac_file offset");
    printf(
        "fips_crypto_utils -g vmlinux_file section_name offset size out_file");
    printf("\n");
    return -1;
  }
  if (!strcmp("-u", argv[1])) {
    unsigned long offset = 0;
    unsigned char *vmlinux_file = NULL;
    unsigned char *hmac_file = NULL;
    if (argc != 5) {
      printf("\nUsage : \n");
      printf("fips_crypto_utils -u vmlinux_file hmac_file offset");
      printf("\n");
      return -1;
    }
    vmlinux_file = argv[2];
    hmac_file = argv[3];
    offset = atol(argv[4]);
    if (!vmlinux_file || !hmac_file || !offset) {
      printf("./fips_crypto_utils -u vmlinux_file hmac_file offset");
      return -1;
    }
    return update_crypto_hmac(vmlinux_file, hmac_file, offset);
  } else if (!strcmp("-g", argv[1])) {
    const char *in_file = NULL;
    const char *section_name = NULL;
    unsigned long offset = 0;
    unsigned long size = 0;
    const char *out_file = NULL;
    if (argc != 7) {
      printf("\nUsage : \n");
      printf("./fips_crypto_utils -g vmlinux_file section_name offset size "
             "out_file");
      printf("\n");
      return -1;
    }
    in_file = argv[2];
    section_name = argv[3];
    offset = atol(argv[4]);
    size = atol(argv[5]);
    out_file = argv[6];
    if (!in_file || !section_name || !offset || !size || !out_file) {
      printf("./fips_crypto_utils -g vmlinux_file section_name offset size "
             "out_file");
      return -1;
    }
    return collect_crypto_bytes(in_file, section_name, offset, size, out_file);
  } else {
    printf("\nUsage : \n");
    printf("fips_crypto_utils -u vmlinux_file hmac_file offset");
    printf(
        "fips_crypto_utils -g vmlinux_file section_name offset size out_file");
    printf("\n");
  }
  return -1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11ac <main+0x5c>
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1407 <main+0x2b7>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe50(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1296 <main+0x146>
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
cmpl   $0x5,-0x8(%rbp)
je     121b <main+0xcb>
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
lea    0xe12(%rip),%rdi
call   1030 <printf@plt>
lea    0xdff(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1407 <main+0x2b7>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1070 <atol@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1265 <main+0x115>
cmpq   $0x0,-0x28(%rbp)
je     1265 <main+0x115>
cmpq   $0x0,-0x18(%rbp)
jne    127d <main+0x12d>
lea    0xda2(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1407 <main+0x2b7>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <update_crypto_hmac@plt>
mov    %eax,-0x4(%rbp)
jmp    1407 <main+0x2b7>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd9e(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    13cb <main+0x27b>
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
cmpl   $0x7,-0x8(%rbp)
je     1315 <main+0x1c5>
lea    0xd14(%rip),%rdi
call   1030 <printf@plt>
lea    0xd4e(%rip),%rdi
call   1030 <printf@plt>
lea    0xd05(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1407 <main+0x2b7>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1070 <atol@plt>
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
call   1070 <atol@plt>
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1392 <main+0x242>
cmpq   $0x0,-0x38(%rbp)
je     1392 <main+0x242>
cmpq   $0x0,-0x40(%rbp)
je     1392 <main+0x242>
cmpq   $0x0,-0x48(%rbp)
je     1392 <main+0x242>
cmpq   $0x0,-0x50(%rbp)
jne    13aa <main+0x25a>
lea    0xcad(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1407 <main+0x2b7>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
call   1050 <collect_crypto_bytes@plt>
mov    %eax,-0x4(%rbp)
jmp    1407 <main+0x2b7>
lea    0xc2e(%rip),%rdi
call   1030 <printf@plt>
lea    0xc32(%rip),%rdi
call   1030 <printf@plt>
lea    0xc5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xc13(%rip),%rdi
call   1030 <printf@plt>
jmp    1400 <main+0x2b0>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x1,%edi
jle    11b3 <main+0x43>
mov    %rsi,%r13
mov    %edi,%ebp
mov    0x8(%rsi),%rbx
lea    0xe70(%rip),%rdi
mov    %rbx,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     11f5 <main+0x85>
lea    0xe95(%rip),%rdi
mov    %rbx,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1246 <main+0xd6>
lea    0xec7(%rip),%rdi
call   1040 <puts@plt>
lea    0xe3f(%rip),%rdi
call   1050 <printf@plt>
lea    0xe6b(%rip),%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xffffffff,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    $0x5,%ebp
jne    12a4 <main+0x134>
mov    0x10(%r13),%rbp
mov    0x18(%r13),%r14
mov    0x20(%r13),%rdi
call   1090 <atol@plt>
test   %rbp,%rbp
je     12d4 <main+0x164>
test   %r14,%r14
je     12d4 <main+0x164>
test   %rax,%rax
je     12d4 <main+0x164>
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <update_crypto_hmac@plt>
cmp    $0x7,%ebp
jne    12bc <main+0x14c>
mov    0x10(%r13),%r14
mov    0x18(%r13),%r15
mov    0x20(%r13),%rdi
call   1090 <atol@plt>
mov    %rax,%r12
mov    0x28(%r13),%rdi
call   1090 <atol@plt>
test   %r14,%r14
je     12e5 <main+0x175>
test   %r15,%r15
je     12e5 <main+0x175>
test   %r12,%r12
je     12e5 <main+0x175>
test   %rax,%rax
je     12e5 <main+0x175>
mov    0x30(%r13),%r8
test   %r8,%r8
je     12e5 <main+0x175>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rax,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <collect_crypto_bytes@plt>
lea    0xdd6(%rip),%rdi
call   1040 <puts@plt>
lea    0xd4e(%rip),%rdi
jmp    11d2 <main+0x62>
lea    0xdbe(%rip),%rdi
call   1040 <puts@plt>
lea    0xd6c(%rip),%rdi
jmp    11d2 <main+0x62>
lea    0xd28(%rip),%rdi
call   1050 <printf@plt>
jmp    11e1 <main+0x71>
lea    0xd4f(%rip),%rdi
call   1050 <printf@plt>
jmp    11e1 <main+0x71>

LLVM IR (-O0):
@.str = [11 x i8] c"\0AUsage : \0A\00"
@.str.1 = [51 x i8] c"fips_crypto_utils -u vmlinux_file hmac_file offset\00"
@.str.2 = [68 x i8] c"fips_crypto_utils -g vmlinux_file section_name offset size out_file\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [3 x i8] c"-u\00"
@.str.5 = [53 x i8] c"./fips_crypto_utils -u vmlinux_file hmac_file offset\00"
@.str.6 = [3 x i8] c"-g\00"
@.str.7 = [70 x i8] c"./fips_crypto_utils -g vmlinux_file section_name offset size out_file\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i64
%13 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 2
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %121
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %60, label %27
27: ; preds = %21
store i64 0, i64* %6
store i8* null, i8** %7
store i8* null, i8** %8
%28 = load i32, i32* %4
%29 = icmp ne i32 %28, 5
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %121
34: ; preds = %27
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 2
%37 = load i8*, i8** %36
store i8* %37, i8** %7
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 3
%40 = load i8*, i8** %39
store i8* %40, i8** %8
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 4
%43 = load i8*, i8** %42
%44 = call i64 @atol(i8* %43)
store i64 %44, i64* %6
%45 = load i8*, i8** %7
%46 = icmp ne i8* %45, null
br i1 %46, label %47, label %53
47: ; preds = %34
%48 = load i8*, i8** %8
%49 = icmp ne i8* %48, null
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i64, i64* %6
%52 = icmp ne i64 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %50, %47, %34
%54 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %3
br label %121
55: ; preds = %50
%56 = load i8*, i8** %7
%57 = load i8*, i8** %8
%58 = load i64, i64* %6
%59 = call i32 @update_crypto_hmac(i8* %56, i8* %57, i64 %58)
store i32 %59, i32* %3
br label %121
60: ; preds = %21
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %63)
%65 = icmp ne i32 %64, 0
br i1 %65, label %114, label %66
66: ; preds = %60
store i8* null, i8** %9
store i8* null, i8** %10
store i64 0, i64* %11
store i64 0, i64* %12
store i8* null, i8** %13
%67 = load i32, i32* %4
%68 = icmp ne i32 %67, 7
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%71 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
%72 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %121
73: ; preds = %66
%74 = load i8**, i8*** %5
%75 = getelementptr inbounds i8*, i8** %74, i64 2
%76 = load i8*, i8** %75
store i8* %76, i8** %9
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 3
%79 = load i8*, i8** %78
store i8* %79, i8** %10
%80 = load i8**, i8*** %5
%81 = getelementptr inbounds i8*, i8** %80, i64 4
%82 = load i8*, i8** %81
%83 = call i64 @atol(i8* %82)
store i64 %83, i64* %11
%84 = load i8**, i8*** %5
%85 = getelementptr inbounds i8*, i8** %84, i64 5
%86 = load i8*, i8** %85
%87 = call i64 @atol(i8* %86)
store i64 %87, i64* %12
%88 = load i8**, i8*** %5
%89 = getelementptr inbounds i8*, i8** %88, i64 6
%90 = load i8*, i8** %89
store i8* %90, i8** %13
%91 = load i8*, i8** %9
%92 = icmp ne i8* %91, null
br i1 %92, label %93, label %105
93: ; preds = %73
%94 = load i8*, i8** %10
%95 = icmp ne i8* %94, null
br i1 %95, label %96, label %105
96: ; preds = %93
%97 = load i64, i64* %11
%98 = icmp ne i64 %97, 0
br i1 %98, label %99, label %105
99: ; preds = %96
%100 = load i64, i64* %12
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load i8*, i8** %13
%104 = icmp ne i8* %103, null
br i1 %104, label %107, label %105
105: ; preds = %102, %99, %96, %93, %73
%106 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
store i32 -1, i32* %3
br label %121
107: ; preds = %102
%108 = load i8*, i8** %9
%109 = load i8*, i8** %10
%110 = load i64, i64* %11
%111 = load i64, i64* %12
%112 = load i8*, i8** %13
%113 = call i32 @collect_crypto_bytes(i8* %108, i8* %109, i64 %110, i64 %111, i8* %112)
store i32 %113, i32* %3
br label %121
114: ; preds = %60
%115 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%116 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%117 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%118 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %119
119: ; preds = %114
br label %120
120: ; preds = %119
store i32 -1, i32* %3
br label %121
121: ; preds = %120, %107, %105, %69, %55, %53, %30, %16
%122 = load i32, i32* %3
ret i32 %122
}

LLVM IR (-O2):
@.str.1 = [51 x i8] c"fips_crypto_utils -u vmlinux_file hmac_file offset\00"
@.str.2 = [68 x i8] c"fips_crypto_utils -g vmlinux_file section_name offset size out_file\00"
@.str.4 = [3 x i8] c"-u\00"
@.str.5 = [53 x i8] c"./fips_crypto_utils -u vmlinux_file hmac_file offset\00"
@.str.6 = [3 x i8] c"-g\00"
@.str.7 = [70 x i8] c"./fips_crypto_utils -g vmlinux_file section_name offset size out_file\00"
@str.10 = [10 x i8] c"\0AUsage : \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %9
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @putchar(i32 10)
br label %77
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @strcmp(i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* dereferenceable(1) %11)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %37
14: ; preds = %9
%15 = icmp eq i32 %0, 5
br i1 %15, label %20, label %16
16: ; preds = %14
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.10, i64 0, i64 0))
%18 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%19 = tail call i32 @putchar(i32 10)
br label %77
20: ; preds = %14
%21 = getelementptr inbounds i8*, i8** %1, i64 2
%22 = load i8*, i8** %21
%23 = getelementptr inbounds i8*, i8** %1, i64 3
%24 = load i8*, i8** %23
%25 = getelementptr inbounds i8*, i8** %1, i64 4
%26 = load i8*, i8** %25
%27 = tail call i64 @atol(i8* %26)
%28 = icmp ne i8* %22, null
%29 = icmp ne i8* %24, null
%30 = select i1 %28, i1 %29, i1 false
%31 = icmp ne i64 %27, 0
%32 = select i1 %30, i1 %31, i1 false
br i1 %32, label %35, label %33
33: ; preds = %20
%34 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
br label %77
35: ; preds = %20
%36 = tail call i32 @update_crypto_hmac(i8* %22, i8* %24, i64 %27)
br label %77
37: ; preds = %9
%38 = tail call i32 @strcmp(i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* dereferenceable(1) %11)
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %72
40: ; preds = %37
%41 = icmp eq i32 %0, 7
br i1 %41, label %46, label %42
42: ; preds = %40
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.10, i64 0, i64 0))
%44 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
%45 = tail call i32 @putchar(i32 10)
br label %77
46: ; preds = %40
%47 = getelementptr inbounds i8*, i8** %1, i64 2
%48 = load i8*, i8** %47
%49 = getelementptr inbounds i8*, i8** %1, i64 3
%50 = load i8*, i8** %49
%51 = getelementptr inbounds i8*, i8** %1, i64 4
%52 = load i8*, i8** %51
%53 = tail call i64 @atol(i8* %52)
%54 = getelementptr inbounds i8*, i8** %1, i64 5
%55 = load i8*, i8** %54
%56 = tail call i64 @atol(i8* %55)
%57 = getelementptr inbounds i8*, i8** %1, i64 6
%58 = load i8*, i8** %57
%59 = icmp ne i8* %48, null
%60 = icmp ne i8* %50, null
%61 = select i1 %59, i1 %60, i1 false
%62 = icmp ne i64 %53, 0
%63 = select i1 %61, i1 %62, i1 false
%64 = icmp ne i64 %56, 0
%65 = select i1 %63, i1 %64, i1 false
%66 = icmp ne i8* %58, null
%67 = select i1 %65, i1 %66, i1 false
br i1 %67, label %70, label %68
68: ; preds = %46
%69 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
br label %77
70: ; preds = %46
%71 = tail call i32 @collect_crypto_bytes(i8* %48, i8* %50, i64 %53, i64 %56, i8* %58)
br label %77
72: ; preds = %37
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.10, i64 0, i64 0))
%74 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%75 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%76 = tail call i32 @putchar(i32 10)
br label %77
77: ; preds = %42, %68, %70, %16, %33, %35, %72, %4
%78 = phi i32 [ -1, %4 ], [ -1, %72 ], [ -1, %16 ], [ %36, %35 ], [ -1, %33 ], [ -1, %42 ], [ %71, %70 ], [ -1, %68 ]
ret i32 %78
}