// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x11f21d(%rip), %rax    # 0x2027d8
cmpl $0x0, (%rax)
setne %cl
leaq 0x11f308(%rip), %rax    # 0x2028d0
movq (%rax), %rax
cmpq $0x400, %rax            # imm = 0x400
sete %dl
cmpq $0x800000, %rax         # imm = 0x800000
sete %sil
orb %dl, %sil
leaq 0x2131c0(%rip), %rax    # 0x2f67a8
movb (%rax), %al
cmpb $0x4c, %al
sete %dl
orb %cl, %dl
orb %sil, %dl
testb $0x1, %dl
je 0xe3608
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %al, %eax
leal -0x49(%rax), %ecx
cmpl $0x10, %ecx
ja 0xe3743
movl $0x1b401, %edx          # imm = 0x1B401
btl %ecx, %edx
jae 0xe3743
leaq 0x14592c(%rip), %rax    # 0x228f58
cmpl $0x0, (%rax)
je 0xe3649
leaq 0x241db0(%rip), %rax    # 0x3253e8
cmpb $0x0, (%rax)
je 0xe3649
leaq 0x241da8(%rip), %rax    # 0x3253ec
testb $0x4, (%rax)
jne 0xe35f9
leaq 0x241d44(%rip), %rsi    # 0x325394
leaq 0x241d35(%rip), %r12    # 0x32538c
movl (%r12), %eax
pushq $0x2
popq %r15
cltd
idivl %r15d
decl %eax
movl (%rsi), %edx
addl %eax, %edx
leaq 0x241d20(%rip), %rsi    # 0x325390
addl (%rsi), %eax
leaq 0x241d27(%rip), %r13    # 0x3253a0
movl %edx, (%r13)
leaq 0x241d20(%rip), %r14    # 0x3253a4
movl %eax, (%r14)
cmpl $0x10, %ecx
ja 0xe3696
movl $0x18001, %edx          # imm = 0x18001
btl %ecx, %edx
jb 0xe36a1
pushq $0x1
popq %rdi
callq 0xe87c
movl (%r14), %eax
leaq 0x11f1d4(%rip), %rcx    # 0x20287c
cmpl (%rcx), %eax
jl 0xe36b9
leaq 0x241d39(%rip), %rax    # 0x3253ec
movl $0x4, (%rax)
leaq 0x241ce8(%rip), %rax    # 0x3253a8
movl $0x8, (%rax)
pushq $0x1
popq %rbx
movl %ebx, %edi
callq 0xe0b23
movl (%r13), %esi
movl (%r14), %ecx
movl (%r12), %eax
cltd
idivl %r15d
leaq 0x241cb2(%rip), %rdx    # 0x325398
subl (%rdx), %eax
movl %ebx, %edi
movl %ecx, %edx
movl %eax, %ecx
callq 0xdf180
leaq 0x121d1b(%rip), %rax    # 0x205415
movb (%rax), %al
cmpb $0x4, %al
jb 0xe3713
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe4778
cmpb $0x3, %al
jne 0xe372a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe4ae6
decb %al
cmpb $0x1, %al
ja 0xe3760
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe47f5
testl %eax, %eax
jne 0xe35f9
leaq 0x121cc3(%rip), %rax    # 0x205415
cmpb $0x0, (%rax)
jne 0xe3625
jmp 0xe35f9
leaq 0x213041(%rip), %rax    # 0x2f67a8
movzbl (%rax), %eax
addl $-0x49, %eax
cmpl $0x10, %eax
ja 0xe35f9
movl $0x18401, %ecx          # imm = 0x18401
btl %eax, %ecx
jb 0xe3700
jmp 0xe35f9