// File: /workspace/github_c_makefile_star2_O3/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 0xf6fb(%rip), %r15      # 0x12fe8
movq (%r15), %rdi
movq 0xf6e9(%rip), %rbx      # 0x12fe0
movl (%rbx), %r8d
addl $-0x1d, %r8d
movl $0x1, %esi
movl $0x6, %edx
xorl %ecx, %ecx
callq 0x2320
movq %rax, 0x100da(%rip)     # 0x139f0
movq (%r15), %rdi
movzbl 0xfcc1(%rip), %esi      # 0x135e1
incl %esi
movl (%rbx), %r8d
addl $-0x2d, %r8d
movl $0x2c, %edx
movl $0x2, %ecx
callq 0x2320
movq %rax, 0x100a9(%rip)     # 0x139e8
movq (%r15), %rdi
movl 0xfb60(%rip), %esi      # 0x134a8
movl 0xfb56(%rip), %ecx      # 0x134a4
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x2320
movq %rax, 0x10099(%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 0xfc4b(%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 0xfae7(%rip), %esi      # 0x134a4
movl 0xfae9(%rip), %edx      # 0x134ac
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2320
movq %rax, (%rsp)
movl 0xfacc(%rip), %r12d     # 0x134a4
leal -0x2(%r12), %ebp
movl 0xfac8(%rip), %r13d     # 0x134ac
leal -0x2(%r13), %r14d
movl %r14d, %eax
shrl $0x1f, %eax
addl %r13d, %eax
addl $-0x2, %eax
sarl %eax
movl %eax, 0x10004(%rip)     # 0x13a00
movl %ebp, %eax
shrl $0x1f, %eax
addl %r12d, %eax
addl $-0x2, %eax
sarl %eax
movl %eax, 0xfff5(%rip)      # 0x13a04
movq (%r15), %rdi
movl %ebp, %esi
movl %r14d, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x2320
movq %rax, 0xffda(%rip)      # 0x13a08
movq 0xf58b(%rip), %rax      # 0x12fc0
movl (%rax), %eax
movzbl 0xfba3(%rip), %edx      # 0x135e1
subl %edx, %eax
cmpl $0x13, %eax
jl 0x3a88
addl $0x4, %edx
movl (%rbx), %ecx
addl $-0x2d, %ecx
movl $0xe, %edi
movl $0x2c, %esi
callq 0x21f0
movq %rax, 0xffad(%rip)      # 0x13a10
movzbl 0xfb77(%rip), %edx      # 0x135e1
addl $0x4, %edx
movl (%rbx), %ecx
addl $-0x2d, %ecx
movl $0xc, %edi
movl $0x2c, %esi
callq 0x21f0
movl $0x16, %ecx
jmp 0x3ac2
movl %ebp, %edi
movl %r14d, %esi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x21f0
movq %rax, 0xff6d(%rip)      # 0x13a10
movl (%rbx), %ecx
addl $-0x2d, %ecx
movl $0xc, %edi
movl $0x2c, %esi
movl $0x3, %edx
callq 0x21f0
movl 0xff3e(%rip), %ecx      # 0x13a00
movq %rax, 0xff4f(%rip)      # 0x13a18
movl %ecx, 0xff51(%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 0xfab9(%rip), %esi      # 0x135e1
addl $0x3, %esi
movq %rbp, %rdi
movl $0x2e, %edx
callq 0x37cd
movl 0xf966(%rip), %esi      # 0x134a4
movl 0xf968(%rip), %edx      # 0x134ac
movq %rbx, %rdi
callq 0x37cd
movq (%r15), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3b72
movq (%r15), %rdi
movq 0xf489(%rip), %rax      # 0x12ff0
movl 0x1b0(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movq 0xf464(%rip), %rbx      # 0x12fe0
movl (%rbx), %edx
addl $-0x2e, %edx
xorl %esi, %esi
callq 0x21e0
cmpl $-0x1, %eax
je 0x3ba2
movq (%r15), %rdi
movq 0xf459(%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 0x3bce
movq (%r15), %rdi
movq 0xf42d(%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 0x3bf9
movq (%r15), %rdi
movq 0xf402(%rip), %rax      # 0x12ff0
movl 0x1ac(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movzbl 0xf9de(%rip), %esi      # 0x135e1
addl $0x3, %esi
movl (%rbx), %edx
addl $-0x2e, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3c2a
movq (%r15), %rdi
movq 0xf3d1(%rip), %rax      # 0x12ff0
movl 0x1d0(%rax), %esi
callq 0x2160
movq (%r15), %rdi
movzbl 0xf9ad(%rip), %esi      # 0x135e1
addl $0x3, %esi
movl (%rbx), %edx
decl %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3c5a
movq (%r15), %rdi
movq 0xf3a1(%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 0x3c84
movq (%r15), %rdi
movq 0xf377(%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 0x3caf
movq (%r15), %rdi
movq 0xf34c(%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 0xfd15(%rip), %rdi      # 0x13a08
movl 0xfd0b(%rip), %esi      # 0x13a04
movl 0xfd01(%rip), %edx      # 0x13a00
callq 0x21e0
cmpl $-0x1, %eax
je 0x3d1a
movq 0xfcf8(%rip), %rdi      # 0x13a08
movl $0x2b, %esi
callq 0x2160
movq %r14, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x3d42
leaq 0xa27d(%rip), %rsi      # 0xdfb2
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 0x36f5
movq (%r15), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21b0