// File: /workspace/github_cpp_makefile_star2_O3/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 0xeceb
movzbl 0x2f1c0d(%rip), %eax    # 0x30c7a8
cmpl $0x50, %eax
je 0x1abe5
cmpl $0x60, %eax
jne 0x1abb1
movl $0x0, 0x320c7d(%rip)    # 0x33b82c
jmp 0x1abe5
movq 0x1fdd18(%rip), %rcx    # 0x2188d0
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 0x1ac2b
orb %dil, %dl
orb %dl, %sil
je 0x1ac2b
movl 0x2f1bc5(%rip), %edx    # 0x30c7b0
cmpl $0x1, %edx
jne 0x1abf5
callq 0xeceb
movl $0x0, 0x2f1bb1(%rip)    # 0x30c7b0
movl $0x3db, %edi            # imm = 0x3DB
callq 0x27479
movl $0x5, %edi
callq 0x2754a
movzbl 0x3206ba(%rip), %eax    # 0x33b2d4
movl %eax, 0x2f1b8c(%rip)    # 0x30c7ac
movl $0x75, %edi
popq %rbp
jmp 0xcf89
movl 0x2f1b7f(%rip), %edx    # 0x30c7b0
cmpq $0x5, %rdx
ja 0x1ac55
leaq 0xee816(%rip), %rsi     # 0x109454
movslq (%rsi,%rdx,4), %rdi
addq %rsi, %rdi
jmpq *%rdi
movb $0x0, 0x320686(%rip)    # 0x33b2d4
callq 0x3b5a0
jmp 0x1abe5
cmpl $0x4c, %edx
jne 0x1ac81
movl %eax, 0x2f1b50(%rip)    # 0x30c7b0
addl $-0x42, %eax
cmpl $0x17, %eax
ja 0x1ac91
leaq 0xee7fd(%rip), %rcx     # 0x10946c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x56, 0x2f1b29(%rip)   # 0x30c7a8
jmp 0x1ac91
movb %dl, 0x2f1b21(%rip)     # 0x30c7a8
movl $0x0, 0x2f1b1f(%rip)    # 0x30c7b0
popq %rbp
retq
xorl %eax, %eax
cmpq $0x10000, %rcx          # imm = 0x10000
sete %al
leal (%rax,%rax,4), %eax
movb %al, 0x222096(%rip)     # 0x23cd3e
movb 0x20072c(%rip), %al     # 0x21b3da
movb %al, 0x200725(%rip)     # 0x21b3d9
jmp 0x1abe5
movl $0xfffffffd, %edi       # imm = 0xFFFFFFFD
callq 0x27479
movl $0x6, %edi
callq 0x2754a
movb $0x0, 0x320600(%rip)    # 0x33b2d4
xorl %edi, %edi
cmpq $0x400, 0x1fdbef(%rip) # imm = 0x400
je 0x1acf3
movl 0x2f1ac3(%rip), %eax    # 0x30c7ac
movzbl %al, %edi
movb %dil, 0x3205e1(%rip)    # 0x33b2d4
callq 0x3ab43
movl $0x1, 0x1fdb46(%rip)    # 0x218848
movl $0x80, %edi
callq 0xcf89
callq 0xeceb
movl $0x0, 0x1fdb2d(%rip)    # 0x218848
movl $0x169f, 0x1fdb1f(%rip) # imm = 0x169F
jmp 0x1ac91
movb $0x55, 0x2f1a77(%rip)   # 0x30c7a8
jmp 0x1ac91
movb $0x57, 0x2f1a6b(%rip)   # 0x30c7a8
jmp 0x1ac91
movb $0x53, 0x2f1a5f(%rip)   # 0x30c7a8
movl 0x1fdab1(%rip), %eax    # 0x218800
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movl 0x1fdaa6(%rip), %eax    # 0x218804
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
cmpl %edx, 0x2004d7(%rip)    # 0x21b244
setge %al
addb %al, %al
leal 0x2(%rax), %edx
incb %al
cmpl %ecx, 0x2004c3(%rip)    # 0x21b240
movzbl %dl, %ecx
movzbl %al, %eax
cmovgl %ecx, %eax
movb %al, 0x200689(%rip)     # 0x21b415
movl $0x1ee0, %edi           # imm = 0x1EE0
jmp 0x1ac25
movl 0x1fda74(%rip), %ecx    # 0x218810
imull 0x1fd9f9(%rip), %ecx    # 0x21879c
movb $0x55, %al
cmpl %ecx, 0x200495(%rip)    # 0x21b240
jl 0x1adcf
movl 0x1fda51(%rip), %eax    # 0x218804
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movb $0x4d, %al
cmpl %ecx, 0x200480(%rip)    # 0x21b244
jl 0x1adcf
movb $0x4, 0x200648(%rip)    # 0x21b415
movb $0x53, %al
movb %al, 0x2f19d3(%rip)     # 0x30c7a8
jmp 0x1ae49
movb $0x43, 0x2f19ca(%rip)   # 0x30c7a8
jmp 0x1ae49
movl 0x1fda1e(%rip), %eax    # 0x218804
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
cmpl %ecx, 0x20044f(%rip)    # 0x21b244
jle 0x1ae21
movb $0x53, 0x2f19aa(%rip)   # 0x30c7a8
movl 0x1fd9fc(%rip), %eax    # 0x218800
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
cmpl %ecx, 0x20042d(%rip)    # 0x21b240
jge 0x1ae53
movb $0x2, 0x2005f9(%rip)    # 0x21b415
jmp 0x1ac91
movl 0x1fd9d9(%rip), %eax    # 0x218800
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
cmpl %ecx, 0x20040a(%rip)    # 0x21b240
movl $0x57, %eax
movl $0x4d, %ecx
cmovll %eax, %ecx
movb %cl, 0x2f195f(%rip)     # 0x30c7a8
movl $0x1edf, %edi           # imm = 0x1EDF
jmp 0x1ac25
movb $0x4, 0x2005bb(%rip)    # 0x21b415
jmp 0x1ac91