#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 */
typedef TYPE_1__ *res_state;
typedef int /*<<< orphan*/ buf;
struct TYPE_3__ {
  int options;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int BUFSIZ;
int RES_NOALIASES;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
char *getenv(char *);
scalar_t__ issetugid();
scalar_t__ isspace(unsigned char);
int ns_samename(char *, char const *);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ strncpy(char *, char *, size_t);
const char *res_hostalias(const res_state statp, const char *name, char *dst,
                          size_t siz) {
  char *file, *cp1, *cp2;
  char buf[BUFSIZ];
  FILE *fp;
  if (statp->options & RES_NOALIASES)
    return (NULL);
  if (issetugid())
    return (NULL);
  file = getenv("HOSTALIASES");
  if (file == NULL || (fp = fopen(file, "r")) == NULL)
    return (NULL);
  setbuf(fp, NULL);
  buf[sizeof(buf) - 1] = '\0';
  while (fgets(buf, sizeof(buf), fp)) {
    for (cp1 = buf; *cp1 && !isspace((unsigned char)*cp1); ++cp1)
      ;
    if (!*cp1)
      break;
    *cp1 = '\0';
    if (ns_samename(buf, name) == 1) {
      while (isspace((unsigned char)*++cp1))
        ;
      if (!*cp1)
        break;
      for (cp2 = cp1 + 1; *cp2 && !isspace((unsigned char)*cp2); ++cp2)
        ;
      *cp2 = '\0';
      strncpy(dst, cp1, siz - 1);
      dst[siz - 1] = '\0';
      fclose(fp);
      return (dst);
    }
  }
  fclose(fp);
  return (NULL);
}


x86 assembly (clang, -O0):
<res_hostalias>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    0x2e26(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0x70(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    0x2e08(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1207 <res_hostalias+0x77>
movq   $0x0,-0x8(%rbp)
movl   $0x1,-0x5c(%rbp)
jmp    1440 <res_hostalias+0x2b0>
mov    $0x0,%al
call   10a0 <issetugid@plt>
cmp    $0x0,%rax
je     122c <res_hostalias+0x9c>
movq   $0x0,-0x8(%rbp)
movl   $0x1,-0x5c(%rbp)
jmp    1440 <res_hostalias+0x2b0>
lea    0xdcd(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1265 <res_hostalias+0xd5>
mov    -0x30(%rbp),%rdi
lea    0xdba(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x58(%rbp)
cmp    $0x0,%rax
jne    1279 <res_hostalias+0xe9>
movq   $0x0,-0x8(%rbp)
movl   $0x1,-0x5c(%rbp)
jmp    1440 <res_hostalias+0x2b0>
mov    -0x58(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <setbuf@plt>
mov    -0x70(%rbp),%rcx
mov    -0x68(%rbp),%rax
sub    $0x1,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x68(%rbp),%rdi
mov    -0x70(%rbp),%rax
mov    %eax,%esi
mov    -0x58(%rbp),%rdx
call   1090 <fgets@plt>
cmp    $0x0,%rax
je     1428 <res_hostalias+0x298>
mov    -0x68(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x71(%rbp)
je     12e8 <res_hostalias+0x158>
mov    -0x38(%rbp),%rax
movzbl (%rax),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
mov    %al,-0x71(%rbp)
mov    -0x71(%rbp),%al
test   $0x1,%al
jne    12f8 <res_hostalias+0x168>
jmp    130e <res_hostalias+0x17e>
jmp    12fd <res_hostalias+0x16d>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    12bb <res_hostalias+0x12b>
mov    -0x38(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1320 <res_hostalias+0x190>
jmp    1428 <res_hostalias+0x298>
mov    -0x68(%rbp),%rdi
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rsi
call   1050 <ns_samename@plt>
cmp    $0x1,%eax
jne    1423 <res_hostalias+0x293>
jmp    1342 <res_hostalias+0x1b2>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x38(%rbp)
movzbl 0x1(%rax),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
je     1369 <res_hostalias+0x1d9>
jmp    1342 <res_hostalias+0x1b2>
mov    -0x38(%rbp),%rax
cmpb   $0x0,(%rax)
jne    137b <res_hostalias+0x1eb>
jmp    1428 <res_hostalias+0x298>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x72(%rbp)
je     13b4 <res_hostalias+0x224>
mov    -0x40(%rbp),%rax
movzbl (%rax),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
mov    %al,-0x72(%rbp)
mov    -0x72(%rbp),%al
test   $0x1,%al
jne    13c4 <res_hostalias+0x234>
jmp    13da <res_hostalias+0x24a>
jmp    13c9 <res_hostalias+0x239>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1387 <res_hostalias+0x1f7>
mov    -0x40(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x28(%rbp),%rdx
sub    $0x1,%rdx
call   1040 <strncpy@plt>
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x58(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
movl   $0x1,-0x5c(%rbp)
jmp    1440 <res_hostalias+0x2b0>
jmp    1296 <res_hostalias+0x106>
mov    -0x58(%rbp),%rdi
call   1060 <fclose@plt>
movq   $0x0,-0x8(%rbp)
movl   $0x1,-0x5c(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    -0x8(%rbp),%rax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<res_hostalias>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    0x2e30(%rip),%rax
mov    (%rax),%ebx
mov    %rsp,%r15
lea    0xf(%rbx),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    0x2e2e(%rip),%rax
mov    (%rax),%eax
test   %eax,(%rdi)
jne    11dd <res_hostalias+0x4d>
mov    %rcx,%r14
mov    %rdx,%r13
mov    %rsi,%r12
xor    %eax,%eax
call   10a0 <issetugid@plt>
test   %rax,%rax
je     11f2 <res_hostalias+0x62>
xor    %r13d,%r13d
mov    %r13,%rax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe07(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     11dd <res_hostalias+0x4d>
lea    0xe02(%rip),%rsi
mov    %rax,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     11dd <res_hostalias+0x4d>
mov    %r12,-0x48(%rbp)
mov    %r14,-0x38(%rbp)
mov    %rax,%r12
mov    %rax,%rdi
xor    %esi,%esi
call   1070 <setbuf@plt>
movb   $0x0,-0x1(%rbx,%r15,1)
lea    0x1(%r15),%rax
mov    %rax,-0x40(%rbp)
mov    %r12,-0x30(%rbp)
mov    %r15,%rdi
mov    %ebx,%esi
mov    %r12,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
je     1308 <res_hostalias+0x178>
mov    (%r15),%al
test   %al,%al
je     1308 <res_hostalias+0x178>
mov    -0x40(%rbp),%r14
mov    -0x48(%rbp),%r12
nopw   0x0(%rax,%rax,1)
movzbl %al,%edi
call   1080 <isspace@plt>
test   %rax,%rax
jne    128b <res_hostalias+0xfb>
movzbl (%r14),%eax
add    $0x1,%r14
test   %al,%al
jne    1270 <res_hostalias+0xe0>
jmp    1308 <res_hostalias+0x178>
cmpb   $0x0,-0x1(%r14)
je     1308 <res_hostalias+0x178>
movb   $0x0,-0x1(%r14)
mov    %r15,%rdi
mov    %r12,%rsi
call   1050 <ns_samename@plt>
cmp    $0x1,%eax
mov    -0x30(%rbp),%r12
jne    123e <res_hostalias+0xae>
movzbl (%r14),%edi
call   1080 <isspace@plt>
add    $0x1,%r14
test   %rax,%rax
jne    12ab <res_hostalias+0x11b>
cmpb   $0x0,-0x1(%r14)
je     1308 <res_hostalias+0x178>
lea    -0x1(%r14),%r15
mov    (%r14),%al
test   %al,%al
je     12e9 <res_hostalias+0x159>
movzbl %al,%edi
call   1080 <isspace@plt>
test   %rax,%rax
jne    12e9 <res_hostalias+0x159>
movzbl 0x1(%r14),%eax
add    $0x1,%r14
test   %al,%al
jne    12cf <res_hostalias+0x13f>
movb   $0x0,(%r14)
mov    -0x38(%rbp),%rbx
lea    -0x1(%rbx),%rdx
mov    %r13,%rdi
mov    %r15,%rsi
call   1040 <strncpy@plt>
movb   $0x0,-0x1(%r13,%rbx,1)
jmp    130b <res_hostalias+0x17b>
xor    %r13d,%r13d
mov    -0x30(%rbp),%rdi
call   1060 <fclose@plt>
jmp    11e0 <res_hostalias+0x50>

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

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32 }
@BUFSIZ = global i32 0
@RES_NOALIASES = global i32 0
@.str = [12 x i8] c"HOSTALIASES\00"
@.str.1 = [2 x i8] c"r\00"
define i8* @res_hostalias(%struct.TYPE_3__* nocapture %0, i8* %1, i8* %2, i64 %3) {
%5 = load i32, i32* @BUFSIZ
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%9 = load i32, i32* %8
%10 = load i32, i32* @RES_NOALIASES
%11 = and i32 %10, %9
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %77
13: ; preds = %4
%14 = tail call i64 (...) @issetugid()
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %77
16: ; preds = %13
%17 = tail call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%18 = icmp eq i8* %17, null
br i1 %18, label %77, label %19
19: ; preds = %16
%20 = tail call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%21 = icmp eq i32* %20, null
br i1 %21, label %77, label %22
22: ; preds = %19
%23 = tail call i32 @setbuf(i32* %20, i32* null)
%24 = add nsw i64 %6, -1
%25 = getelementptr inbounds i8, i8* %7, i64 %24
store i8 0, i8* %25
br label %26
26: ; preds = %44, %22
%27 = call i64 @fgets(i8* %7, i32 %5, i32* %20)
%28 = icmp eq i64 %27, 0
br i1 %28, label %74, label %29
29: ; preds = %26
%30 = load i8, i8* %7
%31 = icmp eq i8 %30, 0
br i1 %31, label %74, label %32
32: ; preds = %29, %37
%33 = phi i8 [ %39, %37 ], [ %30, %29 ]
%34 = phi i8* [ %38, %37 ], [ %7, %29 ]
%35 = call i64 @isspace(i8 zeroext %33)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %32
%38 = getelementptr inbounds i8, i8* %34, i64 1
%39 = load i8, i8* %38
%40 = icmp eq i8 %39, 0
br i1 %40, label %74, label %32
41: ; preds = %32
%42 = load i8, i8* %34
%43 = icmp eq i8 %42, 0
br i1 %43, label %74, label %44
44: ; preds = %41
store i8 0, i8* %34
%45 = call i32 @ns_samename(i8* %7, i8* %1)
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %26
47: ; preds = %44, %47
%48 = phi i8* [ %49, %47 ], [ %34, %44 ]
%49 = getelementptr inbounds i8, i8* %48, i64 1
%50 = load i8, i8* %49
%51 = call i64 @isspace(i8 zeroext %50)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %47
53: ; preds = %47
%54 = load i8, i8* %49
%55 = icmp eq i8 %54, 0
br i1 %55, label %74, label %56
56: ; preds = %53
%57 = getelementptr inbounds i8, i8* %48, i64 2
%58 = load i8, i8* %57
%59 = icmp eq i8 %58, 0
br i1 %59, label %69, label %60
60: ; preds = %56, %65
%61 = phi i8 [ %67, %65 ], [ %58, %56 ]
%62 = phi i8* [ %66, %65 ], [ %57, %56 ]
%63 = call i64 @isspace(i8 zeroext %61)
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %60
%66 = getelementptr inbounds i8, i8* %62, i64 1
%67 = load i8, i8* %66
%68 = icmp eq i8 %67, 0
br i1 %68, label %69, label %60
69: ; preds = %60, %65, %56
%70 = phi i8* [ %57, %56 ], [ %66, %65 ], [ %62, %60 ]
store i8 0, i8* %70
%71 = add i64 %3, -1
%72 = call i32 @strncpy(i8* %2, i8* %49, i64 %71)
%73 = getelementptr inbounds i8, i8* %2, i64 %71
store i8 0, i8* %73
br label %74
74: ; preds = %29, %26, %41, %37, %53, %69
%75 = phi i8* [ %2, %69 ], [ null, %53 ], [ null, %37 ], [ null, %41 ], [ null, %26 ], [ null, %29 ]
%76 = call i32 @fclose(i32* %20)
br label %77
77: ; preds = %74, %16, %19, %13, %4
%78 = phi i8* [ null, %4 ], [ null, %13 ], [ null, %19 ], [ null, %16 ], [ %75, %74 ]
ret i8* %78
}