// File: /workspace/github_c_makefile_star2_O0/kobolt[P]curses-collection/mastermind/mastermind.c
// Function: display_update
static void display_update(char *end_msg)
{
  int i, j;

  erase();

  /* Draw area with hidden code. */
  mvaddstr(0, 0, "+---+---+---+---+");
  if (end_msg != NULL) {
    mvaddstr(1, 0, "|   |   |   |   |");
    for (i = 0; i < CODE_SLOTS; i++) {
      move(1, 2 + (i * 4));
      if (has_colors() && hidden_code[i] != CODE_NONE)
        attrset(A_BOLD | COLOR_PAIR(hidden_code[i]));
      addch(code_to_char[hidden_code[i]]);
      if (has_colors() && hidden_code[i] != CODE_NONE)
        attrset(A_NORMAL);
    }
    mvaddstr(1, 18, end_msg);
  } else {
    mvaddstr(1, 0, "|###|###|###|###|");
  }
  mvaddstr(2, 0, "+---+---+---+---+----+");

  /* Draw area with user guesses. */
  for (i = 0; i < GUESS_SLOTS; i++) {
    mvaddstr(3 + (i * 2), 0, "|   |   |   |   |    |");

    for (j = 0; j < CODE_SLOTS; j++) {
      move(3 + (i * 2), 2 + (j * 4));
      if (has_colors() && guess[i].code[j] != CODE_NONE)
        attrset(A_BOLD | COLOR_PAIR(guess[i].code[j]));
      addch(code_to_char[guess[i].code[j]]);
      if (has_colors() && guess[i].code[j] != CODE_NONE)
        attrset(A_NORMAL);
    }

    for (j = 0; j < CODE_SLOTS; j++) {
      move(3 + (i * 2), 17 + j);
      if (has_colors() && guess[i].hint[j] != HINT_NONE)
        attrset(A_BOLD);
      addch(hint_to_char[guess[i].hint[j]]);
      if (has_colors() && guess[i].hint[j] != HINT_NONE)
        attrset(A_NORMAL);
    }

    mvaddstr(4 + (i * 2), 0, "+---+---+---+---+----+");
  }

  /* Place cursor on current slot to select. */
  move(3 + (current_guess * 2), 2 + (current_slot * 4));

  refresh();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq 0x296d(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
callq 0x1050
movq 0x295e(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x1110
cmpl $-0x1, %eax
jne 0x1695
jmp 0x16b0
movq 0x2944(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0x982(%rip), %rsi       # 0x2028
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1140
cmpq $0x0, -0x8(%rbp)
je 0x1809
movq 0x291e(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x1110
cmpl $-0x1, %eax
jne 0x16d8
jmp 0x16f3
movq 0x2901(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0x951(%rip), %rsi       # 0x203a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1140
movl $0x0, -0xc(%rbp)
cmpl $0x4, -0xc(%rbp)
jge 0x17cf
movq 0x28d5(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl -0xc(%rbp), %edx
shll $0x2, %edx
addl $0x2, %edx
movl $0x1, %esi
callq 0x1110
callq 0x1030
testb $0x1, %al
jne 0x172c
jmp 0x1769
movslq -0xc(%rbp), %rcx
leaq 0x2ae9(%rip), %rax      # 0x4220
cmpl $0x0, (%rax,%rcx,4)
je 0x1769
movq 0x289c(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movslq -0xc(%rbp), %rcx
leaq 0x2ace(%rip), %rax      # 0x4220
movl (%rax,%rcx,4), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
orl $0x200000, %esi         # imm = 0x200000
callq 0x1040
movq 0x2870(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movslq -0xc(%rbp), %rcx
leaq 0x2aa2(%rip), %rax      # 0x4220
movl (%rax,%rcx,4), %eax
movl %eax, %ecx
leaq 0x906(%rip), %rax       # 0x2090
movl (%rax,%rcx,4), %esi
callq 0x1120
callq 0x1030
testb $0x1, %al
jne 0x179d
jmp 0x17bf
movslq -0xc(%rbp), %rcx
leaq 0x2a78(%rip), %rax      # 0x4220
cmpl $0x0, (%rax,%rcx,4)
je 0x17bf
movq 0x282b(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1040
jmp 0x17c1
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x16fa
movq 0x280a(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl $0x1, %esi
movl $0x12, %edx
callq 0x1110
cmpl $-0x1, %eax
jne 0x17ef
jmp 0x1807
movq 0x27ea(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1140
jmp 0x1841
movq 0x27d0(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x1110
cmpl $-0x1, %eax
jne 0x1826
jmp 0x1841
movq 0x27b3(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0x815(%rip), %rsi       # 0x204c
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1140
movq 0x2798(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x1110
cmpl $-0x1, %eax
jne 0x185e
jmp 0x1879
movq 0x277b(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0x7ef(%rip), %rsi       # 0x205e
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1140
movl $0x0, -0xc(%rbp)
cmpl $0xa, -0xc(%rbp)
jge 0x1b01
movq 0x274f(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl -0xc(%rbp), %esi
shll %esi
addl $0x3, %esi
xorl %edx, %edx
callq 0x1110
cmpl $-0x1, %eax
jne 0x18aa
jmp 0x18c5
movq 0x272f(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0x7ba(%rip), %rsi       # 0x2075
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1140
movl $0x0, -0x10(%rbp)
cmpl $0x4, -0x10(%rbp)
jge 0x19d0
movq 0x2703(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl -0xc(%rbp), %esi
shll %esi
addl $0x3, %esi
movl -0x10(%rbp), %edx
shll $0x2, %edx
addl $0x2, %edx
callq 0x1110
callq 0x1030
testb $0x1, %al
jne 0x1901
jmp 0x1954
movslq -0xc(%rbp), %rcx
leaq 0x27c4(%rip), %rax      # 0x40d0
shlq $0x5, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x1954
movq 0x26bc(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movslq -0xc(%rbp), %rcx
leaq 0x279e(%rip), %rax      # 0x40d0
shlq $0x5, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
movl (%rax,%rcx,4), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
orl $0x200000, %esi         # imm = 0x200000
callq 0x1040
movq 0x2685(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movslq -0xc(%rbp), %rcx
leaq 0x2767(%rip), %rax      # 0x40d0
shlq $0x5, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, %ecx
leaq 0x710(%rip), %rax       # 0x2090
movl (%rax,%rcx,4), %esi
callq 0x1120
callq 0x1030
testb $0x1, %al
jne 0x1993
jmp 0x19c0
movslq -0xc(%rbp), %rcx
leaq 0x2732(%rip), %rax      # 0x40d0
shlq $0x5, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x19c0
movq 0x262a(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1040
jmp 0x19c2
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x18cc
movl $0x0, -0x10(%rbp)
cmpl $0x4, -0x10(%rbp)
jge 0x1ab8
movq 0x25f8(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl -0xc(%rbp), %esi
shll %esi
addl $0x3, %esi
movl -0x10(%rbp), %edx
addl $0x11, %edx
callq 0x1110
callq 0x1030
testb $0x1, %al
jne 0x1a09
jmp 0x1a3a
movslq -0xc(%rbp), %rcx
leaq 0x26bc(%rip), %rax      # 0x40d0
shlq $0x5, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
cmpl $0x0, 0x10(%rax,%rcx,4)
je 0x1a3a
movq 0x25b3(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl $0x200000, %esi         # imm = 0x200000
callq 0x1040
movq 0x259f(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movslq -0xc(%rbp), %rcx
leaq 0x2681(%rip), %rax      # 0x40d0
shlq $0x5, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
movl 0x10(%rax,%rcx,4), %eax
movl %eax, %ecx
leaq 0x645(%rip), %rax       # 0x20ac
movl (%rax,%rcx,4), %esi
callq 0x1120
callq 0x1030
testb $0x1, %al
jne 0x1a7a
jmp 0x1aa8
movslq -0xc(%rbp), %rcx
leaq 0x264b(%rip), %rax      # 0x40d0
shlq $0x5, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
cmpl $0x0, 0x10(%rax,%rcx,4)
je 0x1aa8
movq 0x2542(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1040
jmp 0x1aaa
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x19d7
movq 0x2521(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl -0xc(%rbp), %esi
shll %esi
addl $0x4, %esi
xorl %edx, %edx
callq 0x1110
cmpl $-0x1, %eax
jne 0x1ad8
jmp 0x1af3
movq 0x2501(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0x575(%rip), %rsi       # 0x205e
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1140
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x1880
movq 0x24d8(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
movl 0x26ff(%rip), %esi      # 0x4210
shll %esi
addl $0x3, %esi
movl 0x26f8(%rip), %edx      # 0x4214
shll $0x2, %edx
addl $0x2, %edx
callq 0x1110
movq 0x24b2(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
callq 0x10a0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)