// File: /workspace/github_cpp_makefile_star2_O1/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 0xed5e
movzbl 0x2f1c10(%rip), %eax    # 0x30c7a8
cmpl $0x50, %eax
je 0x1ac76
cmpl $0x60, %eax
jne 0x1abb5
movl $0x0, 0x320c7c(%rip)    # 0x33b82c
jmp 0x1ac76
movq 0x1fdd14(%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 0x1abed
orb %dil, %dl
orb %dl, %sil
jne 0x1ac76
movl 0x2f1bbd(%rip), %edx    # 0x30c7b0
cmpq $0x5, %rdx
ja 0x1ac17
leaq 0xee844(%rip), %rsi     # 0x109444
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movb $0x0, 0x3206c4(%rip)    # 0x33b2d4
callq 0x3b52b
jmp 0x1ac76
cmpl $0x4c, %edx
jne 0x1ac43
movl %eax, 0x2f1b8e(%rip)    # 0x30c7b0
addl $-0x42, %eax
cmpl $0x17, %eax
ja 0x1ac53
leaq 0xee82b(%rip), %rcx     # 0x10945c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x56, 0x2f1b67(%rip)   # 0x30c7a8
jmp 0x1ac53
movb %dl, 0x2f1b5f(%rip)     # 0x30c7a8
movl $0x0, 0x2f1b5d(%rip)    # 0x30c7b0
popq %rbp
retq
xorl %eax, %eax
cmpq $0x10000, %rcx          # imm = 0x10000
sete %al
leal (%rax,%rax,4), %eax
movb %al, 0x2220d4(%rip)     # 0x23cd3e
movb 0x20076a(%rip), %al     # 0x21b3da
movb %al, 0x200763(%rip)     # 0x21b3d9
cmpl $0x1, 0x2f1b33(%rip)    # 0x30c7b0
jne 0x1ac84
callq 0xed5e
movl $0x0, 0x2f1b22(%rip)    # 0x30c7b0
movl $0x3db, %edi            # imm = 0x3DB
callq 0x27724
movl $0x5, %edi
callq 0x277f5
movzbl 0x32062b(%rip), %eax    # 0x33b2d4
movl %eax, 0x2f1afd(%rip)    # 0x30c7ac
movl $0x75, %edi
popq %rbp
jmp 0xcf81
movl $0xfffffffd, %edi       # imm = 0xFFFFFFFD
callq 0x27724
movl $0x6, %edi
callq 0x277f5
movb $0x0, 0x3205ff(%rip)    # 0x33b2d4
cmpq $0x400, 0x1fdbf0(%rip) # imm = 0x400
je 0x1acee
movb 0x2f1ac4(%rip), %al     # 0x30c7ac
movb %al, 0x3205e6(%rip)     # 0x33b2d4
movzbl 0x3205df(%rip), %edi    # 0x33b2d4
callq 0x3aabf
movl $0x1, 0x1fdb44(%rip)    # 0x218848
movl $0x80, %edi
callq 0xcf81
callq 0xed5e
movl $0x0, 0x1fdb2b(%rip)    # 0x218848
movl $0x169f, 0x1fdb1d(%rip) # imm = 0x169F
jmp 0x1ac53
movb $0x55, 0x2f1a75(%rip)   # 0x30c7a8
jmp 0x1ac53
movb $0x57, 0x2f1a69(%rip)   # 0x30c7a8
jmp 0x1ac53
movb $0x53, 0x2f1a5d(%rip)   # 0x30c7a8
movl 0x1fdaaf(%rip), %eax    # 0x218800
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movl 0x1fdaa4(%rip), %eax    # 0x218804
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
cmpl %edx, 0x2004d5(%rip)    # 0x21b244
setge %al
addb %al, %al
leal 0x2(%rax), %edx
incb %al
cmpl %ecx, 0x2004c1(%rip)    # 0x21b240
movzbl %dl, %ecx
movzbl %al, %eax
cmovgl %ecx, %eax
movb %al, 0x200687(%rip)     # 0x21b415
movl $0x1ee0, %edi           # imm = 0x1EE0
jmp 0x1acb4
movl 0x1fda72(%rip), %ecx    # 0x218810
imull 0x1fd9f7(%rip), %ecx    # 0x21879c
movb $0x55, %al
cmpl %ecx, 0x200493(%rip)    # 0x21b240
jl 0x1add1
movl 0x1fda4f(%rip), %eax    # 0x218804
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movb $0x4d, %al
cmpl %ecx, 0x20047e(%rip)    # 0x21b244
jl 0x1add1
movb $0x4, 0x200646(%rip)    # 0x21b415
movb $0x53, %al
movb %al, 0x2f19d1(%rip)     # 0x30c7a8
jmp 0x1ae4b
movb $0x43, 0x2f19c8(%rip)   # 0x30c7a8
jmp 0x1ae4b
movl 0x1fda1c(%rip), %eax    # 0x218804
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
cmpl %ecx, 0x20044d(%rip)    # 0x21b244
jle 0x1ae23
movb $0x53, 0x2f19a8(%rip)   # 0x30c7a8
movl 0x1fd9fa(%rip), %eax    # 0x218800
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
cmpl %ecx, 0x20042b(%rip)    # 0x21b240
jge 0x1ae55
movb $0x2, 0x2005f7(%rip)    # 0x21b415
jmp 0x1ac53
movl 0x1fd9d7(%rip), %eax    # 0x218800
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
cmpl %ecx, 0x200408(%rip)    # 0x21b240
movl $0x57, %eax
movl $0x4d, %ecx
cmovll %eax, %ecx
movb %cl, 0x2f195d(%rip)     # 0x30c7a8
movl $0x1edf, %edi           # imm = 0x1EDF
jmp 0x1acb4
movb $0x4, 0x2005b9(%rip)    # 0x21b415
jmp 0x1ac53