// File: jkingan[P]ladyheather/heathmsc.cpp
// Function: show_all_adevs()
void show_all_adevs()
{
struct ADEV_INFO bins;
COORD row,col;
char *s;
int i;
int color;
int mask;

   // show all adev tables on the screen at the same time
   adevs_shown = 0;
   adev_cols_shown = 0;
   if(adevs_active(1) == 0) return;
   find_global_max();
   mask = 0xFFFF;

   if(TEXT_HEIGHT <= 8) row = ALL_ROW+5;
   else if((TEXT_HEIGHT <= 16) && (PLOT_ROW >= 576)) row = ALL_ROW+5;
   else if((TEXT_HEIGHT <= 14) && big_plot) row = ALL_ROW+5;
   else if((TEXT_HEIGHT <= 12) && (SCREEN_WIDTH >= WIDE_WIDTH)) row = ALL_ROW+5;
   else if((TEXT_HEIGHT <= 14) && (SCREEN_WIDTH >= MEDIUM_WIDTH)) row = ALL_ROW+3;
   else {
      row = ALL_ROW;
//    if(osc_params || (osc_discipline == 0)) ++row;
      if(osc_params) ++row;
   }

   all_adev_row = row;
   adev_page_size = adev_table_rows = (adev_bottom_row - all_adev_row);
   if(adev_decades_shown && (adev_decades_shown < adev_page_size)) adev_page_size = adev_decades_shown;
//sprintf(debug_text, "arow:%d  abr:%d  aps:%d  ads:%d", ADEV_ROW, adev_bottom_row, adev_page_size, adev_decades_shown);

   col = 0;

   i = 0;
   s = "ADEV";
   if     (all_adevs == ALL_PPS)   { i = 0x01; s = "chA"; }
   else if(all_adevs == ALL_OSC)   { i = 0x02; s = "chB"; }
   else if(all_adevs == ALL_CHC)   { i = 0x04; s = "chC"; }
   else if(all_adevs == ALL_CHD)   { i = 0x08; s = "chD"; }
   else if(all_adevs == ALL_CHANS) { i = 0x0F; s = "TICC"; }

   if(text_mode) ;
   else if(rcvr_type == TICC_RCVR) {
      if((i & adevs_active(1)) == 0) {
         sprintf(out, "No %s ADEV data available   ", s);
      }
      else {
         sprintf(out, "Collecting %s data          ", s);
      }
   }

   if(zoom_screen == 0) {
      vidstr(row, col, RED, out);
   }

   // all_adevs == 1  -  OSC
   // all_adevs == 2  -  PPS
   // all_adevs == 3  -  CHC
   // all_adevs == 4  -  CHD
   // all_adevs == 5  -  all channels

   mask = DISPLAY_ADEV;
   if(all_adevs == ALL_OSC) {  // showing OSC adevs
      fetch_adev_info(OSC_ADEV, &bins);
      adev_cols_shown += show_adev_table(&bins, row, col, OSC_ADEV_COLOR, 1);
      if(mixed_adevs != MIXED_REGULAR) {
         if(adev_display_mask & DISPLAY_CHB) plot_adev_curve(&bins, OSC_ADEV_COLOR, mask);
      }
   }
   else if(all_adevs == ALL_PPS) {   // showing PPS adevs
      fetch_adev_info(PPS_ADEV, &bins);
      adev_cols_shown += show_adev_table(&bins, row, col, PPS_ADEV_COLOR, 2);
      if(mixed_adevs != MIXED_REGULAR) {
         if(adev_display_mask & DISPLAY_CHA) plot_adev_curve(&bins, PPS_ADEV_COLOR, mask);
      }
   }
   else if(all_adevs == ALL_CHC) {   // showing CHC adevs
      fetch_adev_info(CHC_ADEV, &bins);
      adev_cols_shown += show_adev_table(&bins, row, col, CHC_ADEV_COLOR, 3);
      if(mixed_adevs != MIXED_REGULAR) {
         if(adev_display_mask & DISPLAY_CHC) plot_adev_curve(&bins, CHC_ADEV_COLOR, mask);
      }
   }
   else if(all_adevs == ALL_CHD) {   // showing selected adev type for all channels
      fetch_adev_info(CHD_ADEV, &bins);
      adev_cols_shown += show_adev_table(&bins, row, col, CHD_ADEV_COLOR, 4);
      if(mixed_adevs != MIXED_REGULAR) {
         if(adev_display_mask & DISPLAY_CHD) plot_adev_curve(&bins, CHD_ADEV_COLOR, mask);
      }
   }
   else if(all_adevs == ALL_CHANS) {
      if     (ATYPE == OSC_ADEV) { fetch_adev_info(PPS_ADEV, &bins); mask = DISPLAY_ADEV; }
      else if(ATYPE == OSC_HDEV) { fetch_adev_info(PPS_HDEV, &bins); mask = DISPLAY_HDEV; } 
      else if(ATYPE == OSC_MDEV) { fetch_adev_info(PPS_MDEV, &bins); mask = DISPLAY_MDEV; } 
      else if(ATYPE == OSC_TDEV) { fetch_adev_info(PPS_TDEV, &bins); mask = DISPLAY_TDEV; } 
//    else if(ATYPE == A_MTIE)   { fetch_adev_info(A_MTIE, &bins);   mask = DISPLAY_MTIE; } 
else if(ATYPE == A_MTIE)   { fetch_adev_info(A_MTIE, &bins);   mask = DISPLAY_CHA; } 
      adev_cols_shown += show_adev_table(&bins, row, col, PPS_ADEV_COLOR, 5);
      if(mixed_adevs != MIXED_REGULAR) {
         if(adev_display_mask & DISPLAY_CHA) plot_adev_curve(&bins, PPS_ADEV_COLOR, mask);
      }
   }

   color = GREEN;
   if(SCREEN_WIDTH < NARROW_SCREEN) col = (TEXT_COLS*1)/4;
   else if(SCREEN_WIDTH < MEDIUM_WIDTH) col += 25;
   else                                 col += 32;

   mask = DISPLAY_HDEV;
   if     (all_adevs == ALL_OSC) fetch_adev_info(OSC_HDEV, &bins);
   else if(all_adevs == ALL_PPS) fetch_adev_info(PPS_HDEV, &bins);
   else if(all_adevs == ALL_CHC) fetch_adev_info(CHC_HDEV, &bins);
   else if(all_adevs == ALL_CHD) fetch_adev_info(CHD_HDEV, &bins);
   else if(all_adevs == ALL_CHANS) {  // channel B
      if     (ATYPE == OSC_ADEV) { fetch_adev_info(OSC_ADEV, &bins); mask = DISPLAY_ADEV; }  
      else if(ATYPE == OSC_HDEV) { fetch_adev_info(OSC_HDEV, &bins); mask = DISPLAY_HDEV; }  
      else if(ATYPE == OSC_MDEV) { fetch_adev_info(OSC_MDEV, &bins); mask = DISPLAY_MDEV; }  
      else if(ATYPE == OSC_TDEV) { fetch_adev_info(OSC_TDEV, &bins); mask = DISPLAY_TDEV; }  
//    else if(ATYPE == A_MTIE)   { fetch_adev_info(B_MTIE, &bins);   mask = DISPLAY_MTIE; } 
else if(ATYPE == A_MTIE)   { fetch_adev_info(B_MTIE, &bins);   mask = DISPLAY_CHB; } 
      color = OSC_ADEV_COLOR;
   }
   adev_cols_shown += show_adev_table(&bins, row, col, color, 6);
   if(mixed_adevs != MIXED_REGULAR) {
      if(adev_display_mask & DISPLAY_CHB) plot_adev_curve(&bins, color, mask);
   }

   if(SCREEN_WIDTH >= WIDE_WIDTH) col = FILTER_COL+20;
   else                           col = (TEXT_COLS*2)/4;
   mask = DISPLAY_MDEV;
   if     (all_adevs == ALL_OSC) fetch_adev_info(OSC_MDEV, &bins);
   else if(all_adevs == ALL_PPS) fetch_adev_info(PPS_MDEV, &bins);
   else if(all_adevs == ALL_CHC) fetch_adev_info(CHC_MDEV, &bins);
   else if(all_adevs == ALL_CHD) fetch_adev_info(CHD_MDEV, &bins);
   else if(all_adevs == ALL_CHANS) {
      if     (ATYPE == OSC_ADEV) { fetch_adev_info(CHC_ADEV, &bins); mask = DISPLAY_ADEV; }  
      else if(ATYPE == OSC_HDEV) { fetch_adev_info(CHC_HDEV, &bins); mask = DISPLAY_HDEV; }  
      else if(ATYPE == OSC_MDEV) { fetch_adev_info(CHC_MDEV, &bins); mask = DISPLAY_MDEV; }  
      else if(ATYPE == OSC_TDEV) { fetch_adev_info(CHC_TDEV, &bins); mask = DISPLAY_TDEV; }  
//    else if(ATYPE == A_MTIE)   { fetch_adev_info(C_MTIE, &bins);   mask = DISPLAY_MTIE; } 
      else if(ATYPE == A_MTIE)   { fetch_adev_info(C_MTIE, &bins);   mask = DISPLAY_CHC; } 
   }
   adev_cols_shown += show_adev_table(&bins, row, col, MAGENTA, 7);
   if(mixed_adevs != MIXED_REGULAR) {
      if(adev_display_mask & DISPLAY_CHC) plot_adev_curve(&bins, MAGENTA, mask);
   }

   if(SCREEN_WIDTH >= WIDE_WIDTH) col += 32;
   else                           col = (TEXT_COLS*3)/4;
   mask = DISPLAY_TDEV;
   if     (all_adevs == ALL_OSC) fetch_adev_info(OSC_TDEV, &bins);
   else if(all_adevs == ALL_PPS) fetch_adev_info(PPS_TDEV, &bins);
   else if(all_adevs == ALL_CHC) fetch_adev_info(CHC_TDEV, &bins);
   else if(all_adevs == ALL_CHD) fetch_adev_info(CHD_TDEV, &bins);
   else if(all_adevs == ALL_CHANS) {
      if     (ATYPE == OSC_ADEV) { fetch_adev_info(CHD_ADEV, &bins); mask = DISPLAY_ADEV; }  
      else if(ATYPE == OSC_HDEV) { fetch_adev_info(CHD_HDEV, &bins); mask = DISPLAY_HDEV; }  
      else if(ATYPE == OSC_MDEV) { fetch_adev_info(CHD_MDEV, &bins); mask = DISPLAY_MDEV; }  
      else if(ATYPE == OSC_TDEV) { fetch_adev_info(CHD_TDEV, &bins); mask = DISPLAY_TDEV; }  
//    else if(ATYPE == A_MTIE)   { fetch_adev_info(D_MTIE, &bins);   mask = DISPLAY_MTIE; } 
      else if(ATYPE == A_MTIE)   { fetch_adev_info(D_MTIE, &bins);   mask = DISPLAY_CHD; } 
   }
   adev_cols_shown += show_adev_table(&bins, row, col, YELLOW, 8);

   if(mixed_adevs != MIXED_REGULAR) {
      if(adev_display_mask & DISPLAY_CHD) plot_adev_curve(&bins, YELLOW, mask);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x680, %rsp            # imm = 0x680
leaq 0x1360e2(%rip), %rax    # 0x29be64
movl $0x0, (%rax)
leaq 0x1360d9(%rip), %rax    # 0x29be68
movl $0x0, (%rax)
movl $0x1, %edi
callq 0x127d80
cmpl $0x0, %eax
jne 0x165da9
jmp 0x166b91
callq 0x127650
movl $0xffff, -0x674(%rbp)   # imm = 0xFFFF
leaq 0x111c35(%rip), %rax    # 0x2779f4
cmpl $0x8, (%rax)
jg 0x165dd3
movl $0xc, -0x65c(%rbp)
jmp 0x165e9e
leaq 0x111c1a(%rip), %rax    # 0x2779f4
cmpl $0x10, (%rax)
jg 0x165dfd
leaq 0x111c76(%rip), %rax    # 0x277a5c
cmpl $0x240, (%rax)          # imm = 0x240
jl 0x165dfd
movl $0xc, -0x65c(%rbp)
jmp 0x165e9c
leaq 0x111bf0(%rip), %rax    # 0x2779f4
cmpl $0xe, (%rax)
jg 0x165e21
leaq 0x111c00(%rip), %rax    # 0x277a10
cmpb $0x0, (%rax)
je 0x165e21
movl $0xc, -0x65c(%rbp)
jmp 0x165e9a
leaq 0x111bcc(%rip), %rax    # 0x2779f4
cmpl $0xc, (%rax)
jg 0x165e48
leaq 0x111bac(%rip), %rax    # 0x2779e0
cmpl $0x4fa, (%rax)          # imm = 0x4FA
jl 0x165e48
movl $0xc, -0x65c(%rbp)
jmp 0x165e98
leaq 0x111ba5(%rip), %rax    # 0x2779f4
cmpl $0xe, (%rax)
jg 0x165e6f
leaq 0x111b85(%rip), %rax    # 0x2779e0
cmpl $0x3e2, (%rax)          # imm = 0x3E2
jl 0x165e6f
movl $0xa, -0x65c(%rbp)
jmp 0x165e96
movl $0x7, -0x65c(%rbp)
leaq 0x20644c(%rip), %rax    # 0x36c2cc
cmpb $0x0, (%rax)
je 0x165e94
movl -0x65c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x65c(%rbp)
jmp 0x165e96
jmp 0x165e98
jmp 0x165e9a
jmp 0x165e9c
jmp 0x165e9e
movl -0x65c(%rbp), %ecx
leaq 0x111ae9(%rip), %rax    # 0x277994
movl %ecx, (%rax)
leaq 0x111ae4(%rip), %rax    # 0x277998
movl (%rax), %ecx
leaq 0x111ad7(%rip), %rax    # 0x277994
subl (%rax), %ecx
leaq 0x111ada(%rip), %rax    # 0x2779a0
movl %ecx, (%rax)
leaq 0x111acd(%rip), %rax    # 0x27799c
movl %ecx, (%rax)
leaq 0x111acc(%rip), %rax    # 0x2779a4
cmpl $0x0, (%rax)
je 0x165f03
leaq 0x111ac0(%rip), %rax    # 0x2779a4
movl (%rax), %eax
leaq 0x111aaf(%rip), %rcx    # 0x27799c
cmpl (%rcx), %eax
jge 0x165f03
leaq 0x111aac(%rip), %rax    # 0x2779a4
movl (%rax), %ecx
leaq 0x111a9b(%rip), %rax    # 0x27799c
movl %ecx, (%rax)
movl $0x0, -0x660(%rbp)
movl $0x0, -0x66c(%rbp)
leaq 0xa9ec(%rip), %rax      # 0x17090a
movq %rax, -0x668(%rbp)
leaq 0x135ff2(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x2, %eax
jne 0x165f51
movl $0x1, -0x66c(%rbp)
leaq 0x1c98b(%rip), %rax     # 0x1828d0
movq %rax, -0x668(%rbp)
jmp 0x165ffb
leaq 0x135fc6(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x165f7a
movl $0x2, -0x66c(%rbp)
leaq 0x1c965(%rip), %rax     # 0x1828d6
movq %rax, -0x668(%rbp)
jmp 0x165ff9
leaq 0x135f9d(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x165fa3
movl $0x4, -0x66c(%rbp)
leaq 0xf679(%rip), %rax      # 0x175613
movq %rax, -0x668(%rbp)
jmp 0x165ff7
leaq 0x135f74(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x4, %eax
jne 0x165fcc
movl $0x8, -0x66c(%rbp)
leaq 0x1bcb0(%rip), %rax     # 0x181c73
movq %rax, -0x668(%rbp)
jmp 0x165ff5
leaq 0x135f4b(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x5, %eax
jne 0x165ff3
movl $0xf, -0x66c(%rbp)
leaq 0x2a3ab(%rip), %rax     # 0x190397
movq %rax, -0x668(%rbp)
jmp 0x165ff5
jmp 0x165ff7
jmp 0x165ff9
jmp 0x165ffb
leaq 0x1119b6(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
je 0x166009
jmp 0x16607c
leaq 0x111aa0(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x16607a
movl -0x66c(%rbp), %eax
movl %eax, -0x678(%rbp)
movl $0x1, %edi
callq 0x127d80
movl %eax, %ecx
movl -0x678(%rbp), %eax
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x16605c
movq -0x668(%rbp), %rdx
leaq 0x2353b4(%rip), %rdi    # 0x39b400
leaq 0x32690(%rip), %rsi     # 0x1986e3
movb $0x0, %al
callq 0x9060
jmp 0x166078
movq -0x668(%rbp), %rdx
leaq 0x235396(%rip), %rdi    # 0x39b400
leaq 0x3268f(%rip), %rsi     # 0x198700
movb $0x0, %al
callq 0x9060
jmp 0x16607a
jmp 0x16607c
leaq 0x205905(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x1660a8
movl -0x65c(%rbp), %edi
movl -0x660(%rbp), %esi
movl $0xc, %edx
leaq 0x23535d(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl $0x1, -0x674(%rbp)
leaq 0x135e65(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x16614a
xorl %edi, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl -0x65c(%rbp), %esi
movl -0x660(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0x6, %ecx
movl $0x1, %r8d
callq 0x163b40
movl %eax, %ecx
leaq 0x135d69(%rip), %rax    # 0x29be68
addl (%rax), %ecx
leaq 0x135d60(%rip), %rax    # 0x29be68
movl %ecx, (%rax)
leaq 0x135e0c(%rip), %rax    # 0x29bf1d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x166145
leaq 0x11c6d8(%rip), %rax    # 0x2827f8
movl (%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x166143
movl -0x674(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0x6, %esi
callq 0x165080
jmp 0x166145
jmp 0x166480
leaq 0x135dcd(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x2, %eax
jne 0x1661e5
movl $0x5, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl -0x65c(%rbp), %esi
movl -0x660(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0x9, %ecx
movl $0x2, %r8d
callq 0x163b40
movl %eax, %ecx
leaq 0x135cce(%rip), %rax    # 0x29be68
addl (%rax), %ecx
leaq 0x135cc5(%rip), %rax    # 0x29be68
movl %ecx, (%rax)
leaq 0x135d71(%rip), %rax    # 0x29bf1d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x1661e0
leaq 0x11c63d(%rip), %rax    # 0x2827f8
movl (%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x1661de
movl -0x674(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0x9, %esi
callq 0x165080
jmp 0x1661e0
jmp 0x16647e
leaq 0x135d32(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x166280
movl $0xa, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl -0x65c(%rbp), %esi
movl -0x660(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0xb, %ecx
movl $0x3, %r8d
callq 0x163b40
movl %eax, %ecx
leaq 0x135c33(%rip), %rax    # 0x29be68
addl (%rax), %ecx
leaq 0x135c2a(%rip), %rax    # 0x29be68
movl %ecx, (%rax)
leaq 0x135cd6(%rip), %rax    # 0x29bf1d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x16627b
leaq 0x11c5a2(%rip), %rax    # 0x2827f8
movl (%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x166279
movl -0x674(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0xb, %esi
callq 0x165080
jmp 0x16627b
jmp 0x16647c
leaq 0x135c97(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x4, %eax
jne 0x16631b
movl $0xf, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl -0x65c(%rbp), %esi
movl -0x660(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0xf, %ecx
movl $0x4, %r8d
callq 0x163b40
movl %eax, %ecx
leaq 0x135b98(%rip), %rax    # 0x29be68
addl (%rax), %ecx
leaq 0x135b8f(%rip), %rax    # 0x29be68
movl %ecx, (%rax)
leaq 0x135c3b(%rip), %rax    # 0x29bf1d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x166316
leaq 0x11c507(%rip), %rax    # 0x2827f8
movl (%rax), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x166314
movl -0x674(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0xf, %esi
callq 0x165080
jmp 0x166316
jmp 0x16647a
leaq 0x135bfc(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x5, %eax
jne 0x166478
leaq 0x11c4bb(%rip), %rax    # 0x2827f0
cmpl $0x0, (%rax)
jne 0x16635a
movl $0x5, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x1, -0x674(%rbp)
jmp 0x166404
leaq 0x11c48f(%rip), %rax    # 0x2827f0
cmpl $0x1, (%rax)
jne 0x166383
movl $0x6, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x2, -0x674(%rbp)
jmp 0x166402
leaq 0x11c466(%rip), %rax    # 0x2827f0
cmpl $0x2, (%rax)
jne 0x1663ac
movl $0x7, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x4, -0x674(%rbp)
jmp 0x166400
leaq 0x11c43d(%rip), %rax    # 0x2827f0
cmpl $0x3, (%rax)
jne 0x1663d5
movl $0x8, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x8, -0x674(%rbp)
jmp 0x1663fe
leaq 0x11c414(%rip), %rax    # 0x2827f0
cmpl $0x9, (%rax)
jne 0x1663fc
movl $0x9, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x100, -0x674(%rbp)    # imm = 0x100
jmp 0x1663fe
jmp 0x166400
jmp 0x166402
jmp 0x166404
movl -0x65c(%rbp), %esi
movl -0x660(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0x9, %ecx
movl $0x5, %r8d
callq 0x163b40
movl %eax, %ecx
leaq 0x135a38(%rip), %rax    # 0x29be68
addl (%rax), %ecx
leaq 0x135a2f(%rip), %rax    # 0x29be68
movl %ecx, (%rax)
leaq 0x135adb(%rip), %rax    # 0x29bf1d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x166476
leaq 0x11c3a7(%rip), %rax    # 0x2827f8
movl (%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x166474
movl -0x674(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0x9, %esi
callq 0x165080
jmp 0x166476
jmp 0x166478
jmp 0x16647a
jmp 0x16647c
jmp 0x16647e
jmp 0x166480
movl $0xa, -0x670(%rbp)
leaq 0x11154f(%rip), %rax    # 0x2779e0
movl (%rax), %eax
movl %eax, -0x67c(%rbp)
leaq 0x11c284(%rip), %rax    # 0x282724
imull $0x31a, (%rax), %eax    # imm = 0x31A
movl $0x64, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x67c(%rbp), %eax
cmpl %ecx, %eax
jge 0x1664d6
leaq 0x111527(%rip), %rax    # 0x2779e8
movl (%rax), %eax
shll $0x0, %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %eax, -0x660(%rbp)
jmp 0x166507
leaq 0x111503(%rip), %rax    # 0x2779e0
cmpl $0x3e2, (%rax)          # imm = 0x3E2
jge 0x1664f6
movl -0x660(%rbp), %eax
addl $0x19, %eax
movl %eax, -0x660(%rbp)
jmp 0x166505
movl -0x660(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x660(%rbp)
jmp 0x166507
movl $0x2, -0x674(%rbp)
leaq 0x135a06(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x166536
movl $0x1, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x16669d
leaq 0x1359e1(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x2, %eax
jne 0x16655b
movl $0x6, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x16669b
leaq 0x1359bc(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x166580
movl $0xb, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x166699
leaq 0x135997(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x4, %eax
jne 0x1665a5
movl $0x10, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x166697
leaq 0x135972(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x5, %eax
jne 0x166695
leaq 0x11c231(%rip), %rax    # 0x2827f0
cmpl $0x0, (%rax)
jne 0x1665e1
xorl %edi, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x1, -0x674(%rbp)
jmp 0x16668b
leaq 0x11c208(%rip), %rax    # 0x2827f0
cmpl $0x1, (%rax)
jne 0x16660a
movl $0x1, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x2, -0x674(%rbp)
jmp 0x166689
leaq 0x11c1df(%rip), %rax    # 0x2827f0
cmpl $0x2, (%rax)
jne 0x166633
movl $0x2, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x4, -0x674(%rbp)
jmp 0x166687
leaq 0x11c1b6(%rip), %rax    # 0x2827f0
cmpl $0x3, (%rax)
jne 0x16665c
movl $0x3, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x8, -0x674(%rbp)
jmp 0x166685
leaq 0x11c18d(%rip), %rax    # 0x2827f0
cmpl $0x9, (%rax)
jne 0x166683
movl $0x4, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x200, -0x674(%rbp)    # imm = 0x200
jmp 0x166685
jmp 0x166687
jmp 0x166689
jmp 0x16668b
movl $0x6, -0x670(%rbp)
jmp 0x166697
jmp 0x166699
jmp 0x16669b
jmp 0x16669d
movl -0x65c(%rbp), %esi
movl -0x660(%rbp), %edx
movl -0x670(%rbp), %eax
leaq -0x658(%rbp), %rdi
movl $0x6, %r8d
movzbl %al, %ecx
callq 0x163b40
movl %eax, %ecx
leaq 0x13579b(%rip), %rax    # 0x29be68
addl (%rax), %ecx
leaq 0x135792(%rip), %rax    # 0x29be68
movl %ecx, (%rax)
leaq 0x13583e(%rip), %rax    # 0x29bf1d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x166717
leaq 0x11c10a(%rip), %rax    # 0x2827f8
movl (%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x166715
movl -0x670(%rbp), %eax
movl -0x674(%rbp), %edx
leaq -0x658(%rbp), %rdi
movzbl %al, %esi
callq 0x165080
jmp 0x166717
leaq 0x1112c2(%rip), %rax    # 0x2779e0
cmpl $0x4fa, (%rax)          # imm = 0x4FA
jl 0x16673a
leaq 0x111257(%rip), %rax    # 0x277984
movl (%rax), %eax
addl $0x14, %eax
movl %eax, -0x660(%rbp)
jmp 0x166753
leaq 0x1112a7(%rip), %rax    # 0x2779e8
movl (%rax), %eax
shll %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %eax, -0x660(%rbp)
movl $0x4, -0x674(%rbp)
leaq 0x1357ba(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x166782
movl $0x2, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x1668e4
leaq 0x135795(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x2, %eax
jne 0x1667a7
movl $0x7, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x1668e2
leaq 0x135770(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x1667cc
movl $0xc, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x1668e0
leaq 0x13574b(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x4, %eax
jne 0x1667f1
movl $0x11, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x1668de
leaq 0x135726(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x5, %eax
jne 0x1668dc
leaq 0x11bfe5(%rip), %rax    # 0x2827f0
cmpl $0x0, (%rax)
jne 0x166830
movl $0xa, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x1, -0x674(%rbp)
jmp 0x1668da
leaq 0x11bfb9(%rip), %rax    # 0x2827f0
cmpl $0x1, (%rax)
jne 0x166859
movl $0xb, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x2, -0x674(%rbp)
jmp 0x1668d8
leaq 0x11bf90(%rip), %rax    # 0x2827f0
cmpl $0x2, (%rax)
jne 0x166882
movl $0xc, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x4, -0x674(%rbp)
jmp 0x1668d6
leaq 0x11bf67(%rip), %rax    # 0x2827f0
cmpl $0x3, (%rax)
jne 0x1668ab
movl $0xd, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x8, -0x674(%rbp)
jmp 0x1668d4
leaq 0x11bf3e(%rip), %rax    # 0x2827f0
cmpl $0x9, (%rax)
jne 0x1668d2
movl $0xe, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x400, -0x674(%rbp)    # imm = 0x400
jmp 0x1668d4
jmp 0x1668d6
jmp 0x1668d8
jmp 0x1668da
jmp 0x1668dc
jmp 0x1668de
jmp 0x1668e0
jmp 0x1668e2
jmp 0x1668e4
movl -0x65c(%rbp), %esi
movl -0x660(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0xd, %ecx
movl $0x7, %r8d
callq 0x163b40
movl %eax, %ecx
leaq 0x135558(%rip), %rax    # 0x29be68
addl (%rax), %ecx
leaq 0x13554f(%rip), %rax    # 0x29be68
movl %ecx, (%rax)
leaq 0x1355fb(%rip), %rax    # 0x29bf1d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x166956
leaq 0x11bec7(%rip), %rax    # 0x2827f8
movl (%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x166954
movl -0x674(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0xd, %esi
callq 0x165080
jmp 0x166956
leaq 0x111083(%rip), %rax    # 0x2779e0
cmpl $0x4fa, (%rax)          # imm = 0x4FA
jl 0x166976
movl -0x660(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x660(%rbp)
jmp 0x16698e
leaq 0x11106b(%rip), %rax    # 0x2779e8
imull $0x3, (%rax), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %eax, -0x660(%rbp)
movl $0x8, -0x674(%rbp)
leaq 0x13557f(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x1669bd
movl $0x3, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x166b1f
leaq 0x13555a(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x2, %eax
jne 0x1669e2
movl $0x8, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x166b1d
leaq 0x135535(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x166a07
movl $0xd, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x166b1b
leaq 0x135510(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x4, %eax
jne 0x166a2c
movl $0x12, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
jmp 0x166b19
leaq 0x1354eb(%rip), %rax    # 0x29bf1e
movzbl (%rax), %eax
cmpl $0x5, %eax
jne 0x166b17
leaq 0x11bdaa(%rip), %rax    # 0x2827f0
cmpl $0x0, (%rax)
jne 0x166a6b
movl $0xf, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x1, -0x674(%rbp)
jmp 0x166b15
leaq 0x11bd7e(%rip), %rax    # 0x2827f0
cmpl $0x1, (%rax)
jne 0x166a94
movl $0x10, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x2, -0x674(%rbp)
jmp 0x166b13
leaq 0x11bd55(%rip), %rax    # 0x2827f0
cmpl $0x2, (%rax)
jne 0x166abd
movl $0x11, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x4, -0x674(%rbp)
jmp 0x166b11
leaq 0x11bd2c(%rip), %rax    # 0x2827f0
cmpl $0x3, (%rax)
jne 0x166ae6
movl $0x12, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x8, -0x674(%rbp)
jmp 0x166b0f
leaq 0x11bd03(%rip), %rax    # 0x2827f0
cmpl $0x9, (%rax)
jne 0x166b0d
movl $0x13, %edi
leaq -0x658(%rbp), %rsi
callq 0x162900
movl $0x800, -0x674(%rbp)    # imm = 0x800
jmp 0x166b0f
jmp 0x166b11
jmp 0x166b13
jmp 0x166b15
jmp 0x166b17
jmp 0x166b19
jmp 0x166b1b
jmp 0x166b1d
jmp 0x166b1f
movl -0x65c(%rbp), %esi
movl -0x660(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0xe, %ecx
movl $0x8, %r8d
callq 0x163b40
movl %eax, %ecx
leaq 0x13531d(%rip), %rax    # 0x29be68
addl (%rax), %ecx
leaq 0x135314(%rip), %rax    # 0x29be68
movl %ecx, (%rax)
leaq 0x1353c0(%rip), %rax    # 0x29bf1d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x166b91
leaq 0x11bc8c(%rip), %rax    # 0x2827f8
movl (%rax), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x166b8f
movl -0x674(%rbp), %edx
leaq -0x658(%rbp), %rdi
movl $0xe, %esi
callq 0x165080
jmp 0x166b91
addq $0x680, %rsp            # imm = 0x680
popq %rbp
retq
nopw (%rax,%rax)