// File: /workspace/github_cpp_makefile_star2_O1/jkingan[P]ladyheather/heathmsc.cpp
// Function: draw_signal_map(int)
void draw_signal_map(int why)
{
   if(text_mode) return;
   if(rcvr_type == NO_RCVR) return;
   if(rcvr_type == TIDE_RCVR) return;  // ckckck
   if(zoom_screen == 'L') return;

   if     (zoom_screen == 'S') ;
   else if(zoom_screen == 'X') ;
   else if(zoom_screen == 'Y') ;
   else if(zoom_screen == 'U') ;
   else if(zoom_screen == 'V') ;
   else if(zoom_screen == 'I') ;
   else if(zoom_screen) return;
   else if(plot_signals == 0) return;
if(first_key && shared_plot && (shared_item & SHARE_SIGNALS)) return;

   AZEL_X = (AZEL_COL+AZEL_SIZE/2-1);   // center point of plot
   AZEL_Y = (AZEL_ROW+AZEL_SIZE/2-1);   

   if(zoom_screen == 'X') ;
   else if(zoom_screen == 'Y') ;
   else if(zoom_screen == 'I') ;
   else {
      erase_azel(1);       // erase the old az/el plot
   }

   if(AZEL_Y >= PLOT_ROW) shared_item = SHARE_SIGNALS;

   azel_grid_color = AZEL_COLOR;
   draw_azel_prns(1);
   draw_azel_grid(1, AZEL_X,AZEL_Y, AZEL_RADIUS); // now draw the az/el grid

   if(plot_signals >= 4) {  // sky map
      draw_3d_signals();
   }
   else if(plot_signals == 3) {
      draw_el_levels(); // signal level vs elevation
   }
   else if((plot_signals == 1) || (plot_signals == 2)) {
      draw_az_levels(); // signal level vs azimuth
   }
   else if((zoom_screen == 'S') || (zoom_screen == 'X') || (zoom_screen == 'Y') || (zoom_screen == 'I')) {
      draw_3d_signals();
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x1200db(%rip), %rax    # 0x2187d8
cmpl $0x0, (%rax)
setne %cl
leaq 0x1201c6(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x400, %rax            # imm = 0x400
sete %dl
cmpq $0x800000, %rax         # imm = 0x800000
sete %sil
orb %dl, %sil
leaq 0x21407e(%rip), %rbx    # 0x30c7a8
movb (%rbx), %al
cmpb $0x4c, %al
sete %dl
orb %cl, %dl
orb %sil, %dl
testb $0x1, %dl
je 0xf8744
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movzbl %al, %ecx
leal -0x49(%rcx), %eax
cmpl $0x10, %eax
ja 0xf8873
movl $0x1b401, %edx          # imm = 0x1B401
btl %eax, %edx
jae 0xf8873
leaq 0x1467f0(%rip), %rcx    # 0x23ef58
cmpl $0x0, (%rcx)
je 0xf8785
leaq 0x242c74(%rip), %rcx    # 0x33b3e8
cmpb $0x0, (%rcx)
je 0xf8785
leaq 0x242c6c(%rip), %rcx    # 0x33b3ec
testb $0x4, (%rcx)
jne 0xf873b
leaq 0x242c08(%rip), %rcx    # 0x33b394
leaq 0x242bf9(%rip), %r14    # 0x33b38c
movl (%r14), %edx
movl %edx, %esi
shrl $0x1f, %esi
addl %edx, %esi
sarl %esi
decl %esi
movl (%rcx), %ecx
addl %esi, %ecx
leaq 0x242be4(%rip), %rdx    # 0x33b390
addl (%rdx), %esi
leaq 0x242beb(%rip), %r15    # 0x33b3a0
movl %ecx, (%r15)
leaq 0x242be5(%rip), %r12    # 0x33b3a4
movl %esi, (%r12)
cmpl $0x10, %eax
ja 0xf87d2
movl $0x18001, %ecx          # imm = 0x18001
btl %eax, %ecx
jb 0xf87dc
movl $0x1, %edi
callq 0xee11
movl (%r12), %eax
leaq 0x120095(%rip), %rcx    # 0x21887c
cmpl (%rcx), %eax
jl 0xf87f8
leaq 0x242bfa(%rip), %rax    # 0x33b3ec
movl $0x4, (%rax)
leaq 0x242ba9(%rip), %rax    # 0x33b3a8
movl $0x8, (%rax)
movl $0x1, %edi
callq 0xf5ae3
movl (%r15), %esi
movl (%r12), %edx
movl (%r14), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x242b6f(%rip), %rax    # 0x33b398
subl (%rax), %ecx
movl $0x1, %edi
callq 0xf3fdd
leaq 0x122bd9(%rip), %rax    # 0x21b415
movb (%rax), %al
cmpb $0x4, %al
jb 0xf884f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xf99b1
cmpb $0x3, %al
jne 0xf8860
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xf9d33
decb %al
cmpb $0x1, %al
ja 0xf8890
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xf9a30
testl %ecx, %ecx
jne 0xf873b
leaq 0x122b93(%rip), %rcx    # 0x21b415
cmpb $0x0, (%rcx)
jne 0xf8761
jmp 0xf873b
movzbl (%rbx), %eax
addl $-0x49, %eax
cmpl $0x10, %eax
ja 0xf873b
movl $0x18401, %ecx          # imm = 0x18401
btl %eax, %ecx
jb 0xf8842
jmp 0xf873b