// File: /workspace/github_c_makefile_star2_O0/skeeto[P]flappy/flappy.cc
// Function: World::draw()
void draw() {
    init_pair(2, COLOR_GREEN, COLOR_BLACK);
    init_pair(3, COLOR_GREEN, COLOR_GREEN);
    attron(COLOR_PAIR(2));
    for (int i = 0; i < walls.size(); i++) {
      int wall = walls[i];
      if (wall != 0) {
        for (int y = 1; y < display->height - 1; y++) {
          if (y == wall - kVGap - 1 || y == wall + kVGap + 1) {
            attroff(COLOR_PAIR(2));
            attron(COLOR_PAIR(3));
            mvaddch(y, i + 1, '=');
            attroff(COLOR_PAIR(3));
            attron(COLOR_PAIR(2));
          } else if (y < wall - kVGap || y > wall + kVGap) {
            mvaddch(y, i + 1, '|');
          }
        }
      }
    }
    attroff(COLOR_PAIR(2));
    attron(A_BOLD);
    mvprintw(display->height, 0, "Score: %d", score());
    attroff(A_BOLD);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl $0x2, %esi
xorl %edx, %edx
movl %esi, %edi
callq 0x7050
movl $0x3, %edi
movl $0x2, %edx
movl %edx, %esi
callq 0x7050
movq 0xa8306(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
movl %eax, %edx
callq 0x7180
movl $0x0, -0xc(%rbp)
movq -0x20(%rbp), %rdi
movslq -0xc(%rbp), %rax
movq %rax, -0x28(%rbp)
callq 0x9170
movq %rax, %rcx
movq -0x28(%rbp), %rax
cmpq %rcx, %rax
jae 0x9e78
movq -0x20(%rbp), %rdi
movslq -0xc(%rbp), %rsi
callq 0xa100
movl (%rax), %eax
movl %eax, -0x10(%rbp)
cmpl $0x0, -0x10(%rbp)
je 0x9e68
movl $0x1, -0x14(%rbp)
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
movq 0x50(%rcx), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x9e66
movl -0x14(%rbp), %eax
movl -0x10(%rbp), %ecx
subl $0x2, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
je 0x9d72
movl -0x14(%rbp), %eax
movl -0x10(%rbp), %ecx
addl $0x2, %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x9e07
movq 0xa8267(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
movl %eax, %edx
callq 0x73c0
movq 0xa824f(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x300, %esi            # imm = 0x300
xorl %eax, %eax
movl %eax, %edx
callq 0x7180
movq 0xa8237(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0xc(%rbp), %edx
addl $0x1, %edx
callq 0x72f0
cmpl $-0x1, %eax
jne 0x9dc1
jmp 0x9dd5
movq 0xa8218(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x3d, %esi
callq 0x70b0
movq 0xa8204(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x300, %esi            # imm = 0x300
xorl %eax, %eax
movl %eax, %edx
callq 0x73c0
movq 0xa81ec(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
movl %eax, %edx
callq 0x7180
jmp 0x9e56
movl -0x14(%rbp), %eax
movl -0x10(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jl 0x9e21
movl -0x14(%rbp), %eax
movl -0x10(%rbp), %ecx
addl $0x2, %ecx
cmpl %ecx, %eax
jle 0x9e54
movq 0xa81b8(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0xc(%rbp), %edx
addl $0x1, %edx
callq 0x72f0
cmpl $-0x1, %eax
jne 0x9e40
jmp 0x9e54
movq 0xa8199(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x7c, %esi
callq 0x70b0
jmp 0x9e56
jmp 0x9e58
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x9d36
jmp 0x9e68
jmp 0x9e6a
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x9cf2
movq 0xa8161(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
movl %eax, %edx
callq 0x73c0
movq 0xa8149(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %eax, %eax
movl %eax, %edx
callq 0x7180
movq -0x20(%rbp), %rdi
movq 0x50(%rdi), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
callq 0xa0c0
movl -0x2c(%rbp), %edi
movl %eax, %ecx
xorl %esi, %esi
leaq 0x8a271(%rip), %rdx     # 0x94139
movb $0x0, %al
callq 0x73d0
movq 0xa810a(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %eax, %eax
movl %eax, %edx
callq 0x73c0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)