// File: jkingan[P]ladyheather/heathmsc.cpp
// Function: parse_log_comment(char*)
int parse_log_comment(char *line)
{
char *s;
char ti[120];

   // process comment line in a log file

   // !!! This is a VERY crude parser that depends upon fixed spacing.
   // !!! If you change any of the log file output formats,  you will need
   // !!! to make changes in this code also.

   if(line == 0) return 1;

   if(xml_log_fmt && strstr(line, "<!--")) {  // XML comment
      if(strlen(line) < 6) return 1;

      if((line[10] == ':') && (line[13] == ':')) goto time_cmt;  // time comment
      if(!strnicmp(&line[6], "TITLE:", 6)) {
         strcpy(plot_title, &line[6+6]);
         s = strstr(plot_title, "-->");
         if(s) *s = 0;
         goto set_title;
      }
      else if(!strnicmp(&line[6], "DEBUG1:", 7)) {
         strcpy(debug_text, &line[7+6]);
         s = strstr(debug_text, "-->");
         if(s) *s = 0;
         goto set_title1;
      }
      else if(!strnicmp(&line[6], "DEBUG2:", 7)) {
         strcpy(debug_text2, &line[7+6]);
         s = strstr(debug_text2, "-->");
         if(s) *s = 0;
         goto set_title2;
      }
      else if(!strnicmp(&line[6], "DEBUG3:", 7)) {
         strcpy(debug_text3, &line[7+6]);
         s = strstr(debug_text3, "-->");
         if(s) *s = 0;
         goto set_title3;
      }
      else if(!strnicmp(&line[6], "DEBUG4:", 7)) {
         strcpy(debug_text4, &line[7+6]);
         s = strstr(debug_text4, "-->");
         if(s) *s = 0;
         goto set_title4;
      }
      else if(!strnicmp(&line[6], "DEBUG5:", 7)) {
         strcpy(debug_text5, &line[7+6]);
         s = strstr(debug_text5, "-->");
         if(s) *s = 0;
         goto set_title5;
      }
      else if(!strnicmp(&line[6], "DEBUG6:", 7)) {
         strcpy(debug_text6, &line[7+6]);
         s = strstr(debug_text6, "-->");
         if(s) *s = 0;
         goto set_title6;
      }
      else if(!strnicmp(&line[6], "DEBUG7:", 7)) {
         strcpy(debug_text7, &line[7+6]);
         s = strstr(debug_text7, "-->");
         if(s) *s = 0;
         goto set_title7;
      }
      else if(!strnicmp(&line[6], "MARKER", 6)) {
         log_mark_number = atoi(&line[6+6]);
         if((log_mark_number >= 0) && (log_mark_number < MAX_MARKER)) {
            mark_q_entry[log_mark_number] = plot_q_in;
         }
      }
      else if(!strnicmp(&line[6], "OSC_GAIN", 8)) {
         osc_gain = (DATA_SIZE) atof(&line[6+8]);
         user_osc_gain = osc_gain;
         lars_gain = osc_gain;
         log_osc_gain = osc_gain;
         gain_color = YELLOW;
      }

      return 1;
   }
   else if((line[0] == '#') || (line[0] == ';') || (line[0] == '*') || (line[0] == '/')) { 
      if((line[5] == ':') && (line[8] == ':')) {  // time comment
         time_cmt:
         if(strstr(line, "seconds") == 0) return 1;

         s = strstr(line, "interval");
         if(s == 0) return 1;

         read_log_interval = (DATA_SIZE) atof(s+8);
if(read_log_interval && (user_set_qi == 0)) queue_interval = (long) read_log_interval;
         if(read_log_interval && pause_data) {
            if(!restore_nav_rate) {            // save current nav rate
               saved_nav_rate = nav_rate;
               restore_nav_rate = 1;
            }
            if(0 && read_log_interval) {
               nav_rate = ((DATA_SIZE) 1.0 / read_log_interval); // set nav rate to what's in the log so plots scale properly
            }
            else nav_rate = 1.0;
         }

         if(strstr(line, "GPS")) {
            time_flags = TFLAGS_NULL;
            s = strstr(line, "GPS");
         }
         else if(strstr(line, "UTC")) {
            time_flags = TFLAGS_UTC;
            s = strstr(line, "UTC");
         }

         if(s) sscanf(s+3, "%d %s %d", &day, &ti[0], &year);
         for(month=1; month<=12; month++) {
            if(!strcmp(months[month], &ti[0])) goto got_month;
         }
         month = 0;

         got_month:
         valid_read_log = 1;
      }
      else if((line[1] == '!') && strstr(line, "discipline mode")) {  // discipline mode comment
         discipline_mode = DIS_MODE_NORMAL;
         if     (strstr(line, "Normal"))          discipline_mode = DIS_MODE_NORMAL;
         else if(strstr(line, "Power-up"))        discipline_mode = DIS_MODE_POWERUP;
         else if(strstr(line, "Auto holdover"))   discipline_mode = DIS_MODE_AUTO_HOLD;
         else if(strstr(line, "Manual holdover")) discipline_mode = DIS_MODE_MANUAL_HOLD;
         else if(strstr(line, "Recovery mode"))   discipline_mode = DIS_MODE_RECOVERY;
         else if(strstr(line, "Fast recovery"))   discipline_mode = DIS_MODE_FAST_RECOVERY;
         else if(strstr(line, "Disabled"))        discipline_mode = DIS_MODE_DISABLED;
         else if(strstr(line, "Warming up"))      discipline_mode = DIS_MODE_WARMUP;
         else if(strstr(line, "Settling"))        discipline_mode = DIS_MODE_WARMUP;
      }
      else if(!strnicmp(line, "#TITLE", 6)) {
         strcpy(plot_title, &line[7]);
         set_title:
         set_log_title(plot_title);
      }
      else if(!strnicmp(line, "#DEBUG1", 7)) {
         strcpy(debug_text, &line[8]);
         set_title1:
         set_log_title(debug_text);
      }
      else if(!strnicmp(line, "#DEBUG2", 7)) {
         strcpy(debug_text2, &line[8]);
         set_title2:
         set_log_title(debug_text2);
      }
      else if(!strnicmp(line, "#DEBUG3", 7)) {
         strcpy(debug_text3, &line[8]);
         set_title3:
         set_log_title(debug_text3);
      }
      else if(!strnicmp(line, "#DEBUG4", 7)) {
         strcpy(debug_text4, &line[8]);
         set_title4:
         set_log_title(debug_text4);
      }
      else if(!strnicmp(line, "#DEBUG5", 7)) {
         strcpy(debug_text5, &line[8]);
         set_title5:
         set_log_title(debug_text5);
      }
      else if(!strnicmp(line, "#DEBUG6", 7)) {
         strcpy(debug_text6, &line[8]);
         set_title6:
         set_log_title(debug_text6);
      }
      else if(!strnicmp(line, "#DEBUG7", 7)) {
         strcpy(debug_text7, &line[8]);
         set_title7:
         set_log_title(debug_text7);
      }
      else if(!strnicmp(line, "#MARKER", 7)) {
         log_mark_number = 0;
         sscanf(&line[8], "%d", &log_mark_number);
         if((log_mark_number >= 0) && (log_mark_number < MAX_MARKER)) {
            mark_q_entry[log_mark_number] = plot_q_in;
         }
      }
      else if(!strnicmp(line, "#OSC_GAIN", 9)) {
         osc_gain = (-3.5);
         osc_gain = (DATA_SIZE) atof(&line[10]);
         user_osc_gain = osc_gain;
         lars_gain = osc_gain;
         log_osc_gain = osc_gain;
         gain_color = YELLOW;
      }
      else if(!strnicmp(line, "#SCALE", 6)) {
         log_pps_scale = log_osc_scale = 1.0;
         sscanf(&line[7], "%lf %lf", &log_pps_scale, &log_osc_scale);
      }
      else if(!strnicmp(line, "#INTERVAL", 9)) {
         adev_period = 1.0;
         sscanf(&line[10], "%lf", &adev_period);   // aaaaaapppppp other periods 
      }
      else if(!strnicmp(line, "#PERIOD", 7)) {
         adev_period = 1.0;
         sscanf(&line[8], "%lf", &adev_period);    // aaaaaapppppp other periods 
      }
      else if(!strnicmp(line, "#LLA", 4)) {
         sscanf(&line[5], "%lf %lf %lf", &precise_lat, &precise_lon, &precise_alt);
         precise_lon /= RAD_TO_DEG;
         precise_lat /= RAD_TO_DEG;
         cos_factor = cos(precise_lat);
         if(cos_factor == 0.0) cos_factor = 0.001;
      }
      return 1;
   }

   return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x125a42
movl $0x1, -0x4(%rbp)
jmp 0x126783
cmpl $0x0, 0x2b3e5b(%rip)    # 0x3d98a4
je 0x125e8a
movq -0x10(%rbp), %rdi
leaq 0x70107(%rip), %rsi     # 0x195b61
callq 0x9090
cmpq $0x0, %rax
je 0x125e8a
movq -0x10(%rbp), %rdi
callq 0x9120
cmpq $0x6, %rax
jae 0x125a84
movl $0x1, -0x4(%rbp)
jmp 0x126783
movq -0x10(%rbp), %rax
movsbl 0xa(%rax), %eax
cmpl $0x3a, %eax
jne 0x125aa3
movq -0x10(%rbp), %rax
movsbl 0xd(%rax), %eax
cmpl $0x3a, %eax
jne 0x125aa3
jmp 0x125ee2
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x700b4(%rip), %rsi     # 0x195b66
movl $0x6, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125aff
movq -0x10(%rbp), %rsi
addq $0xc, %rsi
leaq 0x277f60(%rip), %rdi    # 0x39da30
callq 0x9350
leaq 0x277f54(%rip), %rdi    # 0x39da30
leaq 0x6a7c5(%rip), %rsi     # 0x1902a8
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x125afa
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x1262a8
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x7005f(%rip), %rsi     # 0x195b6d
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125b5b
movq -0x10(%rbp), %rsi
addq $0xd, %rsi
leaq 0x278054(%rip), %rdi    # 0x39db80
callq 0x9350
leaq 0x278048(%rip), %rdi    # 0x39db80
leaq 0x6a769(%rip), %rsi     # 0x1902a8
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x125b56
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x1262e7
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x7000b(%rip), %rsi     # 0x195b75
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125bb7
movq -0x10(%rbp), %rsi
addq $0xd, %rsi
leaq 0x278148(%rip), %rdi    # 0x39dcd0
callq 0x9350
leaq 0x27813c(%rip), %rdi    # 0x39dcd0
leaq 0x6a70d(%rip), %rsi     # 0x1902a8
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x125bb2
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x126326
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x6ffb7(%rip), %rsi     # 0x195b7d
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125c13
movq -0x10(%rbp), %rsi
addq $0xd, %rsi
leaq 0x27823c(%rip), %rdi    # 0x39de20
callq 0x9350
leaq 0x278230(%rip), %rdi    # 0x39de20
leaq 0x6a6b1(%rip), %rsi     # 0x1902a8
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x125c0e
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x126365
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x6ff63(%rip), %rsi     # 0x195b85
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125c6f
movq -0x10(%rbp), %rsi
addq $0xd, %rsi
leaq 0x278330(%rip), %rdi    # 0x39df70
callq 0x9350
leaq 0x278324(%rip), %rdi    # 0x39df70
leaq 0x6a655(%rip), %rsi     # 0x1902a8
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x125c6a
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x1263a4
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x6ff0f(%rip), %rsi     # 0x195b8d
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125ccb
movq -0x10(%rbp), %rsi
addq $0xd, %rsi
leaq 0x278424(%rip), %rdi    # 0x39e0c0
callq 0x9350
leaq 0x278418(%rip), %rdi    # 0x39e0c0
leaq 0x6a5f9(%rip), %rsi     # 0x1902a8
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x125cc6
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x1263e3
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x6febb(%rip), %rsi     # 0x195b95
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125d27
movq -0x10(%rbp), %rsi
addq $0xd, %rsi
leaq 0x278518(%rip), %rdi    # 0x39e210
callq 0x9350
leaq 0x27850c(%rip), %rdi    # 0x39e210
leaq 0x6a59d(%rip), %rsi     # 0x1902a8
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x125d22
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x126422
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x6fe67(%rip), %rsi     # 0x195b9d
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125d83
movq -0x10(%rbp), %rsi
addq $0xd, %rsi
leaq 0x27860c(%rip), %rdi    # 0x39e360
callq 0x9350
leaq 0x278600(%rip), %rdi    # 0x39e360
leaq 0x6a541(%rip), %rsi     # 0x1902a8
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x125d7e
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x126461
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x6fe65(%rip), %rsi     # 0x195bf7
movl $0x6, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125de7
movq -0x10(%rbp), %rdi
addq $0xc, %rdi
callq 0x95c0
movl %eax, 0x2b3aec(%rip)    # 0x3d98a0
cmpl $0x0, 0x2b3ae5(%rip)    # 0x3d98a0
jl 0x125de2
cmpl $0xa, 0x2b3adc(%rip)    # 0x3d98a0
jge 0x125de2
leaq 0x15473b(%rip), %rax    # 0x27a508
movq (%rax), %rdx
movslq 0x2b3ac9(%rip), %rcx    # 0x3d98a0
leaq 0x1546b2(%rip), %rax    # 0x27a490
movq %rdx, (%rax,%rcx,8)
jmp 0x125e6e
movq -0x10(%rbp), %rdi
addq $0x6, %rdi
leaq 0x6fe09(%rip), %rsi     # 0x195bff
movl $0x8, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x125e6c
movq -0x10(%rbp), %rdi
addq $0xe, %rdi
callq 0x9480
leaq 0x2464cf(%rip), %rax    # 0x36c2e8
movsd %xmm0, (%rax)
leaq 0x2464c4(%rip), %rax    # 0x36c2e8
movsd (%rax), %xmm0
leaq 0x246539(%rip), %rax    # 0x36c368
movsd %xmm0, (%rax)
leaq 0x2464ae(%rip), %rax    # 0x36c2e8
movsd (%rax), %xmm0
leaq 0x2464ab(%rip), %rax    # 0x36c2f0
movsd %xmm0, (%rax)
leaq 0x246498(%rip), %rax    # 0x36c2e8
movsd (%rax), %xmm0
leaq 0x24649d(%rip), %rax    # 0x36c2f8
movsd %xmm0, (%rax)
leaq 0x2464e2(%rip), %rax    # 0x36c348
movl $0xe, (%rax)
jmp 0x125e6e
jmp 0x125e70
jmp 0x125e72
jmp 0x125e74
jmp 0x125e76
jmp 0x125e78
jmp 0x125e7a
jmp 0x125e7c
jmp 0x125e7e
movl $0x1, -0x4(%rbp)
jmp 0x126783
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x23, %eax
je 0x125ebe
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3b, %eax
je 0x125ebe
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2a, %eax
je 0x125ebe
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0x12677a
movq -0x10(%rbp), %rax
movsbl 0x5(%rax), %eax
cmpl $0x3a, %eax
jne 0x1260f1
movq -0x10(%rbp), %rax
movsbl 0x8(%rax), %eax
cmpl $0x3a, %eax
jne 0x1260f1
jmp 0x125ee2
movq -0x10(%rbp), %rdi
leaq 0x551d1(%rip), %rsi     # 0x17b0be
callq 0x9090
cmpq $0x0, %rax
jne 0x125f04
movl $0x1, -0x4(%rbp)
jmp 0x126783
movq -0x10(%rbp), %rdi
leaq 0x635ad(%rip), %rsi     # 0x1894bc
callq 0x9090
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x125f2b
movl $0x1, -0x4(%rbp)
jmp 0x126783
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
callq 0x9480
movsd %xmm0, 0x2b3968(%rip)   # 0x3d98a8
movsd 0x2b3960(%rip), %xmm0   # 0x3d98a8
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x125f55
jp 0x125f55
jmp 0x125f74
leaq 0x154634(%rip), %rax    # 0x27a590
cmpl $0x0, (%rax)
jne 0x125f74
cvttsd2si 0x2b393e(%rip), %rcx # 0x3d98a8
leaq 0x154607(%rip), %rax    # 0x27a578
movq %rcx, (%rax)
movsd 0x2b392c(%rip), %xmm0   # 0x3d98a8
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x125f89
jp 0x125f89
jmp 0x125fd7
leaq 0x154484(%rip), %rax    # 0x27a414
cmpb $0x0, (%rax)
je 0x125fd7
leaq 0x1545b4(%rip), %rax    # 0x27a550
cmpl $0x0, (%rax)
jne 0x125fc4
leaq 0x154590(%rip), %rax    # 0x27a538
movsd (%rax), %xmm0
leaq 0x154595(%rip), %rax    # 0x27a548
movsd %xmm0, (%rax)
leaq 0x154592(%rip), %rax    # 0x27a550
movl $0x1, (%rax)
leaq 0x15456d(%rip), %rax    # 0x27a538
movsd 0x49095(%rip), %xmm0    # 0x16f068
movsd %xmm0, (%rax)
movq -0x10(%rbp), %rdi
leaq 0x70477(%rip), %rsi     # 0x196459
callq 0x9090
cmpq $0x0, %rax
je 0x126010
leaq 0x246690(%rip), %rax    # 0x36c684
movl $0x0, (%rax)
movq -0x10(%rbp), %rdi
leaq 0x70454(%rip), %rsi     # 0x196459
callq 0x9090
movq %rax, -0x18(%rbp)
jmp 0x126049
movq -0x10(%rbp), %rdi
leaq 0x71a25(%rip), %rsi     # 0x197a40
callq 0x9090
cmpq $0x0, %rax
je 0x126047
leaq 0x246657(%rip), %rax    # 0x36c684
movl $0x1, (%rax)
movq -0x10(%rbp), %rdi
leaq 0x71a02(%rip), %rsi     # 0x197a40
callq 0x9090
movq %rax, -0x18(%rbp)
jmp 0x126049
cmpq $0x0, -0x18(%rbp)
je 0x12607b
movq -0x18(%rbp), %rdi
addq $0x3, %rdi
leaq -0x90(%rbp), %rcx
leaq 0x6fb3f(%rip), %rsi     # 0x195ba5
leaq 0x246647(%rip), %rdx    # 0x36c6b4
leaq 0x246648(%rip), %r8     # 0x36c6bc
movb $0x0, %al
callq 0x9370
leaq 0x246636(%rip), %rax    # 0x36c6b8
movl $0x1, (%rax)
leaq 0x246629(%rip), %rax    # 0x36c6b8
cmpl $0xc, (%rax)
jg 0x1260d5
leaq 0x24661d(%rip), %rax    # 0x36c6b8
movslq (%rax), %rcx
leaq 0xa369b(%rip), %rax     # 0x1c9740
movq (%rax,%rcx,8), %rdi
leaq -0x90(%rbp), %rsi
callq 0x9510
cmpl $0x0, %eax
jne 0x1260bc
jmp 0x1260e2
jmp 0x1260be
leaq 0x2465f3(%rip), %rax    # 0x36c6b8
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x2465e7(%rip), %rax    # 0x36c6b8
movl %ecx, (%rax)
jmp 0x126088
leaq 0x2465dc(%rip), %rax    # 0x36c6b8
movl $0x0, (%rax)
movl $0x1, 0x2b37c4(%rip)    # 0x3d98b0
jmp 0x126771
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x21, %eax
jne 0x12627a
movq -0x10(%rbp), %rdi
leaq 0x62d5d(%rip), %rsi     # 0x188e6a
callq 0x9090
cmpq $0x0, %rax
je 0x12627a
leaq 0x246554(%rip), %rax    # 0x36c677
movb $0x0, (%rax)
movq -0x10(%rbp), %rdi
leaq 0x6ebde(%rip), %rsi     # 0x194d0f
callq 0x9090
cmpq $0x0, %rax
je 0x12614b
leaq 0x246534(%rip), %rax    # 0x36c677
movb $0x0, (%rax)
jmp 0x126275
movq -0x10(%rbp), %rdi
leaq 0x6ebc0(%rip), %rsi     # 0x194d16
callq 0x9090
cmpq $0x0, %rax
je 0x126170
leaq 0x24650f(%rip), %rax    # 0x36c677
movb $0x1, (%rax)
jmp 0x126273
movq -0x10(%rbp), %rdi
leaq 0x6eba4(%rip), %rsi     # 0x194d1f
callq 0x9090
cmpq $0x0, %rax
je 0x126195
leaq 0x2464ea(%rip), %rax    # 0x36c677
movb $0x2, (%rax)
jmp 0x126271
movq -0x10(%rbp), %rdi
leaq 0x6eb8d(%rip), %rsi     # 0x194d2d
callq 0x9090
cmpq $0x0, %rax
je 0x1261ba
leaq 0x2464c5(%rip), %rax    # 0x36c677
movb $0x3, (%rax)
jmp 0x12626f
movq -0x10(%rbp), %rdi
leaq 0x6eb78(%rip), %rsi     # 0x194d3d
callq 0x9090
cmpq $0x0, %rax
je 0x1261df
leaq 0x2464a0(%rip), %rax    # 0x36c677
movb $0x4, (%rax)
jmp 0x12626d
movq -0x10(%rbp), %rdi
leaq 0x6eb61(%rip), %rsi     # 0x194d4b
callq 0x9090
cmpq $0x0, %rax
je 0x126201
leaq 0x24647b(%rip), %rax    # 0x36c677
movb $0x5, (%rax)
jmp 0x12626b
movq -0x10(%rbp), %rdi
leaq 0x6c859(%rip), %rsi     # 0x192a65
callq 0x9090
cmpq $0x0, %rax
je 0x126223
leaq 0x246459(%rip), %rax    # 0x36c677
movb $0x6, (%rax)
jmp 0x126269
movq -0x10(%rbp), %rdi
leaq 0x6eb61(%rip), %rsi     # 0x194d8f
callq 0x9090
cmpq $0x0, %rax
je 0x126245
leaq 0x246437(%rip), %rax    # 0x36c677
movb $0xa, (%rax)
jmp 0x126267
movq -0x10(%rbp), %rdi
leaq 0x6f95e(%rip), %rsi     # 0x195bae
callq 0x9090
cmpq $0x0, %rax
je 0x126265
leaq 0x246415(%rip), %rax    # 0x36c677
movb $0xa, (%rax)
jmp 0x126267
jmp 0x126269
jmp 0x12626b
jmp 0x12626d
jmp 0x12626f
jmp 0x126271
jmp 0x126273
jmp 0x126275
jmp 0x12676f
movq -0x10(%rbp), %rdi
leaq 0x6f932(%rip), %rsi     # 0x195bb7
movl $0x6, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x1262b9
movq -0x10(%rbp), %rsi
addq $0x7, %rsi
leaq 0x27778d(%rip), %rdi    # 0x39da30
callq 0x9350
leaq 0x277781(%rip), %rdi    # 0x39da30
callq 0x125960
jmp 0x12676d
movq -0x10(%rbp), %rdi
leaq 0x6f8fa(%rip), %rsi     # 0x195bbe
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x1262f8
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x27789e(%rip), %rdi    # 0x39db80
callq 0x9350
leaq 0x277892(%rip), %rdi    # 0x39db80
callq 0x125960
jmp 0x12676b
movq -0x10(%rbp), %rdi
leaq 0x6f8c3(%rip), %rsi     # 0x195bc6
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x126337
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x2779af(%rip), %rdi    # 0x39dcd0
callq 0x9350
leaq 0x2779a3(%rip), %rdi    # 0x39dcd0
callq 0x125960
jmp 0x126769
movq -0x10(%rbp), %rdi
leaq 0x6f88c(%rip), %rsi     # 0x195bce
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x126376
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x277ac0(%rip), %rdi    # 0x39de20
callq 0x9350
leaq 0x277ab4(%rip), %rdi    # 0x39de20
callq 0x125960
jmp 0x126767
movq -0x10(%rbp), %rdi
leaq 0x6f855(%rip), %rsi     # 0x195bd6
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x1263b5
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x277bd1(%rip), %rdi    # 0x39df70
callq 0x9350
leaq 0x277bc5(%rip), %rdi    # 0x39df70
callq 0x125960
jmp 0x126765
movq -0x10(%rbp), %rdi
leaq 0x6f81e(%rip), %rsi     # 0x195bde
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x1263f4
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x277ce2(%rip), %rdi    # 0x39e0c0
callq 0x9350
leaq 0x277cd6(%rip), %rdi    # 0x39e0c0
callq 0x125960
jmp 0x126763
movq -0x10(%rbp), %rdi
leaq 0x6f7e7(%rip), %rsi     # 0x195be6
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x126433
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x277df3(%rip), %rdi    # 0x39e210
callq 0x9350
leaq 0x277de7(%rip), %rdi    # 0x39e210
callq 0x125960
jmp 0x126761
movq -0x10(%rbp), %rdi
leaq 0x6f7b0(%rip), %rsi     # 0x195bee
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x126472
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x277f04(%rip), %rdi    # 0x39e360
callq 0x9350
leaq 0x277ef8(%rip), %rdi    # 0x39e360
callq 0x125960
jmp 0x12675f
movq -0x10(%rbp), %rdi
leaq 0x6f779(%rip), %rsi     # 0x195bf6
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x1264e6
movl $0x0, 0x2b340a(%rip)    # 0x3d98a0
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
leaq 0x60d9c(%rip), %rsi     # 0x187241
leaq 0x2b33f4(%rip), %rdx    # 0x3d98a0
movb $0x0, %al
callq 0x9370
cmpl $0x0, 0x2b33e6(%rip)    # 0x3d98a0
jl 0x1264e1
cmpl $0xa, 0x2b33dd(%rip)    # 0x3d98a0
jge 0x1264e1
leaq 0x15403c(%rip), %rax    # 0x27a508
movq (%rax), %rdx
movslq 0x2b33ca(%rip), %rcx    # 0x3d98a0
leaq 0x153fb3(%rip), %rax    # 0x27a490
movq %rdx, (%rax,%rcx,8)
jmp 0x12675d
movq -0x10(%rbp), %rdi
leaq 0x6f70d(%rip), %rsi     # 0x195bfe
movl $0x9, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x12657f
leaq 0x245de1(%rip), %rax    # 0x36c2e8
movsd 0x48d31(%rip), %xmm0    # 0x16f240
movsd %xmm0, (%rax)
movq -0x10(%rbp), %rdi
addq $0xa, %rdi
callq 0x9480
leaq 0x245dc1(%rip), %rax    # 0x36c2e8
movsd %xmm0, (%rax)
leaq 0x245db6(%rip), %rax    # 0x36c2e8
movsd (%rax), %xmm0
leaq 0x245e2b(%rip), %rax    # 0x36c368
movsd %xmm0, (%rax)
leaq 0x245da0(%rip), %rax    # 0x36c2e8
movsd (%rax), %xmm0
leaq 0x245d9d(%rip), %rax    # 0x36c2f0
movsd %xmm0, (%rax)
leaq 0x245d8a(%rip), %rax    # 0x36c2e8
movsd (%rax), %xmm0
leaq 0x245d8f(%rip), %rax    # 0x36c2f8
movsd %xmm0, (%rax)
leaq 0x245dd4(%rip), %rax    # 0x36c348
movl $0xe, (%rax)
jmp 0x12675b
movq -0x10(%rbp), %rdi
leaq 0x6f67e(%rip), %rsi     # 0x195c08
movl $0x6, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x1265e2
movsd 0x48ac7(%rip), %xmm0    # 0x16f068
movsd %xmm0, 0x2b3317(%rip)   # 0x3d98c0
movsd 0x48ab7(%rip), %xmm0    # 0x16f068
movsd %xmm0, 0x2b32ff(%rip)   # 0x3d98b8
movq -0x10(%rbp), %rdi
addq $0x7, %rdi
leaq 0x6f80c(%rip), %rsi     # 0x195dd4
leaq 0x2b32e9(%rip), %rdx    # 0x3d98b8
leaq 0x2b32ea(%rip), %rcx    # 0x3d98c0
movb $0x0, %al
callq 0x9370
jmp 0x126759
movq -0x10(%rbp), %rdi
leaq 0x6f622(%rip), %rsi     # 0x195c0f
movl $0x9, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x126631
leaq 0x1758d5(%rip), %rax    # 0x29bed8
movsd 0x48a5d(%rip), %xmm0    # 0x16f068
movsd %xmm0, (%rax)
movq -0x10(%rbp), %rdi
addq $0xa, %rdi
leaq 0x6f7ba(%rip), %rsi     # 0x195dd8
leaq 0x1758b3(%rip), %rdx    # 0x29bed8
movb $0x0, %al
callq 0x9370
jmp 0x126757
movq -0x10(%rbp), %rdi
leaq 0x6f5dd(%rip), %rsi     # 0x195c19
movl $0x7, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x126680
leaq 0x175886(%rip), %rax    # 0x29bed8
movsd 0x48a0e(%rip), %xmm0    # 0x16f068
movsd %xmm0, (%rax)
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
leaq 0x6f76b(%rip), %rsi     # 0x195dd8
leaq 0x175864(%rip), %rdx    # 0x29bed8
movb $0x0, %al
callq 0x9370
jmp 0x126755
movq -0x10(%rbp), %rdi
leaq 0x6f596(%rip), %rsi     # 0x195c21
movl $0x4, %edx
callq 0x94a0
cmpl $0x0, %eax
jne 0x126753
movq -0x10(%rbp), %rdi
addq $0x5, %rdi
leaq 0x6f723(%rip), %rsi     # 0x195dd0
leaq 0x273e1c(%rip), %rdx    # 0x39a4d0
leaq 0x273e1d(%rip), %rcx    # 0x39a4d8
leaq 0x273e1e(%rip), %r8     # 0x39a4e0
movb $0x0, %al
callq 0x9370
leaq 0x273e08(%rip), %rax    # 0x39a4d8
movsd (%rax), %xmm0
movsd 0x48aa4(%rip), %xmm1    # 0x16f180
divsd %xmm1, %xmm0
leaq 0x273df1(%rip), %rax    # 0x39a4d8
movsd %xmm0, (%rax)
leaq 0x273dde(%rip), %rax    # 0x39a4d0
movsd (%rax), %xmm0
movsd 0x48a82(%rip), %xmm1    # 0x16f180
divsd %xmm1, %xmm0
leaq 0x273dc7(%rip), %rax    # 0x39a4d0
movsd %xmm0, (%rax)
leaq 0x273dbc(%rip), %rax    # 0x39a4d0
movsd (%rax), %xmm0
callq 0x96f0
leaq 0x245a84(%rip), %rax    # 0x36c1a8
movsd %xmm0, (%rax)
leaq 0x245a79(%rip), %rax    # 0x36c1a8
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x126751
jp 0x126751
leaq 0x245a63(%rip), %rax    # 0x36c1a8
movsd 0x48a43(%rip), %xmm0    # 0x16f190
movsd %xmm0, (%rax)
jmp 0x126753
jmp 0x126755
jmp 0x126757
jmp 0x126759
jmp 0x12675b
jmp 0x12675d
jmp 0x12675f
jmp 0x126761
jmp 0x126763
jmp 0x126765
jmp 0x126767
jmp 0x126769
jmp 0x12676b
jmp 0x12676d
jmp 0x12676f
jmp 0x126771
movl $0x1, -0x4(%rbp)
jmp 0x126783
jmp 0x12677c
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nop