// File: jkingan[P]ladyheather/heathui.cpp
// Function: change_plot_param(int, int)
int change_plot_param(int c, int cmd_line)
{
    // this routine acts upon the plot control commands

    if(c < 0x0100) c = tolower(c);

    if(getting_plot == (-1)) {  // changing location mode - GL commands
       new_lla_mode = 1;
       if(c == 'a') {   // auto-scale LLA scattergram
          autoscale_lla ^= 1;
          change_lla_scale();
          rebuild_lla_plot(0);
//        plot_loc = 1;
          need_redraw = 4327;
       }
       else if(c == 'd') {  // decimal location
          dms = DECIMAL_FMT;
          plot_loc = 1;
          need_redraw = 1204;
       }
       else if(c == 'e') { // ECEF location
          dms = ECEF_FMT;
          plot_loc = 1;
          need_redraw = 1204;
       }
       else if(c == 'f') {  // scale in feet
          alt_scale = "ft";
          LLA_SPAN = last_lla_span = 10.0;  // lla plot scale in feet per division
          ANGLE_SCALE = DEG_PER_FOOT;       // degrees per foot
          angle_units = "ft";
          rebuild_lla_plot(0);
          plot_loc = 1;
          need_redraw = 1201;
       }
       else if(c == 'g') {   // Grads
          dms = GRAD_FMT;
          plot_loc = 1;
          need_redraw = 1208;
       }
       else if(c == 'h') {   // Ham radio Maidenhead grid square
          dms = GRIDSQ_FMT;
          plot_loc = 1;
          need_redraw = 1202;
       }
       else if(c == 'i') {   // Mils (6400 per cicrle)
          dms = MIL_FMT;
          plot_loc = 1;
          need_redraw = 1202;
       }
       else if(c == 'l') {
          alt_scale = "lg";
          LLA_SPAN = last_lla_span = 3.0;
          ANGLE_SCALE = ((DEG_PER_FOOT)*LG_PER_METER); // degrees per meter
          angle_units = "lg";
          rebuild_lla_plot(0);
          plot_loc = 1;
          need_redraw = 1291;
       }
       else if(c == 'm') {
          alt_scale = "m";
          LLA_SPAN = last_lla_span = 3.0;
          ANGLE_SCALE = ((DEG_PER_FOOT)*FEET_PER_METER); // degrees per meter
          angle_units = "m";
          rebuild_lla_plot(0);
          plot_loc = 1;
          need_redraw = 1201;
       }
       else if(c == 'n') {   // NATO (MGRS)
          dms = NATO_FMT;
          plot_loc = 1;
          need_redraw = 1203;
       }
       else if(c == 'p') {   // GLP - engage privacy mode
          plot_loc = toggle_value(plot_loc);
          need_redraw = 7723;
       }
       else if(c == 'r') {   // radians
          dms = RADIAN_FMT;
          plot_loc = 1;
          need_redraw = 1203;
       }
       else if(c == 's') {   // degrees minutes seconds
          dms = DMS_FMT;
          plot_loc = 1;
          need_redraw = 1204;
       }
       else if(c == 't') {   // show earth tides
          show_tides ^= 1;
          user_show_tides = 1;
          plot_loc = 1;
          need_redraw = 7724;
rebuild_lla_plot(0);  // ckckckck
       }
       else if(c == 'u') {   // UTM
          dms = UTM_FMT;
          plot_loc = 1;
          need_redraw = 1205;
       }
       else if((c == ESC_CHAR) || (c == ' ')) {
       }
       else if(cmd_line) return 1;
       else {
          getting_plot = 0;
          sprintf(out, "Invalid location display command: %c", c);
          edit_error(out);
       }
       if(cmd_line) return 0;
    }
    else if((c == 0x0D) || (c == getting_plot)) {  // toggle plot
//!!!!!if(selected_plot == FFT) plot[selected_plot].show_plot = 1;
       toggle_plot(selected_plot);
    }
    else if(c == 'a') {  // autoscale (all plots)
       auto_scale = toggle_value(auto_scale);
       auto_center = auto_scale;
       set_auto_scale();
    }
    else if(c == 'c') {  // graph color
       getting_plot = 0;
       edit_buffer[0] = 0;
       sprintf(edit_buffer, "%d", plot[selected_plot].plot_color);
       sprintf(out, "Enter color for %s graph (0-15):", plot[selected_plot].plot_id);
       start_edit(COLOR_CMD, out);
       return 1;
    }
#ifdef FFT_STUFF
    else if(c == 'f') {
       fft_type = FFT_TYPE;
       if(selected_plot != FFT) {
          plot[FFT].show_plot = 1;
          calc_fft(selected_plot);
          dump_fft_plot();
       }
    }
#endif
    else if(c == 'g') {  // g acts like an ignore
    }
    else if(c == 'h') {
       fft_type = HIST_TYPE;
       plot[FFT].show_plot = 1;
       calc_fft(selected_plot);
       dump_hist_plot();
    }
    else if(c == 'i') {  // invert plot
       plot[selected_plot].invert_plot *= (-1.0F);
    }
    else if(c == 'l') {  // trend line
       plot[selected_plot].show_trend = toggle_value(plot[selected_plot].show_trend);
       if(plot[selected_plot].show_trend) {
          plot[selected_plot].show_deriv = 0;    // turn off derivatice mode
          plot[selected_plot].show_freq = 0;
          plot[selected_plot].drift_rate = 0.0;  // turn off trend line mode
          show_trend_info(selected_plot);
       }
       else if(title_type == OTHER) {
          plot_title[0] = 0;
          title_type = NONE;
       }
    }
    else if(c == '/') {
       getting_plot = 0;
       all_plots = 0;
       edit_buffer[0] = 0;
       edit_info1 =         "                             miN)   maX)   sP)an      ?)all";
       start_edit(STAT_CMD, "Select statistic to display: A)vg   R)ms   S)td dev   V)ar   <cr>=hide");
       return 1;
    }
    else if((c == 'm') || (c == 's') || (c == 'f')) {  // modify scale factor
       getting_plot = 0;
       edit_scale();
       return 1;
    }
    else if(c == 'x') {  // toggle scale modes
       plot[selected_plot].user_scale = toggle_value(plot[selected_plot].user_scale);
       plot[selected_plot].float_center = toggle_value(plot[selected_plot].float_center);
       plot[selected_plot].user_set_float = 1;
    }
    else if((c == 'z') || (c == 'r')) {  // zero reference line
       getting_plot = 0;
       edit_ref();
       return 1;
    }
    else if(c == '+') {  // move graph up
       move_plot_up();
    }
    else if(c == '-') {  // move graph down
       move_plot_down();
    }
    else if(c == '{') {  // make plot smaller
       shrink_plot();
    }
    else if(c == '}') {  // make plot bigger
       grow_plot();
    }
    else if(c == '=') {  // remove dift rate
       getting_plot = 0;
       edit_drift();
       return 1;
    }
    else if(c == '*') {  // show plot derivative
       plot[selected_plot].show_deriv ^= 1;
       plot[selected_plot].show_freq = 0;
       if(plot[selected_plot].show_deriv) plot[selected_plot].drift_rate = 0.0;
    }
    else if(c == '#') {  // show frequency
       if(tie_plot(selected_plot)) {
          plot[selected_plot].show_freq ^= 1;
          plot[selected_plot].show_deriv = 0;
          if(plot[selected_plot].show_deriv) plot[selected_plot].drift_rate = 0.0;
       }
       else {
          getting_plot = 0;
          if(rcvr_type == PRS_RCVR) {
             edit_error("Can only display OSC plot as frequency");
          }
          else if(rcvr_type == TICC_RCVR) {
             edit_error("Can only display TIE plots as frequency");
          }
          else {
             edit_error("Cannot display plot as frequency");
          }
       }
    }
//  else if((c == '&') && luxor && cal_mode) {
    else if((c == '&') && luxor) {
       getting_plot = 0;
       edit_cal();
       return 1;
    }
    else if(c == '~') {  // deglitch plot
       getting_plot = 0;
       sprintf(edit_buffer, "%g", DEFAULT_DEGLITCH_SIGMA);
       sprintf(out, "Enter %s plot deglitch standard deviation sigma threshold. (ESC ESC to abort)", plot[selected_plot].plot_id);
       start_edit(DEGLITCH_CMD, out);
       return 1;
    }
    else if(c == '?') {
       show_all_stats ^= 1;
       erase_debug_info();
    }
    else if((c == ESC_CHAR) || (c == ' ')) {
    }
    else {
       getting_plot = 0;
       sprintf(out, "Invalid plot command: %c", c);
       edit_error(out);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpl $0x100, -0x8(%rbp)      # imm = 0x100
jge 0x51c32
movl -0x8(%rbp), %edi
callq 0x9570
movl %eax, -0x8(%rbp)
cmpl $-0x1, 0x34fee3(%rip)   # 0x3a1b1c
jne 0x52096
leaq 0x22897d(%rip), %rax    # 0x27a5c3
movb $0x1, (%rax)
cmpl $0x61, -0x8(%rbp)
jne 0x51c82
leaq 0x34883e(%rip), %rax    # 0x39a494
movl (%rax), %ecx
xorl $0x1, %ecx
leaq 0x348832(%rip), %rax    # 0x39a494
movl %ecx, (%rax)
callq 0x15b5d0
xorl %edi, %edi
callq 0x15b8f0
leaq 0x225dad(%rip), %rax    # 0x277a24
movl $0x10e7, (%rax)         # imm = 0x10E7
jmp 0x5207f
cmpl $0x64, -0x8(%rbp)
jne 0x51cae
leaq 0x31a501(%rip), %rax    # 0x36c190
movb $0x0, (%rax)
leaq 0x228929(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225d81(%rip), %rax    # 0x277a24
movl $0x4b4, (%rax)          # imm = 0x4B4
jmp 0x5207d
cmpl $0x65, -0x8(%rbp)
jne 0x51cda
leaq 0x31a4d5(%rip), %rax    # 0x36c190
movb $0x8, (%rax)
leaq 0x2288fd(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225d55(%rip), %rax    # 0x277a24
movl $0x4b4, (%rax)          # imm = 0x4B4
jmp 0x5207b
cmpl $0x66, -0x8(%rbp)
jne 0x51d5e
leaq 0x31a4a1(%rip), %rax    # 0x36c188
leaq 0x1360b8(%rip), %rcx    # 0x187da6
movq %rcx, (%rax)
leaq 0x3487a0(%rip), %rax    # 0x39a498
movsd 0x11d3c0(%rip), %xmm0   # 0x16f0c0
movsd %xmm0, (%rax)
leaq 0x348765(%rip), %rax    # 0x39a470
movsd 0x11d3ad(%rip), %xmm0   # 0x16f0c0
movsd %xmm0, (%rax)
leaq 0x31a47a(%rip), %rax    # 0x36c198
movsd 0x11fa62(%rip), %xmm0   # 0x171788
movsd %xmm0, (%rax)
leaq 0x31a46f(%rip), %rax    # 0x36c1a0
leaq 0x13606e(%rip), %rcx    # 0x187da6
movq %rcx, (%rax)
xorl %edi, %edi
callq 0x15b8f0
leaq 0x228879(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225cd1(%rip), %rax    # 0x277a24
movl $0x4b1, (%rax)          # imm = 0x4B1
jmp 0x52079
cmpl $0x67, -0x8(%rbp)
jne 0x51d8a
leaq 0x31a425(%rip), %rax    # 0x36c190
movb $0x5, (%rax)
leaq 0x22884d(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225ca5(%rip), %rax    # 0x277a24
movl $0x4b8, (%rax)          # imm = 0x4B8
jmp 0x52077
cmpl $0x68, -0x8(%rbp)
jne 0x51db6
leaq 0x31a3f9(%rip), %rax    # 0x36c190
movb $0x2, (%rax)
leaq 0x228821(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225c79(%rip), %rax    # 0x277a24
movl $0x4b2, (%rax)          # imm = 0x4B2
jmp 0x52075
cmpl $0x69, -0x8(%rbp)
jne 0x51de2
leaq 0x31a3cd(%rip), %rax    # 0x36c190
movb $0x7, (%rax)
leaq 0x2287f5(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225c4d(%rip), %rax    # 0x277a24
movl $0x4b2, (%rax)          # imm = 0x4B2
jmp 0x52073
cmpl $0x6c, -0x8(%rbp)
jne 0x51e66
leaq 0x31a399(%rip), %rax    # 0x36c188
leaq 0x143e77(%rip), %rcx    # 0x195c6d
movq %rcx, (%rax)
leaq 0x348698(%rip), %rax    # 0x39a498
movsd 0x11d3d8(%rip), %xmm0   # 0x16f1e0
movsd %xmm0, (%rax)
leaq 0x34865d(%rip), %rax    # 0x39a470
movsd 0x11d3c5(%rip), %xmm0   # 0x16f1e0
movsd %xmm0, (%rax)
leaq 0x31a372(%rip), %rax    # 0x36c198
movsd 0x11f952(%rip), %xmm0   # 0x171780
movsd %xmm0, (%rax)
leaq 0x31a367(%rip), %rax    # 0x36c1a0
leaq 0x143e2d(%rip), %rcx    # 0x195c6d
movq %rcx, (%rax)
xorl %edi, %edi
callq 0x15b8f0
leaq 0x228771(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225bc9(%rip), %rax    # 0x277a24
movl $0x50b, (%rax)          # imm = 0x50B
jmp 0x52071
cmpl $0x6d, -0x8(%rbp)
jne 0x51eea
leaq 0x31a315(%rip), %rax    # 0x36c188
leaq 0x12a119(%rip), %rcx    # 0x17bf93
movq %rcx, (%rax)
leaq 0x348614(%rip), %rax    # 0x39a498
movsd 0x11d354(%rip), %xmm0   # 0x16f1e0
movsd %xmm0, (%rax)
leaq 0x3485d9(%rip), %rax    # 0x39a470
movsd 0x11d341(%rip), %xmm0   # 0x16f1e0
movsd %xmm0, (%rax)
leaq 0x31a2ee(%rip), %rax    # 0x36c198
movsd 0x11d37e(%rip), %xmm0   # 0x16f230
movsd %xmm0, (%rax)
leaq 0x31a2e3(%rip), %rax    # 0x36c1a0
leaq 0x12a0cf(%rip), %rcx    # 0x17bf93
movq %rcx, (%rax)
xorl %edi, %edi
callq 0x15b8f0
leaq 0x2286ed(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225b45(%rip), %rax    # 0x277a24
movl $0x4b1, (%rax)          # imm = 0x4B1
jmp 0x5206f
cmpl $0x6e, -0x8(%rbp)
jne 0x51f16
leaq 0x31a299(%rip), %rax    # 0x36c190
movb $0x4, (%rax)
leaq 0x2286c1(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225b19(%rip), %rax    # 0x277a24
movl $0x4b3, (%rax)          # imm = 0x4B3
jmp 0x5206d
cmpl $0x70, -0x8(%rbp)
jne 0x51f48
leaq 0x22869f(%rip), %rax    # 0x27a5c2
movzbl (%rax), %edi
callq 0x49220
movb %al, %cl
leaq 0x22868e(%rip), %rax    # 0x27a5c2
movb %cl, (%rax)
leaq 0x225ae7(%rip), %rax    # 0x277a24
movl $0x1e2b, (%rax)         # imm = 0x1E2B
jmp 0x5206b
cmpl $0x72, -0x8(%rbp)
jne 0x51f74
leaq 0x31a23b(%rip), %rax    # 0x36c190
movb $0x6, (%rax)
leaq 0x228663(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225abb(%rip), %rax    # 0x277a24
movl $0x4b3, (%rax)          # imm = 0x4B3
jmp 0x52069
cmpl $0x73, -0x8(%rbp)
jne 0x51fa0
leaq 0x31a20f(%rip), %rax    # 0x36c190
movb $0x1, (%rax)
leaq 0x228637(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225a8f(%rip), %rax    # 0x277a24
movl $0x4b4, (%rax)          # imm = 0x4B4
jmp 0x52067
cmpl $0x74, -0x8(%rbp)
jne 0x51fe8
leaq 0x31a2b3(%rip), %rax    # 0x36c260
movl (%rax), %ecx
xorl $0x1, %ecx
leaq 0x31a2a7(%rip), %rax    # 0x36c260
movl %ecx, (%rax)
leaq 0x31a2a6(%rip), %rax    # 0x36c268
movl $0x1, (%rax)
leaq 0x2285f3(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225a4b(%rip), %rax    # 0x277a24
movl $0x1e2c, (%rax)         # imm = 0x1E2C
xorl %edi, %edi
callq 0x15b8f0
jmp 0x52065
cmpl $0x75, -0x8(%rbp)
jne 0x52011
leaq 0x31a19b(%rip), %rax    # 0x36c190
movb $0x3, (%rax)
leaq 0x2285c3(%rip), %rax    # 0x27a5c2
movb $0x1, (%rax)
leaq 0x225a1b(%rip), %rax    # 0x277a24
movl $0x4b5, (%rax)          # imm = 0x4B5
jmp 0x52063
cmpl $0x1b, -0x8(%rbp)
je 0x5201d
cmpl $0x20, -0x8(%rbp)
jne 0x5201f
jmp 0x52061
cmpl $0x0, -0xc(%rbp)
je 0x52031
movl $0x1, -0x4(%rbp)
jmp 0x52855
movl $0x0, 0x34fae1(%rip)    # 0x3a1b1c
movl -0x8(%rbp), %edx
leaq 0x3493bb(%rip), %rdi    # 0x39b400
leaq 0x12962c(%rip), %rsi    # 0x17b678
movb $0x0, %al
callq 0x9060
leaq 0x3493a6(%rip), %rdi    # 0x39b400
callq 0x30d60
jmp 0x52061
jmp 0x52063
jmp 0x52065
jmp 0x52067
jmp 0x52069
jmp 0x5206b
jmp 0x5206d
jmp 0x5206f
jmp 0x52071
jmp 0x52073
jmp 0x52075
jmp 0x52077
jmp 0x52079
jmp 0x5207b
jmp 0x5207d
jmp 0x5207f
cmpl $0x0, -0xc(%rbp)
je 0x52091
movl $0x0, -0x4(%rbp)
jmp 0x52855
jmp 0x5283f
cmpl $0xd, -0x8(%rbp)
je 0x520a7
movl -0x8(%rbp), %eax
cmpl 0x34fa77(%rip), %eax    # 0x3a1b1c
jne 0x520ba
leaq 0x34ce8a(%rip), %rax    # 0x39ef38
movl (%rax), %edi
callq 0x47bf0
jmp 0x5283d
cmpl $0x61, -0x8(%rbp)
jne 0x520f6
leaq 0x2284ed(%rip), %rax    # 0x27a5b4
movzbl (%rax), %edi
callq 0x49220
movb %al, %cl
leaq 0x2284dc(%rip), %rax    # 0x27a5b4
movb %cl, (%rax)
leaq 0x2284d3(%rip), %rax    # 0x27a5b4
movb (%rax), %cl
leaq 0x2284cb(%rip), %rax    # 0x27a5b5
movb %cl, (%rax)
callq 0x51b40
jmp 0x5283b
cmpl $0x63, -0x8(%rbp)
jne 0x52197
movl $0x0, 0x34fa12(%rip)    # 0x3a1b1c
leaq 0x34c3af(%rip), %rax    # 0x39e4c0
movb $0x0, (%rax)
leaq 0x34ce1d(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16abfb(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %edx
leaq 0x34c387(%rip), %rdi    # 0x39e4c0
leaq 0x135101(%rip), %rsi    # 0x187241
movb $0x0, %al
callq 0x9060
leaq 0x34cdea(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16abc8(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
leaq 0x349294(%rip), %rdi    # 0x39b400
leaq 0x12952a(%rip), %rsi    # 0x17b69d
movb $0x0, %al
callq 0x9060
movl $0x67, %edi
leaq 0x34927a(%rip), %rsi    # 0x39b400
callq 0x3d470
movl $0x1, -0x4(%rbp)
jmp 0x52855
cmpl $0x66, -0x8(%rbp)
jne 0x521dc
leaq 0x2284b9(%rip), %rax    # 0x27a65d
movb $0x0, (%rax)
leaq 0x34cd8a(%rip), %rax    # 0x39ef38
cmpl $0xe, (%rax)
je 0x521d7
leaq 0x16ab66(%rip), %rax    # 0x1bcd20
movl $0x1, 0xcc8(%rax)
leaq 0x34cd6d(%rip), %rax    # 0x39ef38
movl (%rax), %edi
callq 0x16da70
callq 0x16d750
jmp 0x52837
cmpl $0x67, -0x8(%rbp)
jne 0x521e7
jmp 0x52835
cmpl $0x68, -0x8(%rbp)
jne 0x52220
leaq 0x228469(%rip), %rax    # 0x27a65d
movb $0x1, (%rax)
leaq 0x16ab22(%rip), %rax    # 0x1bcd20
movl $0x1, 0xcc8(%rax)
leaq 0x34cd29(%rip), %rax    # 0x39ef38
movl (%rax), %edi
callq 0x16da70
callq 0x16e3d0
jmp 0x52833
cmpl $0x69, -0x8(%rbp)
jne 0x52258
leaq 0x34cd0b(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16aae9(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movsd 0x11cecf(%rip), %xmm0   # 0x16f118
mulsd 0x48(%rax), %xmm0
movsd %xmm0, 0x48(%rax)
jmp 0x52831
cmpl $0x6c, -0x8(%rbp)
jne 0x52381
leaq 0x34cccf(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16aaad(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl 0xc8(%rax), %eax
movzbl %al, %edi
callq 0x49220
movzbl %al, %ecx
leaq 0x34cca3(%rip), %rax    # 0x39ef38
movslq (%rax), %rdx
leaq 0x16aa81(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0xc8(%rax)
leaq 0x34cc82(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16aa60(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0xc8(%rax)
je 0x52357
leaq 0x34cc5a(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16aa38(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xcc(%rax)
leaq 0x34cc35(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16aa13(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xd0(%rax)
leaq 0x34cc10(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a9ee(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0xa0(%rax)
leaq 0x34cbea(%rip), %rax    # 0x39ef38
movl (%rax), %edi
callq 0x51730
jmp 0x5237c
leaq 0x34c14e(%rip), %rax    # 0x39e4ac
cmpl $0x3, (%rax)
jne 0x5237a
leaq 0x34b6c6(%rip), %rax    # 0x39da30
movb $0x0, (%rax)
leaq 0x34c138(%rip), %rax    # 0x39e4ac
movl $0x0, (%rax)
jmp 0x5237c
jmp 0x5282f
cmpl $0x2f, -0x8(%rbp)
jne 0x523d3
movl $0x0, 0x34f78b(%rip)    # 0x3a1b1c
movl $0x0, 0x34f675(%rip)    # 0x3a1a10
leaq 0x34c11e(%rip), %rax    # 0x39e4c0
movb $0x0, (%rax)
leaq 0x34c414(%rip), %rax    # 0x39e7c0
leaq 0x12930b(%rip), %rcx    # 0x17b6be
movq %rcx, (%rax)
movl $0x7e, %edi
leaq 0x129338(%rip), %rsi    # 0x17b6fa
callq 0x3d470
movl $0x1, -0x4(%rbp)
jmp 0x52855
cmpl $0x6d, -0x8(%rbp)
je 0x523e5
cmpl $0x73, -0x8(%rbp)
je 0x523e5
cmpl $0x66, -0x8(%rbp)
jne 0x52400
movl $0x0, 0x34f72d(%rip)    # 0x3a1b1c
callq 0x418b0
movl $0x1, -0x4(%rbp)
jmp 0x52855
cmpl $0x78, -0x8(%rbp)
jne 0x524c2
leaq 0x34cb27(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a905(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl 0x30(%rax), %eax
movzbl %al, %edi
callq 0x49220
movzbl %al, %ecx
leaq 0x34cafe(%rip), %rax    # 0x39ef38
movslq (%rax), %rdx
leaq 0x16a8dc(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x30(%rax)
leaq 0x34cae0(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a8be(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl 0x1c(%rax), %eax
movzbl %al, %edi
callq 0x49220
movzbl %al, %ecx
leaq 0x34cab7(%rip), %rax    # 0x39ef38
movslq (%rax), %rdx
leaq 0x16a895(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x1c(%rax)
leaq 0x34ca99(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a877(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0xdc(%rax)
jmp 0x52829
cmpl $0x7a, -0x8(%rbp)
je 0x524ce
cmpl $0x72, -0x8(%rbp)
jne 0x524e9
movl $0x0, 0x34f644(%rip)    # 0x3a1b1c
callq 0x41d50
movl $0x1, -0x4(%rbp)
jmp 0x52855
cmpl $0x2b, -0x8(%rbp)
jne 0x524f9
callq 0x514b0
jmp 0x52825
cmpl $0x2d, -0x8(%rbp)
jne 0x52509
callq 0x51550
jmp 0x52823
cmpl $0x7b, -0x8(%rbp)
jne 0x52519
callq 0x515f0
jmp 0x52821
cmpl $0x7d, -0x8(%rbp)
jne 0x52529
callq 0x51690
jmp 0x5281f
cmpl $0x3d, -0x8(%rbp)
jne 0x5254a
movl $0x0, 0x34f5e3(%rip)    # 0x3a1b1c
callq 0x41ab0
movl $0x1, -0x4(%rbp)
jmp 0x52855
cmpl $0x2a, -0x8(%rbp)
jne 0x525f2
leaq 0x34c9dd(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a7bb(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl 0xcc(%rax), %ecx
xorl $0x1, %ecx
movl %ecx, 0xcc(%rax)
leaq 0x34c9b3(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a791(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xd0(%rax)
leaq 0x34c98e(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a76c(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0xcc(%rax)
je 0x525ed
leaq 0x34c96a(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a748(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0xa0(%rax)
jmp 0x5281b
cmpl $0x23, -0x8(%rbp)
jne 0x52709
leaq 0x34c935(%rip), %rax    # 0x39ef38
movl (%rax), %edi
callq 0x19760
cmpl $0x0, %eax
je 0x526ae
leaq 0x34c91e(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a6fc(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl 0xd0(%rax), %ecx
xorl $0x1, %ecx
movl %ecx, 0xd0(%rax)
leaq 0x34c8f4(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a6d2(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xcc(%rax)
leaq 0x34c8cf(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a6ad(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0xcc(%rax)
je 0x526ac
leaq 0x34c8ab(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a689(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0xa0(%rax)
jmp 0x52704
movl $0x0, 0x34f464(%rip)    # 0x3a1b1c
leaq 0x2253f1(%rip), %rax    # 0x277ab0
cmpq $0x1000000, (%rax)      # imm = 0x1000000
jne 0x526d6
leaq 0x129072(%rip), %rdi    # 0x17b741
callq 0x30d60
jmp 0x52702
leaq 0x2253d3(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x526f4
leaq 0x12907b(%rip), %rdi    # 0x17b768
callq 0x30d60
jmp 0x52700
leaq 0x129095(%rip), %rdi    # 0x17b790
callq 0x30d60
jmp 0x52702
jmp 0x52704
jmp 0x52819
cmpl $0x26, -0x8(%rbp)
jne 0x52736
leaq 0x24ba08(%rip), %rax    # 0x29e11e
cmpb $0x0, (%rax)
je 0x52736
movl $0x0, 0x34f3f7(%rip)    # 0x3a1b1c
callq 0x41f60
movl $0x1, -0x4(%rbp)
jmp 0x52855
cmpl $0x7e, -0x8(%rbp)
jne 0x527b3
movl $0x0, 0x34f3d6(%rip)    # 0x3a1b1c
leaq 0x34bd73(%rip), %rdi    # 0x39e4c0
leaq 0x13f87f(%rip), %rsi    # 0x191fd3
movsd 0x11ca84(%rip), %xmm0   # 0x16f1e0
movb $0x1, %al
callq 0x9060
leaq 0x34c7ce(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16a5ac(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
leaq 0x348c78(%rip), %rdi    # 0x39b400
leaq 0x129022(%rip), %rsi    # 0x17b7b1
movb $0x0, %al
callq 0x9060
movl $0x161, %edi            # imm = 0x161
leaq 0x348c5e(%rip), %rsi    # 0x39b400
callq 0x3d470
movl $0x1, -0x4(%rbp)
jmp 0x52855
cmpl $0x3f, -0x8(%rbp)
jne 0x527d5
leaq 0x34c780(%rip), %rax    # 0x39ef40
movl (%rax), %ecx
xorl $0x1, %ecx
leaq 0x34c774(%rip), %rax    # 0x39ef40
movl %ecx, (%rax)
callq 0x4ff90
jmp 0x52813
cmpl $0x1b, -0x8(%rbp)
je 0x527e1
cmpl $0x20, -0x8(%rbp)
jne 0x527e3
jmp 0x52811
movl $0x0, 0x34f32f(%rip)    # 0x3a1b1c
movl -0x8(%rbp), %edx
leaq 0x348c09(%rip), %rdi    # 0x39b400
leaq 0x129001(%rip), %rsi    # 0x17b7ff
movb $0x0, %al
callq 0x9060
leaq 0x348bf4(%rip), %rdi    # 0x39b400
callq 0x30d60
jmp 0x52813
jmp 0x52815
jmp 0x52817
jmp 0x52819
jmp 0x5281b
jmp 0x5281d
jmp 0x5281f
jmp 0x52821
jmp 0x52823
jmp 0x52825
jmp 0x52827
jmp 0x52829
jmp 0x5282b
jmp 0x5282d
jmp 0x5282f
jmp 0x52831
jmp 0x52833
jmp 0x52835
jmp 0x52837
jmp 0x52839
jmp 0x5283b
jmp 0x5283d
jmp 0x5283f
callq 0xb0d0
movl $0x0, 0x34f2ce(%rip)    # 0x3a1b1c
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nop