// File: /workspace/github_cpp_makefile_star2_O3/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 0x11f951(%rip), %rax    # 0x2187d8
cmpl $0x0, (%rax)
setne %cl
leaq 0x11fa3c(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x400, %rax            # imm = 0x400
sete %dl
cmpq $0x800000, %rax         # imm = 0x800000
sete %sil
orb %dl, %sil
leaq 0x2138f4(%rip), %rbx    # 0x30c7a8
movb (%rbx), %al
cmpb $0x4c, %al
sete %dl
orb %cl, %dl
orb %sil, %dl
testb $0x1, %dl
je 0xf8ece
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movzbl %al, %ecx
leal -0x49(%rcx), %eax
cmpl $0x10, %eax
ja 0xf8ffd
movl $0x1b401, %edx          # imm = 0x1B401
btl %eax, %edx
jae 0xf8ffd
leaq 0x146066(%rip), %rcx    # 0x23ef58
cmpl $0x0, (%rcx)
je 0xf8f0f
leaq 0x2424ea(%rip), %rcx    # 0x33b3e8
cmpb $0x0, (%rcx)
je 0xf8f0f
leaq 0x2424e2(%rip), %rcx    # 0x33b3ec
testb $0x4, (%rcx)
jne 0xf8ec5
leaq 0x24247e(%rip), %rdx    # 0x33b394
leaq 0x24246f(%rip), %r14    # 0x33b38c
movl (%r14), %esi
movl %esi, %ecx
shrl $0x1f, %ecx
addl %esi, %ecx
sarl %ecx
decl %ecx
movl (%rdx), %edx
addl %ecx, %edx
leaq 0x24245a(%rip), %rsi    # 0x33b390
addl (%rsi), %ecx
leaq 0x242461(%rip), %r15    # 0x33b3a0
movl %edx, (%r15)
leaq 0x24245b(%rip), %r12    # 0x33b3a4
movl %ecx, (%r12)
cmpl $0x10, %eax
ja 0xf8f5c
movl $0x18001, %edx          # imm = 0x18001
btl %eax, %edx
jb 0xf8f6a
movl $0x1, %edi
callq 0xed9e
movl (%r12), %ecx
leaq 0x11f90b(%rip), %rax    # 0x21887c
cmpl (%rax), %ecx
jl 0xf8f82
leaq 0x242470(%rip), %rax    # 0x33b3ec
movl $0x4, (%rax)
leaq 0x24241f(%rip), %rax    # 0x33b3a8
movl $0x8, (%rax)
movl $0x1, %edi
callq 0xf619f
movl (%r15), %esi
movl (%r12), %edx
movl (%r14), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x2423e5(%rip), %rax    # 0x33b398
subl (%rax), %ecx
movl $0x1, %edi
callq 0xf469c
leaq 0x12244f(%rip), %rax    # 0x21b415
movb (%rax), %al
cmpb $0x4, %al
jb 0xf8fd9
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xfa109
cmpb $0x3, %al
jne 0xf8fea
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xfa48b
decb %al
cmpb $0x1, %al
ja 0xf901a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xfa188
testl %ecx, %ecx
jne 0xf8ec5
leaq 0x122409(%rip), %rcx    # 0x21b415
cmpb $0x0, (%rcx)
jne 0xf8eeb
jmp 0xf8ec5
movzbl (%rbx), %eax
addl $-0x49, %eax
cmpl $0x10, %eax
ja 0xf8ec5
movl $0x18401, %ecx          # imm = 0x18401
btl %eax, %ecx
jb 0xf8fcc
jmp 0xf8ec5