#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 time_t;
typedef int /*<<< orphan*/ str;
typedef int /*<<< orphan*/ ntptime;

/* Variables and functions */
int O_RDWR;
int O_SYNC;
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ daemon(int, int);
int /*<<< orphan*/ gmtime(int *);
int /*<<< orphan*/ lseek(int, int, int /*<<< orphan*/);
int open(char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read(int, int *, int);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strftime(char *, int, char *, int /*<<< orphan*/);
int time(int /*<<< orphan*/ *);
int /*<<< orphan*/ usage(char *);
int /*<<< orphan*/ write(int, int *, int);
int main(int argc, char *argv[]) {
  int devfd = 0;
  time_t ntptime = 0;
  int sign = 0;
  char str[128] = {0};
  daemon(1, 1);
  if (2 != argc) {
    usage(argv[0]);
  } else {
    if (!strcmp(argv[1], "get"))
      sign = 0;
    else if (!strcmp(argv[1], "set"))
      sign = 1;
    else
      usage(argv[0]);
  }
  devfd = open("/dev/mtd/5", O_RDWR | O_SYNC);
  if (0 > devfd) {
    printf("NTPST: open mtd POT error!\n");
    return -1;
  }
  lseek(devfd, 2048, SEEK_SET);
  read(devfd, &ntptime, sizeof(ntptime));
  if (0 == sign) {
    if (0xFFFFFFFF == ntptime) {
      printf("NTP synchronized date/time: 00-00-00\n");
    } else {
      strftime(str, sizeof(str), "%T, %b %d, %Y", gmtime(&ntptime));
      printf("NTP synchronized date/time: %s\n", str);
    }
  } else {
    if (0xFFFFFFFF != ntptime) {
      strftime(str, sizeof(str), "%T, %b %d, %Y", gmtime(&ntptime));
      printf(
          "NTPST: one NTP Sync Timestamp existed in POT partition, it's %s\n",
          str);
    } else {
      ntptime = time(NULL);
      lseek(devfd, -4, SEEK_CUR);
      write(devfd, &ntptime, sizeof(ntptime));
      strftime(str, sizeof(str), "%T, %b %d, %Y", gmtime(&ntptime));
      printf("NTPST: NTP Sync Timestamp record finished, it's %s\n", str);
    }
  }
  close(devfd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1060 <memset@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   10b0 <daemon@plt>
mov    $0x2,%eax
cmp    -0x8(%rbp),%eax
je     123c <main+0x6c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10c0 <usage@plt>
jmp    12a4 <main+0xd4>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdb5(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1265 <main+0x95>
movl   $0x0,-0x1c(%rbp)
jmp    129f <main+0xcf>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd90(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    128e <main+0xbe>
movl   $0x1,-0x1c(%rbp)
jmp    129a <main+0xca>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10c0 <usage@plt>
jmp    129f <main+0xcf>
jmp    12a4 <main+0xd4>
mov    0x2d3d(%rip),%rax
mov    (%rax),%esi
mov    0x2d2c(%rip),%rax
or     (%rax),%esi
lea    0xd4b(%rip),%rdi
call   10e0 <open@plt>
mov    %eax,-0x14(%rbp)
xor    %eax,%eax
cmp    -0x14(%rbp),%eax
jle    12ea <main+0x11a>
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    146e <main+0x29e>
mov    -0x14(%rbp),%edi
mov    0x2cd4(%rip),%rax
mov    (%rax),%edx
mov    $0x800,%esi
call   1050 <lseek@plt>
mov    -0x14(%rbp),%edi
lea    -0x18(%rbp),%rsi
mov    $0x4,%edx
call   1080 <read@plt>
xor    %eax,%eax
cmp    -0x1c(%rbp),%eax
jne    1388 <main+0x1b8>
mov    $0xffffffff,%eax
cmp    -0x18(%rbp),%eax
jne    133d <main+0x16d>
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1383 <main+0x1b3>
lea    -0xa0(%rbp),%rax
mov    %rax,-0xa8(%rbp)
lea    -0x18(%rbp),%rdi
call   10f0 <gmtime@plt>
mov    -0xa8(%rbp),%rdi
mov    %eax,%ecx
mov    $0x80,%esi
lea    0xcec(%rip),%rdx
call   10d0 <strftime@plt>
lea    -0xa0(%rbp),%rsi
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145f <main+0x28f>
mov    $0xffffffff,%eax
cmp    -0x18(%rbp),%eax
je     13e1 <main+0x211>
lea    -0xa0(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    -0x18(%rbp),%rdi
call   10f0 <gmtime@plt>
mov    -0xb0(%rbp),%rdi
mov    %eax,%ecx
mov    $0x80,%esi
lea    0xc93(%rip),%rdx
call   10d0 <strftime@plt>
lea    -0xa0(%rbp),%rsi
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145a <main+0x28a>
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2be1(%rip),%rax
mov    (%rax),%edx
mov    $0xfffffffc,%esi
call   1050 <lseek@plt>
mov    -0x14(%rbp),%edi
lea    -0x18(%rbp),%rsi
mov    $0x4,%edx
call   1030 <write@plt>
lea    -0xa0(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0x18(%rbp),%rdi
call   10f0 <gmtime@plt>
mov    -0xb8(%rbp),%rdi
mov    %eax,%ecx
mov    $0x80,%esi
lea    0xc15(%rip),%rdx
call   10d0 <strftime@plt>
lea    -0xa0(%rbp),%rsi
lea    0xc71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    145f <main+0x28f>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x90,%rsp
mov    %rsi,%r14
mov    %edi,%ebx
movl   $0x0,0xc(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
mov    $0x1,%edi
mov    $0x1,%esi
call   10b0 <daemon@plt>
cmp    $0x2,%ebx
jne    1258 <main+0x88>
mov    0x8(%r14),%rbx
lea    0xdcb(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1260 <main+0x90>
lea    0xdbc(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1339 <main+0x169>
mov    (%r14),%rdi
call   10c0 <usage@plt>
mov    $0x1,%bpl
mov    0x2d7e(%rip),%rax
mov    0x2d6f(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
lea    0xd8c(%rip),%rdi
call   10e0 <open@plt>
test   %eax,%eax
js     12f0 <main+0x120>
mov    %eax,%ebx
mov    0x2d3a(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
mov    $0x800,%esi
call   1060 <lseek@plt>
lea    0xc(%rsp),%rsi
mov    %ebx,%edi
mov    $0x4,%edx
call   1080 <read@plt>
mov    0xc(%rsp),%eax
test   %bpl,%bpl
je     1306 <main+0x136>
cmp    $0xffffffff,%eax
je     1340 <main+0x170>
lea    0xc(%rsp),%rdi
call   10f0 <gmtime@plt>
lea    0xd43(%rip),%rdx
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x80,%esi
mov    %eax,%ecx
call   10d0 <strftime@plt>
lea    0xd36(%rip),%rdi
jmp    13ac <main+0x1dc>
lea    0xde4(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%eax
jmp    13bf <main+0x1ef>
cmp    $0xffffffff,%eax
je     134e <main+0x17e>
lea    0xc(%rsp),%rdi
call   10f0 <gmtime@plt>
lea    0xcf7(%rip),%rdx
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x80,%esi
mov    %eax,%ecx
call   10d0 <strftime@plt>
lea    0xd0a(%rip),%rdi
jmp    13ac <main+0x1dc>
xor    %ebp,%ebp
jmp    1263 <main+0x93>
lea    0xd6f(%rip),%rdi
call   1030 <puts@plt>
jmp    13b6 <main+0x1e6>
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,0xc(%rsp)
mov    0x2c78(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
mov    $0xfffffffc,%esi
call   1060 <lseek@plt>
lea    0xc(%rsp),%r14
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x4,%edx
call   1040 <write@plt>
mov    %r14,%rdi
call   10f0 <gmtime@plt>
lea    0xc82(%rip),%rdx
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x80,%esi
mov    %eax,%ecx
call   10d0 <strftime@plt>
lea    0xcd6(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"get\00"
@.str.1 = [4 x i8] c"set\00"
@.str.2 = [11 x i8] c"/dev/mtd/5\00"
@O_RDWR = global i32 0
@O_SYNC = global i32 0
@.str.3 = [28 x i8] c"NTPST: open mtd POT error!\0A\00"
@SEEK_SET = global i32 0
@.str.4 = [38 x i8] c"NTP synchronized date/time: 00-00-00\0A\00"
@.str.5 = [14 x i8] c"%T, %b %d, %Y\00"
@.str.6 = [32 x i8] c"NTP synchronized date/time: %s\0A\00"
@.str.7 = [65 x i8] c"NTPST: one NTP Sync Timestamp existed in POT partition, it's %s\0A\00"
@SEEK_CUR = global i32 0
@.str.8 = [52 x i8] c"NTPST: NTP Sync Timestamp record finished, it's %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [128 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%10 = bitcast [128 x i8]* %9 to i8*
%11 = call i32 @daemon(i32 1, i32 1)
%12 = load i32, i32* %4
%13 = icmp ne i32 2, %12
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 @usage(i8* %17)
br label %40
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32 @strcmp(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %19
store i32 0, i32* %8
br label %39
26: ; preds = %19
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i32 @strcmp(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %26
store i32 1, i32* %8
br label %38
33: ; preds = %26
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 0
%36 = load i8*, i8** %35
%37 = call i32 @usage(i8* %36)
br label %38
38: ; preds = %33, %32
br label %39
39: ; preds = %38, %25
br label %40
40: ; preds = %39, %14
%41 = load i32, i32* @O_RDWR
%42 = load i32, i32* @O_SYNC
%43 = or i32 %41, %42
%44 = call i32 @open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %43)
store i32 %44, i32* %6
%45 = load i32, i32* %6
%46 = icmp sgt i32 0, %45
br i1 %46, label %47, label %49
47: ; preds = %40
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %94
49: ; preds = %40
%50 = load i32, i32* %6
%51 = load i32, i32* @SEEK_SET
%52 = call i32 @lseek(i32 %50, i32 2048, i32 %51)
%53 = load i32, i32* %6
%54 = call i32 @read(i32 %53, i32* %7, i32 4)
%55 = load i32, i32* %8
%56 = icmp eq i32 0, %55
br i1 %56, label %57, label %69
57: ; preds = %49
%58 = load i32, i32* %7
%59 = icmp eq i32 -1, %58
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
br label %68
62: ; preds = %57
%63 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%64 = call i32 @gmtime(i32* %7)
%65 = call i32 @strftime(i8* %63, i32 128, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %64)
%66 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %66)
br label %68
68: ; preds = %62, %60
br label %91
69: ; preds = %49
%70 = load i32, i32* %7
%71 = icmp ne i32 -1, %70
br i1 %71, label %72, label %78
72: ; preds = %69
%73 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%74 = call i32 @gmtime(i32* %7)
%75 = call i32 @strftime(i8* %73, i32 128, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %74)
%76 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0), i8* %76)
br label %90
78: ; preds = %69
%79 = call i32 @time(i32* null)
store i32 %79, i32* %7
%80 = load i32, i32* %6
%81 = load i32, i32* @SEEK_CUR
%82 = call i32 @lseek(i32 %80, i32 -4, i32 %81)
%83 = load i32, i32* %6
%84 = call i32 @write(i32 %83, i32* %7, i32 4)
%85 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%86 = call i32 @gmtime(i32* %7)
%87 = call i32 @strftime(i8* %85, i32 128, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %86)
%88 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0), i8* %88)
br label %90
90: ; preds = %78, %72
br label %91
91: ; preds = %90, %68
%92 = load i32, i32* %6
%93 = call i32 @close(i32 %92)
store i32 0, i32* %3
br label %94
94: ; preds = %91, %47
%95 = load i32, i32* %3
ret i32 %95
}

LLVM IR (-O2):
@.str = [4 x i8] c"get\00"
@.str.1 = [4 x i8] c"set\00"
@.str.2 = [11 x i8] c"/dev/mtd/5\00"
@O_RDWR = global i32 0
@O_SYNC = global i32 0
@SEEK_SET = global i32 0
@.str.5 = [14 x i8] c"%T, %b %d, %Y\00"
@.str.6 = [32 x i8] c"NTP synchronized date/time: %s\0A\00"
@.str.7 = [65 x i8] c"NTPST: one NTP Sync Timestamp existed in POT partition, it's %s\0A\00"
@SEEK_CUR = global i32 0
@.str.8 = [52 x i8] c"NTPST: NTP Sync Timestamp record finished, it's %s\0A\00"
@str = [37 x i8] c"NTP synchronized date/time: 00-00-00\00"
@str.9 = [27 x i8] c"NTPST: open mtd POT error!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [128 x i8]
%5 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%7 = tail call i32 @daemon(i32 1, i32 1)
%8 = icmp eq i32 %0, 2
br i1 %8, label %9, label %17
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %20, label %14
14: ; preds = %9
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %14, %2
%18 = load i8*, i8** %1
%19 = tail call i32 @usage(i8* %18)
br label %20
20: ; preds = %17, %14, %9
%21 = phi i1 [ true, %9 ], [ false, %14 ], [ true, %17 ]
%22 = load i32, i32* @O_RDWR
%23 = load i32, i32* @O_SYNC
%24 = or i32 %23, %22
%25 = tail call i32 @open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %24)
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %20
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.9, i64 0, i64 0))
br label %57
29: ; preds = %20
%30 = load i32, i32* @SEEK_SET
%31 = tail call i32 @lseek(i32 %25, i32 2048, i32 %30)
%32 = call i32 @read(i32 %25, i32* %3, i32 4)
%33 = load i32, i32* %3
%34 = icmp eq i32 %33, -1
br i1 %21, label %35, label %42
35: ; preds = %29
br i1 %34, label %36, label %38
36: ; preds = %35
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
br label %55
38: ; preds = %35
%39 = call i32 @gmtime(i32* %3)
%40 = call i32 @strftime(i8* %6, i32 128, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %39)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %6)
br label %55
42: ; preds = %29
br i1 %34, label %47, label %43
43: ; preds = %42
%44 = call i32 @gmtime(i32* %3)
%45 = call i32 @strftime(i8* %6, i32 128, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %44)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0), i8* %6)
br label %55
47: ; preds = %42
%48 = tail call i32 @time(i32* null)
store i32 %48, i32* %3
%49 = load i32, i32* @SEEK_CUR
%50 = tail call i32 @lseek(i32 %25, i32 -4, i32 %49)
%51 = call i32 @write(i32 %25, i32* %3, i32 4)
%52 = call i32 @gmtime(i32* %3)
%53 = call i32 @strftime(i8* %6, i32 128, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %52)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0), i8* %6)
br label %55
55: ; preds = %43, %47, %36, %38
%56 = call i32 @close(i32 %25)
br label %57
57: ; preds = %55, %27
%58 = phi i32 [ -1, %27 ], [ 0, %55 ]
ret i32 %58
}