#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 scalar_t__ pid_t;

/* Variables and functions */
int O_APPEND;
int O_CREAT;
int O_WRONLY;
int /*<<< orphan*/ SIGHUP;
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ SIGQUIT;
int /*<<< orphan*/ SIG_IGN;
int S_IRGRP;
int S_IROTH;
int S_IRUSR;
int S_IWUSR;
int /*<<< orphan*/ chdir(char const *);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ dup(int);
int /*<<< orphan*/ exit(int);
scalar_t__ fork();
int getpgrp();
int getpid();
int getppid();
int lock(int);
int open(char const *, int, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ setsid();
int /*<<< orphan*/ signal(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ umask(int /*<<< orphan*/);
int Daemonizer(void Daemon(void *), void *data, const char *LockFile,
               const char *LogFile, const char *LivDir) {
  pid_t PID;
  int fd, dummyfd, retval;
  printf("\nPID %d, PPID %d, GRP-ID %d\n", getpid(), getppid(), getpgrp());
  PID = fork();
  if (PID < 0) {
    perror("could not fork()");
    exit(-1);
  } else if (PID > 0) {
    exit(0);
  }
  signal(SIGINT, SIG_IGN);
  signal(SIGQUIT, SIG_IGN);
  signal(SIGHUP, SIG_IGN);
  printf("\nPID %d, PPID %d, GRP-ID %d\n", getpid(), getppid(), getpgrp());
  setsid();
  printf("\nPID %d, PPID %d, GRP-ID %d\n", getpid(), getppid(), getpgrp());
  chdir(LivDir);
  umask(0);
  if (LockFile != NULL) {
    fd = open(LockFile, O_WRONLY | O_CREAT,
              S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
    if (fd < 0) {
      perror("fatal error when opening lockfile");
      exit(-1);
    }
    retval = lock(fd);
    if (retval < 0) {
      printf("\n*** daemon is already running ***\n");
      exit(0);
    }
  }
  printf("\n*** daemon starts with process id: %d ***\n", getpid());
  close(1);
  close(2);
  if (LogFile != NULL) {
    enum { UserWrite = 0644 };
    dummyfd = open(LogFile, O_CREAT | O_APPEND | O_WRONLY, UserWrite);
    dup(1);
  }
  close(0);
  Daemon(data);
  return (0);
}


x86 assembly (clang, -O0):
<Daemonizer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,-0x44(%rbp)
mov    $0x0,%al
call   10f0 <getppid@plt>
mov    %eax,-0x40(%rbp)
mov    $0x0,%al
call   10c0 <getpgrp@plt>
mov    -0x44(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    %eax,%ecx
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1110 <fork@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jge    1269 <Daemonizer+0x79>
lea    0xdc3(%rip),%rdi
call   10e0 <perror@plt>
mov    $0xffffffff,%edi
call   1100 <exit@plt>
cmpq   $0x0,-0x30(%rbp)
jle    127b <Daemonizer+0x8b>
xor    %edi,%edi
call   1100 <exit@plt>
jmp    1280 <Daemonizer+0x90>
mov    0x2d51(%rip),%rax
mov    (%rax),%edi
mov    0x2d30(%rip),%rax
mov    (%rax),%esi
call   10a0 <signal@plt>
mov    0x2d32(%rip),%rax
mov    (%rax),%edi
mov    0x2d19(%rip),%rax
mov    (%rax),%esi
call   10a0 <signal@plt>
mov    0x2d33(%rip),%rax
mov    (%rax),%edi
mov    0x2d02(%rip),%rax
mov    (%rax),%esi
call   10a0 <signal@plt>
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,-0x54(%rbp)
mov    $0x0,%al
call   10f0 <getppid@plt>
mov    %eax,-0x50(%rbp)
mov    $0x0,%al
call   10c0 <getpgrp@plt>
mov    -0x54(%rbp),%esi
mov    -0x50(%rbp),%edx
mov    %eax,%ecx
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1090 <setsid@plt>
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,-0x4c(%rbp)
mov    $0x0,%al
call   10f0 <getppid@plt>
mov    %eax,-0x48(%rbp)
mov    $0x0,%al
call   10c0 <getpgrp@plt>
mov    -0x4c(%rbp),%esi
mov    -0x48(%rbp),%edx
mov    %eax,%ecx
lea    0xcd9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1050 <chdir@plt>
xor    %edi,%edi
call   10b0 <umask@plt>
cmpq   $0x0,-0x18(%rbp)
je     13da <Daemonizer+0x1ea>
mov    -0x18(%rbp),%rdi
mov    0x2c3c(%rip),%rax
mov    (%rax),%esi
mov    0x2c9b(%rip),%rax
or     (%rax),%esi
mov    0x2c3a(%rip),%rax
mov    (%rax),%edx
mov    0x2c59(%rip),%rax
or     (%rax),%edx
mov    0x2c38(%rip),%rax
or     (%rax),%edx
mov    0x2c27(%rip),%rax
or     (%rax),%edx
call   10d0 <open@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    13ab <Daemonizer+0x1bb>
lea    0xc92(%rip),%rdi
call   10e0 <perror@plt>
mov    $0xffffffff,%edi
call   1100 <exit@plt>
mov    -0x34(%rbp),%edi
call   1030 <lock@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jge    13d5 <Daemonizer+0x1e5>
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   1100 <exit@plt>
jmp    13da <Daemonizer+0x1ea>
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,%esi
lea    0xc8a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   1080 <close@plt>
mov    $0x2,%edi
call   1080 <close@plt>
cmpq   $0x0,-0x20(%rbp)
je     1446 <Daemonizer+0x256>
mov    -0x20(%rbp),%rdi
mov    0x2bdd(%rip),%rax
mov    (%rax),%esi
mov    0x2b64(%rip),%rax
or     (%rax),%esi
mov    0x2b63(%rip),%rax
or     (%rax),%esi
mov    $0x1a4,%edx
call   10d0 <open@plt>
mov    %eax,-0x38(%rbp)
mov    $0x1,%edi
call   1070 <dup@plt>
xor    %edi,%edi
call   1080 <close@plt>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rdi
call   *%rax
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Daemonizer>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r8,%r13
mov    %rcx,%r12
mov    %rdx,%r15
mov    %rsi,0x8(%rsp)
mov    %rdi,0x10(%rsp)
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1100 <getppid@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10d0 <getpgrp@plt>
lea    0xdbe(%rip),%rdi
mov    %ebp,%esi
mov    %r14d,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1120 <fork@plt>
test   %rax,%rax
js     13e9 <Daemonizer+0x1e9>
jne    13f2 <Daemonizer+0x1f2>
mov    0x2d6b(%rip),%rax
mov    (%rax),%edi
mov    0x2d4a(%rip),%rbx
mov    (%rbx),%esi
call   10b0 <signal@plt>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   10b0 <signal@plt>
mov    0x2d54(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   10b0 <signal@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1100 <getppid@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10d0 <getpgrp@plt>
lea    0xd43(%rip),%r14
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   10a0 <setsid@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1100 <getppid@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   10d0 <getpgrp@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r13,%rdi
call   1060 <chdir@plt>
xor    %edi,%edi
call   10c0 <umask@plt>
test   %r15,%r15
je     1366 <Daemonizer+0x166>
mov    0x2c78(%rip),%rax
mov    0x2cd9(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2c76(%rip),%rax
mov    0x2c97(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    0x2c74(%rip),%rax
or     (%rax),%edx
mov    0x2c63(%rip),%rax
or     (%rax),%edx
mov    %r15,%rdi
call   10e0 <open@plt>
test   %eax,%eax
js     13f9 <Daemonizer+0x1f9>
mov    %eax,%edi
call   1040 <lock@plt>
test   %eax,%eax
js     140f <Daemonizer+0x20f>
xor    %eax,%eax
call   1050 <getpid@plt>
lea    0xcdc(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1,%edi
call   1090 <close@plt>
mov    $0x2,%edi
call   1090 <close@plt>
test   %r12,%r12
je     13c8 <Daemonizer+0x1c8>
mov    0x2c5b(%rip),%rax
mov    0x2be4(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2be1(%rip),%rax
or     (%rax),%esi
mov    %r12,%rdi
mov    $0x1a4,%edx
call   10e0 <open@plt>
mov    $0x1,%edi
call   1080 <dup@plt>
xor    %edi,%edi
call   1090 <close@plt>
mov    0x8(%rsp),%rdi
call   *0x10(%rsp)
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc2d(%rip),%rdi
jmp    1400 <Daemonizer+0x200>
xor    %edi,%edi
call   1110 <exit@plt>
lea    0xc2e(%rip),%rdi
call   10f0 <perror@plt>
mov    $0xffffffff,%edi
call   1110 <exit@plt>
lea    0xc66(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"\0APID %d, PPID %d, GRP-ID %d\0A\00"
@.str.1 = [17 x i8] c"could not fork()\00"
@SIGINT = global i32 0
@SIG_IGN = global i32 0
@SIGQUIT = global i32 0
@SIGHUP = global i32 0
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@S_IRGRP = global i32 0
@S_IROTH = global i32 0
@.str.2 = [34 x i8] c"fatal error when opening lockfile\00"
@.str.3 = [36 x i8] c"\0A*** daemon is already running ***\0A\00"
@.str.4 = [44 x i8] c"\0A*** daemon starts with process id: %d ***\0A\00"
@O_APPEND = global i32 0
define i32 @Daemonizer(void (i8*)* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca void (i8*)*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store void (i8*)* %0, void (i8*)** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%15 = call i32 (...) @getpid()
%16 = call i32 (...) @getppid()
%17 = call i32 (...) @getpgrp()
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %15, i32 %16, i32 %17)
%19 = call i64 (...) @fork()
store i64 %19, i64* %11
%20 = load i64, i64* %11
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %5
%23 = call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%24 = call i32 @exit(i32 -1)
unreachable
25: ; preds = %5
%26 = load i64, i64* %11
%27 = icmp sgt i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @exit(i32 0)
unreachable
30: ; preds = %25
br label %31
31: ; preds = %30
%32 = load i32, i32* @SIGINT
%33 = load i32, i32* @SIG_IGN
%34 = call i32 @signal(i32 %32, i32 %33)
%35 = load i32, i32* @SIGQUIT
%36 = load i32, i32* @SIG_IGN
%37 = call i32 @signal(i32 %35, i32 %36)
%38 = load i32, i32* @SIGHUP
%39 = load i32, i32* @SIG_IGN
%40 = call i32 @signal(i32 %38, i32 %39)
%41 = call i32 (...) @getpid()
%42 = call i32 (...) @getppid()
%43 = call i32 (...) @getpgrp()
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %41, i32 %42, i32 %43)
%45 = call i32 (...) @setsid()
%46 = call i32 (...) @getpid()
%47 = call i32 (...) @getppid()
%48 = call i32 (...) @getpgrp()
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %46, i32 %47, i32 %48)
%50 = load i8*, i8** %10
%51 = call i32 @chdir(i8* %50)
%52 = call i32 @umask(i32 0)
%53 = load i8*, i8** %8
%54 = icmp ne i8* %53, null
br i1 %54, label %55, label %82
55: ; preds = %31
%56 = load i8*, i8** %8
%57 = load i32, i32* @O_WRONLY
%58 = load i32, i32* @O_CREAT
%59 = or i32 %57, %58
%60 = load i32, i32* @S_IRUSR
%61 = load i32, i32* @S_IWUSR
%62 = or i32 %60, %61
%63 = load i32, i32* @S_IRGRP
%64 = or i32 %62, %63
%65 = load i32, i32* @S_IROTH
%66 = or i32 %64, %65
%67 = call i32 @open(i8* %56, i32 %59, i32 %66)
store i32 %67, i32* %12
%68 = load i32, i32* %12
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %55
%71 = call i32 @perror(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%72 = call i32 @exit(i32 -1)
unreachable
73: ; preds = %55
%74 = load i32, i32* %12
%75 = call i32 @lock(i32 %74)
store i32 %75, i32* %14
%76 = load i32, i32* %14
%77 = icmp slt i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %73
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%80 = call i32 @exit(i32 0)
unreachable
81: ; preds = %73
br label %82
82: ; preds = %81, %31
%83 = call i32 (...) @getpid()
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i32 %83)
%85 = call i32 @close(i32 1)
%86 = call i32 @close(i32 2)
%87 = load i8*, i8** %9
%88 = icmp ne i8* %87, null
br i1 %88, label %89, label %98
89: ; preds = %82
%90 = load i8*, i8** %9
%91 = load i32, i32* @O_CREAT
%92 = load i32, i32* @O_APPEND
%93 = or i32 %91, %92
%94 = load i32, i32* @O_WRONLY
%95 = or i32 %93, %94
%96 = call i32 @open(i8* %90, i32 %95, i32 420)
store i32 %96, i32* %13
%97 = call i32 @dup(i32 1)
br label %98
98: ; preds = %89, %82
%99 = call i32 @close(i32 0)
%100 = load void (i8*)*, void (i8*)** %6
%101 = load i8*, i8** %7
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"\0APID %d, PPID %d, GRP-ID %d\0A\00"
@.str.1 = [17 x i8] c"could not fork()\00"
@SIGINT = global i32 0
@SIG_IGN = global i32 0
@SIGQUIT = global i32 0
@SIGHUP = global i32 0
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@S_IRGRP = global i32 0
@S_IROTH = global i32 0
@.str.2 = [34 x i8] c"fatal error when opening lockfile\00"
@.str.4 = [44 x i8] c"\0A*** daemon starts with process id: %d ***\0A\00"
@O_APPEND = global i32 0
@str = [35 x i8] c"\0A*** daemon is already running ***\00"
define i32 @Daemonizer(void (i8*)* nocapture %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = tail call i32 (...) @getpid()
%7 = tail call i32 (...) @getppid()
%8 = tail call i32 (...) @getpgrp()
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7, i32 %8)
%10 = tail call i64 (...) @fork()
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %5
%13 = tail call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 @exit(i32 -1)
unreachable
15: ; preds = %5
%16 = icmp eq i64 %10, 0
br i1 %16, label %19, label %17
17: ; preds = %15
%18 = tail call i32 @exit(i32 0)
unreachable
19: ; preds = %15
%20 = load i32, i32* @SIGINT
%21 = load i32, i32* @SIG_IGN
%22 = tail call i32 @signal(i32 %20, i32 %21)
%23 = load i32, i32* @SIGQUIT
%24 = load i32, i32* @SIG_IGN
%25 = tail call i32 @signal(i32 %23, i32 %24)
%26 = load i32, i32* @SIGHUP
%27 = load i32, i32* @SIG_IGN
%28 = tail call i32 @signal(i32 %26, i32 %27)
%29 = tail call i32 (...) @getpid()
%30 = tail call i32 (...) @getppid()
%31 = tail call i32 (...) @getpgrp()
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %29, i32 %30, i32 %31)
%33 = tail call i32 (...) @setsid()
%34 = tail call i32 (...) @getpid()
%35 = tail call i32 (...) @getppid()
%36 = tail call i32 (...) @getpgrp()
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %34, i32 %35, i32 %36)
%38 = tail call i32 @chdir(i8* %4)
%39 = tail call i32 @umask(i32 0)
%40 = icmp eq i8* %2, null
br i1 %40, label %63, label %41
41: ; preds = %19
%42 = load i32, i32* @O_WRONLY
%43 = load i32, i32* @O_CREAT
%44 = or i32 %43, %42
%45 = load i32, i32* @S_IRUSR
%46 = load i32, i32* @S_IWUSR
%47 = or i32 %46, %45
%48 = load i32, i32* @S_IRGRP
%49 = or i32 %47, %48
%50 = load i32, i32* @S_IROTH
%51 = or i32 %49, %50
%52 = tail call i32 @open(i8* %2, i32 %44, i32 %51)
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %41
%55 = tail call i32 @perror(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%56 = tail call i32 @exit(i32 -1)
unreachable
57: ; preds = %41
%58 = tail call i32 @lock(i32 %52)
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%62 = tail call i32 @exit(i32 0)
unreachable
63: ; preds = %57, %19
%64 = tail call i32 (...) @getpid()
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i32 %64)
%66 = tail call i32 @close(i32 1)
%67 = tail call i32 @close(i32 2)
%68 = icmp eq i8* %3, null
br i1 %68, label %77, label %69
69: ; preds = %63
%70 = load i32, i32* @O_CREAT
%71 = load i32, i32* @O_APPEND
%72 = or i32 %71, %70
%73 = load i32, i32* @O_WRONLY
%74 = or i32 %72, %73
%75 = tail call i32 @open(i8* %3, i32 %74, i32 420)
%76 = tail call i32 @dup(i32 1)
br label %77
77: ; preds = %69, %63
%78 = tail call i32 @close(i32 0)
tail call void %0(i8* %1)
ret i32 0
}