// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x1567cc(%rip), %rax    # 0x2187d8
cmpl $0x0, (%rax)
sete %al
leaq 0x17cf3f(%rip), %rcx    # 0x23ef58
cmpl $0x0, (%rcx)
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0xc286e
leaq 0x24a777(%rip), %rax    # 0x30c7a8
cmpb $0x0, (%rax)
jne 0xc286e
callq 0xba7af
leaq 0x17cef8(%rip), %rax    # 0x23ef3e
leaq 0x156747(%rip), %rcx    # 0x218794
movl (%rcx), %ebx
cmpb $0x1, (%rax)
sbbl $0x0, %ebx
addl $0x6, %ebx
leaq 0x17c301(%rip), %r15    # 0x23e360
leaq 0x17c394(%rip), %r12    # 0x23e3fa
leaq 0x17c3a3(%rip), %r14    # 0x23e410
movl $0x1, %eax
movl (%r14), %r13d
andl %eax, %r13d
cmpb $0x0, (%r12)
cmovnel %eax, %r13d
cmpq $0x0, (%r15)
cmovnel %eax, %r13d
leaq 0x17c2e0(%rip), %rax    # 0x23e370
cmpq $0x1, (%rax)
sbbl $-0x1, %r13d
leaq 0x17c2d9(%rip), %rax    # 0x23e378
cmpq $0x1, (%rax)
sbbl $-0x1, %r13d
leaq 0x17ce96(%rip), %rax    # 0x23ef44
leaq 0x17c2d3(%rip), %rcx    # 0x23e388
cmpq $0x1, (%rcx)
movl $0x0, (%rax)
sbbl $-0x1, %r13d
leaq 0x17c2c6(%rip), %rax    # 0x23e390
cmpq $0x1, (%rax)
sbbl $-0x1, %r13d
callq 0x702e7
cmpl $0x1, %eax
sbbl $-0x1, %r13d
callq 0xab4d5
cmpl $0x1, %eax
sbbl $-0x1, %r13d
cmpl $0x4, %r13d
jb 0xc210c
leaq 0x1566a1(%rip), %rax    # 0x218798
movl (%rax), %esi
leaq 0x71a4e(%rip), %rcx     # 0x133b4e
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
cmpq $0x0, (%r15)
je 0xc2133
leaq 0x24beda(%rip), %rax    # 0x30dff3
cmpb $0x0, (%rax)
je 0xc2156
leaq 0x156673(%rip), %rax    # 0x218798
movl (%rax), %esi
leaq 0x6a8f4(%rip), %rcx     # 0x12ca22
jmp 0xc2262
testb $0x1, (%r14)
movb (%r12), %al
jne 0xc217f
testb %al, %al
je 0xc21b9
leaq 0x156650(%rip), %rax    # 0x218798
movl (%rax), %esi
leaq 0x6a925(%rip), %rcx     # 0x12ca76
jmp 0xc2262
leaq 0x24be57(%rip), %rax    # 0x30dfb4
leaq 0x24be40(%rip), %rcx    # 0x30dfa4
movl (%rcx), %ecx
orl (%rax), %ecx
je 0xc21a1
leaq 0x156627(%rip), %rax    # 0x218798
movl (%rax), %esi
leaq 0x6a8bb(%rip), %rcx     # 0x12ca35
jmp 0xc2262
testb %al, %al
leaq 0x156610(%rip), %rax    # 0x218798
movl (%rax), %esi
leaq 0x6a8d2(%rip), %rax     # 0x12ca63
leaq 0x6a8b8(%rip), %rcx     # 0x12ca50
cmoveq %rax, %rcx
jmp 0xc2262
leaq 0x17c1b0(%rip), %rax    # 0x23e358
movq (%rax), %rax
cmpb $0x61, (%rax)
jne 0xc21db
movl $0x746143, -0x50(%rbp)  # imm = 0x746143
jmp 0xc21f1
xorl %r12d, %r12d
cmpl $0x3, %r13d
ja 0xc2276
leaq 0x1565cb(%rip), %rax    # 0x218798
movl (%rax), %esi
leaq 0x6a8b3(%rip), %rcx     # 0x12ca89
jmp 0xc2262
testb $0x1, (%r14)
jne 0xc21ea
movl $0x676f4c, -0x50(%rbp)  # imm = 0x676F4C
jmp 0xc21f1
movl $0x786548, -0x50(%rbp)  # imm = 0x786548
leaq 0x17c228(%rip), %rax    # 0x23e420
cmpl $0x0, (%rax)
je 0xc2206
leaq -0x50(%rbp), %rdi
callq 0x9899
leaq 0x17ac53(%rip), %r14    # 0x23ce60
movq %r14, %rdi
callq 0x9120
cmpl $0x11, %eax
jl 0xc2232
leaq (%rax,%r14), %rcx
addq $-0x10, %rcx
leaq 0x279ff7(%rip), %rdi    # 0x33c220
leaq 0x6a810(%rip), %rsi     # 0x12ca40
jmp 0xc2247
leaq 0x279fe7(%rip), %rdi    # 0x33c220
leaq 0x6a809(%rip), %rsi     # 0x12ca49
leaq 0x17ac19(%rip), %rcx    # 0x23ce60
leaq -0x50(%rbp), %rdx
xorl %eax, %eax
callq 0x9060
leaq 0x15653f(%rip), %rax    # 0x218798
movl (%rax), %esi
leaq 0x279fbe(%rip), %rcx    # 0x33c220
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
incl %ebx
movl $0x1, %r12d
leaq 0x15651b(%rip), %r15    # 0x218798
movl (%r15), %esi
leaq 0x718c7(%rip), %rcx     # 0x133b4e
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
leaq 0x17c0ce(%rip), %rax    # 0x23e368
cmpq $0x0, (%rax)
je 0xc233d
leaq 0x17acb5(%rip), %rax    # 0x23cf60
cmpb $0x0, (%rax)
je 0xc233d
movl $0x786e52, -0x50(%rbp)  # imm = 0x786E52
leaq 0x17c162(%rip), %rax    # 0x23e424
cmpl $0x0, (%rax)
je 0xc22d0
leaq -0x50(%rbp), %rdi
callq 0x9899
leaq 0x17ac89(%rip), %r14    # 0x23cf60
movq %r14, %rdi
callq 0x9120
cmpq $0x11, %rax
jb 0xc22fd
leaq (%rax,%r14), %r8
addq $-0x10, %r8
leaq 0x279f2c(%rip), %rdi    # 0x33c220
leaq 0x6a7a1(%rip), %rsi     # 0x12ca9c
jmp 0xc2312
leaq 0x279f1c(%rip), %rdi    # 0x33c220
leaq 0x48441(%rip), %rsi     # 0x10a74c
leaq 0x17ac4e(%rip), %r8     # 0x23cf60
leaq -0x50(%rbp), %rdx
movl $0x3a, %ecx
xorl %eax, %eax
callq 0x9060
incl %r12d
movl (%r15), %esi
leaq 0x279ef1(%rip), %rcx    # 0x33c220
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
incl %ebx
movl (%r15), %esi
leaq 0x71807(%rip), %rcx     # 0x133b4e
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
leaq 0x17c02e(%rip), %rax    # 0x23e388
cmpq $0x0, (%rax)
je 0xc23d8
leaq 0x17aef9(%rip), %rax    # 0x23d260
cmpb $0x0, (%rax)
je 0xc23d8
leal 0x1(%r12), %r13d
movl $0x3a, %r14d
cmpl $0x3, %r13d
jne 0xc23a4
leaq 0x17bff4(%rip), %rax    # 0x23e378
movq (%rax), %rax
leaq 0x17bfe2(%rip), %rcx    # 0x23e370
orq (%rcx), %rax
leaq 0x17bff8(%rip), %rcx    # 0x23e390
orq (%rcx), %rax
movl $0x2b, %eax
cmovnel %eax, %r14d
leaq 0x17aeb5(%rip), %r15    # 0x23d260
movq %r15, %rdi
callq 0x9120
cmpq $0x11, %rax
jb 0xc23dd
leaq (%rax,%r15), %r8
addq $-0x10, %r8
leaq 0x279e58(%rip), %rdi    # 0x33c220
leaq 0x6a6cd(%rip), %rsi     # 0x12ca9c
leaq 0x6b59a(%rip), %rdx     # 0x12d970
jmp 0xc23f9
movl %r12d, %r13d
jmp 0xc242c
leaq 0x279e3c(%rip), %rdi    # 0x33c220
leaq 0x48361(%rip), %rsi     # 0x10a74c
leaq 0x6b57e(%rip), %rdx     # 0x12d970
leaq 0x17ae67(%rip), %r8     # 0x23d260
movl %r14d, %ecx
xorl %eax, %eax
callq 0x9060
leaq 0x15638e(%rip), %r15    # 0x218798
movl (%r15), %esi
leaq 0x279e0c(%rip), %rcx    # 0x33c220
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
cmpl $0x1, %r12d
ja 0xc2865
incl %ebx
movl (%r15), %esi
leaq 0x71718(%rip), %rcx     # 0x133b4e
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
leaq 0x17bf27(%rip), %rax    # 0x23e370
cmpq $0x0, (%rax)
je 0xc24d8
leaq 0x17ac06(%rip), %rax    # 0x23d060
cmpb $0x0, (%rax)
je 0xc24d8
leaq 0x17bfb6(%rip), %rax    # 0x23e41c
cmpl $0x0, (%rax)
leaq 0x6a636(%rip), %rax     # 0x12caa6
leaq 0x4875a(%rip), %r14     # 0x10abd1
cmoveq %rax, %r14
leal 0x1(%r13), %eax
movl $0x3a, %r15d
movq %rax, -0x30(%rbp)
cmpl $0x3, %eax
jne 0xc24ab
leaq 0x17befb(%rip), %rax    # 0x23e390
movq (%rax), %rax
leaq 0x17bed9(%rip), %rcx    # 0x23e378
orq (%rcx), %rax
movl $0x2b, %eax
cmovnel %eax, %r15d
leaq 0x17abae(%rip), %r12    # 0x23d060
movq %r12, %rdi
callq 0x9120
cmpq $0x11, %rax
jb 0xc24da
leaq (%rax,%r12), %r8
addq $-0x10, %r8
leaq 0x279d51(%rip), %rdi    # 0x33c220
leaq 0x6a5c6(%rip), %rsi     # 0x12ca9c
jmp 0xc24ef
jmp 0xc2529
leaq 0x279d3f(%rip), %rdi    # 0x33c220
leaq 0x48264(%rip), %rsi     # 0x10a74c
leaq 0x17ab71(%rip), %r8     # 0x23d060
movq %r14, %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x9060
leaq 0x156295(%rip), %r15    # 0x218798
movl (%r15), %esi
leaq 0x279d13(%rip), %rcx    # 0x33c220
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
cmpl $0x1, %r13d
ja 0xc2865
incl %ebx
movq -0x30(%rbp), %r13
movl (%r15), %esi
leaq 0x7161b(%rip), %rcx     # 0x133b4e
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
leaq 0x17be4a(%rip), %rax    # 0x23e390
cmpq $0x0, (%rax)
je 0xc25c9
leaq 0x17b50d(%rip), %rax    # 0x23da60
cmpb $0x0, (%rax)
je 0xc25c9
leaq 0x17bec9(%rip), %rax    # 0x23e428
cmpl $0x0, (%rax)
leaq 0x6a541(%rip), %rax     # 0x12caaa
leaq 0x63d24(%rip), %r14     # 0x126294
cmoveq %rax, %r14
leaq 0x17bdfd(%rip), %rax    # 0x23e378
cmpq $0x0, (%rax)
movl $0x2b, %r15d
movl $0x3a, %eax
cmovel %eax, %r15d
movq %r13, -0x30(%rbp)
incl %r13d
cmpl $0x3, %r13d
cmovnel %eax, %r15d
leaq 0x17b4bc(%rip), %r12    # 0x23da60
movq %r12, %rdi
callq 0x9120
cmpl $0x11, %eax
jl 0xc25cb
leaq (%rax,%r12), %r8
addq $-0x10, %r8
leaq 0x279c60(%rip), %rdi    # 0x33c220
leaq 0x6a4d5(%rip), %rsi     # 0x12ca9c
jmp 0xc25e0
jmp 0xc2616
leaq 0x279c4e(%rip), %rdi    # 0x33c220
leaq 0x48173(%rip), %rsi     # 0x10a74c
leaq 0x17b480(%rip), %r8     # 0x23da60
movq %r14, %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x9060
leaq 0x1561a4(%rip), %r15    # 0x218798
movl (%r15), %esi
leaq 0x279c22(%rip), %rcx    # 0x33c220
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
cmpl $0x1, -0x30(%rbp)
ja 0xc2865
incl %ebx
movl (%r15), %esi
leaq 0x7152e(%rip), %rcx     # 0x133b4e
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
leaq 0x17bd45(%rip), %rax    # 0x23e378
cmpq $0x0, (%rax)
je 0xc26e5
leaq 0x17ab1c(%rip), %rax    # 0x23d160
cmpb $0x0, (%rax)
je 0xc26e5
leaq 0x17bdd8(%rip), %rax    # 0x23e42c
cmpl $0x0, (%rax)
leaq 0x6a450(%rip), %rax     # 0x12caae
leaq 0x70b0a(%rip), %r14     # 0x13316f
cmoveq %rax, %r14
leaq 0x17aaf0(%rip), %r15    # 0x23d160
movq %r15, %rdi
callq 0x9120
cmpl $0x11, %eax
jl 0xc2695
leaq (%rax,%r15), %r8
addq $-0x10, %r8
leaq 0x279b94(%rip), %rdi    # 0x33c220
leaq 0x6a409(%rip), %rsi     # 0x12ca9c
jmp 0xc26aa
leaq 0x279b84(%rip), %rdi    # 0x33c220
leaq 0x480a9(%rip), %rsi     # 0x10a74c
leaq 0x17aab6(%rip), %r8     # 0x23d160
movq %r14, %rdx
movl $0x3a, %ecx
xorl %eax, %eax
callq 0x9060
leaq 0x1560d8(%rip), %r15    # 0x218798
movl (%r15), %esi
leaq 0x279b56(%rip), %rcx    # 0x33c220
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
cmpl $0x1, %r13d
ja 0xc2865
incl %r13d
incl %ebx
movl (%r15), %esi
leaq 0x7145f(%rip), %rcx     # 0x133b4e
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
callq 0x702e7
testl %eax, %eax
je 0xc2796
leaq 0x17bc89(%rip), %rax    # 0x23e398
movq (%rax), %rax
testq %rax, %rax
je 0xc272c
leaq 0x17bcbe(%rip), %rcx    # 0x23e3dc
cmpl $0x0, (%rcx)
je 0xc272c
movups 0x6a388(%rip), %xmm0    # 0x12cab2
jmp 0xc273c
testq %rax, %rax
je 0xc287d
movups 0x6a38d(%rip), %xmm0    # 0x12cac9
leaq 0x279add(%rip), %rax    # 0x33c220
movaps %xmm0, (%rax)
movabsq $0x2020656c696620, %rcx # imm = 0x2020656C696620
movq %rcx, 0xf(%rax)
leaq 0x279ac5(%rip), %r14    # 0x33c220
movq %r14, %rdi
callq 0x9120
cmpq $0x1a, %rax
jb 0xc2771
movl $0x2e2e2e, 0x16(%r14)   # imm = 0x2E2E2E
movl (%r15), %esi
leaq 0x279aa5(%rip), %rcx    # 0x33c220
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
cmpl $0x1, %r13d
ja 0xc2865
incl %r13d
incl %ebx
movl (%r15), %esi
leaq 0x713ae(%rip), %rcx     # 0x133b4e
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
callq 0xab4d5
testl %eax, %eax
je 0xc286e
leaq 0x24bb20(%rip), %rax    # 0x30e2e0
movl 0x203a4(%rax), %edx
cmpl $0x3e7, %edx            # imm = 0x3E7
je 0xc27d6
cmpl $0x270f, %edx           # imm = 0x270F
jne 0xc27f9
movl $0x203ac, %edx          # imm = 0x203AC
addq 0x8d7fe(%rip), %rdx     # 0x14ffe0
leaq 0x279a37(%rip), %rdi    # 0x33c220
leaq 0x6a325(%rip), %rsi     # 0x12cb15
xorl %eax, %eax
callq 0x9060
jmp 0xc282c
cmpl $0xa, %edx
jge 0xc2815
testl %edx, %edx
jne 0xc2815
movl 0x203a0(%rax), %edx
cmpl $0xa, %edx
jge 0xc2815
testl %edx, %edx
je 0xc28f4
decl %edx
leaq 0x279a02(%rip), %rdi    # 0x33c220
leaq 0x6a2fe(%rip), %rsi     # 0x12cb23
xorl %eax, %eax
callq 0x9060
leaq 0x2799ed(%rip), %r14    # 0x33c220
movq %r14, %rdi
callq 0x9120
cmpq $0x1a, %rax
jb 0xc2849
movl $0x2e2e2e, 0x16(%r14)   # imm = 0x2E2E2E
movl (%r15), %esi
leaq 0x2799cd(%rip), %rcx    # 0x33c220
movl %ebx, %edi
movl $0xf, %edx
callq 0xe787
cmpl $0x2, %r13d
jne 0xc286e
leaq 0x17c6d8(%rip), %rax    # 0x23ef44
incl (%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24ba5c(%rip), %rax    # 0x30e2e0
movl 0x1bee4(%rax), %edx
cmpl $0x3e7, %edx            # imm = 0x3E7
je 0xc289a
cmpl $0x270f, %edx           # imm = 0x270F
jne 0xc28c0
movl $0x1beec, %edx          # imm = 0x1BEEC
addq 0x8d73a(%rip), %rdx     # 0x14ffe0
leaq 0x279973(%rip), %rdi    # 0x33c220
leaq 0x6a22c(%rip), %rsi     # 0x12cae0
xorl %eax, %eax
callq 0x9060
jmp 0xc2754
cmpl $0xa, %edx
jge 0xc28d8
testl %edx, %edx
jne 0xc28d8
movl 0x1bee0(%rax), %edx
cmpl $0xa, %edx
jge 0xc28d8
testl %edx, %edx
je 0xc2913
decl %edx
leaq 0x27993f(%rip), %rdi    # 0x33c220
leaq 0x6a206(%rip), %rsi     # 0x12caee
xorl %eax, %eax
callq 0x9060
jmp 0xc2754
movl $0x1bfed, %edx          # imm = 0x1BFED
addq 0x8d6e0(%rip), %rdx     # 0x14ffe0
leaq 0x279919(%rip), %rdi    # 0x33c220
leaq 0x6a22e(%rip), %rsi     # 0x12cb3c
jmp 0xc27f0
movl $0x1bfed, %edx          # imm = 0x1BFED
addq 0x8d6c1(%rip), %rdx     # 0x14ffe0
leaq 0x2798fa(%rip), %rdi    # 0x33c220
leaq 0x6a1da(%rip), %rsi     # 0x12cb07
jmp 0xc28b4