#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*/ EVP_sha1();
int /*<<< orphan*/ EVP_sha256();
scalar_t__ PKCS5_PBKDF2_HMAC(char *, int, unsigned char *, int, int,
                             int /*<<< orphan*/, int, unsigned char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ memcpy(unsigned char **, char *, int);
int /*<<< orphan*/ memset(unsigned char **, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdout;
void singlepmkout(char *pwname, int pwlen, char *essidname, int essidlen) {
  int c;
  unsigned char essid[32];
  unsigned char pmk1[64];
  unsigned char pmk256[64];
  memset(&essid, 0, 32);
  memcpy(&essid, essidname, essidlen);
  fprintf(stdout,
          "\n"
          "essid (networkname)....: %s\n"
          "password...............: %s\n",
          essidname, pwname);
  if (PKCS5_PBKDF2_HMAC(pwname, pwlen, essid, essidlen, 4096, EVP_sha1(), 32,
                        pmk1) != 0) {
    printf("plainmasterkey (SHA1)..: ");
    for (c = 0; c < 32; c++) {
      printf("%02x", pmk1[c]);
    }
    printf("\n");
  }
  if (PKCS5_PBKDF2_HMAC(pwname, pwlen, essid, essidlen, 4096, EVP_sha256(), 32,
                        pmk256) != 0) {
    printf("plainmasterkey (SHA256): ");
    for (c = 0; c < 32; c++) {
      printf("%02x", pmk256[c]);
    }
    printf("\n\n");
  }
  return;
}


x86 assembly (clang, -O0):
<singlepmkout>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1060 <memset@plt>
lea    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1080 <memcpy@plt>
mov    0x2e30(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xe3f(%rip),%rsi
call   1070 <fprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0xd4(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0xc4(%rbp)
mov    $0x0,%al
call   1040 <EVP_sha1@plt>
mov    -0xe0(%rbp),%rdi
mov    -0xd4(%rbp),%esi
mov    -0xd0(%rbp),%rdx
mov    -0xc4(%rbp),%ecx
mov    %eax,%r9d
lea    -0x80(%rbp),%rax
mov    $0x1000,%r8d
movl   $0x20,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <PKCS5_PBKDF2_HMAC@plt>
cmp    $0x0,%rax
je     1289 <singlepmkout+0x119>
lea    0xdfc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x20,-0x20(%rbp)
jge    127b <singlepmkout+0x10b>
movslq -0x20(%rbp),%rax
movzbl -0x80(%rbp,%rax,1),%esi
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    124c <singlepmkout+0xdc>
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0xf4(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0xe4(%rbp)
mov    $0x0,%al
call   1090 <EVP_sha256@plt>
mov    -0x100(%rbp),%rdi
mov    -0xf4(%rbp),%esi
mov    -0xf0(%rbp),%rdx
mov    -0xe4(%rbp),%ecx
mov    %eax,%r9d
lea    -0xc0(%rbp),%rax
mov    $0x1000,%r8d
movl   $0x20,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <PKCS5_PBKDF2_HMAC@plt>
cmp    $0x0,%rax
je     1352 <singlepmkout+0x1e2>
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x20,-0x20(%rbp)
jge    1344 <singlepmkout+0x1d4>
movslq -0x20(%rbp),%rax
movzbl -0xc0(%rbp,%rax,1),%esi
ff
lea    0xd25(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1312 <singlepmkout+0x1a2>
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<singlepmkout>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xa0,%rsp
mov    %ecx,%r15d
mov    %rdx,%rbp
mov    %esi,%r14d
mov    %rdi,%r12
lea    0x80(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1080 <memset@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15d,%edx
call   10a0 <memcpy@plt>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
lea    0xe20(%rip),%rsi
mov    %rbp,%rdx
mov    %r12,%rcx
call   1090 <fprintf@plt>
xor    %eax,%eax
call   1060 <EVP_sha1@plt>
lea    0x40(%rsp),%rbp
mov    %r12,%rdi
mov    %r14d,%esi
mov    %rbx,%rdx
mov    %r15d,%ecx
mov    $0x1000,%r8d
mov    %eax,%r9d
push   %rbp
push   $0x20
call   1050 <PKCS5_PBKDF2_HMAC@plt>
add    $0x10,%rsp
test   %rax,%rax
je     1420 <singlepmkout+0x290>
lea    0xe12(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x40(%rsp),%esi
lea    0xe19(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x41(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x42(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x43(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x45(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x46(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x47(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x48(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x49(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4a(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4b(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4d(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4e(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4f(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x50(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x51(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x52(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x53(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x54(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x55(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x56(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x57(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x58(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x59(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5a(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5b(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5d(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5e(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5f(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   10b0 <EVP_sha256@plt>
mov    %rsp,%rbp
lea    0x80(%rsp),%rdx
mov    %r12,%rdi
mov    %r14d,%esi
mov    %r15d,%ecx
mov    $0x1000,%r8d
mov    %eax,%r9d
push   %rbp
push   $0x20
call   1050 <PKCS5_PBKDF2_HMAC@plt>
add    $0x10,%rsp
test   %rax,%rax
je     1659 <singlepmkout+0x4c9>
lea    0xbf9(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl (%rsp),%esi
lea    0xbe2(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x3(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x6(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x9(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xa(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xb(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xd(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xe(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xf(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x11(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x12(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x13(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x15(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x16(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x17(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x19(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1a(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1b(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1d(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1e(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1f(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x9e4(%rip),%rdi
call   1040 <puts@plt>
add    $0xa0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [58 x i8] c"\0Aessid (networkname)....: %s\0Apassword...............: %s\0A\00"
@.str.1 = [26 x i8] c"plainmasterkey (SHA1)..: \00"
@.str.2 = [5 x i8] c"%02x\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [26 x i8] c"plainmasterkey (SHA256): \00"
@.str.5 = [3 x i8] c"\0A\0A\00"
define void @singlepmkout(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca [32 x i8]
%11 = alloca [64 x i8]
%12 = alloca [64 x i8]
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%13 = bitcast [32 x i8]* %10 to i8**
%14 = call i32 @memset(i8** %13, i32 0, i32 32)
%15 = bitcast [32 x i8]* %10 to i8**
%16 = load i8*, i8** %7
%17 = load i32, i32* %8
%18 = call i32 @memcpy(i8** %15, i8* %16, i32 %17)
%19 = load i32, i32* @stdout
%20 = load i8*, i8** %7
%21 = load i8*, i8** %5
%22 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %20, i8* %21)
%23 = load i8*, i8** %5
%24 = load i32, i32* %6
%25 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%26 = load i32, i32* %8
%27 = call i32 (...) @EVP_sha1()
%28 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%29 = call i64 @PKCS5_PBKDF2_HMAC(i8* %23, i32 %24, i8* %25, i32 %26, i32 4096, i32 %27, i32 32, i8* %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %48
31: ; preds = %4
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %9
br label %33
33: ; preds = %43, %31
%34 = load i32, i32* %9
%35 = icmp slt i32 %34, 32
br i1 %35, label %36, label %46
36: ; preds = %33
%37 = load i32, i32* %9
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 %38
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %41)
br label %43
43: ; preds = %36
%44 = load i32, i32* %9
%45 = add nsw i32 %44, 1
store i32 %45, i32* %9
br label %33
46: ; preds = %33
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %48
48: ; preds = %46, %4
%49 = load i8*, i8** %5
%50 = load i32, i32* %6
%51 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%52 = load i32, i32* %8
%53 = call i32 (...) @EVP_sha256()
%54 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%55 = call i64 @PKCS5_PBKDF2_HMAC(i8* %49, i32 %50, i8* %51, i32 %52, i32 4096, i32 %53, i32 32, i8* %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %74
57: ; preds = %48
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %9
br label %59
59: ; preds = %69, %57
%60 = load i32, i32* %9
%61 = icmp slt i32 %60, 32
br i1 %61, label %62, label %72
62: ; preds = %59
%63 = load i32, i32* %9
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 %64
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %67)
br label %69
69: ; preds = %62
%70 = load i32, i32* %9
%71 = add nsw i32 %70, 1
store i32 %71, i32* %9
br label %59
72: ; preds = %59
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %74
74: ; preds = %72, %48
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [58 x i8] c"\0Aessid (networkname)....: %s\0Apassword...............: %s\0A\00"
@.str.1 = [26 x i8] c"plainmasterkey (SHA1)..: \00"
@.str.2 = [5 x i8] c"%02x\00"
@.str.4 = [26 x i8] c"plainmasterkey (SHA256): \00"
@str = [2 x i8] c"\0A\00"
define void @singlepmkout(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca [32 x i8]
%6 = alloca [64 x i8]
%7 = alloca [64 x i8]
%8 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%10 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%11 = bitcast [32 x i8]* %5 to i8**
%12 = call i32 @memset(i8** %11, i32 0, i32 32)
%13 = call i32 @memcpy(i8** %11, i8* %2, i32 %3)
%14 = load i32, i32* @stdout
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %0)
%16 = call i32 (...) @EVP_sha1()
%17 = call i64 @PKCS5_PBKDF2_HMAC(i8* %0, i32 %1, i8* %8, i32 %3, i32 4096, i32 %16, i32 32, i8* %9)
%18 = icmp eq i64 %17, 0
br i1 %18, label %149, label %19
19: ; preds = %4
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%21 = load i8, i8* %9
%22 = zext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%24 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 1
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 2
%29 = load i8, i8* %28
%30 = zext i8 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %30)
%32 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 3
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %34)
%36 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 4
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 5
%41 = load i8, i8* %40
%42 = zext i8 %41 to i32
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 6
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %46)
%48 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 7
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %50)
%52 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 8
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %54)
%56 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 9
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %58)
%60 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 10
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %62)
%64 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 11
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %66)
%68 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 12
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %70)
%72 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 13
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %74)
%76 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 14
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %78)
%80 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 15
%81 = load i8, i8* %80
%82 = zext i8 %81 to i32
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %82)
%84 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 16
%85 = load i8, i8* %84
%86 = zext i8 %85 to i32
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %86)
%88 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 17
%89 = load i8, i8* %88
%90 = zext i8 %89 to i32
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %90)
%92 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 18
%93 = load i8, i8* %92
%94 = zext i8 %93 to i32
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %94)
%96 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 19
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %98)
%100 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 20
%101 = load i8, i8* %100
%102 = zext i8 %101 to i32
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %102)
%104 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 21
%105 = load i8, i8* %104
%106 = zext i8 %105 to i32
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %106)
%108 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 22
%109 = load i8, i8* %108
%110 = zext i8 %109 to i32
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %110)
%112 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 23
%113 = load i8, i8* %112
%114 = zext i8 %113 to i32
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %114)
%116 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 24
%117 = load i8, i8* %116
%118 = zext i8 %117 to i32
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %118)
%120 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 25
%121 = load i8, i8* %120
%122 = zext i8 %121 to i32
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %122)
%124 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 26
%125 = load i8, i8* %124
%126 = zext i8 %125 to i32
%127 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %126)
%128 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 27
%129 = load i8, i8* %128
%130 = zext i8 %129 to i32
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %130)
%132 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 28
%133 = load i8, i8* %132
%134 = zext i8 %133 to i32
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %134)
%136 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 29
%137 = load i8, i8* %136
%138 = zext i8 %137 to i32
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %138)
%140 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 30
%141 = load i8, i8* %140
%142 = zext i8 %141 to i32
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %142)
%144 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 31
%145 = load i8, i8* %144
%146 = zext i8 %145 to i32
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %146)
%148 = call i32 @putchar(i32 10)
br label %149
149: ; preds = %19, %4
%150 = call i32 (...) @EVP_sha256()
%151 = call i64 @PKCS5_PBKDF2_HMAC(i8* %0, i32 %1, i8* %8, i32 %3, i32 4096, i32 %150, i32 32, i8* %10)
%152 = icmp eq i64 %151, 0
br i1 %152, label %283, label %153
153: ; preds = %149
%154 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
%155 = load i8, i8* %10
%156 = zext i8 %155 to i32
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %156)
%158 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 1
%159 = load i8, i8* %158
%160 = zext i8 %159 to i32
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %160)
%162 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 2
%163 = load i8, i8* %162
%164 = zext i8 %163 to i32
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %164)
%166 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 3
%167 = load i8, i8* %166
%168 = zext i8 %167 to i32
%169 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %168)
%170 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 4
%171 = load i8, i8* %170
%172 = zext i8 %171 to i32
%173 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %172)
%174 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 5
%175 = load i8, i8* %174
%176 = zext i8 %175 to i32
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %176)
%178 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 6
%179 = load i8, i8* %178
%180 = zext i8 %179 to i32
%181 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %180)
%182 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 7
%183 = load i8, i8* %182
%184 = zext i8 %183 to i32
%185 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %184)
%186 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 8
%187 = load i8, i8* %186
%188 = zext i8 %187 to i32
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %188)
%190 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 9
%191 = load i8, i8* %190
%192 = zext i8 %191 to i32
%193 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %192)
%194 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 10
%195 = load i8, i8* %194
%196 = zext i8 %195 to i32
%197 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %196)
%198 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 11
%199 = load i8, i8* %198
%200 = zext i8 %199 to i32
%201 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %200)
%202 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 12
%203 = load i8, i8* %202
%204 = zext i8 %203 to i32
%205 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %204)
%206 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 13
%207 = load i8, i8* %206
%208 = zext i8 %207 to i32
%209 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %208)
%210 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 14
%211 = load i8, i8* %210
%212 = zext i8 %211 to i32
%213 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %212)
%214 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 15
%215 = load i8, i8* %214
%216 = zext i8 %215 to i32
%217 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %216)
%218 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 16
%219 = load i8, i8* %218
%220 = zext i8 %219 to i32
%221 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %220)
%222 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 17
%223 = load i8, i8* %222
%224 = zext i8 %223 to i32
%225 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %224)
%226 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 18
%227 = load i8, i8* %226
%228 = zext i8 %227 to i32
%229 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %228)
%230 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 19
%231 = load i8, i8* %230
%232 = zext i8 %231 to i32
%233 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %232)
%234 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 20
%235 = load i8, i8* %234
%236 = zext i8 %235 to i32
%237 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %236)
%238 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 21
%239 = load i8, i8* %238
%240 = zext i8 %239 to i32
%241 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %240)
%242 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 22
%243 = load i8, i8* %242
%244 = zext i8 %243 to i32
%245 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %244)
%246 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 23
%247 = load i8, i8* %246
%248 = zext i8 %247 to i32
%249 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %248)
%250 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 24
%251 = load i8, i8* %250
%252 = zext i8 %251 to i32
%253 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %252)
%254 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 25
%255 = load i8, i8* %254
%256 = zext i8 %255 to i32
%257 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %256)
%258 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 26
%259 = load i8, i8* %258
%260 = zext i8 %259 to i32
%261 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %260)
%262 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 27
%263 = load i8, i8* %262
%264 = zext i8 %263 to i32
%265 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %264)
%266 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 28
%267 = load i8, i8* %266
%268 = zext i8 %267 to i32
%269 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %268)
%270 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 29
%271 = load i8, i8* %270
%272 = zext i8 %271 to i32
%273 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %272)
%274 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 30
%275 = load i8, i8* %274
%276 = zext i8 %275 to i32
%277 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %276)
%278 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 31
%279 = load i8, i8* %278
%280 = zext i8 %279 to i32
%281 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %280)
%282 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %283
283: ; preds = %153, %149
ret void
}