#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 /*<<< orphan*/ fputc(int, int /*<<< orphan*/ *);
void write_pcx(FILE *pcxfile, unsigned char *data, int width, int height,
               unsigned char *palette) {
  int i;
  fputc(0x0a, pcxfile);
  fputc(5, pcxfile);
  fputc(1, pcxfile);
  fputc(8, pcxfile);
  fputc(0, pcxfile);
  fputc(0, pcxfile);
  fputc(0, pcxfile);
  fputc(0, pcxfile);
  fputc((width - 1) & 0xff, pcxfile);
  fputc(((width - 1) >> 8) & 0xff, pcxfile);
  fputc((height - 1) & 0xff, pcxfile);
  fputc(((height - 1) >> 8) & 0xff, pcxfile);
  fputc(width & 0xff, pcxfile);
  fputc((width >> 8) & 0xff, pcxfile);
  fputc(height & 0xff, pcxfile);
  fputc((height >> 8) & 0xff, pcxfile);
  for (i = 0; i < 48; i++)
    fputc(0, pcxfile);
  fputc(0, pcxfile);
  fputc(1, pcxfile);
  fputc(width & 0xff, pcxfile);
  fputc((width >> 8) & 0xff, pcxfile);
  fputc(1 & 0xff, pcxfile);
  fputc((1 >> 8) & 0xff, pcxfile);
  for (i = 0; i < 58; i++)
    fputc(0, pcxfile);
  for (i = 0; i < width * height; i++)
    if ((*data & 0xc0) != 0xc0)
      fputc(*data++, pcxfile);
    else {
      fputc(0xc1, pcxfile);
      fputc(*data++, pcxfile);
    }
  fputc(0x0c, pcxfile);
  if (palette)
    for (i = 0; i < 768; i++)
      fputc(*palette++, pcxfile);
  else
    for (i = 0; i < 768; i++)
      fputc(i / 3, pcxfile);
}


x86 assembly (clang, -O0):
<write_pcx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
mov    $0x5,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
mov    $0x1,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
mov    $0x8,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
mov    -0x14(%rbp),%edi
sub    $0x1,%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x14(%rbp),%edi
sub    $0x1,%edi
sar    $0x8,%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x18(%rbp),%edi
sub    $0x1,%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x18(%rbp),%edi
sub    $0x1,%edi
sar    $0x8,%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x14(%rbp),%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x14(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x18(%rbp),%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x18(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x30,-0x24(%rbp)
jge    1260 <write_pcx+0x150>
mov    -0x8(%rbp),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    123d <write_pcx+0x12d>
mov    -0x8(%rbp),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
mov    $0x1,%edi
call   1030 <fputc@plt>
mov    -0x14(%rbp),%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x14(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
mov    $0x1,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3a,-0x24(%rbp)
jge    12e3 <write_pcx+0x1d3>
mov    -0x8(%rbp),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12c0 <write_pcx+0x1b0>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x14(%rbp),%ecx
imul   -0x18(%rbp),%ecx
cmp    %ecx,%eax
jge    136f <write_pcx+0x25f>
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
and    $0xc0,%eax
cmp    $0xc0,%eax
je     1333 <write_pcx+0x223>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movzbl (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
jmp    135c <write_pcx+0x24c>
mov    -0x8(%rbp),%rsi
mov    $0xc1,%edi
call   1030 <fputc@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movzbl (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
jmp    1361 <write_pcx+0x251>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12ea <write_pcx+0x1da>
mov    -0x8(%rbp),%rsi
mov    $0xc,%edi
call   1030 <fputc@plt>
cmpq   $0x0,-0x20(%rbp)
je     13ca <write_pcx+0x2ba>
movl   $0x0,-0x24(%rbp)
cmpl   $0x300,-0x24(%rbp)
jge    13c5 <write_pcx+0x2b5>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movzbl (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    138f <write_pcx+0x27f>
jmp    1407 <write_pcx+0x2f7>
movl   $0x0,-0x24(%rbp)
cmpl   $0x300,-0x24(%rbp)
jge    1402 <write_pcx+0x2f2>
mov    -0x24(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    13d1 <write_pcx+0x2c1>
jmp    1407 <write_pcx+0x2f7>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_pcx>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r8,%r14
mov    %ecx,%r12d
mov    %edx,%r13d
mov    %rsi,%r15
mov    %rdi,%rbx
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    $0x5,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    $0x8,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
lea    -0x1(%r13),%eax
movzbl %al,%edi
mov    %eax,%ebp
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %ebp,%eax
movzbl %ah,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %r12,%rbp
lea    -0x1(%r12),%eax
movzbl %al,%edi
mov    %eax,%r12d
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %r12d,%eax
movzbl %ah,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
movzbl %r13b,%r12d
mov    %r12d,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %r13,%rax
mov    %r13,0x10(%rsp)
movzbl %ah,%edi
mov    %edi,0xc(%rsp)
mov    %rbx,%rsi
call   1030 <fputc@plt>
movzbl %bpl,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %rbp,%rax
mov    %rbp,%r13
movzbl %ah,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    $0x30,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
add    $0xffffffff,%ebp
jne    1220 <write_pcx+0x110>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %r12d,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    $0x3a,%ebp
nopl   0x0(%rax)
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
add    $0xffffffff,%ebp
jne    1280 <write_pcx+0x170>
imul   0x10(%rsp),%r13d
test   %r13d,%r13d
jle    12e2 <write_pcx+0x1d2>
mov    %r13d,%r12d
xor    %ebp,%ebp
jmp    12c1 <write_pcx+0x1b1>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rsi
call   1030 <fputc@plt>
add    $0x1,%rbp
cmp    %ebp,%r12d
je     12e2 <write_pcx+0x1d2>
movzbl (%r15,%rbp,1),%edi
mov    %edi,%eax
not    %eax
test   $0xc0,%al
jne    12b0 <write_pcx+0x1a0>
mov    $0xc1,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
movzbl (%r15,%rbp,1),%edi
jmp    12b0 <write_pcx+0x1a0>
mov    $0xc,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
test   %r14,%r14
je     131b <write_pcx+0x20b>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movzbl (%r14,%rbp,1),%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
add    $0x1,%rbp
cmp    $0x300,%ebp
jne    1300 <write_pcx+0x1f0>
jmp    133f <write_pcx+0x22f>
xor    %ebp,%ebp
nopl   (%rax)
movzwl %bp,%eax
imul   $0xaaab,%eax,%edi
shr    $0x11,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
add    $0x1,%ebp
cmp    $0x300,%ebp
jne    1320 <write_pcx+0x210>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @write_pcx(i32* %0, i8* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32
store i32* %0, i32** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%12 = load i32*, i32** %6
%13 = call i32 @fputc(i32 10, i32* %12)
%14 = load i32*, i32** %6
%15 = call i32 @fputc(i32 5, i32* %14)
%16 = load i32*, i32** %6
%17 = call i32 @fputc(i32 1, i32* %16)
%18 = load i32*, i32** %6
%19 = call i32 @fputc(i32 8, i32* %18)
%20 = load i32*, i32** %6
%21 = call i32 @fputc(i32 0, i32* %20)
%22 = load i32*, i32** %6
%23 = call i32 @fputc(i32 0, i32* %22)
%24 = load i32*, i32** %6
%25 = call i32 @fputc(i32 0, i32* %24)
%26 = load i32*, i32** %6
%27 = call i32 @fputc(i32 0, i32* %26)
%28 = load i32, i32* %8
%29 = sub nsw i32 %28, 1
%30 = and i32 %29, 255
%31 = load i32*, i32** %6
%32 = call i32 @fputc(i32 %30, i32* %31)
%33 = load i32, i32* %8
%34 = sub nsw i32 %33, 1
%35 = ashr i32 %34, 8
%36 = and i32 %35, 255
%37 = load i32*, i32** %6
%38 = call i32 @fputc(i32 %36, i32* %37)
%39 = load i32, i32* %9
%40 = sub nsw i32 %39, 1
%41 = and i32 %40, 255
%42 = load i32*, i32** %6
%43 = call i32 @fputc(i32 %41, i32* %42)
%44 = load i32, i32* %9
%45 = sub nsw i32 %44, 1
%46 = ashr i32 %45, 8
%47 = and i32 %46, 255
%48 = load i32*, i32** %6
%49 = call i32 @fputc(i32 %47, i32* %48)
%50 = load i32, i32* %8
%51 = and i32 %50, 255
%52 = load i32*, i32** %6
%53 = call i32 @fputc(i32 %51, i32* %52)
%54 = load i32, i32* %8
%55 = ashr i32 %54, 8
%56 = and i32 %55, 255
%57 = load i32*, i32** %6
%58 = call i32 @fputc(i32 %56, i32* %57)
%59 = load i32, i32* %9
%60 = and i32 %59, 255
%61 = load i32*, i32** %6
%62 = call i32 @fputc(i32 %60, i32* %61)
%63 = load i32, i32* %9
%64 = ashr i32 %63, 8
%65 = and i32 %64, 255
%66 = load i32*, i32** %6
%67 = call i32 @fputc(i32 %65, i32* %66)
store i32 0, i32* %11
br label %68
68: ; preds = %74, %5
%69 = load i32, i32* %11
%70 = icmp slt i32 %69, 48
br i1 %70, label %71, label %77
71: ; preds = %68
%72 = load i32*, i32** %6
%73 = call i32 @fputc(i32 0, i32* %72)
br label %74
74: ; preds = %71
%75 = load i32, i32* %11
%76 = add nsw i32 %75, 1
store i32 %76, i32* %11
br label %68
77: ; preds = %68
%78 = load i32*, i32** %6
%79 = call i32 @fputc(i32 0, i32* %78)
%80 = load i32*, i32** %6
%81 = call i32 @fputc(i32 1, i32* %80)
%82 = load i32, i32* %8
%83 = and i32 %82, 255
%84 = load i32*, i32** %6
%85 = call i32 @fputc(i32 %83, i32* %84)
%86 = load i32, i32* %8
%87 = ashr i32 %86, 8
%88 = and i32 %87, 255
%89 = load i32*, i32** %6
%90 = call i32 @fputc(i32 %88, i32* %89)
%91 = load i32*, i32** %6
%92 = call i32 @fputc(i32 1, i32* %91)
%93 = load i32*, i32** %6
%94 = call i32 @fputc(i32 0, i32* %93)
store i32 0, i32* %11
br label %95
95: ; preds = %101, %77
%96 = load i32, i32* %11
%97 = icmp slt i32 %96, 58
br i1 %97, label %98, label %104
98: ; preds = %95
%99 = load i32*, i32** %6
%100 = call i32 @fputc(i32 0, i32* %99)
br label %101
101: ; preds = %98
%102 = load i32, i32* %11
%103 = add nsw i32 %102, 1
store i32 %103, i32* %11
br label %95
104: ; preds = %95
store i32 0, i32* %11
br label %105
105: ; preds = %134, %104
%106 = load i32, i32* %11
%107 = load i32, i32* %8
%108 = load i32, i32* %9
%109 = mul nsw i32 %107, %108
%110 = icmp slt i32 %106, %109
br i1 %110, label %111, label %137
111: ; preds = %105
%112 = load i8*, i8** %7
%113 = load i8, i8* %112
%114 = zext i8 %113 to i32
%115 = and i32 %114, 192
%116 = icmp ne i32 %115, 192
br i1 %116, label %117, label %124
117: ; preds = %111
%118 = load i8*, i8** %7
%119 = getelementptr inbounds i8, i8* %118, i32 1
store i8* %119, i8** %7
%120 = load i8, i8* %118
%121 = zext i8 %120 to i32
%122 = load i32*, i32** %6
%123 = call i32 @fputc(i32 %121, i32* %122)
br label %133
124: ; preds = %111
%125 = load i32*, i32** %6
%126 = call i32 @fputc(i32 193, i32* %125)
%127 = load i8*, i8** %7
%128 = getelementptr inbounds i8, i8* %127, i32 1
store i8* %128, i8** %7
%129 = load i8, i8* %127
%130 = zext i8 %129 to i32
%131 = load i32*, i32** %6
%132 = call i32 @fputc(i32 %130, i32* %131)
br label %133
133: ; preds = %124, %117
br label %134
134: ; preds = %133
%135 = load i32, i32* %11
%136 = add nsw i32 %135, 1
store i32 %136, i32* %11
br label %105
137: ; preds = %105
%138 = load i32*, i32** %6
%139 = call i32 @fputc(i32 12, i32* %138)
%140 = load i8*, i8** %10
%141 = icmp ne i8* %140, null
br i1 %141, label %142, label %157
142: ; preds = %137
store i32 0, i32* %11
br label %143
143: ; preds = %153, %142
%144 = load i32, i32* %11
%145 = icmp slt i32 %144, 768
br i1 %145, label %146, label %156
146: ; preds = %143
%147 = load i8*, i8** %10
%148 = getelementptr inbounds i8, i8* %147, i32 1
store i8* %148, i8** %10
%149 = load i8, i8* %147
%150 = zext i8 %149 to i32
%151 = load i32*, i32** %6
%152 = call i32 @fputc(i32 %150, i32* %151)
br label %153
153: ; preds = %146
%154 = load i32, i32* %11
%155 = add nsw i32 %154, 1
store i32 %155, i32* %11
br label %143
156: ; preds = %143
br label %170
157: ; preds = %137
store i32 0, i32* %11
br label %158
158: ; preds = %166, %157
%159 = load i32, i32* %11
%160 = icmp slt i32 %159, 768
br i1 %160, label %161, label %169
161: ; preds = %158
%162 = load i32, i32* %11
%163 = sdiv i32 %162, 3
%164 = load i32*, i32** %6
%165 = call i32 @fputc(i32 %163, i32* %164)
br label %166
166: ; preds = %161
%167 = load i32, i32* %11
%168 = add nsw i32 %167, 1
store i32 %168, i32* %11
br label %158
169: ; preds = %158
br label %170
170: ; preds = %169, %156
ret void
}

LLVM IR (-O2):
define void @write_pcx(i32* %0, i8* nocapture %1, i32 %2, i32 %3, i8* %4) {
%6 = tail call i32 @fputc(i32 10, i32* %0)
%7 = tail call i32 @fputc(i32 5, i32* %0)
%8 = tail call i32 @fputc(i32 1, i32* %0)
%9 = tail call i32 @fputc(i32 8, i32* %0)
%10 = tail call i32 @fputc(i32 0, i32* %0)
%11 = tail call i32 @fputc(i32 0, i32* %0)
%12 = tail call i32 @fputc(i32 0, i32* %0)
%13 = tail call i32 @fputc(i32 0, i32* %0)
%14 = add nsw i32 %2, -1
%15 = and i32 %14, 255
%16 = tail call i32 @fputc(i32 %15, i32* %0)
%17 = lshr i32 %14, 8
%18 = and i32 %17, 255
%19 = tail call i32 @fputc(i32 %18, i32* %0)
%20 = add nsw i32 %3, -1
%21 = and i32 %20, 255
%22 = tail call i32 @fputc(i32 %21, i32* %0)
%23 = lshr i32 %20, 8
%24 = and i32 %23, 255
%25 = tail call i32 @fputc(i32 %24, i32* %0)
%26 = and i32 %2, 255
%27 = tail call i32 @fputc(i32 %26, i32* %0)
%28 = lshr i32 %2, 8
%29 = and i32 %28, 255
%30 = tail call i32 @fputc(i32 %29, i32* %0)
%31 = and i32 %3, 255
%32 = tail call i32 @fputc(i32 %31, i32* %0)
%33 = lshr i32 %3, 8
%34 = and i32 %33, 255
%35 = tail call i32 @fputc(i32 %34, i32* %0)
br label %36
36: ; preds = %5, %36
%37 = phi i32 [ 0, %5 ], [ %39, %36 ]
%38 = tail call i32 @fputc(i32 0, i32* %0)
%39 = add nuw nsw i32 %37, 1
%40 = icmp eq i32 %39, 48
br i1 %40, label %41, label %36
41: ; preds = %36
%42 = tail call i32 @fputc(i32 0, i32* %0)
%43 = tail call i32 @fputc(i32 1, i32* %0)
%44 = tail call i32 @fputc(i32 %26, i32* %0)
%45 = tail call i32 @fputc(i32 %29, i32* %0)
%46 = tail call i32 @fputc(i32 1, i32* %0)
%47 = tail call i32 @fputc(i32 0, i32* %0)
br label %51
48: ; preds = %51
%49 = mul i32 %3, %2
%50 = icmp sgt i32 %49, 0
br i1 %50, label %56, label %73
51: ; preds = %41, %51
%52 = phi i32 [ 0, %41 ], [ %54, %51 ]
%53 = tail call i32 @fputc(i32 0, i32* %0)
%54 = add nuw nsw i32 %52, 1
%55 = icmp eq i32 %54, 58
br i1 %55, label %48, label %51
56: ; preds = %48, %67
%57 = phi i32 [ %71, %67 ], [ 0, %48 ]
%58 = phi i8* [ %70, %67 ], [ %1, %48 ]
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = and i32 %60, 192
%62 = icmp eq i32 %61, 192
br i1 %62, label %63, label %67
63: ; preds = %56
%64 = tail call i32 @fputc(i32 193, i32* %0)
%65 = load i8, i8* %58
%66 = zext i8 %65 to i32
br label %67
67: ; preds = %56, %63
%68 = phi i32 [ %66, %63 ], [ %60, %56 ]
%69 = tail call i32 @fputc(i32 %68, i32* %0)
%70 = getelementptr inbounds i8, i8* %58, i64 1
%71 = add nuw nsw i32 %57, 1
%72 = icmp eq i32 %71, %49
br i1 %72, label %73, label %56
73: ; preds = %67, %48
%74 = tail call i32 @fputc(i32 12, i32* %0)
%75 = icmp eq i8* %4, null
br i1 %75, label %85, label %76
76: ; preds = %73, %76
%77 = phi i32 [ %83, %76 ], [ 0, %73 ]
%78 = phi i8* [ %79, %76 ], [ %4, %73 ]
%79 = getelementptr inbounds i8, i8* %78, i64 1
%80 = load i8, i8* %78
%81 = zext i8 %80 to i32
%82 = tail call i32 @fputc(i32 %81, i32* %0)
%83 = add nuw nsw i32 %77, 1
%84 = icmp eq i32 %83, 768
br i1 %84, label %93, label %76
85: ; preds = %73, %85
%86 = phi i32 [ %91, %85 ], [ 0, %73 ]
%87 = trunc i32 %86 to i16
%88 = udiv i16 %87, 3
%89 = zext i16 %88 to i32
%90 = tail call i32 @fputc(i32 %89, i32* %0)
%91 = add nuw nsw i32 %86, 1
%92 = icmp eq i32 %91, 768
br i1 %92, label %93, label %85
93: ; preds = %76, %85
ret void
}