#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 /*<<< orphan*/ FILE;

/* Variables and functions */
int BUFSIZ;
int EOF;
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int rle_one(FILE *ansi, FILE *output) {
  int ch, oldchar, byte_count = 0, run, elements;
  char temp_string[BUFSIZ];
  fprintf(output, "new_logo:\n");
loop_w_read:
  ch = fgetc(ansi);
loop_no_read:
  if (ch == EOF)
    goto finished;
  if (ch == 27) {
    fprintf(output, "\t.byte\t27, ");
    byte_count++;
    ch = fgetc(ansi);
    run = 0;
    elements = 0;
    do {
      ch = fgetc(ansi);
      elements++;
      do {
        temp_string[run] = ch;
        run++;
        ch = fgetc(ansi);
      } while ((ch >= '0') && (ch <= '9'));
      byte_count++;
      temp_string[run] = ',';
      run++;
      temp_string[run] = ' ';
      run++;
    } while (ch == ';');
    temp_string[run] = '\0';
    fprintf(output, "%i, %s '%c'\n", elements, temp_string, ch);
    byte_count += 2;
  } else {
    run = 1;
  run_loop:
    oldchar = ch;
    ch = fgetc(ansi);
    if (ch == oldchar) {
      run++;
      goto run_loop;
    }
    fprintf(output, "\t.byte\t");
    if ((oldchar == 0x5c) || (oldchar == 0x27) || (oldchar == 0x22) ||
        (oldchar < 0x20) || (oldchar > 0x7e)) {
      fprintf(output, "%i", oldchar);
    } else
      fprintf(output, "'%c'", oldchar);
    fprintf(output, ", %i\n", run);
    byte_count += 2;
    goto loop_no_read;
  }
  goto loop_w_read;
finished:
  fprintf(output, "\t.byte\t0,0\n");
  byte_count += 2;
  return byte_count;
}


x86 assembly (clang, -O0):
<rle_one>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    0x2e9a(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe92(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2e5d(%rip),%rcx
cmp    (%rcx),%eax
jne    1198 <rle_one+0x78>
jmp    136f <rle_one+0x24f>
cmpl   $0x1b,-0x14(%rbp)
jne    12a1 <rle_one+0x181>
mov    -0x10(%rbp),%rdi
lea    0xe5e(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x14(%rbp),%ecx
mov    %cl,%dl
movslq -0x20(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x14(%rbp)
xor    %eax,%eax
cmpl   $0x30,-0x14(%rbp)
mov    %al,-0x41(%rbp)
jl     122a <rle_one+0x10a>
cmpl   $0x39,-0x14(%rbp)
setle  %al
mov    %al,-0x41(%rbp)
mov    -0x41(%rbp),%al
test   $0x1,%al
jne    11ec <rle_one+0xcc>
mov    -0x40(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x1c(%rbp)
movslq -0x20(%rbp),%rcx
movb   $0x2c,(%rax,%rcx,1)
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x20(%rbp)
movslq -0x20(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x3b,-0x14(%rbp)
je     11d7 <rle_one+0xb7>
mov    -0x40(%rbp),%rcx
movslq -0x20(%rbp),%rax
movb   $0x0,(%rcx,%rax,1)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%edx
mov    -0x14(%rbp),%r8d
lea    0xd8b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    136a <rle_one+0x24a>
movl   $0x1,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jne    12d4 <rle_one+0x1b4>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12a8 <rle_one+0x188>
mov    -0x10(%rbp),%rdi
lea    0xd45(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
cmpl   $0x5c,-0x18(%rbp)
je     1318 <rle_one+0x1f8>
cmpl   $0x27,-0x18(%rbp)
je     1318 <rle_one+0x1f8>
cmpl   $0x22,-0x18(%rbp)
je     1318 <rle_one+0x1f8>
cmpl   $0x20,-0x18(%rbp)
jl     1318 <rle_one+0x1f8>
cmpl   $0x7e,-0x18(%rbp)
jle    1332 <rle_one+0x212>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%edx
lea    0xd06(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1347 <rle_one+0x227>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%edx
lea    0xcef(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xcdf(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    1181 <rle_one+0x61>
jmp    1175 <rle_one+0x55>
mov    -0x10(%rbp),%rdi
lea    0xcc0(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x30(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rle_one>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r12
mov    %rdi,%r15
mov    0x2e8a(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
lea    0xe98(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    %r15,%rdi
call   1030 <fgetc@plt>
mov    %eax,%edx
mov    0x2e5d(%rip),%rax
xor    %ecx,%ecx
cmp    (%rax),%edx
jne    11c0 <rle_one+0x90>
lea    0xea2(%rip),%rdi
mov    %ecx,%ebx
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
add    $0x2,%ebx
mov    %ebx,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
mov    %rbx,-0x40(%rbp)
mov    %r12,-0x48(%rbp)
jmp    121d <rle_one+0xed>
lea    0xe5c(%rip),%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r12,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %r12,%rdi
lea    0xe3e(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    -0x30(%rbp),%ecx
add    $0x2,%ecx
mov    %r13d,%edx
mov    0x2dd8(%rip),%rax
cmp    (%rax),%r13d
mov    -0x40(%rbp),%rbx
je     1191 <rle_one+0x61>
cmp    $0x1b,%edx
jne    1330 <rle_one+0x200>
mov    %ecx,%r14d
mov    $0xb,%esi
mov    $0x1,%edx
lea    0xdd1(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    %r15,%rdi
call   1030 <fgetc@plt>
mov    %r14d,%esi
xor    %r14d,%r14d
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %edx,-0x34(%rbp)
mov    %esi,%eax
mov    %rax,-0x30(%rbp)
mov    %r15,%rdi
call   1030 <fgetc@plt>
movslq %r14d,%r12
mov    %r12,%r13
shl    $0x20,%r13
lea    0x2(%r12),%r14d
add    %rbx,%r12
movabs $0x100000000,%rbx
nopl   (%rax)
mov    %al,(%r12)
mov    %r15,%rdi
call   1030 <fgetc@plt>
lea    -0x30(%rax),%ecx
add    %rbx,%r13
add    $0x1,%r14d
add    $0x1,%r12
cmp    $0xa,%ecx
jb     1290 <rle_one+0x160>
mov    -0x30(%rbp),%rdi
lea    0x1(%rdi),%esi
mov    -0x34(%rbp),%edx
add    $0x1,%edx
mov    %r13,%rcx
sar    $0x20,%rcx
mov    %rbx,%r8
mov    -0x40(%rbp),%rbx
movb   $0x2c,(%rbx,%rcx,1)
add    %r8,%r13
sar    $0x20,%r13
movb   $0x20,(%rbx,%r13,1)
cmp    $0x3b,%eax
je     1260 <rle_one+0x130>
movslq %r14d,%rcx
movb   $0x0,(%rbx,%rcx,1)
mov    -0x48(%rbp),%r12
mov    %rdi,%r14
mov    %r12,%rdi
lea    0xd20(%rip),%rsi
mov    %rbx,%rcx
mov    %eax,%r8d
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x4,%r14d
mov    %r15,%rdi
call   1030 <fgetc@plt>
mov    %eax,%edx
mov    %r14d,%ecx
mov    0x2ccc(%rip),%rax
cmp    (%rax),%edx
jne    121d <rle_one+0xed>
jmp    1191 <rle_one+0x61>
nopl   0x0(%rax)
mov    %ecx,-0x30(%rbp)
xor    %r14d,%r14d
mov    %rdx,%rbx
nopl   0x0(%rax)
mov    %r15,%rdi
call   1030 <fgetc@plt>
add    $0x1,%r14d
cmp    %ebx,%eax
je     1340 <rle_one+0x210>
mov    %eax,%r13d
mov    $0x7,%esi
mov    $0x1,%edx
lea    0xcc0(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
lea    -0x7f(%rbx),%eax
lea    0xcb6(%rip),%rsi
cmp    $0xffffffa1,%eax
jb     11e0 <rle_one+0xb0>
lea    -0x22(%rbx),%eax
cmp    $0x3a,%eax
ja     11cc <rle_one+0x9c>
movabs $0x400000000000021,%rcx
bt     %rax,%rcx
lea    0xc8c(%rip),%rsi
jb     11e0 <rle_one+0xb0>
jmp    11cc <rle_one+0x9c>

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

LLVM IR (-O2):
@BUFSIZ = global i32 0
@.str = [11 x i8] c"new_logo:\0A\00"
@EOF = global i32 0
@.str.1 = [12 x i8] c"\09.byte\0927, \00"
@.str.2 = [13 x i8] c"%i, %s '%c'\0A\00"
@.str.3 = [8 x i8] c"\09.byte\09\00"
@.str.4 = [3 x i8] c"%i\00"
@.str.5 = [5 x i8] c"'%c'\00"
@.str.6 = [6 x i8] c", %i\0A\00"
@.str.7 = [12 x i8] c"\09.byte\090,0\0A\00"
define i32 @rle_one(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* @BUFSIZ
%4 = zext i32 %3 to i64
%5 = alloca i8, i64 %4
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i64 10, i64 1, i32* %1)
%7 = call i32 @fgetc(i32* %0)
%8 = load i32, i32* @EOF
%9 = icmp eq i32 %7, %8
br i1 %9, label %74, label %10
10: ; preds = %2, %71
%11 = phi i32 [ %72, %71 ], [ %7, %2 ]
%12 = phi i32 [ %73, %71 ], [ 0, %2 ]
%13 = icmp eq i32 %11, 27
br i1 %13, label %14, label %53
14: ; preds = %10
%15 = call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i64 11, i64 1, i32* %1)
%16 = call i32 @fgetc(i32* %0)
br label %17
17: ; preds = %32, %14
%18 = phi i32 [ 0, %14 ], [ %43, %32 ]
%19 = phi i32 [ 0, %14 ], [ %34, %32 ]
%20 = phi i32 [ %12, %14 ], [ %33, %32 ]
%21 = call i32 @fgetc(i32* %0)
%22 = sext i32 %18 to i64
br label %23
23: ; preds = %23, %17
%24 = phi i64 [ %28, %23 ], [ %22, %17 ]
%25 = phi i32 [ %29, %23 ], [ %21, %17 ]
%26 = trunc i32 %25 to i8
%27 = getelementptr inbounds i8, i8* %5, i64 %24
store i8 %26, i8* %27
%28 = add i64 %24, 1
%29 = call i32 @fgetc(i32* %0)
%30 = add i32 %29, -48
%31 = icmp ult i32 %30, 10
br i1 %31, label %23, label %32
32: ; preds = %23
%33 = add nsw i32 %20, 1
%34 = add nuw nsw i32 %19, 1
%35 = trunc i64 %24 to i32
%36 = shl i64 %28, 32
%37 = ashr exact i64 %36, 32
%38 = getelementptr inbounds i8, i8* %5, i64 %37
store i8 44, i8* %38
%39 = shl i64 %24, 32
%40 = add i64 %39, 8589934592
%41 = ashr exact i64 %40, 32
%42 = getelementptr inbounds i8, i8* %5, i64 %41
store i8 32, i8* %42
%43 = add nsw i32 %35, 3
%44 = icmp eq i32 %29, 59
br i1 %44, label %17, label %45
45: ; preds = %32
%46 = sext i32 %43 to i64
%47 = getelementptr inbounds i8, i8* %5, i64 %46
store i8 0, i8* %47
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %34, i8* %5, i32 %29)
%49 = add nsw i32 %20, 4
%50 = call i32 @fgetc(i32* %0)
%51 = load i32, i32* @EOF
%52 = icmp eq i32 %50, %51
br i1 %52, label %74, label %71
53: ; preds = %10, %53
%54 = phi i32 [ %57, %53 ], [ 1, %10 ]
%55 = call i32 @fgetc(i32* %0)
%56 = icmp eq i32 %55, %11
%57 = add nuw nsw i32 %54, 1
br i1 %56, label %53, label %58
58: ; preds = %53
%59 = call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 7, i64 1, i32* %1)
%60 = add i32 %11, -127
%61 = icmp ult i32 %60, -95
br i1 %61, label %64, label %62
62: ; preds = %58
switch i32 %11, label %63 [
i32 92, label %64
i32 39, label %64
i32 34, label %64
]
63: ; preds = %62
br label %64
64: ; preds = %58, %62, %62, %62, %63
%65 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %63 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), %62 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), %62 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), %62 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), %58 ]
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* %65, i32 %11)
%67 = call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %54)
%68 = add nsw i32 %12, 2
%69 = load i32, i32* @EOF
%70 = icmp eq i32 %55, %69
br i1 %70, label %74, label %71
71: ; preds = %64, %45
%72 = phi i32 [ %55, %64 ], [ %50, %45 ]
%73 = phi i32 [ %68, %64 ], [ %49, %45 ]
br label %10
74: ; preds = %45, %64, %2
%75 = phi i32 [ 0, %2 ], [ %49, %45 ], [ %68, %64 ]
%76 = call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i64 11, i64 1, i32* %1)
%77 = add nsw i32 %75, 2
ret i32 %77
}