#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 */
typedef int /*<<< orphan*/ prefix;

/* Variables and functions */
int /*<<< orphan*/ EINVAL;
int /*<<< orphan*/ ENOTSUP;
int /*<<< orphan*/ _error(char *, int);
char *_hash_base64(char const *);
char *_makepasswd_password(char const *, int, int);
char *crypt(char const *, char *);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ free(char *);
char *malloc(size_t);
int rand();
int /*<<< orphan*/ snprintf(char *, size_t, char *, char const *, int, char,
                            char *);
scalar_t__ strcmp(char *, char *);
char *strdup(char *);
int strlen(char *);
scalar_t__ strncmp(char *, char const *, int);
char *_hash_blowfish(char const *password, char const *salt, int iterations) {
  const char prefix[] = "$2a$";
  const char characters[] =
      "!\"%&'()*+,-./ABCDEFGHIJKLMNOPQRSTUVWXYZ"
      "abcdefghijklmnopqrstuvwxyz0123456789:;<=>?@[\\]^_`";
  char *ret;
  char *p = NULL;
  char *salt64;
  size_t len;
  char *s;
  if (iterations <= 0)
    iterations = (rand() % 12) + 4;
  if (iterations < 4 || iterations > 95) {
    errno = EINVAL;
    _error("blowfish", 1);
    return NULL;
  }
  if (salt == NULL) {
    if ((p = _makepasswd_password(characters, 16, 16)) == NULL)
      return NULL;
    salt = p;
  }
  if ((salt64 = _hash_base64(salt)) == NULL) {
    free(p);
    return NULL;
  }
  len = sizeof(prefix) + 3 + strlen(salt64);
  if ((s = malloc(len)) == NULL) {
    _error("malloc", 1);
    free(p);
    return NULL;
  }
  snprintf(s, len, "%s%02u%c%s", prefix, iterations, '$', salt64);
  ret = crypt(password, s);
  free(salt64);
  free(p);
  free(s);
  if (ret == NULL)
    _error("crypt", 1);
  else if (strcmp(ret, ":") == 0) {
    errno = EINVAL;
    _error("blowfish", 1);
    ret = NULL;
  } else if (strncmp(ret, prefix, sizeof(prefix) - 1) != 0) {
    errno = ENOTSUP;
    _error("blowfish", 1);
    ret = NULL;
  } else if ((ret = strdup(ret)) == NULL)
    _error("malloc", 1);
  return ret;
}


x86 assembly (clang, -O0):
<_hash_blowfish>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    0xe14(%rip),%eax
mov    %eax,-0x21(%rbp)
mov    0xe0f(%rip),%al
mov    %al,-0x1d(%rbp)
lea    -0x80(%rbp),%rdi
lea    0xe2d(%rip),%rsi
mov    $0x59,%edx
call   10b0 <memcpy@plt>
movq   $0x0,-0x90(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jg     1237 <_hash_blowfish+0x67>
mov    $0x0,%al
call   10f0 <rand@plt>
mov    $0xc,%ecx
cltd
idiv   %ecx
add    $0x4,%edx
mov    %edx,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jl     124b <_hash_blowfish+0x7b>
cmpl   $0x5f,-0x1c(%rbp)
jle    127b <_hash_blowfish+0xab>
mov    0x2d7e(%rip),%rax
mov    (%rax),%ecx
mov    0x2d7d(%rip),%rax
mov    %ecx,(%rax)
lea    0xda1(%rip),%rdi
mov    $0x1,%esi
call   10d0 <_error@plt>
movq   $0x0,-0x8(%rbp)
jmp    14ce <_hash_blowfish+0x2fe>
cmpq   $0x0,-0x18(%rbp)
jne    12bf <_hash_blowfish+0xef>
lea    -0x80(%rbp),%rdi
mov    $0x10,%edx
mov    %edx,%esi
call   1040 <_makepasswd_password@plt>
mov    %rax,-0x90(%rbp)
cmp    $0x0,%rax
jne    12b4 <_hash_blowfish+0xe4>
movq   $0x0,-0x8(%rbp)
jmp    14ce <_hash_blowfish+0x2fe>
mov    -0x90(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1080 <_hash_base64@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
jne    12f2 <_hash_blowfish+0x122>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x8(%rbp)
jmp    14ce <_hash_blowfish+0x2fe>
mov    -0x98(%rbp),%rdi
call   1070 <strlen@plt>
cltq
add    $0x8,%rax
mov    %rax,-0xa0(%rbp)
mov    -0xa0(%rbp),%rdi
call   10c0 <malloc@plt>
mov    %rax,-0xa8(%rbp)
cmp    $0x0,%rax
jne    1352 <_hash_blowfish+0x182>
lea    0xcdf(%rip),%rdi
mov    $0x1,%esi
call   10d0 <_error@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x8(%rbp)
jmp    14ce <_hash_blowfish+0x2fe>
mov    -0xa8(%rbp),%rdi
mov    -0xa0(%rbp),%rsi
lea    -0x21(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x98(%rbp),%rax
lea    0xc9f(%rip),%rdx
mov    $0x24,%r9d
mov    %rax,(%rsp)
call   1090 <snprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0xa8(%rbp),%rsi
call   1060 <crypt@plt>
mov    %rax,-0x88(%rbp)
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
mov    -0xa8(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x88(%rbp)
jne    13e4 <_hash_blowfish+0x214>
lea    0xc4b(%rip),%rdi
mov    $0x1,%esi
call   10d0 <_error@plt>
jmp    14c3 <_hash_blowfish+0x2f3>
mov    -0x88(%rbp),%rdi
lea    0xc34(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1434 <_hash_blowfish+0x264>
mov    0x2bc8(%rip),%rax
mov    (%rax),%ecx
mov    0x2bc7(%rip),%rax
mov    %ecx,(%rax)
lea    0xbeb(%rip),%rdi
mov    $0x1,%esi
call   10d0 <_error@plt>
movq   $0x0,-0x88(%rbp)
jmp    14be <_hash_blowfish+0x2ee>
mov    -0x88(%rbp),%rdi
lea    -0x21(%rbp),%rsi
mov    $0x4,%edx
call   1050 <strncmp@plt>
cmp    $0x0,%rax
je     1486 <_hash_blowfish+0x2b6>
mov    0x2b8e(%rip),%rax
mov    (%rax),%ecx
mov    0x2b75(%rip),%rax
mov    %ecx,(%rax)
lea    0xb99(%rip),%rdi
mov    $0x1,%esi
call   10d0 <_error@plt>
movq   $0x0,-0x88(%rbp)
jmp    14b9 <_hash_blowfish+0x2e9>
mov    -0x88(%rbp),%rdi
call   10e0 <strdup@plt>
mov    %rax,-0x88(%rbp)
cmp    $0x0,%rax
jne    14b4 <_hash_blowfish+0x2e4>
lea    0xb64(%rip),%rdi
mov    $0x1,%esi
call   10d0 <_error@plt>
jmp    14b9 <_hash_blowfish+0x2e9>
jmp    14be <_hash_blowfish+0x2ee>
jmp    14c3 <_hash_blowfish+0x2f3>
mov    -0x88(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_hash_blowfish>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %edx,%ebx
mov    %rsi,%r12
mov    %rdi,%r14
movb   $0x0,0xc(%rsp)
movl   $0x24613224,0x8(%rsp)
24
movups 0xe8f(%rip),%xmm0
movups %xmm0,0x59(%rsp)
movaps 0xe7a(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe5e(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe42(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe26(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe0a(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
test   %edx,%edx
jg     125a <_hash_blowfish+0x9a>
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x2aaaaaab,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x21,%rcx
add    %edx,%ecx
shl    $0x2,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%ebx
add    $0x4,%ebx
lea    -0x60(%rbx),%eax
cmp    $0xffffffa3,%eax
ja     128a <_hash_blowfish+0xca>
mov    0x2d67(%rip),%rax
mov    (%rax),%eax
mov    0x2d66(%rip),%rcx
mov    %eax,(%rcx)
lea    0xd8a(%rip),%rdi
mov    $0x1,%esi
call   10c0 <_error@plt>
jmp    1391 <_hash_blowfish+0x1d1>
test   %r12,%r12
je     1294 <_hash_blowfish+0xd4>
xor    %r15d,%r15d
jmp    12b7 <_hash_blowfish+0xf7>
lea    0x10(%rsp),%rdi
mov    $0x10,%esi
mov    $0x10,%edx
call   1040 <_makepasswd_password@plt>
mov    %rax,%r15
mov    %rax,%r12
test   %rax,%rax
je     1391 <_hash_blowfish+0x1d1>
mov    %r12,%rdi
call   1080 <_hash_base64@plt>
test   %rax,%rax
je     1389 <_hash_blowfish+0x1c9>
mov    %rax,%r12
mov    %rax,%rdi
call   1070 <strlen@plt>
movslq %eax,%rbp
add    $0x8,%rbp
mov    %rbp,%rdi
call   10b0 <malloc@plt>
test   %rax,%rax
je     1378 <_hash_blowfish+0x1b8>
mov    %rax,%r13
mov    %r12,(%rsp)
lea    0xd1c(%rip),%rdx
lea    0x8(%rsp),%rcx
mov    %rax,%rdi
mov    %rbp,%rsi
mov    %ebx,%r8d
mov    $0x24,%r9d
call   1090 <snprintf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
call   1060 <crypt@plt>
mov    %rax,%rbx
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
test   %rbx,%rbx
je     13a2 <_hash_blowfish+0x1e2>
lea    0xce2(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1262 <_hash_blowfish+0xa2>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1050 <strncmp@plt>
test   %rax,%rax
je     13ae <_hash_blowfish+0x1ee>
mov    0x2c75(%rip),%rax
jmp    1269 <_hash_blowfish+0xa9>
lea    0xc8f(%rip),%rdi
mov    $0x1,%esi
call   10c0 <_error@plt>
mov    %r15,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc77(%rip),%rdi
jmp    127b <_hash_blowfish+0xbb>
mov    %rbx,%rdi
call   10d0 <strdup@plt>
test   %rax,%rax
jne    1393 <_hash_blowfish+0x1d3>
lea    0xc4c(%rip),%rdi
jmp    127b <_hash_blowfish+0xbb>

LLVM IR (-O0):
@__const._hash_blowfish.prefix = [5 x i8] c"$2a$\00"
@__const._hash_blowfish.characters = [89 x i8] c"!\22%&'()*+,-./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789:;<=>?@[\\]^_`\00"
@EINVAL = global i32 0
@errno = global i32 0
@.str = [9 x i8] c"blowfish\00"
@.str.1 = [7 x i8] c"malloc\00"
@.str.2 = [11 x i8] c"%s%02u%c%s\00"
@.str.3 = [6 x i8] c"crypt\00"
@.str.4 = [2 x i8] c":\00"
@ENOTSUP = global i32 0
define i8* @_hash_blowfish(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca [5 x i8]
%9 = alloca [89 x i8]
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
%15 = bitcast [5 x i8]* %8 to i8*
%16 = bitcast [89 x i8]* %9 to i8*
store i8* null, i8** %11
%17 = load i32, i32* %7
%18 = icmp sle i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %3
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 12
%22 = add nsw i32 %21, 4
store i32 %22, i32* %7
br label %23
23: ; preds = %19, %3
%24 = load i32, i32* %7
%25 = icmp slt i32 %24, 4
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = load i32, i32* %7
%28 = icmp sgt i32 %27, 95
br i1 %28, label %29, label %32
29: ; preds = %26, %23
%30 = load i32, i32* @EINVAL
store i32 %30, i32* @errno
%31 = call i32 @_error(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 1)
store i8* null, i8** %4
br label %107
32: ; preds = %26
%33 = load i8*, i8** %6
%34 = icmp eq i8* %33, null
br i1 %34, label %35, label %42
35: ; preds = %32
%36 = getelementptr inbounds [89 x i8], [89 x i8]* %9, i64 0, i64 0
%37 = call i8* @_makepasswd_password(i8* %36, i32 16, i32 16)
store i8* %37, i8** %11
%38 = icmp eq i8* %37, null
br i1 %38, label %39, label %40
39: ; preds = %35
store i8* null, i8** %4
br label %107
40: ; preds = %35
%41 = load i8*, i8** %11
store i8* %41, i8** %6
br label %42
42: ; preds = %40, %32
%43 = load i8*, i8** %6
%44 = call i8* @_hash_base64(i8* %43)
store i8* %44, i8** %12
%45 = icmp eq i8* %44, null
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i8*, i8** %11
%48 = call i32 @free(i8* %47)
store i8* null, i8** %4
br label %107
49: ; preds = %42
%50 = load i8*, i8** %12
%51 = call i32 @strlen(i8* %50)
%52 = sext i32 %51 to i64
%53 = add i64 8, %52
store i64 %53, i64* %13
%54 = load i64, i64* %13
%55 = call i8* @malloc(i64 %54)
store i8* %55, i8** %14
%56 = icmp eq i8* %55, null
br i1 %56, label %57, label %61
57: ; preds = %49
%58 = call i32 @_error(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 1)
%59 = load i8*, i8** %11
%60 = call i32 @free(i8* %59)
store i8* null, i8** %4
br label %107
61: ; preds = %49
%62 = load i8*, i8** %14
%63 = load i64, i64* %13
%64 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%65 = load i32, i32* %7
%66 = load i8*, i8** %12
%67 = call i32 @snprintf(i8* %62, i64 %63, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %64, i32 %65, i8 signext 36, i8* %66)
%68 = load i8*, i8** %5
%69 = load i8*, i8** %14
%70 = call i8* @crypt(i8* %68, i8* %69)
store i8* %70, i8** %10
%71 = load i8*, i8** %12
%72 = call i32 @free(i8* %71)
%73 = load i8*, i8** %11
%74 = call i32 @free(i8* %73)
%75 = load i8*, i8** %14
%76 = call i32 @free(i8* %75)
%77 = load i8*, i8** %10
%78 = icmp eq i8* %77, null
br i1 %78, label %79, label %81
79: ; preds = %61
%80 = call i32 @_error(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 1)
br label %105
81: ; preds = %61
%82 = load i8*, i8** %10
%83 = call i64 @strcmp(i8* %82, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %81
%86 = load i32, i32* @EINVAL
store i32 %86, i32* @errno
%87 = call i32 @_error(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 1)
store i8* null, i8** %10
br label %104
88: ; preds = %81
%89 = load i8*, i8** %10
%90 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%91 = call i64 @strncmp(i8* %89, i8* %90, i32 4)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %88
%94 = load i32, i32* @ENOTSUP
store i32 %94, i32* @errno
%95 = call i32 @_error(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 1)
store i8* null, i8** %10
br label %103
96: ; preds = %88
%97 = load i8*, i8** %10
%98 = call i8* @strdup(i8* %97)
store i8* %98, i8** %10
%99 = icmp eq i8* %98, null
br i1 %99, label %100, label %102
100: ; preds = %96
%101 = call i32 @_error(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %102
102: ; preds = %100, %96
br label %103
103: ; preds = %102, %93
br label %104
104: ; preds = %103, %85
br label %105
105: ; preds = %104, %79
%106 = load i8*, i8** %10
store i8* %106, i8** %4
br label %107
107: ; preds = %105, %57, %46, %39, %29
%108 = load i8*, i8** %4
ret i8* %108
}

LLVM IR (-O2):
@__const._hash_blowfish.prefix = [5 x i8] c"$2a$\00"
@__const._hash_blowfish.characters = [89 x i8] c"!\22%&'()*+,-./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789:;<=>?@[\\]^_`\00"
@EINVAL = global i32 0
@errno = global i32 0
@.str = [9 x i8] c"blowfish\00"
@.str.1 = [7 x i8] c"malloc\00"
@.str.2 = [11 x i8] c"%s%02u%c%s\00"
@.str.3 = [6 x i8] c"crypt\00"
@.str.4 = [2 x i8] c":\00"
@ENOTSUP = global i32 0
define noalias i8* @_hash_blowfish(i8* %0, i8* %1, i32 %2) {
%4 = alloca [5 x i8]
%5 = alloca [89 x i8]
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%7 = getelementptr inbounds [89 x i8], [89 x i8]* %5, i64 0, i64 0
%8 = icmp slt i32 %2, 1
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = tail call i32 (...) @rand()
%11 = srem i32 %10, 12
%12 = add nsw i32 %11, 4
br label %13
13: ; preds = %9, %3
%14 = phi i32 [ %12, %9 ], [ %2, %3 ]
%15 = add nsw i32 %14, -96
%16 = icmp ult i32 %15, -92
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, i32* @EINVAL
store i32 %18, i32* @errno
%19 = tail call i32 @_error(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 1)
br label %67
20: ; preds = %13
%21 = icmp eq i8* %1, null
br i1 %21, label %22, label %25
22: ; preds = %20
%23 = call i8* @_makepasswd_password(i8* %7, i32 16, i32 16)
%24 = icmp eq i8* %23, null
br i1 %24, label %67, label %25
25: ; preds = %22, %20
%26 = phi i8* [ null, %20 ], [ %23, %22 ]
%27 = phi i8* [ %1, %20 ], [ %23, %22 ]
%28 = call i8* @_hash_base64(i8* %27)
%29 = icmp eq i8* %28, null
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = call i32 @free(i8* %26)
br label %67
32: ; preds = %25
%33 = call i32 @strlen(i8* %28)
%34 = sext i32 %33 to i64
%35 = add nsw i64 %34, 8
%36 = call i8* @malloc(i64 %35)
%37 = icmp eq i8* %36, null
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = call i32 @_error(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 1)
%40 = call i32 @free(i8* %26)
br label %67
41: ; preds = %32
%42 = call i32 @snprintf(i8* %36, i64 %35, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %6, i32 %14, i8 signext 36, i8* %28)
%43 = call i8* @crypt(i8* %0, i8* %36)
%44 = call i32 @free(i8* %28)
%45 = call i32 @free(i8* %26)
%46 = call i32 @free(i8* %36)
%47 = icmp eq i8* %43, null
br i1 %47, label %48, label %50
48: ; preds = %41
%49 = call i32 @_error(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 1)
br label %67
50: ; preds = %41
%51 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, i32* @EINVAL
store i32 %54, i32* @errno
%55 = call i32 @_error(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 1)
br label %67
56: ; preds = %50
%57 = call i64 @strncmp(i8* %43, i8* %6, i32 4)
%58 = icmp eq i64 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %56
%60 = load i32, i32* @ENOTSUP
store i32 %60, i32* @errno
%61 = call i32 @_error(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 1)
br label %67
62: ; preds = %56
%63 = call i8* @strdup(i8* %43)
%64 = icmp eq i8* %63, null
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 @_error(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %67
67: ; preds = %48, %59, %65, %62, %53, %22, %38, %30, %17
%68 = phi i8* [ null, %17 ], [ null, %30 ], [ null, %38 ], [ null, %22 ], [ null, %48 ], [ null, %53 ], [ null, %59 ], [ null, %65 ], [ %63, %62 ]
ret i8* %68
}