// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
movq 0xeb29(%rip), %r13      # 0x11fe8
movq (%r13), %rdi
movq 0xeb16(%rip), %rbx      # 0x11fe0
movl (%rbx), %r8d
addl $-0x1d, %r8d
pushq $0x1
popq %rbp
pushq $0x6
popq %rdx
movl %ebp, %esi
xorl %ecx, %ecx
callq 0x2310
movq %rax, 0xf4f9(%rip)      # 0x129e0
movq (%r13), %rdi
movzbl 0xf0df(%rip), %esi      # 0x125d1
incl %esi
movl (%rbx), %r8d
addl $-0x2d, %r8d
pushq $0x2c
popq %rdx
pushq $0x2
popq %r14
movl %r14d, %ecx
callq 0x2310
movq %rax, 0xf4c7(%rip)      # 0x129d8
movq (%r13), %rdi
movl 0xef7d(%rip), %esi      # 0x12498
movl 0xef73(%rip), %ecx      # 0x12494
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x2310
movq %rax, 0xf4b6(%rip)      # 0x129e8
movq %rax, %rdi
movl %ebp, %esi
callq 0x2240
movq (%r13), %rdi
movl (%rbx), %r8d
addl $-0x2e, %r8d
pushq $0x19
popq %rdx
movl %ebp, %esi
xorl %ecx, %ecx
callq 0x2310
movq %rax, 0x20(%rsp)
movq (%r13), %rdi
movzbl 0xf06e(%rip), %esi      # 0x125d1
addl $0x3, %esi
movl (%rbx), %r8d
addl $-0x2e, %r8d
pushq $0x2e
popq %rdx
movl %ebp, %ecx
callq 0x2310
movq %rax, 0x18(%rsp)
movq (%r13), %rdi
movl 0xef0e(%rip), %esi      # 0x12494
movl 0xef10(%rip), %edx      # 0x1249c
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2310
movq %rax, 0x10(%rsp)
movl 0xeef2(%rip), %r12d     # 0x12494
leal -0x2(%r12), %r15d
movl 0xeeef(%rip), %eax      # 0x1249c
movq %rax, 0x8(%rsp)
leal -0x2(%rax), %ebx
movl %ebx, %eax
cltd
idivl %r14d
movl %eax, 0xf42f(%rip)      # 0x129f0
movl %r15d, %eax
cltd
idivl %r14d
movl %eax, 0xf426(%rip)      # 0x129f4
movq (%r13), %rdi
movl %r15d, %esi
movl %ebx, %edx
movl %ebp, %ecx
movl %ebp, %r8d
callq 0x2310
movq %rax, 0xf410(%rip)      # 0x129f8
movq 0xe9d1(%rip), %rax      # 0x11fc0
movl (%rax), %eax
movzbl 0xefd9(%rip), %edx      # 0x125d1
subl %edx, %eax
cmpl $0x13, %eax
jl 0x3642
addl $0x4, %edx
movq 0xe9d7(%rip), %rbp      # 0x11fe0
movl (%rbp), %ecx
addl $-0x2d, %ecx
pushq $0xe
popq %rdi
pushq $0x2c
popq %rbx
movl %ebx, %esi
callq 0x21e0
movq %rax, 0xf3dd(%rip)      # 0x12a00
movzbl 0xefa7(%rip), %edx      # 0x125d1
addl $0x4, %edx
movl (%rbp), %ecx
addl $-0x2d, %ecx
pushq $0xc
popq %rdi
movl %ebx, %esi
callq 0x21e0
pushq $0x16
popq %rcx
jmp 0x3679
pushq $0x1
popq %rcx
movl %r15d, %edi
movl %ebx, %esi
movl %ecx, %edx
callq 0x21e0
movq %rax, 0xf3a8(%rip)      # 0x12a00
movq 0xe981(%rip), %rbp      # 0x11fe0
movl (%rbp), %ecx
addl $-0x2d, %ecx
pushq $0xc
popq %rdi
pushq $0x2c
popq %rsi
pushq $0x3
popq %rdx
callq 0x21e0
movl 0xf377(%rip), %ecx      # 0x129f0
movq %rax, 0xf388(%rip)      # 0x12a08
movl %ecx, 0xf38a(%rip)      # 0x12a10
movq (%r13), %rdi
callq 0x2040
movq (%r13), %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2290
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2290
movq 0x18(%rsp), %r14
movq %r14, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2290
movq 0x10(%rsp), %r15
movq %r15, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2290
movzbl 0xeeef(%rip), %esi      # 0x125d1
addl $0x3, %esi
pushq $0x2e
popq %rdx
movq %r14, %rdi
callq 0x33e5
movl 0xed9e(%rip), %esi      # 0x12494
movl 0xeda0(%rip), %edx      # 0x1249c
movq %r15, %rdi
callq 0x33e5
movq (%r13), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
cmpl $-0x1, %eax
je 0x372c
movq (%r13), %rdi
movq 0xe8cf(%rip), %rax      # 0x11ff0
movl 0x1b0(%rax), %esi
callq 0x2150
movq (%r13), %rdi
movl (%rbp), %edx
addl $-0x2e, %edx
xorl %esi, %esi
callq 0x21d0
cmpl $-0x1, %eax
je 0x3758
movq (%r13), %rdi
movq 0xe8a3(%rip), %rax      # 0x11ff0
movl 0x1ac(%rax), %esi
callq 0x2150
movq (%r13), %rdi
movl (%rbp), %edx
addl $-0x2e, %edx
pushq $0x1
popq %rsi
callq 0x21d0
cmpl $-0x1, %eax
je 0x3785
movq (%r13), %rdi
movq 0xe876(%rip), %rax      # 0x11ff0
movl 0x1d0(%rax), %esi
callq 0x2150
movq (%r13), %rdi
movl (%rbp), %edx
decl %edx
pushq $0x1
popq %rsi
callq 0x21d0
cmpl $-0x1, %eax
je 0x37b1
movq (%r13), %rdi
movq 0xe84a(%rip), %rax      # 0x11ff0
movl 0x1ac(%rax), %esi
callq 0x2150
movq (%r13), %rdi
movzbl 0xee15(%rip), %esi      # 0x125d1
addl $0x3, %esi
movl (%rbp), %edx
addl $-0x2e, %edx
callq 0x21d0
cmpl $-0x1, %eax
je 0x37e5
movq (%r13), %rdi
movq 0xe816(%rip), %rax      # 0x11ff0
movl 0x1d0(%rax), %esi
callq 0x2150
movq (%r13), %rdi
movzbl 0xede1(%rip), %esi      # 0x125d1
addl $0x3, %esi
movl (%rbp), %edx
decl %edx
callq 0x21d0
cmpl $-0x1, %eax
je 0x3818
movq (%r13), %rdi
movq 0xe7e3(%rip), %rax      # 0x11ff0
movl 0x1a8(%rax), %esi
callq 0x2150
movq (%r13), %rdi
decl %r12d
movl %r12d, %esi
xorl %edx, %edx
callq 0x21d0
cmpl $-0x1, %eax
je 0x3844
movq (%r13), %rdi
movq 0xe7b7(%rip), %rax      # 0x11ff0
movl 0x1b4(%rax), %esi
callq 0x2150
movq (%r13), %rdi
movq 0x8(%rsp), %rdx
decl %edx
movl %r12d, %esi
callq 0x21d0
cmpl $-0x1, %eax
je 0x3872
movq (%r13), %rdi
movq 0xe789(%rip), %rax      # 0x11ff0
movl 0x1a8(%rax), %esi
callq 0x2150
movq (%r13), %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2070
movq %rbx, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2070
movq %r14, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2070
movq %r15, %rdi
movl $0x400000, %esi         # imm = 0x400000
xorl %edx, %edx
callq 0x2070
movq 0xf142(%rip), %rdi      # 0x129f8
movl 0xf138(%rip), %esi      # 0x129f4
movl 0xf12e(%rip), %edx      # 0x129f0
callq 0x21d0
cmpl $-0x1, %eax
je 0x38db
movq 0xf125(%rip), %rdi      # 0x129f8
pushq $0x2b
popq %rsi
callq 0x2150
pushq $0x1
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x21d0
cmpl $-0x1, %eax
je 0x38ff
leaq 0x8646(%rip), %rsi      # 0xbf3a
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x2200
movq %rbx, %rdi
callq 0x21b0
movq %r14, %rdi
callq 0x21b0
movq %r15, %rdi
callq 0x21b0
callq 0x3317
movq (%r13), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21a0