void make_window8(unsigned char *buf, int xsize, int ysize, char *title) {
  static char closebtn[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;
  boxfill8(buf, xsize, 8, 0, 0, xsize - 1, 0);
  boxfill8(buf, xsize, 7, 1, 1, xsize - 2, 1);
  boxfill8(buf, xsize, 8, 0, 0, 0, ysize - 1);
  boxfill8(buf, xsize, 7, 1, 1, 1, ysize - 2);
  boxfill8(buf, xsize, 15, xsize - 2, 1, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, xsize - 1, 0, xsize - 1, ysize - 1);
  boxfill8(buf, xsize, 8, 2, 2, xsize - 3, ysize - 3);
  boxfill8(buf, xsize, 12, 3, 3, xsize - 4, 20);
  boxfill8(buf, xsize, 15, 1, ysize - 2, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, 0, ysize - 1, xsize - 1, ysize - 1);
  putfonts8_asc(buf, xsize, 24, 4, 7, title);
  for (y = 0; y < 14; y++) {
    for (x = 0; x < 16; x++) {
      c = closebtn[y][x];
      if (c == '@') {
        c = 0;
      } else if (c == '$') {
        c = 15;
      } else if (c == 'Q') {
        c = 8;
      } else {
        c = 7;
      }
      buf[(5 + y) * xsize + (xsize - 21 + x)] = c;
    }
  }
  return;
}


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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1040 <putfonts8_asc@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0xe,-0x20(%rbp)
jge    13d8 <make_window8+0x2b8>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x10,-0x1c(%rbp)
jge    13c5 <make_window8+0x2a5>
movslq -0x20(%rbp),%rcx
lea    0x2d0c(%rip),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x40,%eax
jne    135b <make_window8+0x23b>
movb   $0x0,-0x21(%rbp)
jmp    1395 <make_window8+0x275>
movsbl -0x21(%rbp),%eax
cmp    $0x24,%eax
jne    1371 <make_window8+0x251>
movb   $0xf,-0x21(%rbp)
jmp    1390 <make_window8+0x270>
movsbl -0x21(%rbp),%eax
cmp    $0x51,%eax
jne    1387 <make_window8+0x267>
movb   $0x8,-0x21(%rbp)
jmp    138b <make_window8+0x26b>
movb   $0x7,-0x21(%rbp)
jmp    1390 <make_window8+0x270>
jmp    1395 <make_window8+0x275>
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    13ca <make_window8+0x2aa>
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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@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   1030 <boxfill8@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x18,%edx
mov    $0x4,%ecx
mov    $0x7,%r8d
mov    0x10(%rsp),%r9
xor    %eax,%eax
call   1040 <putfonts8_asc@plt>
lea    (%r14,%r14,1),%ecx
lea    (%rcx,%rcx,2),%eax
add    $0xffffffec,%eax
mov    %r14d,%r8d
lea    (%rcx,%rcx,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>
movzbl -0x1(%rsi,%rdi,1),%ecx
cmp    $0x51,%cl
je     1350 <make_window8+0x230>
cmp    $0x40,%cl
je     1340 <make_window8+0x220>
cmp    $0x24,%cl
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)
movzbl (%rsi,%rdi,1),%ecx
cmp    $0x24,%cl
je     1390 <make_window8+0x270>
cmp    $0x40,%cl
je     1310 <make_window8+0x1f0>
cmp    $0x51,%cl
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.closebtn = 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @putfonts8_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 = %134, %4
%85 = load i32, i32* %10
%86 = icmp slt i32 %85, 14
br i1 %86, label %87, label %137
87: ; preds = %84
store i32 0, i32* %9
br label %88
88: ; preds = %130, %87
%89 = load i32, i32* %9
%90 = icmp slt i32 %89, 16
br i1 %90, label %91, label %133
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.closebtn, 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
%101 = icmp eq i32 %100, 64
br i1 %101, label %102, label %103
102: ; preds = %91
store i8 0, i8* %11
br label %116
103: ; preds = %91
%104 = load i8, i8* %11
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 36
br i1 %106, label %107, label %108
107: ; preds = %103
store i8 15, i8* %11
br label %115
108: ; preds = %103
%109 = load i8, i8* %11
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 81
br i1 %111, label %112, label %113
112: ; preds = %108
store i8 8, i8* %11
br label %114
113: ; preds = %108
store i8 7, i8* %11
br label %114
114: ; preds = %113, %112
br label %115
115: ; preds = %114, %107
br label %116
116: ; preds = %115, %102
%117 = load i8, i8* %11
%118 = load i8*, i8** %5
%119 = load i32, i32* %10
%120 = add nsw i32 5, %119
%121 = load i32, i32* %6
%122 = mul nsw i32 %120, %121
%123 = load i32, i32* %6
%124 = sub nsw i32 %123, 21
%125 = load i32, i32* %9
%126 = add nsw i32 %124, %125
%127 = add nsw i32 %122, %126
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8, i8* %118, i64 %128
store i8 %117, i8* %129
br label %130
130: ; preds = %116
%131 = load i32, i32* %9
%132 = add nsw i32 %131, 1
store i32 %132, i32* %9
br label %88
133: ; preds = %88
br label %134
134: ; preds = %133
%135 = load i32, i32* %10
%136 = add nsw i32 %135, 1
store i32 %136, i32* %10
br label %84
137: ; preds = %84
ret void
}

LLVM IR (-O2):
@make_window8.closebtn = 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @boxfill8 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 (...)* @putfonts8_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, %57
%25 = phi i64 [ 0, %4 ], [ %58, %57 ]
%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 = %49, %24
%31 = phi i64 [ 0, %24 ], [ %55, %49 ]
%32 = getelementptr inbounds [14 x [16 x i8]], [14 x [16 x i8]]* @make_window8.closebtn, i64 0, i64 %25, i64 %31
%33 = load i8, i8* %32
switch i8 %33, label %36 [
i8 64, label %37
i8 36, label %34
i8 81, label %35
]
34: ; preds = %30
br label %37
35: ; preds = %30
br label %37
36: ; preds = %30
br label %37
37: ; preds = %30, %34, %36, %35
%38 = phi i8 [ 15, %34 ], [ 8, %35 ], [ 7, %36 ], [ 0, %30 ]
%39 = trunc i64 %31 to i32
%40 = add i32 %29, %39
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* %0, i64 %41
store i8 %38, i8* %42
%43 = or i64 %31, 1
%44 = getelementptr inbounds [14 x [16 x i8]], [14 x [16 x i8]]* @make_window8.closebtn, i64 0, i64 %25, i64 %43
%45 = load i8, i8* %44
switch i8 %45, label %48 [
i8 64, label %49
i8 36, label %47
i8 81, label %46
]
46: ; preds = %37
br label %49
47: ; preds = %37
br label %49
48: ; preds = %37
br label %49
49: ; preds = %48, %47, %46, %37
%50 = phi i8 [ 15, %47 ], [ 8, %46 ], [ 7, %48 ], [ 0, %37 ]
%51 = trunc i64 %43 to i32
%52 = add i32 %29, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, i8* %0, i64 %53
store i8 %50, i8* %54
%55 = add nuw nsw i64 %31, 2
%56 = icmp eq i64 %55, 16
br i1 %56, label %57, label %30
57: ; preds = %49
%58 = add nuw nsw i64 %25, 1
%59 = icmp eq i64 %58, 14
br i1 %59, label %60, label %24
60: ; preds = %57
ret void
}