// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathui.cpp
// Function: config_luxor_plots()
void config_luxor_plots()
{
int i;

   // setup plots for luxor LED/POWER analyzer

   VER_COL = 55;
   if(SCREEN_WIDTH <= MIN_WIDTH) --VER_COL;

   last_rmode = rcvr_mode = RCVR_MODE_HOLD;
   tow = 0;
   time_flags = TFLAGS_UTC; // UTC
   plot_watch = 1;
   plot_adev_data = 0;      // adevs
   adev_decades_shown = 0;
   plot_sat_count = 0;      // satellite count
   adev_period = (-1.0);    // aaaapppp
   pps_adev_period = adev_period;
   osc_adev_period = adev_period;
   chc_adev_period = adev_period;
   chd_adev_period = adev_period;
   save_adev_period();

   osc_gain = user_osc_gain = (69.0);
   if(user_set_rounding == 0) {
      round_temp = 3;
   }

   for(i=0; i<NUM_PLOTS+DERIVED_PLOTS; i++) {     // initialize default plot parameters
      plot[i].show_stat = SHOW_SPAN;   // statistic to show - was AVG
   }

   plot[TEMP].plot_id = "TEMP1";
   plot[TEMP].ref_scale = (DATA_SIZE) 1.0;

   plot[BATTV].plot_id = "BATv";
   plot[BATTV].units = "V";
   plot[BATTV].ref_scale = (DATA_SIZE) 1.0;
// if(user_set_dac_plot == 0) plot[DAC].show_plot = 1;
   if(user_set_dac_float == 0) plot[BATTV].float_center = 1;

   plot[BATTI].plot_id = "BATi";
   plot[BATTI].units = "A";
   plot[BATTI].ref_scale = (DATA_SIZE) 1.0;
   if(user_set_osc_plot == 0)  plot[BATTI].show_plot = 1;
   if(user_set_osc_float == 0) plot[BATTI].float_center = 1;

   plot[LUX1].plot_id = "LUX";
   plot[LUX1].ref_scale = (DATA_SIZE) 1.0;
plot[LUX1].show_stat = SHOW_SPAN;
// if(user_set_pps_plot == 0) plot[PPS].show_plot = 1;
   if(user_set_pps_float == 0) plot[LUX1].float_center = 1;
   if(show_fc) plot[LUX1].units = "fc";
   else        plot[LUX1].units = "lux";

   plot[LUX2].plot_id = "LUM";    // !!!!!
   plot[LUX2].ref_scale = (DATA_SIZE) 1.0;
plot[LUX2].show_stat = SHOW_SPAN;
   if(user_set_pps_float == 0) plot[LUX2].float_center = 1;
   if(show_cp) plot[LUX2].units = "cp";
   else        plot[LUX2].units = "lum";

   plot[LEDV].plot_id = "LEDv";
   plot[LEDV].units = "V";
   plot[LEDV].ref_scale = (DATA_SIZE) 1.0;
   plot[LEDV].float_center = 1;

   plot[LEDI].plot_id = "LEDi";
   plot[LEDI].units = "A";
   plot[LEDI].ref_scale = (DATA_SIZE) 1.0;
   plot[LEDI].float_center = 1;

   plot[PWMHZ].plot_id = "PWM";
   plot[PWMHZ].units = "Hz";
   plot[PWMHZ].ref_scale = (DATA_SIZE) 1.0;
   plot[PWMHZ].float_center = 1;

   plot[TC2].plot_id = "TEMP2";
   plot[TC2].units = degc;
   plot[TC2].ref_scale = (DATA_SIZE) 1.0;
   plot[TC2].float_center = 1;

   plot[BLUEHZ].plot_id = "BLU";
   plot[BLUEHZ].ref_scale = (DATA_SIZE) 1.0;
   plot[BLUEHZ].float_center = 1;

   plot[GREENHZ].plot_id = "GRN";
   plot[GREENHZ].ref_scale = (DATA_SIZE) 1.0;
   plot[GREENHZ].float_center = 1;

   plot[REDHZ].plot_id = "RED";
   plot[REDHZ].ref_scale = (DATA_SIZE) 1.0;
   plot[REDHZ].float_center = 1;

   plot[WHITEHZ].plot_id = "WHT";
   plot[WHITEHZ].ref_scale = (DATA_SIZE) 1.0;
   plot[WHITEHZ].float_center = 1;

   plot[BLUEHZ].units = "Hz";     // default color values to pct
   plot[GREENHZ].units = "Hz";
   plot[REDHZ].units = "Hz";
   plot[WHITEHZ].units = "Hz";
   if(show_color_pct) {        // color values are in percent
      plot[BLUEHZ].units = "%";
      plot[GREENHZ].units = "%";
      plot[REDHZ].units = "%";
      plot[WHITEHZ].units = "%";
   }
   else if(show_color_uw) {   // color values are in uW/cm^2
      plot[BLUEHZ].units = "uW";
      plot[GREENHZ].units = "uW";
      plot[REDHZ].units = "uW";
      plot[WHITEHZ].units = "uW";
   }

   plot[AUXV].plot_id = "AUXv";
   plot[AUXV].units = "V";
   plot[AUXV].ref_scale = (DATA_SIZE) 1.0;
   plot[AUXV].float_center = 1;

   plot[BATTW].plot_id = "BATw";
   plot[BATTW].units = "W";
   plot[BATTW].ref_scale = (DATA_SIZE) 1.0;
   plot[BATTW].float_center = 1;

   plot[LEDW].plot_id = "LEDw";
   plot[LEDW].units = "W";
   plot[LEDW].ref_scale = (DATA_SIZE) 1.0;
   plot[LEDW].float_center = 1;

   plot[EFF].plot_id = "Eff";
   plot[EFF].units = "%";
   plot[EFF].ref_scale = (DATA_SIZE) 1.0;
   plot[EFF].float_center = 1;

   set_cct_id();
   plot[CCT].units = degk;
   plot[CCT].ref_scale = (DATA_SIZE) 1.0;
   plot[CCT].float_center = 1;

   if(user_set_temp_filter == 0) undo_fw_temp_filter = 0;
   if(user_set_clock_plot == 0) { plot_digital_clock = 0; user_set_clock_plot = 1; }

   unit_file_name = "luxor";
   if((log_file == 0) && (user_set_log == 0)) {
      sprintf(log_name, "%s.log", unit_file_name);
   }
   config_set = 1;
}

// Assembly:
leaq 0x1ce907(%rip), %rax    # 0x218800
xorl %ecx, %ecx
cmpl $0x141, (%rax)          # imm = 0x141
setl %cl
xorl $0x37, %ecx
leaq 0x1ce88a(%rip), %rax    # 0x218798
movl %ecx, (%rax)
leaq 0x2c31b9(%rip), %rax    # 0x30d0d0
movb $0x7, %cl
movb %cl, (%rax)
leaq 0x2c31af(%rip), %rax    # 0x30d0d1
movb %cl, (%rax)
leaq 0x2c3811(%rip), %rcx    # 0x30d73c
xorl %eax, %eax
movl %eax, (%rcx)
leaq 0x2c356e(%rip), %rcx    # 0x30d4a4
movl $0x1, (%rcx)
leaq 0x1d14c5(%rip), %rcx    # 0x21b408
movb $0x1, (%rcx)
leaq 0x1d148c(%rip), %rcx    # 0x21b3d9
movb %al, (%rcx)
leaq 0x1ce86e(%rip), %rcx    # 0x2187c4
movl %eax, (%rcx)
leaq 0x1d147c(%rip), %rcx    # 0x21b3db
movb %al, (%rcx)
leaq 0x1f2d90(%rip), %rcx    # 0x23ccf8
movabsq $-0x4010000000000000, %rdx # imm = 0xBFF0000000000000
movq %rdx, (%rcx)
leaq 0x1f2d84(%rip), %rcx    # 0x23cd00
movq %rdx, (%rcx)
leaq 0x1f2d82(%rip), %rcx    # 0x23cd08
movq %rdx, (%rcx)
leaq 0x1f2d80(%rip), %rcx    # 0x23cd10
movq %rdx, (%rcx)
leaq 0x1f2d7e(%rip), %rcx    # 0x23cd18
movq %rdx, (%rcx)
leaq 0x2f145c(%rip), %rcx    # 0x33b400
movq %rdx, (%rcx)
leaq 0x2f145a(%rip), %rcx    # 0x33b408
movq %rdx, (%rcx)
leaq 0x2f1458(%rip), %rcx    # 0x33b410
movq %rdx, (%rcx)
leaq 0x2f1456(%rip), %rcx    # 0x33b418
movq %rdx, (%rcx)
leaq 0x2f1454(%rip), %rcx    # 0x33b420
movq %rdx, (%rcx)
leaq 0x2c31b2(%rip), %rcx    # 0x30d188
movabsq $0x4051400000000000, %rdx # imm = 0x4051400000000000
movq %rdx, (%rcx)
leaq 0x2c311e(%rip), %rcx    # 0x30d108
movq %rdx, (%rcx)
leaq 0x2c2c98(%rip), %rcx    # 0x30cc8c
cmpb %al, (%rcx)
jne 0x4a005
leaq 0x2c2c89(%rip), %rax    # 0x30cc88
movl $0x3, (%rax)
movl $0xd4, %ecx
leaq 0x113d1f(%rip), %rax    # 0x15dd30
movl $0x40, (%rax,%rcx)
addq $0xe8, %rcx
cmpq $0x12f4, %rcx           # imm = 0x12F4
jne 0x4a011
pushq %rbp
movq %rsp, %rbp
leaq 0xd3d4c(%rip), %rcx     # 0x11dd7f
movq %rcx, 0x2b8(%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x2c8(%rax)
leaq 0xd3eee(%rip), %rdx     # 0x11df40
movq %rdx, 0x1d0(%rax)
leaq 0xe5714(%rip), %rdx     # 0x12f774
movq %rdx, 0x1d8(%rax)
movq %rcx, 0x1e0(%rax)
leaq 0x2c3de9(%rip), %rsi    # 0x30de5e
cmpb $0x0, (%rsi)
jne 0x4a084
movl $0x1, 0x1ec(%rax)
leaq 0xd3eba(%rip), %rsi     # 0x11df45
movq %rsi, 0xe8(%rax)
leaq 0xd831c(%rip), %rsi     # 0x1223b5
movq %rsi, 0xf0(%rax)
movq %rcx, 0xf8(%rax)
leaq 0x2c3db2(%rip), %rdi    # 0x30de60
cmpb $0x0, (%rdi)
jne 0x4a0bd
movl $0x1, 0x100(%rax)
leaq 0x2c3d99(%rip), %rdi    # 0x30de5d
cmpb $0x0, (%rdi)
jne 0x4a0d3
movl $0x1, 0x104(%rax)
leaq 0xd3e70(%rip), %rdi     # 0x11df4a
movq %rdi, (%rax)
movq %rcx, 0x10(%rax)
movl $0x40, 0xd4(%rax)
leaq 0x2c3d6a(%rip), %rdi    # 0x30de5c
cmpb $0x0, (%rdi)
je 0x4a115
leaq 0x1ce7c3(%rip), %rdi    # 0x2188c1
cmpb $0x0, (%rdi)
leaq 0xd3e46(%rip), %r8      # 0x11df4e
leaq 0xdae30(%rip), %rdi     # 0x124f3f
cmoveq %r8, %rdi
jmp 0x4a142
movl $0x1, %r8d
movl %r8d, 0x1c(%rax)
leaq 0x1ce79b(%rip), %rdi    # 0x2188c1
cmpb $0x0, (%rdi)
leaq 0xd3e1e(%rip), %r9      # 0x11df4e
leaq 0xdae08(%rip), %rdi     # 0x124f3f
cmoveq %r9, %rdi
movl %r8d, 0x3bc(%rax)
movq %rdi, 0x8(%rax)
leaq 0xd3e05(%rip), %rdi     # 0x11df52
movq %rdi, 0x3a0(%rax)
movq %rcx, 0x3b0(%rax)
leaq 0x1ce760(%rip), %rdi    # 0x2188c2
cmpb $0x0, (%rdi)
leaq 0xd3ded(%rip), %rdi     # 0x11df59
leaq 0xd3de3(%rip), %r8      # 0x11df56
cmoveq %rdi, %r8
movl $0x40, 0x474(%rax)
movq %r8, 0x3a8(%rax)
leaq 0xd3dce(%rip), %rdi     # 0x11df5d
movq %rdi, 0x488(%rax)
movq %rdx, 0x490(%rax)
movq %rcx, 0x498(%rax)
movl $0x1, %edi
movl %edi, 0x4a4(%rax)
leaq 0xd3dac(%rip), %r8      # 0x11df62
movq %r8, 0x570(%rax)
movq %rsi, 0x578(%rax)
movq %rcx, 0x580(%rax)
movl %edi, 0x58c(%rax)
leaq 0xd3d8f(%rip), %rsi     # 0x11df67
movq %rsi, 0x658(%rax)
leaq 0xcc012(%rip), %rsi     # 0x1161f8
movq %rsi, 0x660(%rax)
movq %rcx, 0x668(%rax)
movl %edi, 0x674(%rax)
leaq 0xc555c(%rip), %r8      # 0x10f75d
movq %r8, 0x740(%rax)
leaq 0x113b19(%rip), %r8     # 0x15dd28
movq %r8, 0x748(%rax)
movq %rcx, 0x750(%rax)
movl %edi, 0x75c(%rax)
leaq 0xd3d41(%rip), %r8      # 0x11df6b
movq %r8, 0x828(%rax)
movq %rcx, 0x838(%rax)
movl %edi, 0x844(%rax)
leaq 0xdd97d(%rip), %r8      # 0x127bc2
movq %r8, 0x910(%rax)
movq %rcx, 0x920(%rax)
movl %edi, 0x92c(%rax)
leaq 0xdcda6(%rip), %r8      # 0x127006
movq %r8, 0x9f8(%rax)
movq %rcx, 0xa08(%rax)
movl %edi, 0xa14(%rax)
leaq 0xd3cf4(%rip), %r8      # 0x11df6f
movq %r8, 0xae0(%rax)
movq %rcx, 0xaf0(%rax)
movl %edi, 0xafc(%rax)
movq %rsi, 0x830(%rax)
movq %rsi, 0x918(%rax)
movq %rsi, 0xa00(%rax)
movq %rsi, 0xae8(%rax)
leaq 0x2c2cba(%rip), %rsi    # 0x30cf6c
cmpb $0x0, (%rsi)
je 0x4a2c0
leaq 0xd8785(%rip), %rsi     # 0x122a43
jmp 0x4a2d3
leaq 0x2c2ca4(%rip), %rsi    # 0x30cf6b
cmpb $0x0, (%rsi)
je 0x4a2ef
leaq 0xd3ca0(%rip), %rsi     # 0x11df73
movq %rsi, 0x830(%rax)
movq %rsi, 0x918(%rax)
movq %rsi, 0xa00(%rax)
movq %rsi, 0xae8(%rax)
leaq 0xc54a0(%rip), %rsi     # 0x10f796
movq %rsi, 0xbc8(%rax)
movq %rdx, 0xbd0(%rax)
movq %rcx, 0xbd8(%rax)
movl $0x1, %edx
movl %edx, 0xbe4(%rax)
leaq 0xd3c59(%rip), %rsi     # 0x11df76
movq %rsi, 0xd98(%rax)
leaq 0xd86e1(%rip), %rsi     # 0x122a0c
movq %rsi, 0xda0(%rax)
movq %rcx, 0xda8(%rax)
movl %edx, 0xdb4(%rax)
leaq 0xd3c35(%rip), %rdi     # 0x11df7b
movq %rdi, 0xe80(%rax)
movq %rsi, 0xe88(%rax)
movq %rcx, 0xe90(%rax)
movl %edx, 0xe9c(%rax)
leaq 0xd3c18(%rip), %rsi     # 0x11df80
movq %rsi, 0xf68(%rax)
leaq 0xd86cd(%rip), %rsi     # 0x122a43
movq %rsi, 0xf70(%rax)
movq %rcx, 0xf78(%rax)
movl %edx, 0xf84(%rax)
leaq 0x2c2bd7(%rip), %rsi    # 0x30cf68
movb (%rsi), %sil
cmpb $0x2, %sil
leaq 0xd3b9c(%rip), %rdi     # 0x11df3b
leaq 0xc5380(%rip), %r8      # 0x10f726
cmoveq %rdi, %r8
cmpb $0x1, %sil
leaq 0xd3b81(%rip), %rsi     # 0x11df36
cmovneq %r8, %rsi
movq %rsi, 0x1050(%rax)
leaq 0x113964(%rip), %rsi    # 0x15dd2b
movq %rsi, 0x1058(%rax)
movq %rcx, 0x1060(%rax)
movl %edx, 0x106c(%rax)
leaq 0x1d0f2b(%rip), %rax    # 0x21b30d
cmpb $0x0, (%rax)
jne 0x4a3f1
leaq 0x1d0f1e(%rip), %rax    # 0x21b30c
movb $0x0, (%rax)
leaq 0x2c3a6d(%rip), %rax    # 0x30de65
cmpb $0x0, (%rax)
jne 0x4a40a
leaq 0x1d0fe1(%rip), %rcx    # 0x21b3e5
movb $0x0, (%rcx)
movb $0x1, (%rax)
leaq 0xbf9ef(%rip), %rax     # 0x109e00
leaq 0x126870(%rip), %rcx    # 0x170c88
movq %rax, (%rcx)
leaq 0x1f3f3e(%rip), %rax    # 0x23e360
cmpq $0x0, (%rax)
jne 0x4a450
leaq 0x1f3fcd(%rip), %rax    # 0x23e3fc
cmpb $0x0, (%rax)
jne 0x4a450
leaq 0x1f2a25(%rip), %rdi    # 0x23ce60
leaq 0xd3b42(%rip), %rsi     # 0x11df84
leaq 0xbf9b7(%rip), %rdx     # 0x109e00
xorl %eax, %eax
callq 0x9060
leaq 0x1f4ae8(%rip), %rax    # 0x23ef3f
movb $0x1, (%rax)
popq %rbp
retq