#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 */

/* Variables and functions */
int /*<<< orphan*/ F_GETFL;
int /*<<< orphan*/ F_SETFL;
int O_NONBLOCK;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ STDOUT_FILENO;
int /*<<< orphan*/ close(int);
int fcntl(int, int /*<<< orphan*/, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int open(char *, int /*<<< orphan*/);
int read(int, unsigned char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ write(int /*<<< orphan*/, unsigned char *, int);
int main(int argc, char *argv[]) {
  int input1_file;
  int input2_file;
  int byte_read;
  int index;
  unsigned char ts_packet[188];
  if (argc >= 3) {
    input1_file = open(argv[1], O_RDONLY);
    if (input1_file < 0) {
      fprintf(stderr, "Can't open file %s\n", argv[1]);
      return 0;
    }
    input2_file = open(argv[2], O_RDONLY);
    if (input2_file < 0) {
      fprintf(stderr, "Can't open file %s\n", argv[2]);
      return 0;
    }
  } else {
    fprintf(stderr,
            "Usage: 'tsorts inputfile1.ts inputfile2.ts > output.ts'\n");
    fprintf(stderr, "ts packets are read from inputfile2.ts if they are not "
                    "immediatly available from inputfile1.ts'\n");
    return 0;
  }
  fcntl(input1_file, F_SETFL, fcntl(input1_file, F_GETFL, 0) | O_NONBLOCK);
  index = 0;
  while (1) {
    byte_read = read(input1_file, ts_packet + index, 188 - index);
    if (byte_read > 0) {
      index += byte_read;
      if (index == 188) {
        write(STDOUT_FILENO, ts_packet, 188);
        index = 0;
      }
    } else if (byte_read <= 0 && index == 0) {
      byte_read = read(input2_file, ts_packet, 188);
      if (byte_read == 0) {
        close(input2_file);
        input2_file = open(argv[2], O_RDONLY);
        if (input2_file < 0) {
          fprintf(stderr, "Can't open file %s\n", argv[2]);
          return 0;
        } else {
          byte_read = read(input2_file, ts_packet, 188);
          if (byte_read > 0) {
            write(STDOUT_FILENO, ts_packet, 188);
          }
        }
      } else {
        write(STDOUT_FILENO, ts_packet, 188);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jl     1224 <main+0xc4>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2e46(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    11d1 <main+0x71>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe42(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    140c <main+0x2ac>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2df8(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    121f <main+0xbf>
mov    0x2dcd(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xdf4(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    140c <main+0x2ac>
jmp    125e <main+0xfe>
mov    0x2d9d(%rip),%rax
mov    (%rax),%edi
lea    0xde0(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d86(%rip),%rax
mov    (%rax),%edi
lea    0xe02(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    140c <main+0x2ac>
mov    -0x14(%rbp),%eax
mov    %eax,-0xe8(%rbp)
mov    0x2d52(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xe4(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2d38(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <fcntl@plt>
mov    -0xe8(%rbp),%edi
mov    -0xe4(%rbp),%esi
mov    %eax,%edx
mov    0x2d42(%rip),%rax
or     (%rax),%edx
call   1030 <fcntl@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x14(%rbp),%edi
lea    -0xe0(%rbp),%rsi
movslq -0x20(%rbp),%rax
add    %rax,%rsi
mov    $0xbc,%edx
sub    -0x20(%rbp),%edx
call   1060 <read@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    1313 <main+0x1b3>
mov    -0x1c(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
cmpl   $0xbc,-0x20(%rbp)
jne    130e <main+0x1ae>
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
lea    -0xe0(%rbp),%rsi
mov    $0xbc,%edx
call   1040 <write@plt>
movl   $0x0,-0x20(%rbp)
jmp    1407 <main+0x2a7>
cmpl   $0x0,-0x1c(%rbp)
jg     1402 <main+0x2a2>
cmpl   $0x0,-0x20(%rbp)
jne    1402 <main+0x2a2>
mov    -0x18(%rbp),%edi
lea    -0xe0(%rbp),%rsi
mov    $0xbc,%edx
call   1060 <read@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    13e3 <main+0x283>
mov    -0x18(%rbp),%edi
call   1050 <close@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2c79(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    139e <main+0x23e>
mov    0x2c4e(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xc75(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    140c <main+0x2ac>
mov    -0x18(%rbp),%edi
lea    -0xe0(%rbp),%rsi
mov    $0xbc,%edx
call   1060 <read@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    13d9 <main+0x279>
mov    0x2c2a(%rip),%rax
mov    (%rax),%edi
lea    -0xe0(%rbp),%rsi
mov    $0xbc,%edx
call   1040 <write@plt>
jmp    13de <main+0x27e>
jmp    13fd <main+0x29d>
mov    0x2c06(%rip),%rax
mov    (%rax),%edi
lea    -0xe0(%rbp),%rsi
mov    $0xbc,%edx
call   1040 <write@plt>
jmp    1402 <main+0x2a2>
jmp    1407 <main+0x2a7>
jmp    12ac <main+0x14c>
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
cmp    $0x3,%edi
jl     12a2 <main+0x142>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
mov    0x2e50(%rip),%rbp
mov    0x0(%rbp),%esi
call   1080 <open@plt>
test   %eax,%eax
js     12da <main+0x17a>
mov    %eax,%r13d
mov    0x10(%rbx),%rdi
mov    0x0(%rbp),%esi
call   1080 <open@plt>
test   %eax,%eax
js     12cb <main+0x16b>
mov    %eax,%r12d
mov    %rbx,0x8(%rsp)
mov    0x2e02(%rip),%rax
mov    (%rax),%ebx
mov    0x2df1(%rip),%rax
mov    (%rax),%esi
mov    %r13d,%edi
xor    %edx,%edx
call   1030 <fcntl@plt>
mov    0x2e06(%rip),%rcx
or     (%rcx),%eax
mov    %r13d,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1030 <fcntl@plt>
lea    0x10(%rsp),%r15
jmp    121a <main+0xba>
nop
mov    %r12d,%edi
mov    %r15,%rsi
mov    $0xbc,%edx
call   1060 <read@plt>
test   %eax,%eax
je     1260 <main+0x100>
mov    0x2de5(%rip),%rax
mov    (%rax),%edi
mov    %r15,%rsi
mov    $0xbc,%edx
call   1040 <write@plt>
xor    %r14d,%r14d
movslq %r14d,%rax
lea    (%rsp,%rax,1),%rbx
add    $0x10,%rbx
mov    $0xbc,%ebp
sub    %eax,%ebp
nop
mov    %r13d,%edi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1060 <read@plt>
test   %eax,%eax
jg     1250 <main+0xf0>
test   %r14d,%r14d
jne    1230 <main+0xd0>
jmp    11f0 <main+0x90>
nopl   0x0(%rax,%rax,1)
add    %eax,%r14d
cmp    $0xbc,%r14d
jne    121d <main+0xbd>
jmp    1204 <main+0xa4>
xchg   %ax,%ax
mov    %r12d,%edi
call   1050 <close@plt>
mov    0x8(%rsp),%rbx
mov    0x10(%rbx),%rdi
mov    0x2d60(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
test   %eax,%eax
js     12cb <main+0x16b>
mov    %eax,%r12d
mov    %eax,%edi
mov    %r15,%rsi
mov    $0xbc,%edx
call   1060 <read@plt>
test   %eax,%eax
jg     1204 <main+0xa4>
jmp    121a <main+0xba>
mov    0x2d1f(%rip),%rbx
mov    (%rbx),%edi
lea    0xd62(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd8b(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    12f5 <main+0x195>
mov    0x2cf6(%rip),%rax
mov    (%rax),%edi
mov    0x10(%rbx),%rdx
jmp    12e7 <main+0x187>
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xd12(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [20 x i8] c"Can't open file %s\0A\00"
@.str.1 = [57 x i8] c"Usage: 'tsorts inputfile1.ts inputfile2.ts > output.ts'\0A\00"
@.str.2 = [97 x i8] c"ts packets are read from inputfile2.ts if they are not immediatly available from inputfile1.ts'\0A\00"
@F_SETFL = global i32 0
@F_GETFL = global i32 0
@O_NONBLOCK = global i32 0
@STDOUT_FILENO = global i32 0
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 i32
%10 = alloca [188 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp sge i32 %11, 3
br i1 %12, label %13, label %42
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = load i32, i32* @O_RDONLY
%18 = call i32 @open(i8* %16, i32 %17)
store i32 %18, i32* %6
%19 = load i32, i32* %6
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %13
%22 = load i32, i32* @stderr
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %25)
store i32 0, i32* %3
br label %125
27: ; preds = %13
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 2
%30 = load i8*, i8** %29
%31 = load i32, i32* @O_RDONLY
%32 = call i32 @open(i8* %30, i32 %31)
store i32 %32, i32* %7
%33 = load i32, i32* %7
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %27
%36 = load i32, i32* @stderr
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 2
%39 = load i8*, i8** %38
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %39)
store i32 0, i32* %3
br label %125
41: ; preds = %27
br label %47
42: ; preds = %2
%43 = load i32, i32* @stderr
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %125
47: ; preds = %41
%48 = load i32, i32* %6
%49 = load i32, i32* @F_SETFL
%50 = load i32, i32* %6
%51 = load i32, i32* @F_GETFL
%52 = call i32 @fcntl(i32 %50, i32 %51, i32 0)
%53 = load i32, i32* @O_NONBLOCK
%54 = or i32 %52, %53
%55 = call i32 @fcntl(i32 %48, i32 %49, i32 %54)
store i32 0, i32* %9
br label %56
56: ; preds = %47, %124
%57 = load i32, i32* %6
%58 = getelementptr inbounds [188 x i8], [188 x i8]* %10, i64 0, i64 0
%59 = load i32, i32* %9
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, i8* %58, i64 %60
%62 = load i32, i32* %9
%63 = sub nsw i32 188, %62
%64 = call i32 @read(i32 %57, i8* %61, i32 %63)
store i32 %64, i32* %8
%65 = load i32, i32* %8
%66 = icmp sgt i32 %65, 0
br i1 %66, label %67, label %78
67: ; preds = %56
%68 = load i32, i32* %8
%69 = load i32, i32* %9
%70 = add nsw i32 %69, %68
store i32 %70, i32* %9
%71 = load i32, i32* %9
%72 = icmp eq i32 %71, 188
br i1 %72, label %73, label %77
73: ; preds = %67
%74 = load i32, i32* @STDOUT_FILENO
%75 = getelementptr inbounds [188 x i8], [188 x i8]* %10, i64 0, i64 0
%76 = call i32 @write(i32 %74, i8* %75, i32 188)
store i32 0, i32* %9
br label %77
77: ; preds = %73, %67
br label %124
78: ; preds = %56
%79 = load i32, i32* %8
%80 = icmp sle i32 %79, 0
br i1 %80, label %81, label %123
81: ; preds = %78
%82 = load i32, i32* %9
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %123
84: ; preds = %81
%85 = load i32, i32* %7
%86 = getelementptr inbounds [188 x i8], [188 x i8]* %10, i64 0, i64 0
%87 = call i32 @read(i32 %85, i8* %86, i32 188)
store i32 %87, i32* %8
%88 = load i32, i32* %8
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %118
90: ; preds = %84
%91 = load i32, i32* %7
%92 = call i32 @close(i32 %91)
%93 = load i8**, i8*** %5
%94 = getelementptr inbounds i8*, i8** %93, i64 2
%95 = load i8*, i8** %94
%96 = load i32, i32* @O_RDONLY
%97 = call i32 @open(i8* %95, i32 %96)
store i32 %97, i32* %7
%98 = load i32, i32* %7
%99 = icmp slt i32 %98, 0
br i1 %99, label %100, label %106
100: ; preds = %90
%101 = load i32, i32* @stderr
%102 = load i8**, i8*** %5
%103 = getelementptr inbounds i8*, i8** %102, i64 2
%104 = load i8*, i8** %103
%105 = call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %104)
store i32 0, i32* %3
br label %125
106: ; preds = %90
%107 = load i32, i32* %7
%108 = getelementptr inbounds [188 x i8], [188 x i8]* %10, i64 0, i64 0
%109 = call i32 @read(i32 %107, i8* %108, i32 188)
store i32 %109, i32* %8
%110 = load i32, i32* %8
%111 = icmp sgt i32 %110, 0
br i1 %111, label %112, label %116
112: ; preds = %106
%113 = load i32, i32* @STDOUT_FILENO
%114 = getelementptr inbounds [188 x i8], [188 x i8]* %10, i64 0, i64 0
%115 = call i32 @write(i32 %113, i8* %114, i32 188)
br label %116
116: ; preds = %112, %106
br label %117
117: ; preds = %116
br label %122
118: ; preds = %84
%119 = load i32, i32* @STDOUT_FILENO
%120 = getelementptr inbounds [188 x i8], [188 x i8]* %10, i64 0, i64 0
%121 = call i32 @write(i32 %119, i8* %120, i32 188)
br label %122
122: ; preds = %118, %117
br label %123
123: ; preds = %122, %81, %78
br label %124
124: ; preds = %123, %77
br label %56
125: ; preds = %100, %42, %35, %21
%126 = load i32, i32* %3
ret i32 %126
}

LLVM IR (-O2):
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [20 x i8] c"Can't open file %s\0A\00"
@.str.1 = [57 x i8] c"Usage: 'tsorts inputfile1.ts inputfile2.ts > output.ts'\0A\00"
@.str.2 = [97 x i8] c"ts packets are read from inputfile2.ts if they are not immediatly available from inputfile1.ts'\0A\00"
@F_SETFL = global i32 0
@F_GETFL = global i32 0
@O_NONBLOCK = global i32 0
@STDOUT_FILENO = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [188 x i8]
%4 = getelementptr inbounds [188 x i8], [188 x i8]* %3, i64 0, i64 0
%5 = icmp sgt i32 %0, 2
br i1 %5, label %6, label %26
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = load i32, i32* @O_RDONLY
%10 = tail call i32 @open(i8* %8, i32 %9)
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %6
%13 = load i32, i32* @stderr
%14 = load i8*, i8** %7
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %14)
br label %75
16: ; preds = %6
%17 = getelementptr inbounds i8*, i8** %1, i64 2
%18 = load i8*, i8** %17
%19 = load i32, i32* @O_RDONLY
%20 = tail call i32 @open(i8* %18, i32 %19)
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %31
22: ; preds = %16
%23 = load i32, i32* @stderr
%24 = load i8*, i8** %17
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %24)
br label %75
26: ; preds = %2
%27 = load i32, i32* @stderr
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.2, i64 0, i64 0))
br label %75
31: ; preds = %16
%32 = load i32, i32* @F_SETFL
%33 = load i32, i32* @F_GETFL
%34 = tail call i32 @fcntl(i32 %10, i32 %33, i32 0)
%35 = load i32, i32* @O_NONBLOCK
%36 = or i32 %35, %34
%37 = tail call i32 @fcntl(i32 %10, i32 %32, i32 %36)
br label %38
38: ; preds = %69, %31
%39 = phi i32 [ %20, %31 ], [ %70, %69 ]
br label %40
40: ; preds = %38, %49
%41 = phi i32 [ 0, %38 ], [ %50, %49 ]
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [188 x i8], [188 x i8]* %3, i64 0, i64 %42
%44 = sub nsw i32 188, %41
%45 = icmp eq i32 %41, 0
br label %46
46: ; preds = %40, %52
%47 = call i32 @read(i32 %10, i8* %43, i32 %44)
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = add nsw i32 %47, %41
%51 = icmp eq i32 %50, 188
br i1 %51, label %71, label %40
52: ; preds = %46
br i1 %45, label %53, label %46
53: ; preds = %52
%54 = call i32 @read(i32 %39, i8* %4, i32 188)
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %71
56: ; preds = %53
%57 = tail call i32 @close(i32 %39)
%58 = load i8*, i8** %17
%59 = load i32, i32* @O_RDONLY
%60 = tail call i32 @open(i8* %58, i32 %59)
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %66
62: ; preds = %56
%63 = load i32, i32* @stderr
%64 = load i8*, i8** %17
%65 = tail call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %64)
br label %75
66: ; preds = %56
%67 = call i32 @read(i32 %60, i8* %4, i32 188)
%68 = icmp sgt i32 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %66, %71
%70 = phi i32 [ %72, %71 ], [ %60, %66 ]
br label %38
71: ; preds = %49, %53, %66
%72 = phi i32 [ %60, %66 ], [ %39, %53 ], [ %39, %49 ]
%73 = load i32, i32* @STDOUT_FILENO
%74 = call i32 @write(i32 %73, i8* %4, i32 188)
br label %69
75: ; preds = %62, %26, %22, %12
ret i32 0
}