#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int family;
  char *address;
  int address_length;
  scalar_t__ data_length;
  int /*<<< orphan*/ *data;
  scalar_t__ name_length;
  int /*<<< orphan*/ *name;
  scalar_t__ number_length;
  int /*<<< orphan*/ number;
};
typedef TYPE_1__ Xauth;
typedef int Bool;

/* Variables and functions */
int /*<<< orphan*/ copystring(char *, scalar_t__);
int /*<<< orphan*/ free(char *);
char *get_address_info(int, char *, int, char *, int *);
int /*<<< orphan*/ parse_displayname(char *, int *, char **, int *, int *,
                                     char **);
int /*<<< orphan*/ sprintf(char *, char *, int);
char *strchr(char *, char);
scalar_t__ strlen(char *);
scalar_t__ strncmp(char *, char *, int);
Bool get_displayname_auth(char *displayname, Xauth *auth) {
  int family;
  char *host = NULL, *rest = NULL;
  int dpynum, scrnum;
  char *cp;
  int len;
  Xauth proto;
  int prelen = 0;
  cp = strchr(displayname, '/');
  if (cp && strncmp(cp, "/unix:", 6) == 0)
    prelen = (cp - displayname);
  if (!parse_displayname(displayname + ((prelen > 0) ? prelen + 1 : 0), &family,
                         &host, &dpynum, &scrnum, &rest)) {
    return 0;
  }
  proto.family = family;
  proto.address = get_address_info(family, displayname, prelen, host, &len);
  if (proto.address) {
    char buf[40];
    proto.address_length = len;
    buf[0] = '\0';
    sprintf(buf, "%d", dpynum);
    proto.number_length = strlen(buf);
    if (proto.number_length <= 0) {
      free(proto.address);
      proto.address = NULL;
    } else {
      proto.number = copystring(buf, proto.number_length);
    }
  }
  if (host)
    free(host);
  if (rest)
    free(rest);
  if (proto.address) {
    auth->family = proto.family;
    auth->address = proto.address;
    auth->address_length = proto.address_length;
    auth->number = proto.number;
    auth->number_length = proto.number_length;
    auth->name = NULL;
    auth->name_length = 0;
    auth->data = NULL;
    auth->data_length = 0;
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<get_displayname_auth>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movl   $0x0,-0x94(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2f,%esi
call   1070 <strchr@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     11fa <get_displayname_auth+0x7a>
mov    -0x40(%rbp),%rdi
lea    0xe2b(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    11fa <get_displayname_auth+0x7a>
mov    -0x40(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0x94(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xc8(%rbp)
cmpl   $0x0,-0x94(%rbp)
jle    1226 <get_displayname_auth+0xa6>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xcc(%rbp)
jmp    1233 <get_displayname_auth+0xb3>
xor    %eax,%eax
mov    %eax,-0xcc(%rbp)
jmp    1233 <get_displayname_auth+0xb3>
mov    -0xc8(%rbp),%rdi
mov    -0xcc(%rbp),%eax
cltq
add    %rax,%rdi
lea    -0x1c(%rbp),%rsi
lea    -0x28(%rbp),%rdx
lea    -0x34(%rbp),%rcx
lea    -0x38(%rbp),%r8
lea    -0x30(%rbp),%r9
call   1050 <parse_displayname@plt>
cmp    $0x0,%eax
jne    1273 <get_displayname_auth+0xf3>
movl   $0x0,-0x4(%rbp)
jmp    13d1 <get_displayname_auth+0x251>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x94(%rbp),%edx
mov    -0x28(%rbp),%rcx
lea    -0x44(%rbp),%r8
call   1090 <get_address_info@plt>
mov    %rax,-0x88(%rbp)
cmpq   $0x0,-0x88(%rbp)
je     131d <get_displayname_auth+0x19d>
mov    -0x44(%rbp),%eax
mov    %eax,-0x80(%rbp)
movb   $0x0,-0xc0(%rbp)
lea    -0xc0(%rbp),%rdi
mov    -0x34(%rbp),%edx
lea    0xd3e(%rip),%rsi
call   10a0 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
call   1060 <strlen@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jg     1305 <get_displayname_auth+0x185>
mov    -0x88(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x88(%rbp)
jmp    1318 <get_displayname_auth+0x198>
lea    -0xc0(%rbp),%rdi
mov    -0x58(%rbp),%rsi
call   1080 <copystring@plt>
mov    %eax,-0x50(%rbp)
jmp    131d <get_displayname_auth+0x19d>
cmpq   $0x0,-0x28(%rbp)
je     1331 <get_displayname_auth+0x1b1>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x30(%rbp)
je     1345 <get_displayname_auth+0x1c5>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x88(%rbp)
je     13ca <get_displayname_auth+0x24a>
mov    -0x90(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x88(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x80(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    -0x50(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x40(%rax)
mov    -0x58(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x38(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,0x30(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,0x28(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,0x20(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,0x18(%rax)
movl   $0x1,-0x4(%rbp)
jmp    13d1 <get_displayname_auth+0x251>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_displayname_auth>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%r15
mov    %rdi,%rbp
movq   $0x0,0x8(%rsp)
movq   $0x0,0x20(%rsp)
mov    $0x2f,%esi
call   1070 <strchr@plt>
xor    %r14d,%r14d
test   %rax,%rax
je     11d4 <get_displayname_auth+0x54>
mov    %rax,%rbx
lea    0xe3e(%rip),%rsi
mov    %rax,%rdi
mov    $0x6,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     11da <get_displayname_auth+0x5a>
xor    %ebx,%ebx
xor    %edi,%edi
jmp    11e7 <get_displayname_auth+0x67>
sub    %ebp,%ebx
lea    0x1(%rbx),%eax
xor    %edi,%edi
test   %ebx,%ebx
cmovg  %rax,%rdi
add    %rbp,%rdi
lea    0x1c(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x2c(%rsp),%r8
lea    0x20(%rsp),%r9
call   1050 <parse_displayname@plt>
test   %eax,%eax
je     12d4 <get_displayname_auth+0x154>
mov    0x1c(%rsp),%r14d
mov    0x8(%rsp),%rcx
lea    0x14(%rsp),%r8
mov    %r14d,%edi
mov    %rbp,%rsi
mov    %ebx,%edx
call   1090 <get_address_info@plt>
test   %rax,%rax
je     1278 <get_displayname_auth+0xf8>
mov    %rax,%rbp
mov    0x14(%rsp),%r13d
movb   $0x0,0x30(%rsp)
mov    0x18(%rsp),%edx
lea    0xdbe(%rip),%rsi
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
call   10a0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %rax,%rbx
test   %rax,%rax
jle    127c <get_displayname_auth+0xfc>
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1080 <copystring@plt>
mov    %eax,%r12d
jmp    1286 <get_displayname_auth+0x106>
xor    %ebp,%ebp
jmp    1286 <get_displayname_auth+0x106>
mov    %rbp,%rdi
call   1030 <free@plt>
xor    %ebp,%ebp
mov    0x8(%rsp),%rdi
test   %rdi,%rdi
je     1295 <get_displayname_auth+0x115>
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
test   %rdi,%rdi
je     12a4 <get_displayname_auth+0x124>
call   1030 <free@plt>
test   %rbp,%rbp
je     12d1 <get_displayname_auth+0x151>
mov    %r14d,(%r15)
mov    %rbp,0x8(%r15)
mov    %r13d,0x10(%r15)
mov    %r12d,0x40(%r15)
mov    %rbx,0x38(%r15)
xorps  %xmm0,%xmm0
movups %xmm0,0x18(%r15)
movups %xmm0,0x28(%r15)
mov    $0x1,%r14d
jmp    12d4 <get_displayname_auth+0x154>
xor    %r14d,%r14d
mov    %r14d,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i8*, i32, i64, i32*, i64, i32*, i64, i32 }
@.str = [7 x i8] c"/unix:\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @get_displayname_auth(i8* %0, %struct.TYPE_3__* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca %struct.TYPE_3__*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i32
%13 = alloca %struct.TYPE_3__
%14 = alloca i32
%15 = alloca [40 x i8]
store i8* %0, i8** %4
store %struct.TYPE_3__* %1, %struct.TYPE_3__** %5
store i8* null, i8** %7
store i8* null, i8** %8
store i32 0, i32* %14
%16 = load i8*, i8** %4
%17 = call i8* @strchr(i8* %16, i8 signext 47)
store i8* %17, i8** %11
%18 = load i8*, i8** %11
%19 = icmp ne i8* %18, null
br i1 %19, label %20, label %31
20: ; preds = %2
%21 = load i8*, i8** %11
%22 = call i64 @strncmp(i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = load i8*, i8** %11
%26 = load i8*, i8** %4
%27 = ptrtoint i8* %25 to i64
%28 = ptrtoint i8* %26 to i64
%29 = sub i64 %27, %28
%30 = trunc i64 %29 to i32
store i32 %30, i32* %14
br label %31
31: ; preds = %24, %20, %2
%32 = load i8*, i8** %4
%33 = load i32, i32* %14
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, i32* %14
%37 = add nsw i32 %36, 1
br label %39
38: ; preds = %31
br label %39
39: ; preds = %38, %35
%40 = phi i32 [ %37, %35 ], [ 0, %38 ]
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* %32, i64 %41
%43 = call i32 @parse_displayname(i8* %42, i32* %6, i8** %7, i32* %9, i32* %10, i8** %8)
%44 = icmp ne i32 %43, 0
br i1 %44, label %46, label %45
45: ; preds = %39
store i32 0, i32* %3
br label %129
46: ; preds = %39
%47 = load i32, i32* %6
%48 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 0
store i32 %47, i32* %48
%49 = load i32, i32* %6
%50 = load i8*, i8** %4
%51 = load i32, i32* %14
%52 = load i8*, i8** %7
%53 = call i8* @get_address_info(i32 %49, i8* %50, i32 %51, i8* %52, i32* %12)
%54 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 1
store i8* %53, i8** %54
%55 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 1
%56 = load i8*, i8** %55
%57 = icmp ne i8* %56, null
br i1 %57, label %58, label %83
58: ; preds = %46
%59 = load i32, i32* %12
%60 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 2
store i32 %59, i32* %60
%61 = getelementptr inbounds [40 x i8], [40 x i8]* %15, i64 0, i64 0
store i8 0, i8* %61
%62 = getelementptr inbounds [40 x i8], [40 x i8]* %15, i64 0, i64 0
%63 = load i32, i32* %9
%64 = call i32 @sprintf(i8* %62, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds [40 x i8], [40 x i8]* %15, i64 0, i64 0
%66 = call i64 @strlen(i8* %65)
%67 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 7
store i64 %66, i64* %67
%68 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 7
%69 = load i64, i64* %68
%70 = icmp sle i64 %69, 0
br i1 %70, label %71, label %76
71: ; preds = %58
%72 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 1
%73 = load i8*, i8** %72
%74 = call i32 @free(i8* %73)
%75 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 1
store i8* null, i8** %75
br label %82
76: ; preds = %58
%77 = getelementptr inbounds [40 x i8], [40 x i8]* %15, i64 0, i64 0
%78 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 7
%79 = load i64, i64* %78
%80 = call i32 @copystring(i8* %77, i64 %79)
%81 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 8
store i32 %80, i32* %81
br label %82
82: ; preds = %76, %71
br label %83
83: ; preds = %82, %46
%84 = load i8*, i8** %7
%85 = icmp ne i8* %84, null
br i1 %85, label %86, label %89
86: ; preds = %83
%87 = load i8*, i8** %7
%88 = call i32 @free(i8* %87)
br label %89
89: ; preds = %86, %83
%90 = load i8*, i8** %8
%91 = icmp ne i8* %90, null
br i1 %91, label %92, label %95
92: ; preds = %89
%93 = load i8*, i8** %8
%94 = call i32 @free(i8* %93)
br label %95
95: ; preds = %92, %89
%96 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 1
%97 = load i8*, i8** %96
%98 = icmp ne i8* %97, null
br i1 %98, label %99, label %128
99: ; preds = %95
%100 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 0
%101 = load i32, i32* %100
%102 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%103 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %102, i32 0, i32 0
store i32 %101, i32* %103
%104 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 1
%105 = load i8*, i8** %104
%106 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%107 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %106, i32 0, i32 1
store i8* %105, i8** %107
%108 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 2
%109 = load i32, i32* %108
%110 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%111 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %110, i32 0, i32 2
store i32 %109, i32* %111
%112 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 8
%113 = load i32, i32* %112
%114 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%115 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %114, i32 0, i32 8
store i32 %113, i32* %115
%116 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 7
%117 = load i64, i64* %116
%118 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%119 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %118, i32 0, i32 7
store i64 %117, i64* %119
%120 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%121 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %120, i32 0, i32 6
store i32* null, i32** %121
%122 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%123 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %122, i32 0, i32 5
store i64 0, i64* %123
%124 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%125 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %124, i32 0, i32 4
store i32* null, i32** %125
%126 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%127 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %126, i32 0, i32 3
store i64 0, i64* %127
store i32 1, i32* %3
br label %129
128: ; preds = %95
store i32 0, i32* %3
br label %129
129: ; preds = %128, %99, %45
%130 = load i32, i32* %3
ret i32 %130
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i8*, i32, i64, i32*, i64, i32*, i64, i32 }
@.str = [7 x i8] c"/unix:\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @get_displayname_auth(i8* %0, %struct.TYPE_3__* nocapture writeonly %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [40 x i8]
%10 = bitcast i32* %3 to i8*
%11 = bitcast i8** %4 to i8*
store i8* null, i8** %4
%12 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%13 = bitcast i32* %6 to i8*
%14 = bitcast i32* %7 to i8*
%15 = bitcast i32* %8 to i8*
%16 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 47)
%17 = icmp eq i8* %16, null
br i1 %17, label %30, label %18
18: ; preds = %2
%19 = tail call i64 @strncmp(i8* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = ptrtoint i8* %16 to i64
%23 = ptrtoint i8* %0 to i64
%24 = sub i64 %22, %23
%25 = trunc i64 %24 to i32
%26 = icmp sgt i32 %25, 0
%27 = add i64 %24, 1
%28 = and i64 %27, 4294967295
%29 = select i1 %26, i64 %28, i64 0
br label %30
30: ; preds = %21, %2, %18
%31 = phi i32 [ 0, %18 ], [ 0, %2 ], [ %25, %21 ]
%32 = phi i64 [ 0, %18 ], [ 0, %2 ], [ %29, %21 ]
%33 = getelementptr inbounds i8, i8* %0, i64 %32
%34 = call i32 @parse_displayname(i8* %33, i32* %3, i8** %4, i32* %6, i32* %7, i8** %5)
%35 = icmp eq i32 %34, 0
br i1 %35, label %79, label %36
36: ; preds = %30
%37 = load i32, i32* %3
%38 = load i8*, i8** %4
%39 = call i8* @get_address_info(i32 %37, i8* %0, i32 %31, i8* %38, i32* %8)
%40 = icmp eq i8* %39, null
br i1 %40, label %55, label %41
41: ; preds = %36
%42 = getelementptr inbounds [40 x i8], [40 x i8]* %9, i64 0, i64 0
%43 = load i32, i32* %8
store i8 0, i8* %42
%44 = load i32, i32* %6
%45 = call i32 @sprintf(i8* %42, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %44)
%46 = call i64 @strlen(i8* %42)
%47 = icmp slt i64 %46, 1
br i1 %47, label %48, label %50
48: ; preds = %41
%49 = call i32 @free(i8* %39)
br label %52
50: ; preds = %41
%51 = call i32 @copystring(i8* %42, i64 %46)
br label %52
52: ; preds = %50, %48
%53 = phi i8* [ null, %48 ], [ %39, %50 ]
%54 = phi i32 [ undef, %48 ], [ %51, %50 ]
br label %55
55: ; preds = %52, %36
%56 = phi i64 [ %46, %52 ], [ undef, %36 ]
%57 = phi i32 [ %43, %52 ], [ undef, %36 ]
%58 = phi i8* [ %53, %52 ], [ null, %36 ]
%59 = phi i32 [ %54, %52 ], [ undef, %36 ]
%60 = load i8*, i8** %4
%61 = icmp eq i8* %60, null
br i1 %61, label %64, label %62
62: ; preds = %55
%63 = call i32 @free(i8* %60)
br label %64
64: ; preds = %62, %55
%65 = load i8*, i8** %5
%66 = icmp eq i8* %65, null
br i1 %66, label %69, label %67
67: ; preds = %64
%68 = call i32 @free(i8* %65)
br label %69
69: ; preds = %67, %64
%70 = icmp eq i8* %58, null
br i1 %70, label %79, label %71
71: ; preds = %69
%72 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %1, i64 0, i32 0
store i32 %37, i32* %72
%73 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %1, i64 0, i32 1
store i8* %58, i8** %73
%74 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %1, i64 0, i32 2
store i32 %57, i32* %74
%75 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %1, i64 0, i32 8
store i32 %59, i32* %75
%76 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %1, i64 0, i32 7
store i64 %56, i64* %76
%77 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %1, i64 0, i32 3
%78 = bitcast i64* %77 to i8*
br label %79
79: ; preds = %69, %30, %71
%80 = phi i32 [ 1, %71 ], [ 0, %30 ], [ 0, %69 ]
ret i32 %80
}