// File: /workspace/github_cpp_makefile_star2_O2/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
callq 0xe7d9
movzbl 0x2dc780(%rip), %eax    # 0x2f67a8
cmpl $0x50, %eax
je 0x1a06f
cmpl $0x60, %eax
jne 0x1a03b
andl $0x0, 0x30b7f3(%rip)    # 0x32582c
jmp 0x1a06f
movq 0x1e888e(%rip), %rcx    # 0x2028d0
cmpq $0x20000, %rcx          # imm = 0x20000
sete %dl
cmpq $0x400000, %rcx         # imm = 0x400000
sete %dil
cmpq $0x2000000, %rcx        # imm = 0x2000000
sete %sil
cmpl $0x44, %eax
jne 0x1a0ae
orb %dil, %dl
orb %dl, %sil
je 0x1a0ae
movl 0x2dc73b(%rip), %edx    # 0x2f67b0
cmpl $0x1, %edx
jne 0x1a07f
callq 0xe7d9
andl $0x0, 0x2dc72a(%rip)    # 0x2f67b0
movl $0x3db, %edi            # imm = 0x3DB
callq 0x257d9
pushq $0x5
popq %rdi
callq 0x258aa
movzbl 0x30b235(%rip), %eax    # 0x3252d4
movl %eax, 0x2dc707(%rip)    # 0x2f67ac
pushq $0x75
popq %rdi
popq %rbp
jmp 0xcc4f
movl 0x2dc6fc(%rip), %edx    # 0x2f67b0
cmpq $0x5, %rdx
ja 0x1a0d8
leaq 0xd9393(%rip), %rsi     # 0xf3454
movslq (%rsi,%rdx,4), %rdi
addq %rsi, %rdi
jmpq *%rdi
movb $0x0, 0x30b203(%rip)    # 0x3252d4
callq 0x3818f
jmp 0x1a06f
cmpl $0x4c, %edx
jne 0x1a104
movl %eax, 0x2dc6cd(%rip)    # 0x2f67b0
addl $-0x42, %eax
cmpl $0x17, %eax
ja 0x1a111
leaq 0xd937a(%rip), %rcx     # 0xf346c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x56, 0x2dc6a6(%rip)   # 0x2f67a8
jmp 0x1a111
movb %dl, 0x2dc69e(%rip)     # 0x2f67a8
andl $0x0, 0x2dc69f(%rip)    # 0x2f67b0
popq %rbp
retq
xorl %eax, %eax
cmpq $0x10000, %rcx          # imm = 0x10000
sete %al
leal (%rax,%rax,4), %eax
movb %al, 0x20cc16(%rip)     # 0x226d3e
movb 0x1eb2ac(%rip), %al     # 0x2053da
movb %al, 0x1eb2a5(%rip)     # 0x2053d9
jmp 0x1a06f
pushq $-0x3
popq %rdi
callq 0x257d9
pushq $0x6
popq %rdi
callq 0x258aa
movb $0x0, 0x30b184(%rip)    # 0x3252d4
xorl %edi, %edi
cmpq $0x400, 0x1e8773(%rip) # imm = 0x400
je 0x1a16f
movl 0x2dc647(%rip), %eax    # 0x2f67ac
movzbl %al, %edi
movb %dil, 0x30b165(%rip)    # 0x3252d4
callq 0x377c9
movl $0x1, 0x1e86ca(%rip)    # 0x202848
movl $0x80, %edi
callq 0xcc4f
callq 0xe7d9
andl $0x0, 0x1e86b4(%rip)    # 0x202848
movl $0x169f, 0x1e86a6(%rip) # imm = 0x169F
jmp 0x1a111
movb $0x55, 0x2dc5fe(%rip)   # 0x2f67a8
jmp 0x1a111
movb $0x57, 0x2dc5f2(%rip)   # 0x2f67a8
jmp 0x1a111
movb $0x53, 0x2dc5e6(%rip)   # 0x2f67a8
movl 0x1eb078(%rip), %esi    # 0x205240
movl 0x1e8632(%rip), %eax    # 0x202800
pushq $0x2
popq %rdi
cltd
idivl %edi
movl %eax, %ecx
movl 0x1eb067(%rip), %r8d    # 0x205244
movl 0x1e8621(%rip), %eax    # 0x202804
cltd
idivl %edi
cmpl %eax, %r8d
setge %al
addb %al, %al
leal 0x2(%rax), %edx
incb %al
cmpl %ecx, %esi
movzbl %dl, %ecx
movzbl %al, %eax
cmovgl %ecx, %eax
movb %al, 0x1eb211(%rip)     # 0x205415
movl $0x1ee0, %edi           # imm = 0x1EE0
jmp 0x1a0a8
movl 0x1e85fc(%rip), %eax    # 0x202810
imull 0x1e8581(%rip), %eax    # 0x20279c
movb $0x55, %cl
cmpl %eax, 0x1eb01d(%rip)    # 0x205240
jl 0x1a246
movl 0x1eb019(%rip), %esi    # 0x205244
movl 0x1e85d3(%rip), %eax    # 0x202804
pushq $0x2
popq %rcx
cltd
idivl %ecx
movb $0x4d, %cl
cmpl %eax, %esi
jl 0x1a246
movb $0x4, 0x1eb1d1(%rip)    # 0x205415
movb $0x53, %cl
movb %cl, 0x2dc55c(%rip)     # 0x2f67a8
jmp 0x1a2b3
movb $0x43, 0x2dc553(%rip)   # 0x2f67a8
jmp 0x1a2b3
movl 0x1eafe7(%rip), %esi    # 0x205244
movl 0x1e85a1(%rip), %eax    # 0x202804
pushq $0x2
popq %rcx
cltd
idivl %ecx
cmpl %eax, %esi
jle 0x1a293
movb $0x53, 0x2dc534(%rip)   # 0x2f67a8
movl 0x1eafc6(%rip), %esi    # 0x205240
movl 0x1e8580(%rip), %eax    # 0x202800
cltd
idivl %ecx
cmpl %eax, %esi
jge 0x1a2bd
movb $0x2, 0x1eb187(%rip)    # 0x205415
jmp 0x1a111
movl 0x1eafa7(%rip), %esi    # 0x205240
movl 0x1e8561(%rip), %eax    # 0x202800
cltd
idivl %ecx
cmpl %eax, %esi
pushq $0x57
popq %rax
pushq $0x4d
popq %rcx
cmovll %eax, %ecx
movb %cl, 0x2dc4f5(%rip)     # 0x2f67a8
movl $0x1edf, %edi           # imm = 0x1EDF
jmp 0x1a0a8
movb $0x4, 0x1eb151(%rip)    # 0x205415
jmp 0x1a111