// File: 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
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
leaq 0x120f36(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
je 0x156a8c
jmp 0x156d36
leaq 0x12101d(%rip), %rax    # 0x277ab0
cmpq $0x400, (%rax)          # imm = 0x400
jne 0x156aa1
jmp 0x156d36
leaq 0x121008(%rip), %rax    # 0x277ab0
cmpq $0x800000, (%rax)       # imm = 0x800000
jne 0x156ab6
jmp 0x156d36
leaq 0x214ecb(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x4c, %eax
jne 0x156aca
jmp 0x156d36
leaq 0x214eb7(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x53, %eax
jne 0x156ade
jmp 0x156b66
leaq 0x214ea3(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x58, %eax
jne 0x156aef
jmp 0x156b64
leaq 0x214e92(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x59, %eax
jne 0x156b00
jmp 0x156b62
leaq 0x214e81(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x55, %eax
jne 0x156b11
jmp 0x156b60
leaq 0x214e70(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x56, %eax
jne 0x156b22
jmp 0x156b5e
leaq 0x214e5f(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x49, %eax
jne 0x156b33
jmp 0x156b5c
leaq 0x214e4e(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x156b44
jmp 0x156d36
leaq 0x123aaa(%rip), %rax    # 0x27a5f5
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x156b58
jmp 0x156d36
jmp 0x156b5a
jmp 0x156b5c
jmp 0x156b5e
jmp 0x156b60
jmp 0x156b62
jmp 0x156b64
jmp 0x156b66
leaq 0x1475cb(%rip), %rax    # 0x29e138
cmpl $0x0, (%rax)
je 0x156b94
leaq 0x243a4f(%rip), %rax    # 0x39a5c8
cmpb $0x0, (%rax)
je 0x156b94
leaq 0x243a47(%rip), %rax    # 0x39a5cc
movl (%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x156b94
jmp 0x156d36
leaq 0x2439d9(%rip), %rax    # 0x39a574
movl (%rax), %ecx
leaq 0x2439c8(%rip), %rax    # 0x39a56c
movl (%rax), %eax
movl $0x2, %esi
cltd
idivl %esi
addl %eax, %ecx
subl $0x1, %ecx
leaq 0x2439c6(%rip), %rax    # 0x39a580
movl %ecx, (%rax)
leaq 0x2439ad(%rip), %rax    # 0x39a570
movl (%rax), %ecx
leaq 0x2439a0(%rip), %rax    # 0x39a56c
movl (%rax), %eax
movl $0x2, %esi
cltd
idivl %esi
addl %eax, %ecx
subl $0x1, %ecx
leaq 0x2439a2(%rip), %rax    # 0x39a584
movl %ecx, (%rax)
leaq 0x214d9d(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x58, %eax
jne 0x156bf5
jmp 0x156c25
leaq 0x214d8c(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x59, %eax
jne 0x156c06
jmp 0x156c23
leaq 0x214d7b(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x49, %eax
jne 0x156c17
jmp 0x156c21
movl $0x1, %edi
callq 0x118d0
jmp 0x156c23
jmp 0x156c25
leaq 0x243958(%rip), %rax    # 0x39a584
movl (%rax), %eax
leaq 0x120e27(%rip), %rcx    # 0x277a5c
cmpl (%rcx), %eax
jl 0x156c46
leaq 0x24398c(%rip), %rax    # 0x39a5cc
movl $0x4, (%rax)
leaq 0x24393b(%rip), %rax    # 0x39a588
movl $0x8, (%rax)
movl $0x1, %edi
callq 0x152920
leaq 0x24391c(%rip), %rax    # 0x39a580
movl (%rax), %esi
leaq 0x243917(%rip), %rax    # 0x39a584
movl (%rax), %eax
movl %eax, -0x8(%rbp)
leaq 0x2438f3(%rip), %rax    # 0x39a56c
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl -0x8(%rbp), %edx
movl %eax, %ecx
leaq 0x2438e9(%rip), %rax    # 0x39a578
subl (%rax), %ecx
movl $0x1, %edi
callq 0x150290
leaq 0x123953(%rip), %rax    # 0x27a5f5
movzbl (%rax), %eax
cmpl $0x4, %eax
jl 0x156cb4
callq 0x1586e0
jmp 0x156d36
leaq 0x12393a(%rip), %rax    # 0x27a5f5
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x156cca
callq 0x158d40
jmp 0x156d34
leaq 0x123924(%rip), %rax    # 0x27a5f5
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x156ce8
leaq 0x123915(%rip), %rax    # 0x27a5f5
movzbl (%rax), %eax
cmpl $0x2, %eax
jne 0x156cef
callq 0x1587c0
jmp 0x156d32
leaq 0x214c92(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x53, %eax
je 0x156d2b
leaq 0x214c83(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x58, %eax
je 0x156d2b
leaq 0x214c74(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x59, %eax
je 0x156d2b
leaq 0x214c65(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x49, %eax
jne 0x156d30
callq 0x1586e0
jmp 0x156d32
jmp 0x156d34
jmp 0x156d36
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)