// File: /workspace/github_c_makefile_star2_O1/hyc[P]trek73c/trekx.c
// Function: DrawScr
void DrawScr()
{
  WINDOW *Radframe, *Repframe, *Disframe;
  int drow, dcol;

  Radwin = subwin(stdscr, 1, 6, 0, COLS - 29);
  Repwin = subwin(stdscr, Vessels+1, 44, 2, COLS - 45);
  Cmdwin = subwin(stdscr, Cmdrow, 0, Disrow, 0);
  scrollok(Cmdwin, true);
  Radframe = subwin(stdscr, 1, 25, 0, COLS - 46);
  Repframe = subwin(stdscr, Vessels+3, 46, 1, COLS - 46);
  Disframe = subwin(stdscr, Disrow, Discol, 0, 0);
  drow = Disrow - 2;
  dcol = Discol - 2;
  DisXmid = dcol / 2;
  DisYmid = drow / 2;
  Diswin = subwin(stdscr, drow, dcol, 1, 1);
  if (LINES - Vessels > 18)
  {
    Scnwin = newwin(14, 44, Vessels+4, COLS - 45);
    Prbwin = newwin(12, 44, Vessels+4, COLS - 45);
    HelpX = 22;
  } else {
    Scnwin = newwin(drow, dcol, 1, 1);
    Prbwin = newwin(12, 44, 3, COLS - 45);
    HelpX = DisXmid;
  }
  clear();

  attron(A_ALTCHARSET);
  wattron(Radframe, A_ALTCHARSET);
  wattron(Repframe, A_ALTCHARSET);
  wattron(Disframe, A_ALTCHARSET);
  DrawBox(Repframe, Vessels+3, 46);
  DrawBox(Disframe, Disrow, Discol);
  mvaddch(0,0,ACS_ULCORNER);
  mvaddch(0,COLS-46,ACS_URCORNER);
  mvaddch(1,COLS-46,ACS_LTEE);
  mvaddch(1,COLS-1,ACS_URCORNER);
  mvaddch(Vessels+3,COLS-46,ACS_LTEE);
  mvaddch(Vessels+3,COLS-1,ACS_LRCORNER);
  mvaddch(drow+1,0,ACS_LLCORNER);
  mvaddch(drow+1,dcol+1,ACS_LRCORNER);
  attroff(A_ALTCHARSET);
  wattroff(Radframe, A_ALTCHARSET);
  wattroff(Repframe, A_ALTCHARSET);
  wattroff(Disframe, A_ALTCHARSET);
  mvwaddch(Diswin,DisYmid,DisXmid,'+');
  mvwaddstr(Radframe,0,1,"Display Radius:");
  delwin(Radframe);
  delwin(Repframe);
  delwin(Disframe);
  DrawRep();
  wnoutrefresh(stdscr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0xf820(%rip), %r15      # 0x12fe8
movq (%r15), %rdi
movq 0xf80e(%rip), %rbx      # 0x12fe0
movl (%rbx), %r8d
addl $-0x1d, %r8d
movl $0x1, %esi
movl $0x6, %edx
xorl %ecx, %ecx
callq 0x2320
movq %rax, 0x101ff(%rip)     # 0x139f0
movq (%r15), %rdi
movzbl 0xfde6(%rip), %esi      # 0x135e1
incl %esi
movl (%rbx), %r8d
addl $-0x2d, %r8d
movl $0x2c, %edx
movl $0x2, %ecx
callq 0x2320
movq %rax, 0x101ce(%rip)     # 0x139e8
movq (%r15), %rdi
movl 0xfc85(%rip), %esi      # 0x134a8
movl 0xfc7b(%rip), %ecx      # 0x134a4
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x2320
movq %rax, 0x101be(%rip)     # 0x139f8
movq %rax, %rdi
movl $0x1, %esi
callq 0x2250
movq (%r15), %rdi
movl (%rbx), %r8d
addl $-0x2e, %r8d
movl $0x1, %esi
movl $0x19, %edx
xorl %ecx, %ecx
callq 0x2320
movq %rax, 0x10(%rsp)
movq (%r15), %rdi
movzbl 0xfd70(%rip), %esi      # 0x135e1
addl $0x3, %esi
movl (%rbx), %r8d
addl $-0x2e, %r8d
movl $0x2e, %edx
movl $0x1, %ecx
callq 0x2320
movq %rax, 0x8(%rsp)
movq (%r15), %rdi
movl 0xfc0c(%rip), %esi      # 0x134a4
movl 0xfc0e(%rip), %edx      # 0x134ac
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2320
movq %rax, (%rsp)
movl 0xfbf1(%rip), %r12d     # 0x134a4
leal -0x2(%r12), %ebp
movl 0xfbed(%rip), %r13d     # 0x134ac
leal -0x2(%r13), %r14d
movl %r14d, %eax
shrl $0x1f, %eax
addl %r13d, %eax
addl $-0x2, %eax
sarl %eax
movl %eax, 0x10129(%rip)     # 0x13a00
movl %ebp, %eax
shrl $0x1f, %eax
addl %r12d, %eax
addl $-0x2, %eax
sarl %eax
movl %eax, 0x1011a(%rip)     # 0x13a04
movq (%r15), %rdi
movl %ebp, %esi
movl %r14d, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x2320
movq %rax, 0x100ff(%rip)     # 0x13a08
movq 0xf6b0(%rip), %rax      # 0x12fc0
movl (%rax), %eax
movzbl 0xfcc8(%rip), %edx      # 0x135e1
subl %edx, %eax
cmpl $0x13, %eax
jl 0x396a
addl $0x4, %edx
movl (%rbx), %ecx
addl $-0x2d, %ecx
movl $0xe, %edi
movl $0x2c, %esi
callq 0x21f0
movq %rax, 0x100d2(%rip)     # 0x13a10
movzbl 0xfc9c(%rip), %edx      # 0x135e1
addl $0x4, %edx
movl (%rbx), %ecx
addl $-0x2d, %ecx
movl $0xc, %edi
movl $0x2c, %esi
callq 0x21f0
movq %rax, 0x100b5(%rip)     # 0x13a18
movl $0x16, %eax
jmp 0x39ab
movl %ebp, %edi
movl %r14d, %esi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x21f0
movq %rax, 0x1008b(%rip)     # 0x13a10
movl (%rbx), %ecx
addl $-0x2d, %ecx
movl $0xc, %edi
movl $0x2c, %esi
movl $0x3, %edx
callq 0x21f0
movq %rax, 0x10073(%rip)     # 0x13a18
movl 0x10055(%rip), %eax     # 0x13a00
movl %eax, 0x1006f(%rip)     # 0x13a20
movq (%r15), %rdi
callq 0x2050
movq (%r15), %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x22a0
movq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x22a0
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x22a0
movq (%rsp), %rbx
movq %rbx, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x22a0
movzbl 0xfbd7(%rip), %esi      # 0x135e1
addl $0x3, %esi
movq %rbp, %rdi
movl $0x2e, %edx
callq 0x36b1
movl 0xfa84(%rip), %esi      # 0x134a4
movl 0xfa86(%rip), %edx      # 0x134ac
movq %rbx, %rdi
callq 0x36b1
movq (%r15), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3a54
movq (%r15), %rdi
movq 0xf5a7(%rip), %rax      # 0x12ff0
movl 0x1b0(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movq 0xf582(%rip), %rbx      # 0x12fe0
movl (%rbx), %edx
addl $-0x2e, %edx
xorl %esi, %esi
callq 0x21e0
cmpl $-0x1, %eax
je 0x3a84
movq (%r15), %rdi
movq 0xf577(%rip), %rax      # 0x12ff0
movl 0x1ac(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movl (%rbx), %edx
addl $-0x2e, %edx
movl $0x1, %esi
callq 0x21e0
cmpl $-0x1, %eax
je 0x3ab0
movq (%r15), %rdi
movq 0xf54b(%rip), %rax      # 0x12ff0
movl 0x1d0(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movl (%rbx), %edx
decl %edx
movl $0x1, %esi
callq 0x21e0
cmpl $-0x1, %eax
je 0x3adb
movq (%r15), %rdi
movq 0xf520(%rip), %rax      # 0x12ff0
movl 0x1ac(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movzbl 0xfafc(%rip), %esi      # 0x135e1
addl $0x3, %esi
movl (%rbx), %edx
addl $-0x2e, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3b0c
movq (%r15), %rdi
movq 0xf4ef(%rip), %rax      # 0x12ff0
movl 0x1d0(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movzbl 0xfacb(%rip), %esi      # 0x135e1
addl $0x3, %esi
movl (%rbx), %edx
decl %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3b3c
movq (%r15), %rdi
movq 0xf4bf(%rip), %rax      # 0x12ff0
movl 0x1a8(%rax), %esi
callq 0x2160
movq (%r15), %rdi
decl %r12d
movl %r12d, %esi
xorl %edx, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3b66
movq (%r15), %rdi
movq 0xf495(%rip), %rax      # 0x12ff0
movl 0x1b4(%rax), %esi
callq 0x2160
movq (%r15), %rdi
decl %r13d
movl %r12d, %esi
movl %r13d, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3b91
movq (%r15), %rdi
movq 0xf46a(%rip), %rax      # 0x12ff0
movl 0x1a8(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2080
movq %r14, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2080
movq %rbp, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2080
movq (%rsp), %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2080
movq 0xfe33(%rip), %rdi      # 0x13a08
movl 0xfe29(%rip), %esi      # 0x13a04
movl 0xfe1f(%rip), %edx      # 0x13a00
callq 0x21e0
cmpl $-0x1, %eax
je 0x3bfc
movq 0xfe16(%rip), %rdi      # 0x13a08
movl $0x2b, %esi
callq 0x2160
movq %r14, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3c24
leaq 0xa2e3(%rip), %rsi      # 0xdefa
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq %r14, %rdi
callq 0x21c0
movq %rbp, %rdi
callq 0x21c0
movq (%rsp), %rdi
callq 0x21c0
callq 0x35d9
movq (%r15), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21b0