// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_option_value()
void edit_option_value()
{
float val;
int i;
u08 c;

   // set a debug/test value
   val = (float) atof(&edit_buffer[1]);
   c = tolower(edit_buffer[0]);
   if(c == 'a') { // OA command - toggle AMU / dBc mode
      amu_flag ^= 0x08;
      if(SV6_FAMILY || ACE3 || PALISADE) {
         if(log_db == 0) {
            request_sig_levels();
         }
      }
      else {
//       set_io_options(0x13, 0x03, 0x01, amu_flag | BROADCAST_5A | DOPPLER_SMOOTH);  // ECEF+LLA+DBL PRECISION, ECEF+ENU vel,  UTC, no PACKET 5A, amu
         set_io_options(0x32, 0x02, 0x03, amu_flag | BROADCAST_5A | DOPPLER_SMOOTH);  // ECEF+LLA+DBL PRECISION, ECEF+ENU vel,  UTC, PACKET 5A, amu
      }
      request_io_options();
//    clear_signals();
   }
#ifdef ADEV_STUFF
   else if(c == 'b') {  // OB command - adev bin scale
      bin_scale = (int) val;
      if(bin_scale <= 0) bin_scale = 5;
      recalc_adev_info();
      force_adev_redraw(100);
   }
#endif
   else if(c == 'c') { // OC command - toggle continuous scrolling mode
      if(0) { // --- sat count plot scale
         if(edit_buffer[1]) small_sat_count = (int) val & 0x01;
         else               small_sat_count ^= 1;
         config_screen(100);
      }
      else {  // continuous plot scrolling mode
         if(edit_buffer[1]) continuous_scroll = (int) val & 0x01;
         else               continuous_scroll ^= 1;
         config_screen(9376);
      }
   }
#ifdef FFT_STUFF
   else if(c == 'd') {  // OD command - do FFT in dB
      if(edit_buffer[1]) fft_db = (int) val & 0x01;
      else               fft_db ^= 1;
      set_fft_scale();
      if((live_fft == 0) && (selected_plot != FFT)) {
         plot[FFT].show_plot = 1;
         calc_fft(selected_plot);
         if(fft_type == HIST_TYPE) dump_hist_plot();
         else                      dump_fft_plot();
      }
   }
#endif
   else if(c == 'e') {  // OE command - force Thunderbolt-E flag
      if(edit_buffer[1]) ebolt = (int) val & 0x01;
      else               ebolt ^= 1;
      max_sats = 8;     // used to format the sat_info data
      temp_sats = 8;
      eofs = 1;
      if(ebolt) {
         last_ebolt = (-2);
         saw_ebolt();
      }
      config_screen(101);
   }
#ifdef ADEV_STUFF
   else if(c == 'f') {  // OF command - keep adevs fresh (by periodically forcing a recalc)
      if(edit_buffer[1]) keep_adevs_fresh = (int) val & 0x01;
      else               keep_adevs_fresh = 1;
   }
#endif
   else if(c == 'g') {  // OG command - solid earth tide options
      if(edit_buffer[1]) tide_options = (int) val;
      else               tide_options ^= 1;   // toggle low res mode
   }
   else if(c == 'h') {  // OH command - erase lla plot every hour
      if(edit_buffer[1]) erase_every_hour = (int) val & 0x01;
      else               erase_every_hour ^= 1;
   }
   else if(c == 'i') {  // OI command - signal level displays
      if(edit_buffer[1])    plot_signals = (int) val;
      else if(plot_signals) plot_signals = 0;
      else                  plot_signals = 4;

      if(zoom_screen) {
         change_zoom_config(-102);
         cancel_zoom(12);      //zkzk
      }
      zoom_fixes = show_fixes;
      if(strchr(edit_buffer, 'z')) {
         change_zoom_config(10);
         zoom_screen = 'S';
      }
      else if(strchr(edit_buffer, 'Z')) {
         change_zoom_config(11);
         zoom_screen = 'S';
      }
      update_azel = 1;
      config_screen(102);
   }
   else if(c == 'j') {  // OJ command - just read and log serial data in hex
val = (float) atohex(&edit_buffer[1]);
      if(edit_buffer[1]) log_stream = (int) val & (LOG_HEX_STREAM | LOG_PACKET_ID | LOG_PACKET_START | LOG_SENT_DATA);
      else               log_stream ^= LOG_HEX_STREAM;
//    if(edit_buffer[1]) just_read = (int) val & 0x01;
//    else               just_read ^= 1;
//    log_stream = just_read;
   }
   else if(c == 'k') {  // OK command - flag message faults as time skips
      if(edit_buffer[1]) flag_faults = (int) val & 0x01;
      else               flag_faults ^= 1;
   }
#ifdef FFT_STUFF
   else if(c == 'l') {  // OL command - live fft
      if(edit_buffer[1]) show_live_fft = (int) val & 0x01;
      else               show_live_fft ^= 1;
      live_fft = selected_plot;
      if(show_live_fft && (plot[FFT].show_plot == 0)) toggle_plot(FFT);
   }
#endif
   else if(c == 'm') {  // OM command - plot magnification factor (for less than one sec/pixel)
      plot_mag = (int) val;
      if(plot_mag <= 1) plot_mag = 1;
   }
   else if(c == 'n') {  // ON command - dynamic trend line info display
      if(edit_buffer[1]) dynamic_trend_line = (int) val & 0x01;
      else               dynamic_trend_line ^= 1;
   }
   else if(c == 'p') {  // OP command - peak scale - dont let plot scale factors get smaller
      if(edit_buffer[1]) peak_scale = (int) val & 0x01;
      else               peak_scale ^= 1;
   }
   else if(c == 'q') {  // OQ command - skip over subsmapled queue entries using the slow, direct method
      if(edit_buffer[1]) slow_q_skips = (int) val & 0x01;
      else               slow_q_skips ^= 1;
   }
#ifdef ADEV_STUFF
   else if(c == 'r') {  // OR command - reset adev bins and recalc adevs
      recalc_adev_info();
   }
#endif
   else if(c == 's') {  // OS command - temperature spike filter 0=off  1=for temp pid  2=for pid and plot
      if(edit_buffer[1])  spike_mode = (int) val;
      else if(spike_mode) spike_mode = 0;
      else                spike_mode = 1;
   }
   else if(c == 't') {  // OT command - alarm/dump type based upon local or displayed time
      if(edit_buffer[1]) alarm_type = (int) val & 0x01;
      else               alarm_type ^= 1;
   }
   else if(c == 'u') {  // --- OU command - daylight savings time area
      if(edit_buffer[1]) dst_area = (int) val;
      else               dst_area = 0;
      if((dst_area < 0) || (dst_area > DST_AREAS)) dst_area = 1;
      calc_dst_times(this_year, dst_list[dst_area]);
      dst_ofs = dst_offset();
   }
   else if(c == 'v') {  // OV command - ADEV base value mode
      // (kludge used to increase dynamic range of single precision numbers)
      subtract_base_value = (u08) val;
      reset_queues(RESET_ALL_QUEUES, 1200);
   }
   else if(c == 'w') {  // --- OW command - watch face style
      watch_face = (u08) val;
      if(watch_face > 5) watch_face = 0;
   }
   else if(c == 'x') {  // OX command - set trend line rate display time scale
      i = (int) val;
      if(edit_buffer[1]) trend_rate_display = (i & 0x03);
      else               trend_rate_display = ((trend_rate_display & 0x01) ^ 0x01);
   }
   else if(c == 'y') {  // --- OY command - temp-dac dac scale factor
      if(edit_buffer[1]) d_scale = val;
      else if(plot[DAC].sum_yy && stat_count) {
         d_scale = sqrt(plot[TEMP].sum_yy/stat_count) / sqrt(plot[DAC].sum_yy/stat_count);
      }
      else d_scale = 0.0;
if(title_type != USER) {
   sprintf(plot_title, "DAC_scale=%f", d_scale);
   title_type = OTHER;
}
   }
   else if(c == 'z') {  // OZ command - plot cursor time ref
      if(edit_buffer[1]) cursor_time_ref = (int) val & 0x03;
      else               cursor_time_ref ^= 1;
   }
   else if(c == '!') { // O! command -
   }
   else if((c == '/') || (c == '-') || (c == '$') || (c == '=') || isdigit(c)) {
      edit_option_switch();
   }
   else {
      // bugs_black_blood:
      sprintf(out, "Unknown option parameter: %c", c);
      edit_error(out);
   }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
leaq 0x357391(%rip), %rdi    # 0x39e4c0
addq $0x1, %rdi
callq 0x9480
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x4(%rbp)
leaq 0x357378(%rip), %rax    # 0x39e4c0
movsbl (%rax), %edi
callq 0x9570
movb %al, -0x9(%rbp)
movzbl -0x9(%rbp), %eax
cmpl $0x61, %eax
jne 0x47240
leaq 0x256f6d(%rip), %rax    # 0x29e0d4
movl (%rax), %ecx
xorl $0x8, %ecx
leaq 0x256f61(%rip), %rax    # 0x29e0d4
movl %ecx, (%rax)
leaq 0x230934(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x471b2
leaq 0x23302b(%rip), %rax    # 0x27a1b4
cmpl $0x36, (%rax)
je 0x471e4
leaq 0x23301f(%rip), %rax    # 0x27a1b4
cmpl $0x33, (%rax)
je 0x471e4
leaq 0x233013(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
je 0x471e4
leaq 0x233007(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
je 0x471e4
leaq 0x2308f7(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x471cb
leaq 0x232fee(%rip), %rax    # 0x27a1b4
cmpl $0x33, (%rax)
je 0x471e4
leaq 0x2308de(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x471fa
leaq 0x232fd5(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
jne 0x471fa
leaq 0x25640a(%rip), %rax    # 0x29d5f5
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x471f8
callq 0x8bfa0
jmp 0x47236
leaq 0x256ed3(%rip), %rax    # 0x29e0d4
movl (%rax), %eax
leaq 0x2308da(%rip), %rcx    # 0x277ae4
movzbl (%rcx), %esi
xorl %ecx, %ecx
movl $0x1, %edx
cmpl $0x1, %esi
cmovel %edx, %ecx
orl %ecx, %eax
orl $0x2, %eax
movl $0x32, %edi
movl $0x2, %esi
movl $0x3, %edx
movzbl %al, %ecx
callq 0x8e6b0
callq 0x8e670
jmp 0x47bda
movzbl -0x9(%rbp), %eax
cmpl $0x62, %eax
jne 0x47284
cvttss2si -0x4(%rbp), %ecx
leaq 0x254c07(%rip), %rax    # 0x29be5c
movl %ecx, (%rax)
leaq 0x254bfe(%rip), %rax    # 0x29be5c
cmpl $0x0, (%rax)
jg 0x47270
leaq 0x254bf2(%rip), %rax    # 0x29be5c
movl $0x5, (%rax)
callq 0x160ee0
movl $0x64, %edi
callq 0x127cf0
jmp 0x47bd8
movzbl -0x9(%rbp), %eax
cmpl $0x63, %eax
jne 0x472d6
leaq 0x35722c(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x472af
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x2332fd(%rip), %rax    # 0x27a5a8
movb %cl, (%rax)
jmp 0x472c7
leaq 0x2332f2(%rip), %rax    # 0x27a5a8
movzbl (%rax), %eax
xorl $0x1, %eax
movb %al, %cl
leaq 0x2332e3(%rip), %rax    # 0x27a5a8
movb %cl, (%rax)
movl $0x24a0, %edi           # imm = 0x24A0
callq 0xeaf0
jmp 0x47bd6
movzbl -0x9(%rbp), %eax
cmpl $0x64, %eax
jne 0x4737e
leaq 0x3571d6(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47305
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x357c73(%rip), %rax    # 0x39ef74
movb %cl, (%rax)
jmp 0x4731d
leaq 0x357c68(%rip), %rax    # 0x39ef74
movzbl (%rax), %eax
xorl $0x1, %eax
movb %al, %cl
leaq 0x357c59(%rip), %rax    # 0x39ef74
movb %cl, (%rax)
callq 0x16d560
leaq 0x2332e2(%rip), %rax    # 0x27a60b
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x47379
leaq 0x357c00(%rip), %rax    # 0x39ef38
cmpl $0xe, (%rax)
je 0x47379
leaq 0x1759dc(%rip), %rax    # 0x1bcd20
movl $0x1, 0xcc8(%rax)
leaq 0x357be3(%rip), %rax    # 0x39ef38
movl (%rax), %edi
callq 0x16da70
leaq 0x2332fa(%rip), %rax    # 0x27a65d
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x47372
callq 0x16e3d0
jmp 0x47377
callq 0x16d750
jmp 0x47379
jmp 0x47bd4
movzbl -0x9(%rbp), %eax
cmpl $0x65, %eax
jne 0x47414
leaq 0x35712e(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x473ab
cvttss2si -0x4(%rbp), %ecx
andl $0x1, %ecx
leaq 0x256d5d(%rip), %rax    # 0x29e104
movl %ecx, (%rax)
jmp 0x473c0
leaq 0x256d52(%rip), %rax    # 0x29e104
movl (%rax), %ecx
xorl $0x1, %ecx
leaq 0x256d46(%rip), %rax    # 0x29e104
movl %ecx, (%rax)
leaq 0x256d31(%rip), %rax    # 0x29e0f8
movl $0x8, (%rax)
leaq 0x256d2c(%rip), %rax    # 0x29e100
movl $0x8, (%rax)
leaq 0x256d3f(%rip), %rax    # 0x29e120
movl $0x1, (%rax)
leaq 0x256d16(%rip), %rax    # 0x29e104
cmpl $0x0, (%rax)
je 0x47405
leaq 0x256d0e(%rip), %rax    # 0x29e108
movl $0xfffffffe, (%rax)     # imm = 0xFFFFFFFE
callq 0x81d20
movl $0x65, %edi
callq 0xeaf0
jmp 0x47bd2
movzbl -0x9(%rbp), %eax
cmpl $0x66, %eax
jne 0x4744e
leaq 0x35709c(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x4743f
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x254ae1(%rip), %rax    # 0x29bf1c
movb %cl, (%rax)
jmp 0x47449
leaq 0x254ad6(%rip), %rax    # 0x29bf1c
movb $0x1, (%rax)
jmp 0x47bd0
movzbl -0x9(%rbp), %eax
cmpl $0x67, %eax
jne 0x4748e
leaq 0x357062(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47474
cvttss2si -0x4(%rbp), %ecx
leaq 0x324dfc(%rip), %rax    # 0x36c26c
movl %ecx, (%rax)
jmp 0x47489
leaq 0x324df1(%rip), %rax    # 0x36c26c
movl (%rax), %ecx
xorl $0x1, %ecx
leaq 0x324de5(%rip), %rax    # 0x36c26c
movl %ecx, (%rax)
jmp 0x47bce
movzbl -0x9(%rbp), %eax
cmpl $0x68, %eax
jne 0x474d6
leaq 0x357022(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x474b9
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x233147(%rip), %rax    # 0x27a5fc
movb %cl, (%rax)
jmp 0x474d1
leaq 0x23313c(%rip), %rax    # 0x27a5fc
movzbl (%rax), %eax
xorl $0x1, %eax
movb %al, %cl
leaq 0x23312d(%rip), %rax    # 0x27a5fc
movb %cl, (%rax)
jmp 0x47bcc
movzbl -0x9(%rbp), %eax
cmpl $0x69, %eax
jne 0x475cc
leaq 0x356fd6(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47502
cvttss2si -0x4(%rbp), %eax
movb %al, %cl
leaq 0x2330f7(%rip), %rax    # 0x27a5f5
movb %cl, (%rax)
jmp 0x47526
leaq 0x2330ec(%rip), %rax    # 0x27a5f5
cmpb $0x0, (%rax)
je 0x4751a
leaq 0x2330e0(%rip), %rax    # 0x27a5f5
movb $0x0, (%rax)
jmp 0x47524
leaq 0x2330d4(%rip), %rax    # 0x27a5f5
movb $0x4, (%rax)
jmp 0x47526
leaq 0x32445b(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x47546
movl $0xffffff9a, %edi       # imm = 0xFFFFFF9A
callq 0x375a0
movl $0xc, %edi
callq 0x376e0
leaq 0x352f67(%rip), %rax    # 0x39a4b4
movzbl (%rax), %ecx
leaq 0x324435(%rip), %rax    # 0x36b98c
movl %ecx, (%rax)
leaq 0x356f60(%rip), %rdi    # 0x39e4c0
movl $0x7a, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x47586
movl $0xa, %edi
callq 0x375a0
leaq 0x324407(%rip), %rax    # 0x36b988
movb $0x53, (%rax)
jmp 0x475b3
leaq 0x356f33(%rip), %rdi    # 0x39e4c0
movl $0x5a, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x475b1
movl $0xb, %edi
callq 0x375a0
leaq 0x3243da(%rip), %rax    # 0x36b988
movb $0x53, (%rax)
jmp 0x475b3
leaq 0x23303a(%rip), %rax    # 0x27a5f4
movb $0x1, (%rax)
movl $0x66, %edi
callq 0xeaf0
jmp 0x47bca
movzbl -0x9(%rbp), %eax
cmpl $0x6a, %eax
jne 0x4762a
leaq 0x356ee4(%rip), %rdi    # 0x39e4c0
incq %rdi
callq 0x98d0
movl %eax, %eax
cvtsi2ss %rax, %xmm0
movss %xmm0, -0x4(%rbp)
leaq 0x356ec9(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47610
cvttss2si -0x4(%rbp), %ecx
andl $0x17, %ecx
leaq 0x255fe4(%rip), %rax    # 0x29d5f0
movl %ecx, (%rax)
jmp 0x47625
leaq 0x255fd9(%rip), %rax    # 0x29d5f0
movl (%rax), %ecx
xorl $0x1, %ecx
leaq 0x255fcd(%rip), %rax    # 0x29d5f0
movl %ecx, (%rax)
jmp 0x47bc8
movzbl -0x9(%rbp), %eax
cmpl $0x6b, %eax
jne 0x47672
leaq 0x356e86(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47655
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x256af7(%rip), %rax    # 0x29e148
movb %cl, (%rax)
jmp 0x4766d
leaq 0x256aec(%rip), %rax    # 0x29e148
movzbl (%rax), %eax
xorl $0x1, %eax
movb %al, %cl
leaq 0x256add(%rip), %rax    # 0x29e148
movb %cl, (%rax)
jmp 0x47bc6
movzbl -0x9(%rbp), %eax
cmpl $0x6c, %eax
jne 0x476f4
leaq 0x356e3e(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x4769d
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x232f71(%rip), %rax    # 0x27a60a
movb %cl, (%rax)
jmp 0x476b5
leaq 0x232f66(%rip), %rax    # 0x27a60a
movzbl (%rax), %eax
xorl $0x1, %eax
movb %al, %cl
leaq 0x232f57(%rip), %rax    # 0x27a60a
movb %cl, (%rax)
leaq 0x35787c(%rip), %rax    # 0x39ef38
movl (%rax), %eax
movb %al, %cl
leaq 0x232f44(%rip), %rax    # 0x27a60b
movb %cl, (%rax)
leaq 0x232f3a(%rip), %rax    # 0x27a60a
cmpb $0x0, (%rax)
je 0x476ef
leaq 0x175644(%rip), %rax    # 0x1bcd20
cmpl $0x0, 0xcc8(%rax)
jne 0x476ef
movl $0xe, %edi
callq 0x47bf0
jmp 0x47bc4
movzbl -0x9(%rbp), %eax
cmpl $0x6d, %eax
jne 0x47729
cvttss2si -0x4(%rbp), %ecx
leaq 0x232ea7(%rip), %rax    # 0x27a5b0
movl %ecx, (%rax)
leaq 0x232e9e(%rip), %rax    # 0x27a5b0
cmpl $0x1, (%rax)
jg 0x47724
leaq 0x232e92(%rip), %rax    # 0x27a5b0
movl $0x1, (%rax)
jmp 0x47bc2
movzbl -0x9(%rbp), %eax
cmpl $0x6e, %eax
jne 0x4776c
leaq 0x356d87(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47752
cvttss2si -0x4(%rbp), %ecx
andl $0x1, %ecx
leaq 0x3577fe(%rip), %rax    # 0x39ef4c
movl %ecx, (%rax)
jmp 0x47767
leaq 0x3577f3(%rip), %rax    # 0x39ef4c
movl (%rax), %ecx
xorl $0x1, %ecx
leaq 0x3577e7(%rip), %rax    # 0x39ef4c
movl %ecx, (%rax)
jmp 0x47bc0
movzbl -0x9(%rbp), %eax
cmpl $0x70, %eax
jne 0x477b4
leaq 0x356d44(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47797
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x232e23(%rip), %rax    # 0x27a5b6
movb %cl, (%rax)
jmp 0x477af
leaq 0x232e18(%rip), %rax    # 0x27a5b6
movzbl (%rax), %eax
xorl $0x1, %eax
movb %al, %cl
leaq 0x232e09(%rip), %rax    # 0x27a5b6
movb %cl, (%rax)
jmp 0x47bbe
movzbl -0x9(%rbp), %eax
cmpl $0x71, %eax
jne 0x477fc
leaq 0x356cfc(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x477df
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x232dcb(%rip), %rax    # 0x27a5a6
movb %cl, (%rax)
jmp 0x477f7
leaq 0x232dc0(%rip), %rax    # 0x27a5a6
movzbl (%rax), %eax
xorl $0x1, %eax
movb %al, %cl
leaq 0x232db1(%rip), %rax    # 0x27a5a6
movb %cl, (%rax)
jmp 0x47bbc
movzbl -0x9(%rbp), %eax
cmpl $0x72, %eax
jne 0x4780f
callq 0x160ee0
jmp 0x47bba
movzbl -0x9(%rbp), %eax
cmpl $0x73, %eax
jne 0x47860
leaq 0x356ca1(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47837
cvttss2si -0x4(%rbp), %eax
movb %al, %cl
leaq 0x324951(%rip), %rax    # 0x36c184
movb %cl, (%rax)
jmp 0x4785b
leaq 0x324946(%rip), %rax    # 0x36c184
cmpb $0x0, (%rax)
je 0x4784f
leaq 0x32493a(%rip), %rax    # 0x36c184
movb $0x0, (%rax)
jmp 0x47859
leaq 0x32492e(%rip), %rax    # 0x36c184
movb $0x1, (%rax)
jmp 0x4785b
jmp 0x47bb8
movzbl -0x9(%rbp), %eax
cmpl $0x74, %eax
jne 0x478a8
leaq 0x356c50(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x4788b
cvttss2si -0x4(%rbp), %eax
andl $0x1, %eax
movb %al, %cl
leaq 0x232d71(%rip), %rax    # 0x27a5f8
movb %cl, (%rax)
jmp 0x478a3
leaq 0x232d66(%rip), %rax    # 0x27a5f8
movzbl (%rax), %eax
xorl $0x1, %eax
movb %al, %cl
leaq 0x232d57(%rip), %rax    # 0x27a5f8
movb %cl, (%rax)
jmp 0x47bb6
movzbl -0x9(%rbp), %eax
cmpl $0x75, %eax
jne 0x4793c
leaq 0x356c04(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x478d2
cvttss2si -0x4(%rbp), %ecx
leaq 0x3251ae(%rip), %rax    # 0x36ca7c
movl %ecx, (%rax)
jmp 0x478df
leaq 0x3251a3(%rip), %rax    # 0x36ca7c
movl $0x0, (%rax)
leaq 0x325196(%rip), %rax    # 0x36ca7c
cmpl $0x0, (%rax)
jl 0x478f7
leaq 0x32518a(%rip), %rax    # 0x36ca7c
cmpl $0x5, (%rax)
jle 0x47904
leaq 0x32517e(%rip), %rax    # 0x36ca7c
movl $0x1, (%rax)
leaq 0x324df5(%rip), %rax    # 0x36c700
movl (%rax), %edi
leaq 0x325168(%rip), %rax    # 0x36ca7c
movslq (%rax), %rcx
leaq 0x181f12(%rip), %rax    # 0x1c9830
movq (%rax,%rcx,8), %rsi
callq 0x1339f0
callq 0x133d80
movl %eax, %ecx
leaq 0x32514b(%rip), %rax    # 0x36ca80
movl %ecx, (%rax)
jmp 0x47bb4
movzbl -0x9(%rbp), %eax
cmpl $0x76, %eax
jne 0x47969
cvttss2si -0x4(%rbp), %eax
movb %al, %cl
leaq 0x23ad6d(%rip), %rax    # 0x2826c0
movb %cl, (%rax)
movl $0x7, %edi
movl $0x4b0, %esi            # imm = 0x4B0
callq 0x144c0
jmp 0x47bb2
movzbl -0x9(%rbp), %eax
cmpl $0x77, %eax
jne 0x479a0
cvttss2si -0x4(%rbp), %eax
movb %al, %cl
leaq 0x232c72(%rip), %rax    # 0x27a5f2
movb %cl, (%rax)
leaq 0x232c69(%rip), %rax    # 0x27a5f2
movzbl (%rax), %eax
cmpl $0x5, %eax
jle 0x4799b
leaq 0x232c5a(%rip), %rax    # 0x27a5f2
movb $0x0, (%rax)
jmp 0x47bb0
movzbl -0x9(%rbp), %eax
cmpl $0x78, %eax
jne 0x479ec
cvttss2si -0x4(%rbp), %eax
movl %eax, -0x8(%rbp)
leaq 0x356b08(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x479cf
movl -0x8(%rbp), %ecx
andl $0x3, %ecx
leaq 0x357585(%rip), %rax    # 0x39ef50
movl %ecx, (%rax)
jmp 0x479e7
leaq 0x35757a(%rip), %rax    # 0x39ef50
movl (%rax), %ecx
andl $0x1, %ecx
xorl $0x1, %ecx
leaq 0x35756b(%rip), %rax    # 0x39ef50
movl %ecx, (%rax)
jmp 0x47bae
movzbl -0x9(%rbp), %eax
cmpl $0x79, %eax
jne 0x47afd
leaq 0x356ac0(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47a1f
movss -0x4(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x356eda(%rip), %rax    # 0x39e8f0
movsd %xmm0, (%rax)
jmp 0x47abf
leaq 0x1752fa(%rip), %rax    # 0x1bcd20
movsd 0x248(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x47a3b
jp 0x47a3b
jmp 0x47aaf
leaq 0x32472e(%rip), %rax    # 0x36c170
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x47a53
jp 0x47a53
jmp 0x47aaf
leaq 0x1752c6(%rip), %rax    # 0x1bcd20
movsd 0x330(%rax), %xmm0
leaq 0x324707(%rip), %rax    # 0x36c170
divsd (%rax), %xmm0
callq 0x9280
movsd %xmm0, -0x18(%rbp)
leaq 0x1752a2(%rip), %rax    # 0x1bcd20
movsd 0x248(%rax), %xmm0
leaq 0x3246e3(%rip), %rax    # 0x36c170
divsd (%rax), %xmm0
callq 0x9280
movaps %xmm0, %xmm1
movsd -0x18(%rbp), %xmm0
divsd %xmm1, %xmm0
leaq 0x356e47(%rip), %rax    # 0x39e8f0
movsd %xmm0, (%rax)
jmp 0x47abd
leaq 0x356e3a(%rip), %rax    # 0x39e8f0
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
jmp 0x47abf
leaq 0x3569e6(%rip), %rax    # 0x39e4ac
cmpl $0x2, (%rax)
je 0x47af8
leaq 0x356e1e(%rip), %rax    # 0x39e8f0
movsd (%rax), %xmm0
leaq 0x355f53(%rip), %rdi    # 0x39da30
leaq 0x132134(%rip), %rsi    # 0x179c18
movb $0x1, %al
callq 0x9060
leaq 0x3569ba(%rip), %rax    # 0x39e4ac
movl $0x3, (%rax)
jmp 0x47bac
movzbl -0x9(%rbp), %eax
cmpl $0x7a, %eax
jne 0x47b3d
leaq 0x3569b3(%rip), %rax    # 0x39e4c0
cmpb $0x0, 0x1(%rax)
je 0x47b26
cvttss2si -0x4(%rbp), %ecx
andl $0x3, %ecx
leaq 0x23295e(%rip), %rax    # 0x27a480
movl %ecx, (%rax)
jmp 0x47b3b
leaq 0x232953(%rip), %rax    # 0x27a480
movl (%rax), %ecx
xorl $0x1, %ecx
leaq 0x232947(%rip), %rax    # 0x27a480
movl %ecx, (%rax)
jmp 0x47baa
movzbl -0x9(%rbp), %eax
cmpl $0x21, %eax
jne 0x47b48
jmp 0x47ba8
movzbl -0x9(%rbp), %eax
cmpl $0x2f, %eax
je 0x47b7a
movzbl -0x9(%rbp), %eax
cmpl $0x2d, %eax
je 0x47b7a
movzbl -0x9(%rbp), %eax
cmpl $0x24, %eax
je 0x47b7a
movzbl -0x9(%rbp), %eax
cmpl $0x3d, %eax
je 0x47b7a
movzbl -0x9(%rbp), %edi
callq 0x9330
cmpl $0x0, %eax
je 0x47b81
callq 0x46d40
jmp 0x47ba6
movzbl -0x9(%rbp), %edx
leaq 0x353874(%rip), %rdi    # 0x39b400
leaq 0x132092(%rip), %rsi    # 0x179c25
movb $0x0, %al
callq 0x9060
leaq 0x35385f(%rip), %rdi    # 0x39b400
callq 0x30d60
jmp 0x47ba8
jmp 0x47baa
jmp 0x47bac
jmp 0x47bae
jmp 0x47bb0
jmp 0x47bb2
jmp 0x47bb4
jmp 0x47bb6
jmp 0x47bb8
jmp 0x47bba
jmp 0x47bbc
jmp 0x47bbe
jmp 0x47bc0
jmp 0x47bc2
jmp 0x47bc4
jmp 0x47bc6
jmp 0x47bc8
jmp 0x47bca
jmp 0x47bcc
jmp 0x47bce
jmp 0x47bd0
jmp 0x47bd2
jmp 0x47bd4
jmp 0x47bd6
jmp 0x47bd8
jmp 0x47bda
callq 0x12ae0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)