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

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ config_error_set(char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ memcpy(char *, char *, int);
int /*<<< orphan*/ memset(char *, char, int);
scalar_t__ strcmp(char *, char *);
char *strdup(char *);
int strlen(char *);
char *strrchr(char *, char);
int config_param_host_port_wildcard(char *str, char **addr, char **port,
                                    int wildcard_okay) {
  int len = (str != NULL) ? strlen(str) : 0;
  if (str == NULL || !len) {
    config_error_set("Invalid/unset host/port string.");
    return 0;
  }
  char port_buf[6];
  char addr_buf[150];
  memset(port_buf, '\0', sizeof(port_buf));
  memset(addr_buf, '\0', sizeof(addr_buf));
  if (*str == '[') {
    char *ptr = str + 1;
    char *x = strrchr(ptr, ']');
    if (x == NULL) {
      config_error_set("Invalid address '%s'.", str);
      return 0;
    }
    memcpy(addr_buf, ptr, (x - ptr));
    x += 2;
    memcpy(port_buf, x, sizeof(port_buf) - 1);
  } else {
    char *x = strrchr(str, ',');
    if (x == NULL) {
      config_error_set("Invalid address string '%s'", str);
      return 0;
    }
    int addr_len = x - str;
    memcpy(addr_buf, str, addr_len);
    memcpy(port_buf, (++x), sizeof(port_buf));
  }
  int p = atoi(port_buf);
  if (p < 1 || p > 65536) {
    config_error_set("Invalid port number '%s'", port_buf);
    return 0;
  }
  if (strcmp(addr_buf, "*") == 0) {
    if (wildcard_okay)
      free(*addr);
    else {
      config_error_set("Invalid address: wildcards are not allowed.");
      return 0;
    }
  } else {
    *addr = strdup(addr_buf);
  }
  *port = strdup(port_buf);
  return 1;
}


x86 assembly (clang, -O0):
<config_param_host_port_wildcard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11c9 <config_param_host_port_wildcard+0x39>
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0xf4(%rbp)
jmp    11d6 <config_param_host_port_wildcard+0x46>
xor    %eax,%eax
mov    %eax,-0xf4(%rbp)
jmp    11d6 <config_param_host_port_wildcard+0x46>
mov    -0xf4(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11f4 <config_param_host_port_wildcard+0x64>
cmpl   $0x0,-0x28(%rbp)
jne    120e <config_param_host_port_wildcard+0x7e>
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1040 <config_error_set@plt>
movl   $0x0,-0x4(%rbp)
jmp    1442 <config_param_host_port_wildcard+0x2b2>
lea    -0x2e(%rbp),%rdi
xor    %esi,%esi
mov    $0x6,%edx
call   1070 <memset@plt>
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x96,%edx
call   1070 <memset@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
jne    12e6 <config_param_host_port_wildcard+0x156>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xd8(%rbp)
mov    -0xd8(%rbp),%rdi
mov    $0x5d,%esi
call   1060 <strrchr@plt>
mov    %rax,-0xe0(%rbp)
cmpq   $0x0,-0xe0(%rbp)
jne    1294 <config_param_host_port_wildcard+0x104>
mov    -0x10(%rbp),%rsi
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1040 <config_error_set@plt>
movl   $0x0,-0x4(%rbp)
jmp    1442 <config_param_host_port_wildcard+0x2b2>
lea    -0xd0(%rbp),%rdi
mov    -0xd8(%rbp),%rsi
mov    -0xe0(%rbp),%rax
mov    -0xd8(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%edx
call   1090 <memcpy@plt>
mov    -0xe0(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0xe0(%rbp)
lea    -0x2e(%rbp),%rdi
mov    -0xe0(%rbp),%rsi
mov    $0x5,%edx
call   1090 <memcpy@plt>
jmp    1371 <config_param_host_port_wildcard+0x1e1>
mov    -0x10(%rbp),%rdi
mov    $0x2c,%esi
call   1060 <strrchr@plt>
mov    %rax,-0xe8(%rbp)
cmpq   $0x0,-0xe8(%rbp)
jne    1327 <config_param_host_port_wildcard+0x197>
mov    -0x10(%rbp),%rsi
lea    0xd22(%rip),%rdi
mov    $0x0,%al
call   1040 <config_error_set@plt>
movl   $0x0,-0x4(%rbp)
jmp    1442 <config_param_host_port_wildcard+0x2b2>
mov    -0xe8(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0xec(%rbp)
lea    -0xd0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0xec(%rbp),%edx
call   1090 <memcpy@plt>
lea    -0x2e(%rbp),%rdi
mov    -0xe8(%rbp),%rsi
add    $0x1,%rsi
mov    %rsi,-0xe8(%rbp)
mov    $0x6,%edx
call   1090 <memcpy@plt>
lea    -0x2e(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0xf0(%rbp)
cmpl   $0x1,-0xf0(%rbp)
jl     139d <config_param_host_port_wildcard+0x20d>
cmpl   $0x10000,-0xf0(%rbp)
jle    13bb <config_param_host_port_wildcard+0x22b>
lea    -0x2e(%rbp),%rsi
lea    0xcaa(%rip),%rdi
mov    $0x0,%al
call   1040 <config_error_set@plt>
movl   $0x0,-0x4(%rbp)
jmp    1442 <config_param_host_port_wildcard+0x2b2>
lea    -0xd0(%rbp),%rdi
lea    0xca2(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1412 <config_param_host_port_wildcard+0x282>
cmpl   $0x0,-0x24(%rbp)
je     13f3 <config_param_host_port_wildcard+0x263>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
jmp    140d <config_param_host_port_wildcard+0x27d>
lea    0xc73(%rip),%rdi
mov    $0x0,%al
call   1040 <config_error_set@plt>
movl   $0x0,-0x4(%rbp)
jmp    1442 <config_param_host_port_wildcard+0x2b2>
jmp    1428 <config_param_host_port_wildcard+0x298>
lea    -0xd0(%rbp),%rdi
call   10b0 <strdup@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
lea    -0x2e(%rbp),%rdi
call   10b0 <strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_param_host_port_wildcard>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
test   %rdi,%rdi
je     1224 <config_param_host_port_wildcard+0x94>
mov    %ecx,%r12d
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1050 <strlen@plt>
test   %eax,%eax
je     1224 <config_param_host_port_wildcard+0x94>
lea    0xa(%rsp),%rdi
xor    %esi,%esi
mov    $0x6,%edx
call   1070 <memset@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0x96,%edx
call   1070 <memset@plt>
cmpb   $0x5b,(%rbx)
jne    1239 <config_param_host_port_wildcard+0xa9>
lea    0x1(%rbx),%r13
mov    %r13,%rdi
mov    $0x5d,%esi
call   1060 <strrchr@plt>
test   %rax,%rax
je     12c0 <config_param_host_port_wildcard+0x130>
mov    %rax,%rbp
mov    %ebp,%edx
sub    %r13d,%edx
lea    0x10(%rsp),%rdi
mov    %r13,%rsi
call   1090 <memcpy@plt>
add    $0x2,%rbp
lea    0xa(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x5,%edx
jmp    1270 <config_param_host_port_wildcard+0xe0>
lea    0xdd5(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1040 <config_error_set@plt>
jmp    12fd <config_param_host_port_wildcard+0x16d>
mov    %rbx,%rdi
mov    $0x2c,%esi
call   1060 <strrchr@plt>
test   %rax,%rax
je     12c9 <config_param_host_port_wildcard+0x139>
mov    %rax,%rbp
mov    %ebp,%edx
sub    %ebx,%edx
lea    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1090 <memcpy@plt>
add    $0x1,%rbp
lea    0xa(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x6,%edx
call   1090 <memcpy@plt>
lea    0xa(%rsp),%rdi
call   10a0 <atoi@plt>
add    $0xfffeffff,%eax
cmp    $0xfffeffff,%eax
ja     129b <config_param_host_port_wildcard+0x10b>
lea    0xdc0(%rip),%rdi
xor    %ebp,%ebp
lea    0xa(%rsp),%rsi
jmp    12d5 <config_param_host_port_wildcard+0x145>
lea    0xdc9(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12de <config_param_host_port_wildcard+0x14e>
lea    0x10(%rsp),%rdi
call   10b0 <strdup@plt>
mov    %rax,(%r15)
jmp    12eb <config_param_host_port_wildcard+0x15b>
lea    0xd59(%rip),%rdi
jmp    12d0 <config_param_host_port_wildcard+0x140>
lea    0xd66(%rip),%rdi
xor    %ebp,%ebp
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <config_error_set@plt>
jmp    12fd <config_param_host_port_wildcard+0x16d>
test   %r12d,%r12d
je     1311 <config_param_host_port_wildcard+0x181>
mov    (%r15),%rdi
call   1030 <free@plt>
lea    0xa(%rsp),%rdi
call   10b0 <strdup@plt>
mov    %rax,(%r14)
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd55(%rip),%rdi
jmp    122b <config_param_host_port_wildcard+0x9b>

LLVM IR (-O0):
@.str = [32 x i8] c"Invalid/unset host/port string.\00"
@.str.1 = [22 x i8] c"Invalid address '%s'.\00"
@.str.2 = [28 x i8] c"Invalid address string '%s'\00"
@.str.3 = [25 x i8] c"Invalid port number '%s'\00"
@.str.4 = [2 x i8] c"*\00"
@.str.5 = [44 x i8] c"Invalid address: wildcards are not allowed.\00"
define i32 @config_param_host_port_wildcard(i8* %0, i8** %1, i8** %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8**
%8 = alloca i8**
%9 = alloca i32
%10 = alloca i32
%11 = alloca [6 x i8]
%12 = alloca [150 x i8]
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
store i8* %0, i8** %6
store i8** %1, i8*** %7
store i8** %2, i8*** %8
store i32 %3, i32* %9
%18 = load i8*, i8** %6
%19 = icmp ne i8* %18, null
br i1 %19, label %20, label %23
20: ; preds = %4
%21 = load i8*, i8** %6
%22 = call i32 @strlen(i8* %21)
br label %24
23: ; preds = %4
br label %24
24: ; preds = %23, %20
%25 = phi i32 [ %22, %20 ], [ 0, %23 ]
store i32 %25, i32* %10
%26 = load i8*, i8** %6
%27 = icmp eq i8* %26, null
br i1 %27, label %31, label %28
28: ; preds = %24
%29 = load i32, i32* %10
%30 = icmp ne i32 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %28, %24
%32 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %5
br label %123
33: ; preds = %28
%34 = getelementptr inbounds [6 x i8], [6 x i8]* %11, i64 0, i64 0
%35 = call i32 @memset(i8* %34, i8 signext 0, i32 6)
%36 = getelementptr inbounds [150 x i8], [150 x i8]* %12, i64 0, i64 0
%37 = call i32 @memset(i8* %36, i8 signext 0, i32 150)
%38 = load i8*, i8** %6
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 91
br i1 %41, label %42, label %67
42: ; preds = %33
%43 = load i8*, i8** %6
%44 = getelementptr inbounds i8, i8* %43, i64 1
store i8* %44, i8** %13
%45 = load i8*, i8** %13
%46 = call i8* @strrchr(i8* %45, i8 signext 93)
store i8* %46, i8** %14
%47 = load i8*, i8** %14
%48 = icmp eq i8* %47, null
br i1 %48, label %49, label %52
49: ; preds = %42
%50 = load i8*, i8** %6
%51 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %50)
store i32 0, i32* %5
br label %123
52: ; preds = %42
%53 = getelementptr inbounds [150 x i8], [150 x i8]* %12, i64 0, i64 0
%54 = load i8*, i8** %13
%55 = load i8*, i8** %14
%56 = load i8*, i8** %13
%57 = ptrtoint i8* %55 to i64
%58 = ptrtoint i8* %56 to i64
%59 = sub i64 %57, %58
%60 = trunc i64 %59 to i32
%61 = call i32 @memcpy(i8* %53, i8* %54, i32 %60)
%62 = load i8*, i8** %14
%63 = getelementptr inbounds i8, i8* %62, i64 2
store i8* %63, i8** %14
%64 = getelementptr inbounds [6 x i8], [6 x i8]* %11, i64 0, i64 0
%65 = load i8*, i8** %14
%66 = call i32 @memcpy(i8* %64, i8* %65, i32 5)
br label %90
67: ; preds = %33
%68 = load i8*, i8** %6
%69 = call i8* @strrchr(i8* %68, i8 signext 44)
store i8* %69, i8** %15
%70 = load i8*, i8** %15
%71 = icmp eq i8* %70, null
br i1 %71, label %72, label %75
72: ; preds = %67
%73 = load i8*, i8** %6
%74 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i8* %73)
store i32 0, i32* %5
br label %123
75: ; preds = %67
%76 = load i8*, i8** %15
%77 = load i8*, i8** %6
%78 = ptrtoint i8* %76 to i64
%79 = ptrtoint i8* %77 to i64
%80 = sub i64 %78, %79
%81 = trunc i64 %80 to i32
store i32 %81, i32* %16
%82 = getelementptr inbounds [150 x i8], [150 x i8]* %12, i64 0, i64 0
%83 = load i8*, i8** %6
%84 = load i32, i32* %16
%85 = call i32 @memcpy(i8* %82, i8* %83, i32 %84)
%86 = getelementptr inbounds [6 x i8], [6 x i8]* %11, i64 0, i64 0
%87 = load i8*, i8** %15
%88 = getelementptr inbounds i8, i8* %87, i32 1
store i8* %88, i8** %15
%89 = call i32 @memcpy(i8* %86, i8* %88, i32 6)
br label %90
90: ; preds = %75, %52
%91 = getelementptr inbounds [6 x i8], [6 x i8]* %11, i64 0, i64 0
%92 = call i32 @atoi(i8* %91)
store i32 %92, i32* %17
%93 = load i32, i32* %17
%94 = icmp slt i32 %93, 1
br i1 %94, label %98, label %95
95: ; preds = %90
%96 = load i32, i32* %17
%97 = icmp sgt i32 %96, 65536
br i1 %97, label %98, label %101
98: ; preds = %95, %90
%99 = getelementptr inbounds [6 x i8], [6 x i8]* %11, i64 0, i64 0
%100 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %99)
store i32 0, i32* %5
br label %123
101: ; preds = %95
%102 = getelementptr inbounds [150 x i8], [150 x i8]* %12, i64 0, i64 0
%103 = call i64 @strcmp(i8* %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %115
105: ; preds = %101
%106 = load i32, i32* %9
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %112
108: ; preds = %105
%109 = load i8**, i8*** %7
%110 = load i8*, i8** %109
%111 = call i32 @free(i8* %110)
br label %114
112: ; preds = %105
%113 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %5
br label %123
114: ; preds = %108
br label %119
115: ; preds = %101
%116 = getelementptr inbounds [150 x i8], [150 x i8]* %12, i64 0, i64 0
%117 = call i8* @strdup(i8* %116)
%118 = load i8**, i8*** %7
store i8* %117, i8** %118
br label %119
119: ; preds = %115, %114
%120 = getelementptr inbounds [6 x i8], [6 x i8]* %11, i64 0, i64 0
%121 = call i8* @strdup(i8* %120)
%122 = load i8**, i8*** %8
store i8* %121, i8** %122
store i32 1, i32* %5
br label %123
123: ; preds = %119, %112, %98, %72, %49, %31
%124 = load i32, i32* %5
ret i32 %124
}

LLVM IR (-O2):
@.str = [32 x i8] c"Invalid/unset host/port string.\00"
@.str.1 = [22 x i8] c"Invalid address '%s'.\00"
@.str.2 = [28 x i8] c"Invalid address string '%s'\00"
@.str.3 = [25 x i8] c"Invalid port number '%s'\00"
@.str.4 = [2 x i8] c"*\00"
@.str.5 = [44 x i8] c"Invalid address: wildcards are not allowed.\00"
define i32 @config_param_host_port_wildcard(i8* %0, i8** nocapture %1, i8** nocapture writeonly %2, i32 %3) {
%5 = alloca [6 x i8]
%6 = alloca [150 x i8]
%7 = icmp eq i8* %0, null
br i1 %7, label %11, label %8
8: ; preds = %4
%9 = tail call i32 @strlen(i8* %0)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %4, %8
%12 = tail call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
br label %69
13: ; preds = %8
%14 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 0
%15 = getelementptr inbounds [150 x i8], [150 x i8]* %6, i64 0, i64 0
%16 = call i32 @memset(i8* %14, i8 signext 0, i32 6)
%17 = call i32 @memset(i8* %15, i8 signext 0, i32 150)
%18 = load i8, i8* %0
%19 = icmp eq i8 %18, 91
br i1 %19, label %20, label %34
20: ; preds = %13
%21 = getelementptr inbounds i8, i8* %0, i64 1
%22 = call i8* @strrchr(i8* %21, i8 signext 93)
%23 = icmp eq i8* %22, null
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %67
26: ; preds = %20
%27 = ptrtoint i8* %22 to i64
%28 = ptrtoint i8* %21 to i64
%29 = sub i64 %27, %28
%30 = trunc i64 %29 to i32
%31 = call i32 @memcpy(i8* %15, i8* %21, i32 %30)
%32 = getelementptr inbounds i8, i8* %22, i64 2
%33 = call i32 @memcpy(i8* %14, i8* %32, i32 5)
br label %47
34: ; preds = %13
%35 = call i8* @strrchr(i8* %0, i8 signext 44)
%36 = icmp eq i8* %35, null
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %67
39: ; preds = %34
%40 = ptrtoint i8* %35 to i64
%41 = ptrtoint i8* %0 to i64
%42 = sub i64 %40, %41
%43 = trunc i64 %42 to i32
%44 = call i32 @memcpy(i8* %15, i8* %0, i32 %43)
%45 = getelementptr inbounds i8, i8* %35, i64 1
%46 = call i32 @memcpy(i8* %14, i8* %45, i32 6)
br label %47
47: ; preds = %39, %26
%48 = call i32 @atoi(i8* %14)
%49 = add i32 %48, -65537
%50 = icmp ult i32 %49, -65536
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %14)
br label %67
53: ; preds = %47
%54 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %63
56: ; preds = %53
%57 = icmp eq i32 %3, 0
br i1 %57, label %61, label %58
58: ; preds = %56
%59 = load i8*, i8** %1
%60 = call i32 @free(i8* %59)
br label %65
61: ; preds = %56
%62 = call i32 (i8*, ...) @config_error_set(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
br label %67
63: ; preds = %53
%64 = call i8* @strdup(i8* %15)
store i8* %64, i8** %1
br label %65
65: ; preds = %63, %58
%66 = call i8* @strdup(i8* %14)
store i8* %66, i8** %2
br label %67
67: ; preds = %37, %24, %51, %61, %65
%68 = phi i32 [ 0, %51 ], [ 1, %65 ], [ 0, %61 ], [ 0, %24 ], [ 0, %37 ]
br label %69
69: ; preds = %67, %11
%70 = phi i32 [ %68, %67 ], [ 0, %11 ]
ret i32 %70
}