// File: jkingan[P]ladyheather/heather.cpp
// Function: zoom_zoomed()
void zoom_zoomed()
{
   erase_screen();

   if(zoom_screen == 'P') {
      goto unzoom;
   }
   else if(zoom_screen == '`') {
      show_rpn_help = 0;
      goto unzoom;
   }
   else if((rcvr_type == CS_RCVR) && (zoom_screen == 'D')) {
      goto unzoom;
   }
   else if((rcvr_type == RFTG_RCVR) && (zoom_screen == 'D')) {
      goto unzoom;
   }
   else if((rcvr_type == X72_RCVR) && (zoom_screen == 'D')) {
      goto unzoom;
   }
   else if((un_zoom == ZOOM_SHARED) || (un_zoom == ZOOM_LLA) || (un_zoom == ZOOM_AZEL) || (un_zoom == ZOOM_PLOT)) {
      unzoom:
      if(un_zoom == ZOOM_LLA) erase_screen();
      un_zoom = UN_ZOOM;
      change_zoom_config(987);
      cancel_zoom(5);
      zoom_fixes = show_fixes;
      config_screen(117);
      return;
   }
   else if(un_zoom == ZOOM_INFO) {
      goto unzoom;
   }
   else if(un_zoom == ZOOM_CLOCK) {
      show_fixes = 0;
      config_fix_display();
      goto unzoom;
   }
   else if(un_zoom == ZOOM_ADEVS) {
//sprintf(debug_text2, "plot watch unzoom:%d", plot_watch);
      if(rcvr_type == TICC_RCVR) all_adevs = ALL_CHANS;
      else                       all_adevs = SINGLE_ADEVS;
      plot_adev_data = old_plot_adevs;
      goto unzoom;
   }
   else if(un_zoom && (un_zoom != 'L')) {
      zoom_screen = un_zoom;
      un_zoom = UN_ZOOM;
      return;
   }

   un_zoom = zoom_screen;
   if(zoom_screen == 'U') {  // all signals
//un_zoom = UN_ZOOM;
      zoom_screen = 'S';
      if(mouse_x > SCREEN_WIDTH/2) {
         if(mouse_y >= (SCREEN_HEIGHT/2)) plot_signals = 4;
         else                             plot_signals = 2;
      }
      else {
         if(mouse_y >= (SCREEN_HEIGHT/2)) plot_signals = 3;
         else                             plot_signals = 1;
      }
      config_screen(7904);
   }
   else if(zoom_screen == 'V') { // signals and maps
//un_zoom = UN_ZOOM;
      if(mouse_y > SCREEN_HEIGHT/2) {
         zoom_screen = 'S';
         if(mouse_x >= (SCREEN_WIDTH/2)) plot_signals = 4;
         else                            plot_signals = 2;
      }
      else {
         if(mouse_x >= (SCREEN_WIDTH/2)) {
            zoom_screen = 'M';
         }
         else {
            zoom_screen = 'W';
         }
         config_screen(7903);
      }
   }
   else if(zoom_screen == 'I') { // signals and maps
//un_zoom = UN_ZOOM;
      if(mouse_x < (MINOR_COL*TEXT_WIDTH)) {
         zoom_screen = 'U';
      }
      else if(mouse_y < (SCREEN_HEIGHT/2)) {
         zoom_screen = 'M';
      }
      else {
         plot_signals = 4;
         zoom_screen = 'S';
      }
      config_screen(7903);
   }
   else if(zoom_screen == 'S') {  // signals
      zoom_screen = 'U';
   }
   else if(zoom_screen == 'M') {  // sat map
      zoom_screen = 'V';
   }
   else if(zoom_screen == 'C') {  // digital clock
      zoom_screen = 'W';
   }
   else if(zoom_screen == 'W') {  // watch
      zoom_screen = 'C';
      config_screen(7903);
   }
   else if(zoom_screen == 'B') {  // map and watch
      zoom_screen = 'V';
   }
   else if(zoom_screen == 'Y') {  // map and sigs
      zoom_screen = 'V';
   }
   else if(zoom_screen == 'L') {  // fix map
      change_zoom_config(-3);
      cancel_zoom(6);      //zkzk
      show_fixes = 0;
if(rcvr_type != NO_RCVR) show_fixes = zoom_fixes;  // zzzzzz
      change_fix_config(show_fixes);
//    plot_lla = 0;

      no_redraw = 1;
      config_screen(128);
      erase_screen();
      no_redraw = 0;

need_redraw = 5791;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
callq 0x117e0
movzbl 0x3452a4(%rip), %eax    # 0x36b988
cmpl $0x50, %eax
jne 0x266ee
jmp 0x2677d
movzbl 0x345293(%rip), %eax    # 0x36b988
cmpl $0x60, %eax
jne 0x26706
movl $0x0, 0x374308(%rip)    # 0x39aa0c
jmp 0x2677d
cmpq $0x20000, 0x25139f(%rip) # imm = 0x20000
jne 0x26721
movzbl 0x34526e(%rip), %eax    # 0x36b988
cmpl $0x44, %eax
jne 0x26721
jmp 0x2677d
cmpq $0x400000, 0x251384(%rip) # imm = 0x400000
jne 0x2673c
movzbl 0x345253(%rip), %eax    # 0x36b988
cmpl $0x44, %eax
jne 0x2673c
jmp 0x2677d
cmpq $0x2000000, 0x251369(%rip) # imm = 0x2000000
jne 0x26757
movzbl 0x345238(%rip), %eax    # 0x36b988
cmpl $0x44, %eax
jne 0x26757
jmp 0x2677d
cmpl $0x1, 0x345232(%rip)    # 0x36b990
je 0x2677b
cmpl $0x1, 0x345229(%rip)    # 0x36b990
je 0x2677b
cmpl $0x1, 0x345220(%rip)    # 0x36b990
je 0x2677b
cmpl $0x5, 0x345217(%rip)    # 0x36b990
jne 0x267c5
jmp 0x2677d
cmpl $0x1, 0x34520c(%rip)    # 0x36b990
jne 0x2678b
callq 0x117e0
movl $0x0, 0x3451fb(%rip)    # 0x36b990
movl $0x3db, %edi            # imm = 0x3DB
callq 0x375a0
movl $0x5, %edi
callq 0x376e0
movzbl 0x373d04(%rip), %eax    # 0x39a4b4
movl %eax, 0x3451d6(%rip)    # 0x36b98c
movl $0x75, %edi
callq 0xeaf0
jmp 0x26b52
cmpl $0x2, 0x3451c4(%rip)    # 0x36b990
jne 0x267d0
jmp 0x2677d
cmpl $0x3, 0x3451b9(%rip)    # 0x36b990
jne 0x267e7
movb $0x0, 0x373cd4(%rip)    # 0x39a4b4
callq 0x538f0
jmp 0x2677d
cmpl $0x4, 0x3451a2(%rip)    # 0x36b990
jne 0x2681e
cmpq $0x10000, 0x2512b5(%rip) # imm = 0x10000
jne 0x26806
movb $0x5, 0x27571a(%rip)    # 0x29bf1e
jmp 0x2680d
movb $0x0, 0x275711(%rip)    # 0x29bf1e
movb 0x253da7(%rip), %al     # 0x27a5ba
movb %al, 0x253da0(%rip)     # 0x27a5b9
jmp 0x2677d
cmpl $0x0, 0x34516b(%rip)    # 0x36b990
je 0x2684b
cmpl $0x4c, 0x345162(%rip)   # 0x36b990
je 0x2684b
movl 0x34515a(%rip), %eax    # 0x36b990
movb %al, 0x34514c(%rip)     # 0x36b988
movl $0x0, 0x34514a(%rip)    # 0x36b990
jmp 0x26b52
jmp 0x2684d
jmp 0x2684f
jmp 0x26851
jmp 0x26853
jmp 0x26855
jmp 0x26857
jmp 0x26859
jmp 0x2685b
jmp 0x2685d
movzbl 0x345124(%rip), %eax    # 0x36b988
movl %eax, 0x345126(%rip)    # 0x36b990
movzbl 0x345117(%rip), %eax    # 0x36b988
cmpl $0x55, %eax
jne 0x26914
movb $0x53, 0x345107(%rip)   # 0x36b988
movl 0x253b99(%rip), %eax    # 0x27a420
movl %eax, -0x4(%rbp)
movl 0x251150(%rip), %eax    # 0x2779e0
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x4(%rbp), %eax
cmpl %ecx, %eax
jle 0x268d3
movl 0x253b7d(%rip), %eax    # 0x27a424
movl %eax, -0x8(%rbp)
movl 0x251134(%rip), %eax    # 0x2779e4
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x8(%rbp), %eax
cmpl %ecx, %eax
jl 0x268ca
movb $0x4, 0x253d2d(%rip)    # 0x27a5f5
jmp 0x268d1
movb $0x2, 0x253d24(%rip)    # 0x27a5f5
jmp 0x26905
movl 0x253b4b(%rip), %eax    # 0x27a424
movl %eax, -0xc(%rbp)
movl 0x251102(%rip), %eax    # 0x2779e4
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0xc(%rbp), %eax
cmpl %ecx, %eax
jl 0x268fc
movb $0x3, 0x253cfb(%rip)    # 0x27a5f5
jmp 0x26903
movb $0x1, 0x253cf2(%rip)    # 0x27a5f5
jmp 0x26905
movl $0x1ee0, %edi           # imm = 0x1EE0
callq 0xeaf0
jmp 0x26b52
movzbl 0x34506d(%rip), %eax    # 0x36b988
cmpl $0x56, %eax
jne 0x269bc
movl 0x253afa(%rip), %eax    # 0x27a424
movl %eax, -0x10(%rbp)
movl 0x2510b1(%rip), %eax    # 0x2779e4
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x10(%rbp), %eax
cmpl %ecx, %eax
jle 0x2697d
movb $0x53, 0x34503d(%rip)   # 0x36b988
movl 0x253acf(%rip), %eax    # 0x27a420
movl %eax, -0x14(%rbp)
movl 0x251086(%rip), %eax    # 0x2779e0
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x14(%rbp), %eax
cmpl %ecx, %eax
jl 0x26974
movb $0x4, 0x253c83(%rip)    # 0x27a5f5
jmp 0x2697b
movb $0x2, 0x253c7a(%rip)    # 0x27a5f5
jmp 0x269b7
movl 0x253a9d(%rip), %eax    # 0x27a420
movl %eax, -0x18(%rbp)
movl 0x251054(%rip), %eax    # 0x2779e0
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x18(%rbp), %eax
cmpl %ecx, %eax
jl 0x269a6
movb $0x4d, 0x344fe4(%rip)   # 0x36b988
jmp 0x269ad
movb $0x57, 0x344fdb(%rip)   # 0x36b988
movl $0x1edf, %edi           # imm = 0x1EDF
callq 0xeaf0
jmp 0x26b50
movzbl 0x344fc5(%rip), %eax    # 0x36b988
cmpl $0x49, %eax
jne 0x26a30
movl 0x253a52(%rip), %eax    # 0x27a420
movl 0x250fa8(%rip), %ecx    # 0x27797c
imull 0x251015(%rip), %ecx    # 0x2779f0
cmpl %ecx, %eax
jge 0x269e8
movb $0x55, 0x344fa2(%rip)   # 0x36b988
jmp 0x26a21
movl 0x253a36(%rip), %eax    # 0x27a424
movl %eax, -0x1c(%rbp)
movl 0x250fed(%rip), %eax    # 0x2779e4
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x1c(%rbp), %eax
cmpl %ecx, %eax
jge 0x26a11
movb $0x4d, 0x344f79(%rip)   # 0x36b988
jmp 0x26a1f
movb $0x4, 0x253bdd(%rip)    # 0x27a5f5
movb $0x53, 0x344f69(%rip)   # 0x36b988
jmp 0x26a21
movl $0x1edf, %edi           # imm = 0x1EDF
callq 0xeaf0
jmp 0x26b4e
movzbl 0x344f51(%rip), %eax    # 0x36b988
cmpl $0x53, %eax
jne 0x26a48
movb $0x55, 0x344f45(%rip)   # 0x36b988
jmp 0x26b4c
movzbl 0x344f39(%rip), %eax    # 0x36b988
cmpl $0x4d, %eax
jne 0x26a60
movb $0x56, 0x344f2d(%rip)   # 0x36b988
jmp 0x26b4a
movzbl 0x344f21(%rip), %eax    # 0x36b988
cmpl $0x43, %eax
jne 0x26a78
movb $0x57, 0x344f15(%rip)   # 0x36b988
jmp 0x26b48
movzbl 0x344f09(%rip), %eax    # 0x36b988
cmpl $0x57, %eax
jne 0x26a9a
movb $0x43, 0x344efd(%rip)   # 0x36b988
movl $0x1edf, %edi           # imm = 0x1EDF
callq 0xeaf0
jmp 0x26b46
movzbl 0x344ee7(%rip), %eax    # 0x36b988
cmpl $0x42, %eax
jne 0x26ab2
movb $0x56, 0x344edb(%rip)   # 0x36b988
jmp 0x26b44
movzbl 0x344ecf(%rip), %eax    # 0x36b988
cmpl $0x59, %eax
jne 0x26ac7
movb $0x56, 0x344ec3(%rip)   # 0x36b988
jmp 0x26b42
movzbl 0x344eba(%rip), %eax    # 0x36b988
cmpl $0x4c, %eax
jne 0x26b40
movl $0xfffffffd, %edi       # imm = 0xFFFFFFFD
callq 0x375a0
movl $0x6, %edi
callq 0x376e0
movb $0x0, 0x3739c6(%rip)    # 0x39a4b4
cmpq $0x400, 0x250fb7(%rip) # imm = 0x400
je 0x26b07
movl 0x344e8b(%rip), %eax    # 0x36b98c
movb %al, 0x3739ad(%rip)     # 0x39a4b4
movzbl 0x3739a6(%rip), %edi    # 0x39a4b4
callq 0x52a70
movl $0x1, 0x250f0b(%rip)    # 0x277a28
movl $0x80, %edi
callq 0xeaf0
callq 0x117e0
movl $0x0, 0x250ef2(%rip)    # 0x277a28
movl $0x169f, 0x250ee4(%rip) # imm = 0x169F
jmp 0x26b42
jmp 0x26b44
jmp 0x26b46
jmp 0x26b48
jmp 0x26b4a
jmp 0x26b4c
jmp 0x26b4e
jmp 0x26b50
jmp 0x26b52
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)