// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %edx
cmpl $0xff, %edi
jg 0x3a002
movl %edx, %edi
callq 0x9580
movl %eax, %edx
movl 0x308934(%rip), %eax    # 0x34293c
cmpl $-0x1, %eax
je 0x3a02f
cmpl $0xd, %edx
setne %cl
cmpl %eax, %edx
setne %al
testb %al, %cl
jne 0x3a079
leaq 0x305d35(%rip), %rax    # 0x33fd58
movl (%rax), %edi
callq 0x32e20
jmp 0x3a620
leaq 0x1e13ad(%rip), %rax    # 0x21b3e3
movb $0x1, (%rax)
leal -0x61(%rdx), %eax
cmpl $0x14, %eax
ja 0x3a0a5
leaq 0xd2548(%rip), %rcx     # 0x10c590
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x30125c(%rip), %rax    # 0x33b2b4
xorb $0x1, (%rax)
callq 0xfbb19
xorl %edi, %edi
callq 0xfbd5d
leaq 0x1de7d6(%rip), %rax    # 0x218844
movl $0x10e7, (%rax)         # imm = 0x10E7
jmp 0x3a61a
leal -0x61(%rdx), %eax
cmpl $0x17, %eax
ja 0x3a0f3
leaq 0xd24a8(%rip), %rcx     # 0x10c530
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, 0x3088a1(%rip)    # 0x34293c
callq 0x2ec8b
jmp 0x3a2c2
cmpl $0x1b, %edx
je 0x3a61a
cmpl $0x20, %edx
je 0x3a61a
movl $0x1, %eax
testl %ebx, %ebx
jne 0x3a631
movl $0x0, 0x30886e(%rip)    # 0x34293c
leaq 0x30214b(%rip), %r14    # 0x33c220
leaq 0xdcb43(%rip), %rsi     # 0x116c1f
movq %r14, %rdi
xorl %eax, %eax
callq 0x9060
movq %r14, %rdi
callq 0x2326e
jmp 0x3a61a
cmpl $0x2f, %edx
jne 0x3a132
xorl %eax, %eax
movl %eax, 0x30883c(%rip)    # 0x34293c
movl %eax, 0x30872a(%rip)    # 0x342830
leaq 0x3051d3(%rip), %rax    # 0x33f2e0
movb $0x0, (%rax)
leaq 0xdcb4e(%rip), %rax     # 0x116c65
leaq 0x3054c2(%rip), %rcx    # 0x33f5e0
movq %rax, (%rcx)
leaq 0xdcb79(%rip), %rsi     # 0x116ca1
movl $0x7e, %edi
jmp 0x3a2bd
movl %edx, %eax
andl $-0x9, %eax
cmpl $0x72, %eax
jne 0x3a636
movl $0x0, 0x3087f2(%rip)    # 0x34293c
callq 0x2ee34
jmp 0x3a2c2
leaq 0x1e1279(%rip), %rbx    # 0x21b3d4
movzbl (%rbx), %edi
callq 0x33ef8
movb %al, (%rbx)
leaq 0x1e1269(%rip), %rcx    # 0x21b3d5
movb %al, (%rcx)
xorl %ecx, %ecx
leaq 0x123bb9(%rip), %rdx    # 0x15dd30
movl $0x1, %esi
testb %al, %al
je 0x3a195
movl $0x0, 0x30(%rdx,%rcx)
movl %esi, 0x1c(%rdx,%rcx)
movl %esi, 0xdc(%rdx,%rcx)
jmp 0x3a1a5
movl $0x1, 0x30(%rdx,%rcx)
movl $0x0, 0x1c(%rdx,%rcx)
addq $0xe8, %rcx
cmpq $0x1220, %rcx           # imm = 0x1220
jne 0x3a17c
jmp 0x3a620
leaq 0x1e12bc(%rip), %rax    # 0x21b47d
movb $0x1, (%rax)
leaq 0x123b65(%rip), %rax    # 0x15dd30
movl $0x1, 0xcc8(%rax)
leaq 0x305b7c(%rip), %rax    # 0x33fd58
movl (%rax), %edi
callq 0x108102
callq 0x10867f
jmp 0x3a620
leaq 0x305b64(%rip), %rbx    # 0x33fd58
movslq (%rbx), %rax
imulq $0xe8, %rax, %rax
leaq 0x123b2b(%rip), %r14    # 0x15dd30
movzbl 0x30(%r14,%rax), %edi
callq 0x33ef8
movzbl %al, %eax
movslq (%rbx), %rcx
imulq $0xe8, %rcx, %rcx
movl %eax, 0x30(%r14,%rcx)
movzbl 0x1c(%r14,%rcx), %edi
callq 0x33ef8
movzbl %al, %eax
movslq (%rbx), %rcx
imulq $0xe8, %rcx, %rcx
movl %eax, 0x1c(%r14,%rcx)
movl $0x1, 0xdc(%r14,%rcx)
jmp 0x3a620
movl $0x0, 0x3086e2(%rip)    # 0x34293c
leaq 0x30507f(%rip), %rdi    # 0x33f2e0
movb $0x0, (%rdi)
leaq 0x305aed(%rip), %rbx    # 0x33fd58
movslq (%rbx), %rax
imulq $0xe8, %rax, %rax
leaq 0x123ab4(%rip), %r14    # 0x15dd30
movl 0x20(%r14,%rax), %edx
leaq 0xe9bec(%rip), %rsi     # 0x123e74
xorl %eax, %eax
callq 0x9060
movslq (%rbx), %rax
imulq $0xe8, %rax, %rax
movq (%r14,%rax), %rdx
leaq 0x301f7c(%rip), %rbx    # 0x33c220
leaq 0xdc999(%rip), %rsi     # 0x116c44
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
movl $0x67, %edi
movq %rbx, %rsi
callq 0x2bc51
movl $0x1, %eax
jmp 0x3a631
leaq 0x305a85(%rip), %rax    # 0x33fd58
movslq (%rax), %rax
imulq $0xe8, %rax, %rax
leaq 0x123a4c(%rip), %rcx    # 0x15dd30
movsd 0x48(%rcx,%rax), %xmm0
xorpd 0xceeae(%rip), %xmm0    # 0x1091a0
movlpd %xmm0, 0x48(%rcx,%rax)
jmp 0x3a620
leaq 0x1e1179(%rip), %rax    # 0x21b47d
movb $0x0, (%rax)
leaq 0x305a4a(%rip), %rax    # 0x33fd58
movl (%rax), %edi
cmpl $0xe, %edi
je 0x3a620
leaq 0x123a10(%rip), %rax    # 0x15dd30
movl $0x1, 0xcc8(%rax)
callq 0x108102
callq 0x107f2c
jmp 0x3a620
leaq 0x305a18(%rip), %r14    # 0x33fd58
movslq (%r14), %rax
imulq $0xe8, %rax, %rax
leaq 0x1239df(%rip), %rbx    # 0x15dd30
movzbl 0xc8(%rbx,%rax), %edi
callq 0x33ef8
movzbl %al, %ecx
movslq (%r14), %rdi
imulq $0xe8, %rdi, %rax
movl %ecx, 0xc8(%rbx,%rax)
testb %cl, %cl
je 0x3a66a
leaq (%rbx,%rax), %rcx
xorl %edx, %edx
movl %edx, 0xcc(%rcx)
movl %edx, 0xd0(%rbx,%rax)
movq $0x0, 0xa0(%rbx,%rax)
callq 0x39d69
jmp 0x3a620
leaq 0x2d2c06(%rip), %rax    # 0x30cfb0
movb $0x4, (%rax)
jmp 0x3a603
leaq 0x2d2bf7(%rip), %rax    # 0x30cfb0
movb $0x1, %cl
movb %cl, (%rax)
leaq 0x1e101e(%rip), %rax    # 0x21b3e2
movb %cl, (%rax)
jmp 0x3a49f
leaq 0xdd12f(%rip), %rax     # 0x117501
leaq 0x2d2bcf(%rip), %rcx    # 0x30cfa8
movq %rax, (%rcx)
leaq 0x300ed5(%rip), %rcx    # 0x33b2b8
movabsq $0x4008000000000000, %rdx # imm = 0x4008000000000000
movq %rdx, (%rcx)
leaq 0x300e99(%rip), %rcx    # 0x33b290
movq %rdx, (%rcx)
leaq 0x2d2bb7(%rip), %rcx    # 0x30cfb8
movabsq $0x3ee2d6cb21b5f0ac, %rdx # imm = 0x3EE2D6CB21B5F0AC
jmp 0x3a4f1
leaq 0x2d2b99(%rip), %rax    # 0x30cfb0
movb $0x0, (%rax)
jmp 0x3a495
leaq 0x2d2b8d(%rip), %rax    # 0x30cfb0
movb $0x3, (%rax)
leaq 0x1e0fb5(%rip), %rax    # 0x21b3e2
movb $0x1, (%rax)
leaq 0x1de40d(%rip), %rax    # 0x218844
movl $0x4b5, (%rax)          # imm = 0x4B5
jmp 0x3a61a
leaq 0x2d2c37(%rip), %rax    # 0x30d080
xorb $0x1, (%rax)
leaq 0x2d2c35(%rip), %rax    # 0x30d088
movl $0x1, (%rax)
leaq 0x1e0f82(%rip), %rax    # 0x21b3e2
movb $0x1, (%rax)
leaq 0x1de3da(%rip), %rax    # 0x218844
movl $0x1e2c, (%rax)         # imm = 0x1E2C
xorl %edi, %edi
callq 0xfbd5d
jmp 0x3a61a
leaq 0x2d2b2d(%rip), %rax    # 0x30cfb0
movb $0x7, (%rax)
jmp 0x3a5be
leaq 0x2d2b1e(%rip), %rax    # 0x30cfb0
movb $0x8, (%rax)
leaq 0x1e0f46(%rip), %rax    # 0x21b3e2
movb $0x1, (%rax)
leaq 0x1de39e(%rip), %rax    # 0x218844
movl $0x4b4, (%rax)          # imm = 0x4B4
jmp 0x3a61a
leaq 0xea522(%rip), %rax     # 0x1249da
leaq 0x2d2ae9(%rip), %rcx    # 0x30cfa8
movq %rax, (%rcx)
leaq 0x300def(%rip), %rcx    # 0x33b2b8
movabsq $0x4024000000000000, %rdx # imm = 0x4024000000000000
movq %rdx, (%rcx)
leaq 0x300db3(%rip), %rcx    # 0x33b290
movq %rdx, (%rcx)
leaq 0x2d2ad1(%rip), %rcx    # 0x30cfb8
movabsq $0x3ec6f7f3270dbac6, %rdx # imm = 0x3EC6F7F3270DBAC6
movq %rdx, (%rcx)
leaq 0x2d2ac5(%rip), %rcx    # 0x30cfc0
movq %rax, (%rcx)
xorl %edi, %edi
callq 0xfbd5d
leaq 0x1e0ed6(%rip), %rax    # 0x21b3e2
movb $0x1, (%rax)
leaq 0x1de32e(%rip), %rax    # 0x218844
movl $0x4b1, (%rax)          # imm = 0x4B1
jmp 0x3a61a
leaq 0x2d2a88(%rip), %rax    # 0x30cfb0
movb $0x5, (%rax)
leaq 0x1e0eb0(%rip), %rax    # 0x21b3e2
movb $0x1, (%rax)
leaq 0x1de308(%rip), %rax    # 0x218844
movl $0x4b8, (%rax)          # imm = 0x4B8
jmp 0x3a61a
leaq 0xf8ac7(%rip), %rax     # 0x133015
leaq 0x2d2a53(%rip), %rcx    # 0x30cfa8
movq %rax, (%rcx)
leaq 0x300d59(%rip), %rcx    # 0x33b2b8
movabsq $0x4008000000000000, %rdx # imm = 0x4008000000000000
movq %rdx, (%rcx)
leaq 0x300d1d(%rip), %rcx    # 0x33b290
movq %rdx, (%rcx)
leaq 0x2d2a3b(%rip), %rcx    # 0x30cfb8
movabsq $0x3ef481fc97ce9f99, %rdx # imm = 0x3EF481FC97CE9F99
movq %rdx, (%rcx)
leaq 0x2d2a2f(%rip), %rcx    # 0x30cfc0
movq %rax, (%rcx)
xorl %edi, %edi
callq 0xfbd5d
leaq 0x1e0e40(%rip), %rax    # 0x21b3e2
movb $0x1, (%rax)
leaq 0x1de298(%rip), %rax    # 0x218844
movl $0x50b, (%rax)          # imm = 0x50B
jmp 0x3a61a
leaq 0x2d29f5(%rip), %rax    # 0x30cfb0
movb $0x2, (%rax)
leaq 0x1e0e1d(%rip), %rax    # 0x21b3e2
movb $0x1, (%rax)
leaq 0x1de275(%rip), %rax    # 0x218844
movl $0x4b2, (%rax)          # imm = 0x4B2
jmp 0x3a61a
leaq 0x1e0e04(%rip), %r14    # 0x21b3e2
movzbl (%r14), %edi
callq 0x33ef8
movb %al, (%r14)
leaq 0x1de253(%rip), %rax    # 0x218844
movl $0x1e2b, (%rax)         # imm = 0x1E2B
jmp 0x3a61a
leaq 0x2d29b0(%rip), %rax    # 0x30cfb0
movb $0x6, (%rax)
leaq 0x1e0dd8(%rip), %rax    # 0x21b3e2
movb $0x1, (%rax)
leaq 0x1de230(%rip), %rax    # 0x218844
movl $0x4b3, (%rax)          # imm = 0x4B3
xorl %eax, %eax
testl %ebx, %ebx
jne 0x3a631
callq 0xab5f
movl $0x0, 0x30830d(%rip)    # 0x34293c
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x2c, %edx
jle 0x3a688
cmpl $0x7a, %edx
jg 0x3a6dd
cmpl $0x2d, %edx
je 0x3a795
cmpl $0x3d, %edx
jne 0x3a768
movl $0x0, 0x3082dc(%rip)    # 0x34293c
callq 0x2ed58
jmp 0x3a2c2
leaq 0x304c5b(%rip), %rax    # 0x33f2cc
cmpl $0x3, (%rax)
jne 0x3a620
leaq 0x3041d3(%rip), %rcx    # 0x33e850
movb $0x0, (%rcx)
movl $0x0, (%rax)
jmp 0x3a620
cmpl $0x23, %edx
je 0x3a71f
cmpl $0x2a, %edx
je 0x3a815
cmpl $0x2b, %edx
jne 0x3a768
leaq 0x3056ae(%rip), %rax    # 0x33fd58
movslq (%rax), %rax
imulq $0xe8, %rax, %rax
leaq 0x123675(%rip), %rcx    # 0x15dd30
movl $0x1, %edx
movl %edx, 0x30(%rcx,%rax)
movsd 0x28(%rcx,%rax), %xmm0
subsd 0x30828e(%rip), %xmm0   # 0x342960
movsd %xmm0, 0x28(%rcx,%rax)
jmp 0x3a801
cmpl $0x7b, %edx
je 0x3a7cc
cmpl $0x7d, %edx
jne 0x3a768
leaq 0x305666(%rip), %rax    # 0x33fd58
movslq (%rax), %rax
imulq $0xe8, %rax, %rax
leaq 0x12362d(%rip), %rcx    # 0x15dd30
movl $0x1, %edx
movl %edx, 0x30(%rcx,%rax)
movsd 0x38(%rcx,%rax), %xmm0
subsd 0x30823e(%rip), %xmm0   # 0x342958
jmp 0x3a7fb
leaq 0x305632(%rip), %rbx    # 0x33fd58
movl (%rbx), %edi
callq 0x13ccd
testl %eax, %eax
je 0x3a875
movslq (%rbx), %rax
imulq $0xe8, %rax, %rcx
leaq 0x1235ea(%rip), %rax    # 0x15dd30
xorl $0x1, 0xd0(%rax,%rcx)
movl $0x0, 0xcc(%rax,%rcx)
movb $0x1, %dl
testb %dl, %dl
je 0x3a846
jmp 0x3a620
cmpl $0x26, %edx
jne 0x3a859
leaq 0x2047c6(%rip), %rax    # 0x23ef3e
cmpb $0x0, (%rax)
je 0x3a859
movl $0x0, 0x3081b1(%rip)    # 0x34293c
callq 0x2ef12
jmp 0x3a2c2
movsd 0x3081c3(%rip), %xmm0   # 0x342960
leaq 0x3055b4(%rip), %rax    # 0x33fd58
movslq (%rax), %rax
imulq $0xe8, %rax, %rax
leaq 0x12357b(%rip), %rcx    # 0x15dd30
addsd 0x28(%rcx,%rax), %xmm0
movsd %xmm0, 0x28(%rcx,%rax)
movl $0x1, %edx
movl %edx, 0x30(%rcx,%rax)
jmp 0x3a801
leaq 0x305585(%rip), %rax    # 0x33fd58
movslq (%rax), %rax
imulq $0xe8, %rax, %rax
leaq 0x12354c(%rip), %rcx    # 0x15dd30
movl $0x1, %edx
movl %edx, 0x30(%rcx,%rax)
movsd 0x308163(%rip), %xmm0   # 0x342958
addsd 0x38(%rcx,%rax), %xmm0
movsd %xmm0, 0x38(%rcx,%rax)
movl $0x0, 0x1c(%rcx,%rax)
movl %edx, 0xdc(%rcx,%rax)
jmp 0x3a620
leaq 0x30553c(%rip), %rax    # 0x33fd58
movslq (%rax), %rax
imulq $0xe8, %rax, %rcx
leaq 0x123503(%rip), %rax    # 0x15dd30
xorl $0x1, 0xcc(%rax,%rcx)
movl $0x0, 0xd0(%rax,%rcx)
je 0x3a620
addq %rcx, %rax
movq $0x0, 0xa0(%rax)
jmp 0x3a620
cmpl $0x3e, %edx
jg 0x3a8ad
cmpl $0x1b, %edx
je 0x3a620
cmpl $0x20, %edx
je 0x3a620
jmp 0x3a932
movl $0x0, 0x3080bd(%rip)    # 0x34293c
leaq 0x1de04a(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x10000, %rax          # imm = 0x10000
je 0x3a920
cmpq $0x1000000, %rax        # imm = 0x1000000
jne 0x3a929
leaq 0xdc440(%rip), %rdi     # 0x116ce8
jmp 0x3a957
cmpl $0x3f, %edx
je 0x3a961
cmpl $0x7e, %edx
jne 0x3a932
movl $0x0, 0x308077(%rip)    # 0x34293c
leaq 0x304a14(%rip), %rdi    # 0x33f2e0
leaq 0xf4b14(%rip), %rsi     # 0x12f3e7
movsd 0xd112d(%rip), %xmm0    # 0x10ba08
movb $0x1, %al
callq 0x9060
leaq 0x30546f(%rip), %rax    # 0x33fd58
movslq (%rax), %rax
imulq $0xe8, %rax, %rax
leaq 0x123436(%rip), %rcx    # 0x15dd30
movq (%rcx,%rax), %rdx
leaq 0x30191b(%rip), %rbx    # 0x33c220
leaq 0xdc44c(%rip), %rsi     # 0x116d58
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
movl $0x161, %edi            # imm = 0x161
jmp 0x3a2ba
leaq 0xdc3e8(%rip), %rdi     # 0x116d0f
jmp 0x3a957
leaq 0xdc407(%rip), %rdi     # 0x116d37
jmp 0x3a957
movl $0x0, 0x308000(%rip)    # 0x34293c
leaq 0x3018dd(%rip), %rbx    # 0x33c220
leaq 0xdc45c(%rip), %rsi     # 0x116da6
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
movq %rbx, %rdi
callq 0x2326e
jmp 0x3a620
leaq 0x3053f8(%rip), %rax    # 0x33fd60
xorb $0x1, (%rax)
leaq 0x30402e(%rip), %rax    # 0x33e9a0
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x304173(%rip), %rax    # 0x33eaf0
movb %cl, (%rax)
leaq 0x3042ba(%rip), %rax    # 0x33ec40
movb %cl, (%rax)
leaq 0x304401(%rip), %rax    # 0x33ed90
movb %cl, (%rax)
leaq 0x304548(%rip), %rax    # 0x33eee0
movb %cl, (%rax)
leaq 0x30468f(%rip), %rax    # 0x33f030
movb %cl, (%rax)
leaq 0x3047d6(%rip), %rax    # 0x33f180
movb %cl, (%rax)
jmp 0x3a620