#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*/ printf(char *, ...);
int main(int argc, char **argv) {
  int line = 0x41;
  for (int row = 0; row < 25; row++) {
    if (line == 255) {
      printf("\tdc.w $ffdf,$fffe\n");
      line = line - 255;
    }
    printf("\tdc.w $%02x07,$fffe\n\tdc.w COLOR06,$3ae\n", line++);
    printf("\tdc.w $%02x07,$fffe\n\tdc.w COLOR06,$5ce\n", line++);
    printf("\tdc.w $%02x07,$fffe\n\tdc.w COLOR06,$7dd\n", line++);
    printf("\tdc.w $%02x07,$fffe\n\tdc.w COLOR06,$9ec\n", line++);
    printf("\tdc.w $%02x07,$fffe\n\tdc.w COLOR06,$bea\n", line++);
    printf("\tdc.w $%02x07,$fffe\n\tdc.w COLOR06,$de8\n", line++);
    printf("\tdc.w $%02x07,$fffe\n\tdc.w COLOR06,$ec6\n", line++);
    line += 3;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x41,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x19,-0x18(%rbp)
jge    122a <main+0x11a>
cmpl   $0xff,-0x14(%rbp)
jne    1164 <main+0x54>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
sub    $0xff,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xef7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1134 <main+0x24>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x41,%ebx
mov    $0x19,%r14d
lea    0xf8b(%rip),%r15
lea    0xfac(%rip),%r12
jmp    11d9 <main+0xb9>
nopl   0x0(%rax)
lea    0x1(%rbx),%r13d
lea    0xea5(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2(%rbx),%ebp
lea    0xeba(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3(%rbx),%r13d
lea    0xecd(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rbx),%ebp
lea    0xee2(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x5(%rbx),%r13d
lea    0xef5(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x6(%rbx),%ebp
mov    %r15,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xa,%ebx
add    $0xffffffff,%r14d
je     11f8 <main+0xd8>
cmp    $0xff,%ebx
jne    1150 <main+0x30>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
xor    %ebx,%ebx
jmp    1150 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"\09dc.w $ffdf,$fffe\0A\00"
@.str.1 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$3ae\0A\00"
@.str.2 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$5ce\0A\00"
@.str.3 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$7dd\0A\00"
@.str.4 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$9ec\0A\00"
@.str.5 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$bea\0A\00"
@.str.6 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$de8\0A\00"
@.str.7 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$ec6\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 65, i32* %6
store i32 0, i32* %7
br label %8
8: ; preds = %42, %2
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 25
br i1 %10, label %11, label %45
11: ; preds = %8
%12 = load i32, i32* %6
%13 = icmp eq i32 %12, 255
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* %6
%17 = sub nsw i32 %16, 255
store i32 %17, i32* %6
br label %18
18: ; preds = %14, %11
%19 = load i32, i32* %6
%20 = add nsw i32 %19, 1
store i32 %20, i32* %6
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%22 = load i32, i32* %6
%23 = add nsw i32 %22, 1
store i32 %23, i32* %6
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%25 = load i32, i32* %6
%26 = add nsw i32 %25, 1
store i32 %26, i32* %6
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%28 = load i32, i32* %6
%29 = add nsw i32 %28, 1
store i32 %29, i32* %6
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 1
store i32 %32, i32* %6
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i32 %31)
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 1
store i32 %35, i32* %6
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i32 %34)
%37 = load i32, i32* %6
%38 = add nsw i32 %37, 1
store i32 %38, i32* %6
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 %37)
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 3
store i32 %41, i32* %6
br label %42
42: ; preds = %18
%43 = load i32, i32* %7
%44 = add nsw i32 %43, 1
store i32 %44, i32* %7
br label %8
45: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$3ae\0A\00"
@.str.2 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$5ce\0A\00"
@.str.3 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$7dd\0A\00"
@.str.4 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$9ec\0A\00"
@.str.5 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$bea\0A\00"
@.str.6 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$de8\0A\00"
@.str.7 = [40 x i8] c"\09dc.w $%02x07,$fffe\0A\09dc.w COLOR06,$ec6\0A\00"
@str = [18 x i8] c"\09dc.w $ffdf,$fffe\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %4
3: ; preds = %10
ret i32 0
4: ; preds = %2, %10
%5 = phi i32 [ 0, %2 ], [ %26, %10 ]
%6 = phi i32 [ 65, %2 ], [ %25, %10 ]
%7 = icmp eq i32 %6, 255
br i1 %7, label %8, label %10
8: ; preds = %4
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %10
10: ; preds = %8, %4
%11 = phi i32 [ 0, %8 ], [ %6, %4 ]
%12 = add nsw i32 %11, 1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%14 = add nsw i32 %11, 2
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%16 = add nsw i32 %11, 3
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%18 = add nsw i32 %11, 4
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%20 = add nsw i32 %11, 5
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i32 %18)
%22 = add nsw i32 %11, 6
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i32 %20)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 %22)
%25 = add nsw i32 %11, 10
%26 = add nuw nsw i32 %5, 1
%27 = icmp eq i32 %26, 25
br i1 %27, label %3, label %4
}