void make_window8(unsigned char *buf, int width, int height, char *title) {
  static char s_close_btn[14][16] = {
      "OOOOOOOOOOOOOOO@", "OQQQQQQQQQQQQQ$@", "OQQQQQQQQQQQQQ$@",
      "OQQQ@@QQQQ@@QQ$@", "OQQQQ@@QQ@@QQQ$@", "OQQQQQ@@@@QQQQ$@",
      "OQQQQQQ@@QQQQQ$@", "OQQQQQ@@@@QQQQ$@", "OQQQQ@@QQ@@QQQ$@",
      "OQQQ@@QQQQ@@QQ$@", "OQQQQQQQQQQQQQ$@", "OQQQQQQQQQQQQQ$@",
      "O$$$$$$$$$$$$$$@", "@@@@@@@@@@@@@@@@",
  };
  int x, y;
  char c;
  fill_box8(buf, width, (8), 0, 0, width - 1, 0);
  fill_box8(buf, width, (7), 1, 1, width - 2, 1);
  fill_box8(buf, width, (8), 0, 0, 0, height - 1);
  fill_box8(buf, width, (7), 1, 1, 1, height - 2);
  fill_box8(buf, width, (15), width - 2, 1, width - 2, height - 2);
  fill_box8(buf, width, (0), width - 1, 0, width - 1, height - 1);
  fill_box8(buf, width, (8), 2, 2, width - 3, height - 3);
  fill_box8(buf, width, (12), 3, 3, width - 4, 20);
  fill_box8(buf, width, (15), 1, height - 2, width - 2, height - 2);
  fill_box8(buf, width, (0), 0, height - 1, width - 1, height - 1);
  draw_font8_asc(buf, width, 24, 4, (7), title);
  for (y = 0; y < 14; ++y) {
    for (x = 0; x < 16; ++x) {
      c = s_close_btn[y][x];
      switch (c) {
      case '@':
        c = (0);
        break;
      case '$':
        c = (15);
        break;
      case 'Q':
        c = (8);
        break;
      default:
        c = (7);
      }
      buf[(5 + y) * width + (width - 21 + x)] = c;
    }
  }
}


x86 assembly (clang, -O0):
<make_window8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%r9d
sub    $0x1,%r9d
mov    $0x8,%edx
xor    %r8d,%r8d
mov    %r8d,%ecx
movl   $0x0,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%r9d
sub    $0x2,%r9d
mov    $0x7,%edx
mov    $0x1,%r8d
mov    %r8d,%ecx
movl   $0x1,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
mov    $0x8,%edx
xor    %r9d,%r9d
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
sub    $0x2,%eax
mov    $0x7,%edx
mov    $0x1,%r9d
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%ecx
sub    $0x2,%ecx
mov    -0xc(%rbp),%r9d
sub    $0x2,%r9d
mov    -0x10(%rbp),%eax
sub    $0x2,%eax
mov    $0xf,%edx
mov    $0x1,%r8d
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
mov    -0xc(%rbp),%r9d
sub    $0x1,%r9d
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
xor    %r8d,%r8d
mov    %r8d,%edx
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%r9d
sub    $0x3,%r9d
mov    -0x10(%rbp),%eax
sub    $0x3,%eax
mov    $0x8,%edx
mov    $0x2,%r8d
mov    %r8d,%ecx
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%r9d
sub    $0x4,%r9d
mov    $0xc,%edx
mov    $0x3,%r8d
mov    %r8d,%ecx
movl   $0x14,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%r8d
sub    $0x2,%r8d
mov    -0xc(%rbp),%r9d
sub    $0x2,%r9d
mov    -0x10(%rbp),%eax
sub    $0x2,%eax
mov    $0xf,%edx
mov    $0x1,%ecx
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%r8d
sub    $0x1,%r8d
mov    -0xc(%rbp),%r9d
sub    $0x1,%r9d
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
xor    %ecx,%ecx
mov    %ecx,%edx
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <fill_box8@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%r9
mov    $0x18,%edx
mov    $0x4,%ecx
mov    $0x7,%r8d
mov    $0x0,%al
call   1030 <draw_font8_asc@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0xe,-0x20(%rbp)
jge    13de <make_window8+0x2be>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x10,-0x1c(%rbp)
jge    13cb <make_window8+0x2ab>
movslq -0x20(%rbp),%rax
shl    $0x4,%rax
lea    0x2d08(%rip),%rcx
add    %rax,%rcx
movslq -0x1c(%rbp),%rax
mov    (%rax,%rcx,1),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
mov    %eax,-0x28(%rbp)
sub    $0x24,%eax
je     1385 <make_window8+0x265>
jmp    135a <make_window8+0x23a>
mov    -0x28(%rbp),%eax
sub    $0x40,%eax
je     137c <make_window8+0x25c>
jmp    136b <make_window8+0x24b>
mov    -0x28(%rbp),%eax
sub    $0x51,%eax
je     138e <make_window8+0x26e>
jmp    1397 <make_window8+0x277>
movb   $0x0,-0x21(%rbp)
jmp    139b <make_window8+0x27b>
movb   $0xf,-0x21(%rbp)
jmp    139b <make_window8+0x27b>
movb   $0x8,-0x21(%rbp)
jmp    139b <make_window8+0x27b>
movb   $0x7,-0x21(%rbp)
mov    -0x21(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x5,%ecx
imul   -0xc(%rbp),%ecx
mov    -0xc(%rbp),%esi
sub    $0x15,%esi
add    -0x1c(%rbp),%esi
add    %esi,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    131f <make_window8+0x1ff>
jmp    13d0 <make_window8+0x2b0>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    130e <make_window8+0x1ee>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_window8>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rcx,0x10(%rsp)
mov    %edx,%r15d
mov    %esi,%r14d
mov    %rdi,%rbx
lea    -0x1(%r14),%r9d
mov    %r9d,0xc(%rsp)
movl   $0x0,(%rsp)
xor    %r13d,%r13d
mov    $0x8,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <fill_box8@plt>
lea    -0x2(%r14),%r9d
mov    %r9d,0x8(%rsp)
movl   $0x1,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x7,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
xor    %eax,%eax
call   1040 <fill_box8@plt>
lea    -0x1(%r15),%ebp
mov    %ebp,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x8,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1040 <fill_box8@plt>
lea    -0x2(%r15),%r12d
mov    %r12d,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x7,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
xor    %eax,%eax
call   1040 <fill_box8@plt>
mov    %r12d,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0xf,%edx
mov    0x8(%rsp),%ecx
mov    $0x1,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <fill_box8@plt>
mov    %ebp,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %edx,%edx
mov    0xc(%rsp),%ecx
xor    %r8d,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <fill_box8@plt>
lea    -0x3(%r14),%r9d
add    $0xfffffffd,%r15d
mov    %r15d,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x8,%edx
mov    $0x2,%ecx
mov    $0x2,%r8d
xor    %eax,%eax
call   1040 <fill_box8@plt>
lea    -0x4(%r14),%r9d
movl   $0x14,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0xc,%edx
mov    $0x3,%ecx
mov    $0x3,%r8d
xor    %eax,%eax
call   1040 <fill_box8@plt>
mov    %r12d,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0xf,%edx
mov    $0x1,%ecx
mov    %r12d,%r8d
mov    0x8(%rsp),%r9d
xor    %eax,%eax
call   1040 <fill_box8@plt>
mov    %ebp,(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %ebp,%r8d
mov    0xc(%rsp),%r9d
xor    %eax,%eax
call   1040 <fill_box8@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x18,%edx
mov    $0x4,%ecx
mov    $0x7,%r8d
mov    0x10(%rsp),%r9
xor    %eax,%eax
call   1030 <draw_font8_asc@plt>
lea    (%r14,%r14,1),%edx
lea    (%rdx,%rdx,2),%eax
add    $0xffffffec,%eax
mov    %r14d,%r8d
lea    (%rdx,%rdx,2),%edx
add    $0xffffffea,%edx
or     $0x1,%rdx
lea    0xd19(%rip),%rsi
jmp    1308 <make_window8+0x1e8>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r13
add    $0x10,%rsi
add    %r8,%rax
add    %r8,%rdx
cmp    $0xe,%r13
je     13a8 <make_window8+0x288>
xor    %edi,%edi
jmp    1326 <make_window8+0x206>
nopl   0x0(%rax)
xor    %ebp,%ebp
lea    (%rax,%rdi,1),%ecx
movslq %ecx,%rcx
mov    %bpl,(%rbx,%rcx,1)
add    $0x2,%rdi
cmp    $0x10,%rdi
je     12f0 <make_window8+0x1d0>
movsbl -0x1(%rsi,%rdi,1),%ebp
cmp    $0x51,%ebp
je     1350 <make_window8+0x230>
cmp    $0x40,%ebp
je     1340 <make_window8+0x220>
cmp    $0x24,%ebp
jne    1360 <make_window8+0x240>
mov    $0xf,%bpl
jmp    1363 <make_window8+0x243>
nop
xor    %ebp,%ebp
jmp    1363 <make_window8+0x243>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x8,%bpl
jmp    1363 <make_window8+0x243>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x7,%bpl
lea    (%rdx,%rdi,1),%ecx
movslq %ecx,%rcx
mov    %bpl,(%rbx,%rcx,1)
movsbl (%rsi,%rdi,1),%ebp
cmp    $0x24,%ebp
je     1390 <make_window8+0x270>
cmp    $0x40,%ebp
je     1310 <make_window8+0x1f0>
cmp    $0x51,%ebp
jne    13a0 <make_window8+0x280>
mov    $0x8,%bpl
jmp    1312 <make_window8+0x1f2>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0xf,%bpl
jmp    1312 <make_window8+0x1f2>
nopl   0x0(%rax,%rax,1)
mov    $0x7,%bpl
jmp    1312 <make_window8+0x1f2>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@make_window8.s_close_btn = internal global [14 x [16 x i8]] [[16 x i8] c"OOOOOOOOOOOOOOO@", [16 x i8] c"OQQQQQQQQQQQQQ$@", [16 x i8] c"OQQQQQQQQQQQQQ$@", [16 x i8] c"OQQQ@@QQQQ@@QQ$@", [16 x i8] c"OQQQQ@@QQ@@QQQ$@", [16 x i8] c"OQQQQQ@@@@QQQQ$@", [16 x i8] c"OQQQQQQ@@QQQQQ$@", [16 x i8] c"OQQQQQ@@@@QQQQ$@", [16 x i8] c"OQQQQ@@QQ@@QQQ$@", [16 x i8] c"OQQQ@@QQQQ@@QQ$@", [16 x i8] c"OQQQQQQQQQQQQQ$@", [16 x i8] c"OQQQQQQQQQQQQQ$@", [16 x i8] c"O$$$$$$$$$$$$$$@", [16 x i8] c"@@@@@@@@@@@@@@@@"]
define void @make_window8(i8* %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%12 = load i8*, i8** %5
%13 = load i32, i32* %6
%14 = load i32, i32* %6
%15 = sub nsw i32 %14, 1
%16 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %12, i32 %13, i32 8, i32 0, i32 0, i32 %15, i32 0)
%17 = load i8*, i8** %5
%18 = load i32, i32* %6
%19 = load i32, i32* %6
%20 = sub nsw i32 %19, 2
%21 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %17, i32 %18, i32 7, i32 1, i32 1, i32 %20, i32 1)
%22 = load i8*, i8** %5
%23 = load i32, i32* %6
%24 = load i32, i32* %7
%25 = sub nsw i32 %24, 1
%26 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %22, i32 %23, i32 8, i32 0, i32 0, i32 0, i32 %25)
%27 = load i8*, i8** %5
%28 = load i32, i32* %6
%29 = load i32, i32* %7
%30 = sub nsw i32 %29, 2
%31 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %27, i32 %28, i32 7, i32 1, i32 1, i32 1, i32 %30)
%32 = load i8*, i8** %5
%33 = load i32, i32* %6
%34 = load i32, i32* %6
%35 = sub nsw i32 %34, 2
%36 = load i32, i32* %6
%37 = sub nsw i32 %36, 2
%38 = load i32, i32* %7
%39 = sub nsw i32 %38, 2
%40 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %32, i32 %33, i32 15, i32 %35, i32 1, i32 %37, i32 %39)
%41 = load i8*, i8** %5
%42 = load i32, i32* %6
%43 = load i32, i32* %6
%44 = sub nsw i32 %43, 1
%45 = load i32, i32* %6
%46 = sub nsw i32 %45, 1
%47 = load i32, i32* %7
%48 = sub nsw i32 %47, 1
%49 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %41, i32 %42, i32 0, i32 %44, i32 0, i32 %46, i32 %48)
%50 = load i8*, i8** %5
%51 = load i32, i32* %6
%52 = load i32, i32* %6
%53 = sub nsw i32 %52, 3
%54 = load i32, i32* %7
%55 = sub nsw i32 %54, 3
%56 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %50, i32 %51, i32 8, i32 2, i32 2, i32 %53, i32 %55)
%57 = load i8*, i8** %5
%58 = load i32, i32* %6
%59 = load i32, i32* %6
%60 = sub nsw i32 %59, 4
%61 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %57, i32 %58, i32 12, i32 3, i32 3, i32 %60, i32 20)
%62 = load i8*, i8** %5
%63 = load i32, i32* %6
%64 = load i32, i32* %7
%65 = sub nsw i32 %64, 2
%66 = load i32, i32* %6
%67 = sub nsw i32 %66, 2
%68 = load i32, i32* %7
%69 = sub nsw i32 %68, 2
%70 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %62, i32 %63, i32 15, i32 1, i32 %65, i32 %67, i32 %69)
%71 = load i8*, i8** %5
%72 = load i32, i32* %6
%73 = load i32, i32* %7
%74 = sub nsw i32 %73, 1
%75 = load i32, i32* %6
%76 = sub nsw i32 %75, 1
%77 = load i32, i32* %7
%78 = sub nsw i32 %77, 1
%79 = call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %71, i32 %72, i32 0, i32 0, i32 %74, i32 %76, i32 %78)
%80 = load i8*, i8** %5
%81 = load i32, i32* %6
%82 = load i8*, i8** %8
%83 = call i32 (i8*, i32, i32, i32, i32, i8*, ...) bitcast (i32 (...)* @draw_font8_asc to i32 (i8*, i32, i32, i32, i32, i8*, ...)*)(i8* %80, i32 %81, i32 24, i32 4, i32 7, i8* %82)
store i32 0, i32* %10
br label %84
84: ; preds = %123, %4
%85 = load i32, i32* %10
%86 = icmp slt i32 %85, 14
br i1 %86, label %87, label %126
87: ; preds = %84
store i32 0, i32* %9
br label %88
88: ; preds = %119, %87
%89 = load i32, i32* %9
%90 = icmp slt i32 %89, 16
br i1 %90, label %91, label %122
91: ; preds = %88
%92 = load i32, i32* %10
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [14 x [16 x i8]], [14 x [16 x i8]]* @make_window8.s_close_btn, i64 0, i64 %93
%95 = load i32, i32* %9
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [16 x i8], [16 x i8]* %94, i64 0, i64 %96
%98 = load i8, i8* %97
store i8 %98, i8* %11
%99 = load i8, i8* %11
%100 = sext i8 %99 to i32
switch i32 %100, label %104 [
i32 64, label %101
i32 36, label %102
i32 81, label %103
]
101: ; preds = %91
store i8 0, i8* %11
br label %105
102: ; preds = %91
store i8 15, i8* %11
br label %105
103: ; preds = %91
store i8 8, i8* %11
br label %105
104: ; preds = %91
store i8 7, i8* %11
br label %105
105: ; preds = %104, %103, %102, %101
%106 = load i8, i8* %11
%107 = load i8*, i8** %5
%108 = load i32, i32* %10
%109 = add nsw i32 5, %108
%110 = load i32, i32* %6
%111 = mul nsw i32 %109, %110
%112 = load i32, i32* %6
%113 = sub nsw i32 %112, 21
%114 = load i32, i32* %9
%115 = add nsw i32 %113, %114
%116 = add nsw i32 %111, %115
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, i8* %107, i64 %117
store i8 %106, i8* %118
br label %119
119: ; preds = %105
%120 = load i32, i32* %9
%121 = add nsw i32 %120, 1
store i32 %121, i32* %9
br label %88
122: ; preds = %88
br label %123
123: ; preds = %122
%124 = load i32, i32* %10
%125 = add nsw i32 %124, 1
store i32 %125, i32* %10
br label %84
126: ; preds = %84
ret void
}

LLVM IR (-O2):
@make_window8.s_close_btn = internal unnamed_addr constant [14 x [16 x i8]] [[16 x i8] c"OOOOOOOOOOOOOOO@", [16 x i8] c"OQQQQQQQQQQQQQ$@", [16 x i8] c"OQQQQQQQQQQQQQ$@", [16 x i8] c"OQQQ@@QQQQ@@QQ$@", [16 x i8] c"OQQQQ@@QQ@@QQQ$@", [16 x i8] c"OQQQQQ@@@@QQQQ$@", [16 x i8] c"OQQQQQQ@@QQQQQ$@", [16 x i8] c"OQQQQQ@@@@QQQQ$@", [16 x i8] c"OQQQQ@@QQ@@QQQ$@", [16 x i8] c"OQQQ@@QQQQ@@QQ$@", [16 x i8] c"OQQQQQQQQQQQQQ$@", [16 x i8] c"OQQQQQQQQQQQQQ$@", [16 x i8] c"O$$$$$$$$$$$$$$@", [16 x i8] c"@@@@@@@@@@@@@@@@"]
define void @make_window8(i8* %0, i32 %1, i32 %2, i8* %3) {
%5 = add nsw i32 %1, -1
%6 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 8, i32 0, i32 0, i32 %5, i32 0)
%7 = add nsw i32 %1, -2
%8 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 7, i32 1, i32 1, i32 %7, i32 1)
%9 = add nsw i32 %2, -1
%10 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 8, i32 0, i32 0, i32 0, i32 %9)
%11 = add nsw i32 %2, -2
%12 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 7, i32 1, i32 1, i32 1, i32 %11)
%13 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 15, i32 %7, i32 1, i32 %7, i32 %11)
%14 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 0, i32 %5, i32 0, i32 %5, i32 %9)
%15 = add nsw i32 %1, -3
%16 = add nsw i32 %2, -3
%17 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 8, i32 2, i32 2, i32 %15, i32 %16)
%18 = add nsw i32 %1, -4
%19 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 12, i32 3, i32 3, i32 %18, i32 20)
%20 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 15, i32 1, i32 %11, i32 %7, i32 %11)
%21 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @fill_box8 to i32 (i8*, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 0, i32 0, i32 %9, i32 %5, i32 %9)
%22 = tail call i32 (i8*, i32, i32, i32, i32, i8*, ...) bitcast (i32 (...)* @draw_font8_asc to i32 (i8*, i32, i32, i32, i32, i8*, ...)*)(i8* %0, i32 %1, i32 24, i32 4, i32 7, i8* %3)
%23 = add nsw i32 %1, -21
br label %24
24: ; preds = %4, %59
%25 = phi i64 [ 0, %4 ], [ %60, %59 ]
%26 = trunc i64 %25 to i32
%27 = add i32 %26, 5
%28 = mul nsw i32 %27, %1
%29 = add i32 %23, %28
br label %30
30: ; preds = %51, %24
%31 = phi i64 [ 0, %24 ], [ %57, %51 ]
%32 = getelementptr inbounds [14 x [16 x i8]], [14 x [16 x i8]]* @make_window8.s_close_btn, i64 0, i64 %25, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
switch i32 %34, label %37 [
i32 64, label %38
i32 36, label %35
i32 81, label %36
]
35: ; preds = %30
br label %38
36: ; preds = %30
br label %38
37: ; preds = %30
br label %38
38: ; preds = %30, %37, %36, %35
%39 = phi i8 [ 7, %37 ], [ 8, %36 ], [ 15, %35 ], [ 0, %30 ]
%40 = trunc i64 %31 to i32
%41 = add i32 %29, %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %0, i64 %42
store i8 %39, i8* %43
%44 = or i64 %31, 1
%45 = getelementptr inbounds [14 x [16 x i8]], [14 x [16 x i8]]* @make_window8.s_close_btn, i64 0, i64 %25, i64 %44
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
switch i32 %47, label %50 [
i32 64, label %51
i32 36, label %49
i32 81, label %48
]
48: ; preds = %38
br label %51
49: ; preds = %38
br label %51
50: ; preds = %38
br label %51
51: ; preds = %50, %49, %48, %38
%52 = phi i8 [ 7, %50 ], [ 8, %48 ], [ 15, %49 ], [ 0, %38 ]
%53 = trunc i64 %44 to i32
%54 = add i32 %29, %53
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, i8* %0, i64 %55
store i8 %52, i8* %56
%57 = add nuw nsw i64 %31, 2
%58 = icmp eq i64 %57, 16
br i1 %58, label %59, label %30
59: ; preds = %51
%60 = add nuw nsw i64 %25, 1
%61 = icmp eq i64 %60, 14
br i1 %61, label %62, label %24
62: ; preds = %59
ret void
}