// File: jkingan[P]ladyheather/heathmsc.cpp
// Function: show_log_state()
void show_log_state()
{
char *mode;
char c;
int row;
int shown;
int needed;
int avail;
char s[32];
#define MAX_LOG_NAMES 2


   if(text_mode && first_key) return;
   if(zoom_screen) return;

   show_serial_info();

   if(luxor) row = VER_ROW+6;
   else      row = VER_ROW+5;

   shown = 0;
   hide_op_mode = 0;
   avail = (6-4) + 1;
///if(all_adevs && (all_adev_row > row)) avail = all_adev_row - row;

   needed = 0;
   if(log_file) ++needed;
   else if(log_loaded) ++needed;
   else if(log_stream & LOG_HEX_STREAM) ++needed;

   if(raw_file) ++needed;
   if(prn_file) ++needed;
   if(ticc_file) ++needed;
   if(debug_file) ++needed;
if(ticc_port_open()) ++needed;
if(enviro_port_open()) ++needed;

   if(needed > avail) 

   vidstr(row, VER_COL, WHITE, "                       ");
   if(log_file) {
      ++shown;

      if(log_wrap) {
         vidstr(row, VER_COL, WHITE, "Log: on queue wrap");
      }
      else if(log_date || log_time) {
         vidstr(row, VER_COL, WHITE, "Log: timed");
      }
      else {
         if(log_mode[0] == 'a')               strcpy(s, "Cat");
         else if(log_stream & LOG_HEX_STREAM) strcpy(s, "Hex");
         else                                 strcpy(s, "Log");
         if(log_flush_mode) strupr(s);
         mode = &s[0];

         if((int)strlen(log_name) > 16) {
            sprintf(out, "%s:...%s", mode, &log_name[strlen(log_name)-16]);
         }
         else {
            sprintf(out, "%s: %s", mode, log_name);
         }
         vidstr(row, VER_COL, WHITE, out);
      }
      ++row;
   }
   else if(log_stream & LOG_HEX_STREAM) {  // debug packet dump mode
      ++shown;
      if(log_loaded) vidstr(row, VER_COL, WHITE, "Hex: loaded       ");
      else           vidstr(row, VER_COL, WHITE, "Hex: OFF          ");
      ++row;
   }
   else if(log_loaded) {
      ++shown;
      vidstr(row, VER_COL, WHITE, "Log: loaded       ");
      ++row;
   }
   else if(needed <= avail) {
      ++shown;
      vidstr(row, VER_COL, WHITE, "Log: OFF          ");
      ++row;
   }

   // show raw/debug file names
   // We only have room to show two file names.  If more than one is needed, 
   // the name is followed by an '*'
   if(shown >= avail) {
      ++hide_op_mode;
      return;
   }

   vidstr(row, VER_COL, WHITE, "                       ");
   if(rinex_file && rinex_name[0]) {
      strcpy(s, "Rnx");
      if(rinex_flush_mode) strupr(s);
      c = ':';
      ++shown;
      if((shown == avail) && (raw_file || prn_file || debug_file || ticc_file)) c = '+';

      if(strlen(rinex_name) > 16) {
         sprintf(out, "%s%c...%s", s,c, &rinex_name[strlen(rinex_name)-16]);
      }
      else {
         sprintf(out, "%s%c %s", s,c, rinex_name);
      }

      vidstr(row, VER_COL, WHITE, out);
      ++row;
   }
   if(shown >= avail) {
      ++hide_op_mode;
      return;
   }

   vidstr(row, VER_COL, WHITE, "                       ");
   if(ticc_file && ticc_name[0]) {
      mode = "TIC";
      c = ':';
      ++shown;
      if((shown == avail) && (raw_file || prn_file || debug_file)) c = '+';

      if(strlen(ticc_name) > 16) {
         sprintf(out, "%s%c...%s", mode,c, &ticc_name[strlen(ticc_name)-16]);
      }
      else {
         sprintf(out, "%s%c %s", mode,c, ticc_name);
      }

      vidstr(row, VER_COL, WHITE, out);
      ++row;
   }
   if(shown >= avail) {
      ++hide_op_mode;
      return;
   }

   vidstr(row, VER_COL, WHITE, "                       ");
   if(raw_file && raw_name[0]) {
      if(raw_flush_mode) mode = "CAP";
      else               mode = "Cap";
      c = ':';
      ++shown;
      if((shown == avail) && (prn_file || debug_file)) c = '+';

      if(strlen(raw_name) > 16) {
         sprintf(out, "%s%c...%s", mode,c, &raw_name[strlen(raw_name)-16]);
      }
      else {
         sprintf(out, "%s%c %s", mode,c, raw_name);
      }

      vidstr(row, VER_COL, WHITE, out);
      ++row;
   }
   if(shown >= avail) {
      ++hide_op_mode;
      return;
   }

   vidstr(row, VER_COL, WHITE, "                       ");
   if(debug_file && debug_name[0]) {
      if(dbg_flush_mode) mode = "DBG";
      else mode = "Dbg";
      c = ':';
      ++shown;
      if((shown == avail) && (prn_file)) c = '+';

      if((int)strlen(debug_name) > 16) {
         sprintf(out, "%s%c...%s", mode,c, &debug_name[strlen(debug_name)-16]);
      }
      else {
         sprintf(out, "%s%c %s", mode,c, debug_name);
      }

      vidstr(row, VER_COL, WHITE, out);
      ++row;
   }
   if(shown >= avail) {
      ++hide_op_mode;
      return;
   }

   vidstr(row, VER_COL, WHITE, "                       ");
   if(prn_file && prn_name[0]) {
      if(prn_flush_mode) mode = "PRN";
      else mode = "Prn";
      c = ':';
      ++shown;

      if((int)strlen(prn_name) > 16) {
         sprintf(out, "%s%c...%s", mode,c, &prn_name[strlen(prn_name)-16]);
      }
      else {
         sprintf(out, "%s%c %s", mode,c, prn_name);
      }

      vidstr(row, VER_COL, WHITE, out);
      ++row;
   }
   if(shown >= avail) {
      ++hide_op_mode;
      return;
   }

   vidstr(row, VER_COL, WHITE, "                       ");
   if(ticc_port_open()) {  // TICC is an auxiliary input device
      ++shown;

      if(ticc_sim_file && ticc_sim_eof)                 sprintf(out, "TIC: end of sim file  "); // simulation file eof
      else if(ticc_sim_file)                            sprintf(out, "TIC: simulation file  "); // simulation file
      else if(com[TICC_PORT].usb_port == USE_IDEV_NAME) sprintf(out, "TIC: %-17.17s", com[TICC_PORT].com_dev); // user specified device
      else if(com[TICC_PORT].usb_port == USE_DEV_NAME)  sprintf(out, "TIC: %-17.17s", com[TICC_PORT].com_dev); // symlink to /dev/heather
      else if(com[TICC_PORT].usb_port >= 10)            sprintf(out, "TIC: %-2d               ", com[TICC_PORT].usb_port-1);
      else if(com[TICC_PORT].usb_port)                  sprintf(out, "TIC: %-2d               ", com[TICC_PORT].usb_port-1);
#ifdef WINDOWS
      else if(com[TICC_PORT].com_port >= 10) sprintf(out, "TIC: %-2d               ", com[TICC_PORT].com_port);
      else if(com[TICC_PORT].com_port)       sprintf(out, "TIC: %-2d               ", com[TICC_PORT].com_port);
#else   // __linux__  __MACH__  __FreeBSD__
      else if(com[TICC_PORT].com_port >= 10) sprintf(out, "TIC: %-2d               ", com[TICC_PORT].com_port-1);
      else if(com[TICC_PORT].com_port)       sprintf(out, "TIC: %-2d               ", com[TICC_PORT].com_port-1);
#endif
#ifdef TCP_IP 
      else                              sprintf(out," TIC:%-17.17s", com[TICC_PORT].IP_addr); // TCP, no room for sernum
#else
      else                              sprintf(out, "TIC:none              ");
#endif
      if(strlen(out) > 25) strcpy(&out[25-3],"...");   // don't hit 'Power' label
      vidstr(row, VER_COL, WHITE, out);
      ++row;
   }
   if(shown >= avail) {
      ++hide_op_mode;
      return;
   }

   vidstr(row, VER_COL, WHITE, "                       ");
   if(enviro_port_open()) {  // envionmental sensor is an auxiliary input device
      ++shown;

      if(com[THERMO_PORT].usb_port == USE_IDEV_NAME)     sprintf(out, "ENV: %-17.17s", com[THERMO_PORT].com_dev); // user specified device
      else if(com[THERMO_PORT].usb_port == USE_DEV_NAME) sprintf(out, "ENV: %-17.17s", com[THERMO_PORT].com_dev); // symlink to /dev/heather
      else if(com[THERMO_PORT].usb_port >= 10)           sprintf(out, "ENV: %-2d               ", com[THERMO_PORT].usb_port-1);
      else if(com[THERMO_PORT].usb_port)                 sprintf(out, "ENV: %-2d               ", com[THERMO_PORT].usb_port-1);
#ifdef WINDOWS
      else if(com[THERMO_PORT].com_port >= 10) sprintf(out, "ENV: %-2d               ", com[THERMO_PORT].com_port);
      else if(com[THERMO_PORT].com_port)       sprintf(out, "ENV: %-2d               ", com[THERMO_PORT].com_port);
#else   // __linux__  __MACH__  __FreeBSD__
      else if(com[THERMO_PORT].com_port >= 10) sprintf(out, "ENV: %-2d               ", com[THERMO_PORT].com_port-1);
      else if(com[THERMO_PORT].com_port)       sprintf(out, "ENV: %-2d               ", com[THERMO_PORT].com_port-1);
#endif
#ifdef TCP_IP 
      else                              sprintf(out," ENV:%-17.17s", com[TICC_PORT].IP_addr); // TCP, no room for sernum
#else
      else                              sprintf(out, "ENV:none              ");
#endif
      if(strlen(out) > 25) strcpy(&out[25-3],"...");   // don't hit 'Power' label
      vidstr(row, VER_COL, WHITE, out);
      ++row;
   }
   if(shown >= avail) {
      ++hide_op_mode;
      return;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
leaq 0x16cb66(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
je 0x10ae68
leaq 0x1932da(%rip), %rax    # 0x29e138
cmpl $0x0, (%rax)
je 0x10ae68
jmp 0x10bdd1
leaq 0x260b19(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x10ae79
jmp 0x10bdd1
callq 0xfe790
leaq 0x193299(%rip), %rax    # 0x29e11e
cmpb $0x0, (%rax)
je 0x10ae9b
leaq 0x16cae3(%rip), %rax    # 0x277974
movl (%rax), %eax
addl $0x6, %eax
movl %eax, -0x10(%rbp)
jmp 0x10aeaa
leaq 0x16cad2(%rip), %rax    # 0x277974
movl (%rax), %eax
addl $0x5, %eax
movl %eax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
leaq 0x19326c(%rip), %rax    # 0x29e124
movl $0x0, (%rax)
movl $0x3, -0x1c(%rbp)
movl $0x0, -0x18(%rbp)
leaq 0x19266d(%rip), %rax    # 0x29d540
cmpq $0x0, (%rax)
je 0x10aee4
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x10af19
leaq 0x1926ef(%rip), %rax    # 0x29d5da
cmpb $0x0, (%rax)
je 0x10aefb
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x10af17
leaq 0x1926ee(%rip), %rax    # 0x29d5f0
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x10af15
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x10af17
jmp 0x10af19
leaq 0x192630(%rip), %rax    # 0x29d550
cmpq $0x0, (%rax)
je 0x10af2f
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
leaq 0x192622(%rip), %rax    # 0x29d558
cmpq $0x0, (%rax)
je 0x10af45
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
leaq 0x19261c(%rip), %rax    # 0x29d568
cmpq $0x0, (%rax)
je 0x10af5b
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
leaq 0x19260e(%rip), %rax    # 0x29d570
cmpq $0x0, (%rax)
je 0x10af71
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
callq 0x992e0
cmpl $0x0, %eax
je 0x10af84
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
callq 0xe8440
cmpl $0x0, %eax
je 0x10af97
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jle 0x10afbc
movl -0x10(%rbp), %edi
leaq 0x16c9cf(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8b6ff(%rip), %rcx     # 0x1966b6
callq 0x10ee0
leaq 0x19257d(%rip), %rax    # 0x29d540
cmpq $0x0, (%rax)
je 0x10b14f
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq 0x2621f6(%rip), %rax    # 0x36d1d3
cmpb $0x0, (%rax)
je 0x10b004
movl -0x10(%rbp), %edi
leaq 0x16c98c(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x84514(%rip), %rcx     # 0x18f50e
callq 0x10ee0
jmp 0x10b141
leaq 0x262189(%rip), %rax    # 0x36d194
cmpl $0x0, (%rax)
jne 0x10b01c
leaq 0x26216d(%rip), %rax    # 0x36d184
cmpl $0x0, (%rax)
je 0x10b03e
movl -0x10(%rbp), %edi
leaq 0x16c952(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x844ed(%rip), %rcx     # 0x18f521
callq 0x10ee0
jmp 0x10b13f
leaq 0x1924f3(%rip), %rax    # 0x29d538
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x61, %eax
jne 0x10b062
leaq -0x40(%rbp), %rdi
leaq 0x844d1(%rip), %rsi     # 0x18f52c
callq 0x9350
jmp 0x10b097
leaq 0x192587(%rip), %rax    # 0x29d5f0
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x10b085
leaq -0x40(%rbp), %rdi
leaq 0x844b2(%rip), %rsi     # 0x18f530
callq 0x9350
jmp 0x10b095
leaq -0x40(%rbp), %rdi
leaq 0x844a4(%rip), %rsi     # 0x18f534
callq 0x9350
jmp 0x10b097
leaq 0x192562(%rip), %rax    # 0x29d600
cmpl $0x0, (%rax)
je 0x10b0ac
leaq -0x40(%rbp), %rdi
callq 0x9890
leaq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq 0x190f85(%rip), %rdi    # 0x29c040
callq 0x9120
cmpl $0x10, %eax
jle 0x10b102
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x190f6c(%rip), %rdi    # 0x29c040
callq 0x9120
movq -0x48(%rbp), %rdx
subq $0x10, %rax
leaq 0x190f58(%rip), %rcx    # 0x29c040
addq %rax, %rcx
leaq 0x29030e(%rip), %rdi    # 0x39b400
leaq 0x8443f(%rip), %rsi     # 0x18f538
movb $0x0, %al
callq 0x9060
jmp 0x10b122
movq -0x8(%rbp), %rdx
leaq 0x2902f3(%rip), %rdi    # 0x39b400
leaq 0x8442d(%rip), %rsi     # 0x18f541
leaq 0x190f25(%rip), %rcx    # 0x29c040
movb $0x0, %al
callq 0x9060
movl -0x10(%rbp), %edi
leaq 0x16c84c(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x2902c6(%rip), %rcx    # 0x39b400
callq 0x10ee0
jmp 0x10b141
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x10b236
leaq 0x19249a(%rip), %rax    # 0x29d5f0
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x10b1bc
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq 0x19246a(%rip), %rax    # 0x29d5da
cmpb $0x0, (%rax)
je 0x10b194
movl -0x10(%rbp), %edi
leaq 0x16c7f9(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x843bb(%rip), %rcx     # 0x18f548
callq 0x10ee0
jmp 0x10b1b1
movl -0x10(%rbp), %edi
leaq 0x16c7da(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x843af(%rip), %rcx     # 0x18f55b
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x10b234
leaq 0x192417(%rip), %rax    # 0x29d5da
cmpb $0x0, (%rax)
je 0x10b1f9
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x10(%rbp), %edi
leaq 0x16c79d(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x84385(%rip), %rcx     # 0x18f56e
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x10b232
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jg 0x10b230
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x10(%rbp), %edi
leaq 0x16c764(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8435f(%rip), %rcx     # 0x18f581
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x10b232
jmp 0x10b234
jmp 0x10b236
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x10b258
leaq 0x192edf(%rip), %rax    # 0x29e124
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x192ed3(%rip), %rax    # 0x29e124
movl %ecx, (%rax)
jmp 0x10bdd1
movl -0x10(%rbp), %edi
leaq 0x16c716(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8b446(%rip), %rcx     # 0x1966b6
callq 0x10ee0
leaq 0x1922cc(%rip), %rax    # 0x29d548
cmpq $0x0, (%rax)
je 0x10b3ab
leaq 0x190eb3(%rip), %rax    # 0x29c140
cmpb $0x0, (%rax)
je 0x10b3ab
leaq -0x40(%rbp), %rdi
leaq 0x842f3(%rip), %rsi     # 0x18f594
callq 0x9350
leaq 0x192357(%rip), %rax    # 0x29d604
cmpl $0x0, (%rax)
je 0x10b2bb
leaq -0x40(%rbp), %rdi
callq 0x9890
movb $0x3a, -0x9(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jne 0x10b308
leaq 0x192279(%rip), %rax    # 0x29d550
cmpq $0x0, (%rax)
jne 0x10b304
leaq 0x192274(%rip), %rax    # 0x29d558
cmpq $0x0, (%rax)
jne 0x10b304
leaq 0x19227f(%rip), %rax    # 0x29d570
cmpq $0x0, (%rax)
jne 0x10b304
leaq 0x19226a(%rip), %rax    # 0x29d568
cmpq $0x0, (%rax)
je 0x10b308
movb $0x2b, -0x9(%rbp)
leaq 0x190e31(%rip), %rdi    # 0x29c140
callq 0x9120
cmpq $0x10, %rax
jbe 0x10b361
leaq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
movsbl -0x9(%rbp), %eax
movl %eax, -0x4c(%rbp)
leaq 0x190e10(%rip), %rdi    # 0x29c140
callq 0x9120
movq -0x58(%rbp), %rdx
movl -0x4c(%rbp), %ecx
subq $0x10, %rax
leaq 0x190df9(%rip), %r8     # 0x29c140
addq %rax, %r8
leaq 0x2900af(%rip), %rdi    # 0x39b400
leaq 0x84240(%rip), %rsi     # 0x18f598
movb $0x0, %al
callq 0x9060
jmp 0x10b385
leaq -0x40(%rbp), %rdx
movsbl -0x9(%rbp), %ecx
leaq 0x290090(%rip), %rdi    # 0x39b400
leaq 0x65397(%rip), %rsi     # 0x17070e
leaq 0x190dc2(%rip), %r8     # 0x29c140
movb $0x0, %al
callq 0x9060
movl -0x10(%rbp), %edi
leaq 0x16c5e9(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x290063(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x10b3cd
leaq 0x192d6a(%rip), %rax    # 0x29e124
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x192d5e(%rip), %rax    # 0x29e124
movl %ecx, (%rax)
jmp 0x10bdd1
movl -0x10(%rbp), %edi
leaq 0x16c5a1(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8b2d1(%rip), %rcx     # 0x1966b6
callq 0x10ee0
leaq 0x192177(%rip), %rax    # 0x29d568
cmpq $0x0, (%rax)
je 0x10b4f9
leaq 0x19103e(%rip), %rax    # 0x29c440
cmpb $0x0, (%rax)
je 0x10b4f9
leaq 0x8505a(%rip), %rax     # 0x19046c
movq %rax, -0x8(%rbp)
movb $0x3a, -0x9(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jne 0x10b456
leaq 0x19211e(%rip), %rax    # 0x29d550
cmpq $0x0, (%rax)
jne 0x10b452
leaq 0x192119(%rip), %rax    # 0x29d558
cmpq $0x0, (%rax)
jne 0x10b452
leaq 0x192124(%rip), %rax    # 0x29d570
cmpq $0x0, (%rax)
je 0x10b456
movb $0x2b, -0x9(%rbp)
leaq 0x190fe3(%rip), %rdi    # 0x29c440
callq 0x9120
cmpq $0x10, %rax
jbe 0x10b4af
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movsbl -0x9(%rbp), %eax
movl %eax, -0x5c(%rbp)
leaq 0x190fc2(%rip), %rdi    # 0x29c440
callq 0x9120
movq -0x68(%rbp), %rdx
movl -0x5c(%rbp), %ecx
subq $0x10, %rax
leaq 0x190fab(%rip), %r8     # 0x29c440
addq %rax, %r8
leaq 0x28ff61(%rip), %rdi    # 0x39b400
leaq 0x840f2(%rip), %rsi     # 0x18f598
movb $0x0, %al
callq 0x9060
jmp 0x10b4d3
movq -0x8(%rbp), %rdx
movsbl -0x9(%rbp), %ecx
leaq 0x28ff42(%rip), %rdi    # 0x39b400
leaq 0x65249(%rip), %rsi     # 0x17070e
leaq 0x190f74(%rip), %r8     # 0x29c440
movb $0x0, %al
callq 0x9060
movl -0x10(%rbp), %edi
leaq 0x16c49b(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x28ff15(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x10b51b
leaq 0x192c1c(%rip), %rax    # 0x29e124
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x192c10(%rip), %rax    # 0x29e124
movl %ecx, (%rax)
jmp 0x10bdd1
movl -0x10(%rbp), %edi
leaq 0x16c453(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8b183(%rip), %rcx     # 0x1966b6
callq 0x10ee0
leaq 0x192011(%rip), %rax    # 0x29d550
cmpq $0x0, (%rax)
je 0x10b653
leaq 0x190cf0(%rip), %rax    # 0x29c240
cmpb $0x0, (%rax)
je 0x10b653
leaq 0x19209c(%rip), %rax    # 0x29d5fc
cmpl $0x0, (%rax)
je 0x10b572
leaq 0x65652(%rip), %rax     # 0x170bbe
movq %rax, -0x8(%rbp)
jmp 0x10b57d
leaq 0x84029(%rip), %rax     # 0x18f5a2
movq %rax, -0x8(%rbp)
movb $0x3a, -0x9(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jne 0x10b5b0
leaq 0x191fbf(%rip), %rax    # 0x29d558
cmpq $0x0, (%rax)
jne 0x10b5ac
leaq 0x191fca(%rip), %rax    # 0x29d570
cmpq $0x0, (%rax)
je 0x10b5b0
movb $0x2b, -0x9(%rbp)
leaq 0x190c89(%rip), %rdi    # 0x29c240
callq 0x9120
cmpq $0x10, %rax
jbe 0x10b609
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movsbl -0x9(%rbp), %eax
movl %eax, -0x6c(%rbp)
leaq 0x190c68(%rip), %rdi    # 0x29c240
callq 0x9120
movq -0x78(%rbp), %rdx
movl -0x6c(%rbp), %ecx
subq $0x10, %rax
leaq 0x190c51(%rip), %r8     # 0x29c240
addq %rax, %r8
leaq 0x28fe07(%rip), %rdi    # 0x39b400
leaq 0x83f98(%rip), %rsi     # 0x18f598
movb $0x0, %al
callq 0x9060
jmp 0x10b62d
movq -0x8(%rbp), %rdx
movsbl -0x9(%rbp), %ecx
leaq 0x28fde8(%rip), %rdi    # 0x39b400
leaq 0x650ef(%rip), %rsi     # 0x17070e
leaq 0x190c1a(%rip), %r8     # 0x29c240
movb $0x0, %al
callq 0x9060
movl -0x10(%rbp), %edi
leaq 0x16c341(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x28fdbb(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x10b675
leaq 0x192ac2(%rip), %rax    # 0x29e124
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x192ab6(%rip), %rax    # 0x29e124
movl %ecx, (%rax)
jmp 0x10bdd1
movl -0x10(%rbp), %edi
leaq 0x16c2f9(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8b029(%rip), %rcx     # 0x1966b6
callq 0x10ee0
leaq 0x191ed7(%rip), %rax    # 0x29d570
cmpq $0x0, (%rax)
je 0x10b7a5
leaq 0x191596(%rip), %rax    # 0x29cc40
cmpb $0x0, (%rax)
je 0x10b7a5
leaq 0x191f4e(%rip), %rax    # 0x29d608
cmpl $0x0, (%rax)
je 0x10b6cc
leaq 0x7df45(%rip), %rax     # 0x18960b
movq %rax, -0x8(%rbp)
jmp 0x10b6d7
leaq 0x83ed3(%rip), %rax     # 0x18f5a6
movq %rax, -0x8(%rbp)
movb $0x3a, -0x9(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jne 0x10b6fd
leaq 0x191e65(%rip), %rax    # 0x29d558
cmpq $0x0, (%rax)
je 0x10b6fd
movb $0x2b, -0x9(%rbp)
leaq 0x19153c(%rip), %rdi    # 0x29cc40
callq 0x9120
cmpl $0x10, %eax
jle 0x10b75b
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
movsbl -0x9(%rbp), %eax
movl %eax, -0x7c(%rbp)
leaq 0x191519(%rip), %rdi    # 0x29cc40
callq 0x9120
movq -0x88(%rbp), %rdx
movl -0x7c(%rbp), %ecx
subq $0x10, %rax
leaq 0x1914ff(%rip), %r8     # 0x29cc40
addq %rax, %r8
leaq 0x28fcb5(%rip), %rdi    # 0x39b400
leaq 0x83e46(%rip), %rsi     # 0x18f598
movb $0x0, %al
callq 0x9060
jmp 0x10b77f
movq -0x8(%rbp), %rdx
movsbl -0x9(%rbp), %ecx
leaq 0x28fc96(%rip), %rdi    # 0x39b400
leaq 0x64f9d(%rip), %rsi     # 0x17070e
leaq 0x1914c8(%rip), %r8     # 0x29cc40
movb $0x0, %al
callq 0x9060
movl -0x10(%rbp), %edi
leaq 0x16c1ef(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x28fc69(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x10b7c7
leaq 0x192970(%rip), %rax    # 0x29e124
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x192964(%rip), %rax    # 0x29e124
movl %ecx, (%rax)
jmp 0x10bdd1
movl -0x10(%rbp), %edi
leaq 0x16c1a7(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8aed7(%rip), %rcx     # 0x1966b6
callq 0x10ee0
leaq 0x191d6d(%rip), %rax    # 0x29d558
cmpq $0x0, (%rax)
je 0x10b8e4
leaq 0x190b44(%rip), %rax    # 0x29c340
cmpb $0x0, (%rax)
je 0x10b8e4
leaq 0x191e00(%rip), %rax    # 0x29d60c
cmpl $0x0, (%rax)
je 0x10b81e
leaq 0x8a4bf(%rip), %rax     # 0x195cd7
movq %rax, -0x8(%rbp)
jmp 0x10b829
leaq 0x83d85(%rip), %rax     # 0x18f5aa
movq %rax, -0x8(%rbp)
movb $0x3a, -0x9(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq 0x190b03(%rip), %rdi    # 0x29c340
callq 0x9120
cmpl $0x10, %eax
jle 0x10b89a
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
movsbl -0x9(%rbp), %eax
movl %eax, -0x8c(%rbp)
leaq 0x190add(%rip), %rdi    # 0x29c340
callq 0x9120
movq -0x98(%rbp), %rdx
movl -0x8c(%rbp), %ecx
subq $0x10, %rax
leaq 0x190ac0(%rip), %r8     # 0x29c340
addq %rax, %r8
leaq 0x28fb76(%rip), %rdi    # 0x39b400
leaq 0x83d07(%rip), %rsi     # 0x18f598
movb $0x0, %al
callq 0x9060
jmp 0x10b8be
movq -0x8(%rbp), %rdx
movsbl -0x9(%rbp), %ecx
leaq 0x28fb57(%rip), %rdi    # 0x39b400
leaq 0x64e5e(%rip), %rsi     # 0x17070e
leaq 0x190a89(%rip), %r8     # 0x29c340
movb $0x0, %al
callq 0x9060
movl -0x10(%rbp), %edi
leaq 0x16c0b0(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x28fb2a(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x10b906
leaq 0x192831(%rip), %rax    # 0x29e124
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x192825(%rip), %rax    # 0x29e124
movl %ecx, (%rax)
jmp 0x10bdd1
movl -0x10(%rbp), %edi
leaq 0x16c068(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8ad98(%rip), %rcx     # 0x1966b6
callq 0x10ee0
callq 0x992e0
cmpl $0x0, %eax
je 0x10bb7b
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq 0x191c37(%rip), %rax    # 0x29d578
cmpq $0x0, (%rax)
je 0x10b96d
leaq 0x191c6e(%rip), %rax    # 0x29d5bc
cmpl $0x0, (%rax)
je 0x10b96d
leaq 0x28faa6(%rip), %rdi    # 0x39b400
leaq 0x83c4d(%rip), %rsi     # 0x18f5ae
movb $0x0, %al
callq 0x9060
jmp 0x10bb2c
leaq 0x191c04(%rip), %rax    # 0x29d578
cmpq $0x0, (%rax)
je 0x10b994
leaq 0x28fa7f(%rip), %rdi    # 0x39b400
leaq 0x83c3d(%rip), %rsi     # 0x18f5c5
movb $0x0, %al
callq 0x9060
jmp 0x10bb2a
leaq 0x261b25(%rip), %rax    # 0x36d4c0
cmpl $0x270f, 0x1bee4(%rax)  # imm = 0x270F
jne 0x10b9d3
leaq 0x28fa52(%rip), %rdi    # 0x39b400
leaq 0x83c27(%rip), %rsi     # 0x18f5dc
leaq 0x261b04(%rip), %rdx    # 0x36d4c0
addq $0x1bee0, %rdx          # imm = 0x1BEE0
addq $0xc, %rdx
movb $0x0, %al
callq 0x9060
jmp 0x10bb28
leaq 0x261ae6(%rip), %rax    # 0x36d4c0
cmpl $0x3e7, 0x1bee4(%rax)   # imm = 0x3E7
jne 0x10ba12
leaq 0x28fa13(%rip), %rdi    # 0x39b400
leaq 0x83be8(%rip), %rsi     # 0x18f5dc
leaq 0x261ac5(%rip), %rdx    # 0x36d4c0
addq $0x1bee0, %rdx          # imm = 0x1BEE0
addq $0xc, %rdx
movb $0x0, %al
callq 0x9060
jmp 0x10bb26
leaq 0x261aa7(%rip), %rax    # 0x36d4c0
cmpl $0xa, 0x1bee4(%rax)
jl 0x10ba4c
leaq 0x261a97(%rip), %rax    # 0x36d4c0
movl 0x1bee4(%rax), %edx
subl $0x1, %edx
leaq 0x28f9c7(%rip), %rdi    # 0x39b400
leaq 0x83baa(%rip), %rsi     # 0x18f5ea
movb $0x0, %al
callq 0x9060
jmp 0x10bb24
leaq 0x261a6d(%rip), %rax    # 0x36d4c0
cmpl $0x0, 0x1bee4(%rax)
je 0x10ba86
leaq 0x261a5d(%rip), %rax    # 0x36d4c0
movl 0x1bee4(%rax), %edx
subl $0x1, %edx
leaq 0x28f98d(%rip), %rdi    # 0x39b400
leaq 0x83b70(%rip), %rsi     # 0x18f5ea
movb $0x0, %al
callq 0x9060
jmp 0x10bb22
leaq 0x261a33(%rip), %rax    # 0x36d4c0
cmpl $0xa, 0x1bee0(%rax)
jl 0x10babd
leaq 0x261a23(%rip), %rax    # 0x36d4c0
movl 0x1bee0(%rax), %edx
subl $0x1, %edx
leaq 0x28f953(%rip), %rdi    # 0x39b400
leaq 0x83b36(%rip), %rsi     # 0x18f5ea
movb $0x0, %al
callq 0x9060
jmp 0x10bb20
leaq 0x2619fc(%rip), %rax    # 0x36d4c0
cmpl $0x0, 0x1bee0(%rax)
je 0x10baf4
leaq 0x2619ec(%rip), %rax    # 0x36d4c0
movl 0x1bee0(%rax), %edx
subl $0x1, %edx
leaq 0x28f91c(%rip), %rdi    # 0x39b400
leaq 0x83aff(%rip), %rsi     # 0x18f5ea
movb $0x0, %al
callq 0x9060
jmp 0x10bb1e
leaq 0x28f905(%rip), %rdi    # 0x39b400
leaq 0x83b01(%rip), %rsi     # 0x18f603
leaq 0x2619b7(%rip), %rdx    # 0x36d4c0
addq $0x1bee0, %rdx          # imm = 0x1BEE0
addq $0x10d, %rdx            # imm = 0x10D
movb $0x0, %al
callq 0x9060
jmp 0x10bb20
jmp 0x10bb22
jmp 0x10bb24
jmp 0x10bb26
jmp 0x10bb28
jmp 0x10bb2a
jmp 0x10bb2c
leaq 0x28f8cd(%rip), %rdi    # 0x39b400
callq 0x9120
cmpq $0x19, %rax
jbe 0x10bb55
leaq 0x28f8bb(%rip), %rdi    # 0x39b400
addq $0x16, %rdi
leaq 0x822f6(%rip), %rsi     # 0x18de46
callq 0x9350
movl -0x10(%rbp), %edi
leaq 0x16be19(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x28f893(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x10bb9d
leaq 0x19259a(%rip), %rax    # 0x29e124
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x19258e(%rip), %rax    # 0x29e124
movl %ecx, (%rax)
jmp 0x10bdd1
movl -0x10(%rbp), %edi
leaq 0x16bdd1(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x8ab01(%rip), %rcx     # 0x1966b6
callq 0x10ee0
callq 0xe8440
cmpl $0x0, %eax
je 0x10bdb4
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq 0x2618e8(%rip), %rax    # 0x36d4c0
cmpl $0x270f, 0x203a4(%rax)  # imm = 0x270F
jne 0x10bc10
leaq 0x28f815(%rip), %rdi    # 0x39b400
leaq 0x83a1f(%rip), %rsi     # 0x18f611
leaq 0x2618c7(%rip), %rdx    # 0x36d4c0
addq $0x203a0, %rdx          # imm = 0x203A0
addq $0xc, %rdx
movb $0x0, %al
callq 0x9060
jmp 0x10bd65
leaq 0x2618a9(%rip), %rax    # 0x36d4c0
cmpl $0x3e7, 0x203a4(%rax)   # imm = 0x3E7
jne 0x10bc4f
leaq 0x28f7d6(%rip), %rdi    # 0x39b400
leaq 0x839e0(%rip), %rsi     # 0x18f611
leaq 0x261888(%rip), %rdx    # 0x36d4c0
addq $0x203a0, %rdx          # imm = 0x203A0
addq $0xc, %rdx
movb $0x0, %al
callq 0x9060
jmp 0x10bd63
leaq 0x26186a(%rip), %rax    # 0x36d4c0
cmpl $0xa, 0x203a4(%rax)
jl 0x10bc89
leaq 0x26185a(%rip), %rax    # 0x36d4c0
movl 0x203a4(%rax), %edx
subl $0x1, %edx
leaq 0x28f78a(%rip), %rdi    # 0x39b400
leaq 0x839a2(%rip), %rsi     # 0x18f61f
movb $0x0, %al
callq 0x9060
jmp 0x10bd61
leaq 0x261830(%rip), %rax    # 0x36d4c0
cmpl $0x0, 0x203a4(%rax)
je 0x10bcc3
leaq 0x261820(%rip), %rax    # 0x36d4c0
movl 0x203a4(%rax), %edx
subl $0x1, %edx
leaq 0x28f750(%rip), %rdi    # 0x39b400
leaq 0x83968(%rip), %rsi     # 0x18f61f
movb $0x0, %al
callq 0x9060
jmp 0x10bd5f
leaq 0x2617f6(%rip), %rax    # 0x36d4c0
cmpl $0xa, 0x203a0(%rax)
jl 0x10bcfa
leaq 0x2617e6(%rip), %rax    # 0x36d4c0
movl 0x203a0(%rax), %edx
subl $0x1, %edx
leaq 0x28f716(%rip), %rdi    # 0x39b400
leaq 0x8392e(%rip), %rsi     # 0x18f61f
movb $0x0, %al
callq 0x9060
jmp 0x10bd5d
leaq 0x2617bf(%rip), %rax    # 0x36d4c0
cmpl $0x0, 0x203a0(%rax)
je 0x10bd31
leaq 0x2617af(%rip), %rax    # 0x36d4c0
movl 0x203a0(%rax), %edx
subl $0x1, %edx
leaq 0x28f6df(%rip), %rdi    # 0x39b400
leaq 0x838f7(%rip), %rsi     # 0x18f61f
movb $0x0, %al
callq 0x9060
jmp 0x10bd5b
leaq 0x28f6c8(%rip), %rdi    # 0x39b400
leaq 0x838f9(%rip), %rsi     # 0x18f638
leaq 0x26177a(%rip), %rdx    # 0x36d4c0
addq $0x1bee0, %rdx          # imm = 0x1BEE0
addq $0x10d, %rdx            # imm = 0x10D
movb $0x0, %al
callq 0x9060
jmp 0x10bd5d
jmp 0x10bd5f
jmp 0x10bd61
jmp 0x10bd63
jmp 0x10bd65
leaq 0x28f694(%rip), %rdi    # 0x39b400
callq 0x9120
cmpq $0x19, %rax
jbe 0x10bd8e
leaq 0x28f682(%rip), %rdi    # 0x39b400
addq $0x16, %rdi
leaq 0x820bd(%rip), %rsi     # 0x18de46
callq 0x9350
movl -0x10(%rbp), %edi
leaq 0x16bbe0(%rip), %rax    # 0x277978
movl (%rax), %esi
movl $0xf, %edx
leaq 0x28f65a(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x10bdd1
leaq 0x192361(%rip), %rax    # 0x29e124
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x192355(%rip), %rax    # 0x29e124
movl %ecx, (%rax)
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)