// File: /workspace/github_cpp_makefile_star2_O1/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 0x1ce915(%rip), %rax    # 0x218798
leaq 0x1ce976(%rip), %rcx    # 0x218800
xorl %edx, %edx
cmpl $0x141, (%rcx)          # imm = 0x141
setl %dl
xorl $0x37, %edx
movl %edx, (%rax)
leaq 0x2c322f(%rip), %rax    # 0x30d0d0
movb $0x7, %cl
movb %cl, (%rax)
leaq 0x2c3225(%rip), %rax    # 0x30d0d1
movb %cl, (%rax)
leaq 0x2c3887(%rip), %rcx    # 0x30d73c
xorl %eax, %eax
movl %eax, (%rcx)
leaq 0x2c35e4(%rip), %rcx    # 0x30d4a4
movl $0x1, (%rcx)
leaq 0x1d153b(%rip), %rcx    # 0x21b408
movb $0x1, (%rcx)
leaq 0x1d1502(%rip), %rcx    # 0x21b3d9
movb %al, (%rcx)
leaq 0x1ce8e4(%rip), %rcx    # 0x2187c4
movl %eax, (%rcx)
leaq 0x1d14f2(%rip), %rcx    # 0x21b3db
movb %al, (%rcx)
leaq 0x1f2e06(%rip), %rcx    # 0x23ccf8
movabsq $-0x4010000000000000, %rdx # imm = 0xBFF0000000000000
movq %rdx, (%rcx)
leaq 0x1f2dfa(%rip), %rcx    # 0x23cd00
movq %rdx, (%rcx)
leaq 0x1f2df8(%rip), %rcx    # 0x23cd08
movq %rdx, (%rcx)
leaq 0x1f2df6(%rip), %rcx    # 0x23cd10
movq %rdx, (%rcx)
leaq 0x1f2df4(%rip), %rcx    # 0x23cd18
movq %rdx, (%rcx)
leaq 0x2f14d2(%rip), %rcx    # 0x33b400
movq %rdx, (%rcx)
leaq 0x2f14d0(%rip), %rcx    # 0x33b408
movq %rdx, (%rcx)
leaq 0x2f14ce(%rip), %rcx    # 0x33b410
movq %rdx, (%rcx)
leaq 0x2f14cc(%rip), %rcx    # 0x33b418
movq %rdx, (%rcx)
leaq 0x2f14ca(%rip), %rcx    # 0x33b420
movq %rdx, (%rcx)
leaq 0x2c3228(%rip), %rcx    # 0x30d188
movabsq $0x4051400000000000, %rdx # imm = 0x4051400000000000
movq %rdx, (%rcx)
leaq 0x2c3194(%rip), %rcx    # 0x30d108
movq %rdx, (%rcx)
leaq 0x2c2d0e(%rip), %rcx    # 0x30cc8c
cmpb %al, (%rcx)
jne 0x49f8f
leaq 0x2c2cff(%rip), %rax    # 0x30cc88
movl $0x3, (%rax)
movl $0xd4, %ecx
leaq 0x113d95(%rip), %rax    # 0x15dd30
movl $0x40, (%rax,%rcx)
addq $0xe8, %rcx
cmpq $0x12f4, %rcx           # imm = 0x12F4
jne 0x49f9b
pushq %rbp
movq %rsp, %rbp
leaq 0xd3d2e(%rip), %rcx     # 0x11dceb
movq %rcx, 0x2b8(%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x2c8(%rax)
leaq 0xd3ed0(%rip), %rdx     # 0x11deac
movq %rdx, 0x1d0(%rax)
leaq 0xe569a(%rip), %rdx     # 0x12f684
movq %rdx, 0x1d8(%rax)
movq %rcx, 0x1e0(%rax)
leaq 0x2c3e5f(%rip), %rsi    # 0x30de5e
cmpb $0x0, (%rsi)
jne 0x4a00e
movl $0x1, 0x1ec(%rax)
leaq 0xd3e9c(%rip), %rsi     # 0x11deb1
movq %rsi, 0xe8(%rax)
leaq 0xd82b2(%rip), %rsi     # 0x1222d5
movq %rsi, 0xf0(%rax)
movq %rcx, 0xf8(%rax)
leaq 0x2c3e28(%rip), %rdi    # 0x30de60
cmpb $0x0, (%rdi)
jne 0x4a047
movl $0x1, 0x100(%rax)
leaq 0x2c3e0f(%rip), %rdi    # 0x30de5d
cmpb $0x0, (%rdi)
jne 0x4a05d
movl $0x1, 0x104(%rax)
leaq 0xd3e52(%rip), %rdi     # 0x11deb6
movq %rdi, (%rax)
movq %rcx, 0x10(%rax)
movl $0x40, 0xd4(%rax)
leaq 0x2c3de0(%rip), %rdi    # 0x30de5c
cmpb $0x0, (%rdi)
je 0x4a0c2
leaq 0x1ce839(%rip), %rdi    # 0x2188c1
cmpb $0x0, (%rdi)
leaq 0xd3e28(%rip), %rdi     # 0x11deba
leaq 0xdadc6(%rip), %r8      # 0x124e5f
cmoveq %rdi, %r8
movq %r8, 0x8(%rax)
leaq 0xd3e16(%rip), %rdi     # 0x11debe
movq %rdi, 0x3a0(%rax)
movq %rcx, 0x3b0(%rax)
movl $0x40, 0x474(%rax)
jmp 0x4a110
movl $0x1, %edi
movl %edi, 0x1c(%rax)
leaq 0x1ce7f0(%rip), %r8     # 0x2188c1
cmpb $0x0, (%r8)
leaq 0xd3dde(%rip), %r8      # 0x11deba
leaq 0xdad7c(%rip), %r9      # 0x124e5f
cmoveq %r8, %r9
movq %r9, 0x8(%rax)
leaq 0xd3dcc(%rip), %r8      # 0x11debe
movq %r8, 0x3a0(%rax)
movq %rcx, 0x3b0(%rax)
movl $0x40, 0x474(%rax)
movl %edi, 0x3bc(%rax)
leaq 0x1ce7ab(%rip), %rdi    # 0x2188c2
cmpb $0x0, (%rdi)
leaq 0xd3da4(%rip), %rdi     # 0x11dec5
leaq 0xd3d9a(%rip), %r8      # 0x11dec2
cmoveq %rdi, %r8
movq %r8, 0x3a8(%rax)
leaq 0xd3d8f(%rip), %rdi     # 0x11dec9
movq %rdi, 0x488(%rax)
movq %rdx, 0x490(%rax)
movq %rcx, 0x498(%rax)
movl $0x1, %edi
movl %edi, 0x4a4(%rax)
leaq 0xd3d6d(%rip), %r8      # 0x11dece
movq %r8, 0x570(%rax)
movq %rsi, 0x578(%rax)
movq %rcx, 0x580(%rax)
movl %edi, 0x58c(%rax)
leaq 0xd3d50(%rip), %rsi     # 0x11ded3
movq %rsi, 0x658(%rax)
leaq 0xcbfd3(%rip), %rsi     # 0x116164
movq %rsi, 0x660(%rax)
movq %rcx, 0x668(%rax)
movl %edi, 0x674(%rax)
leaq 0xc551d(%rip), %r8      # 0x10f6c9
movq %r8, 0x740(%rax)
leaq 0x113b6e(%rip), %r8     # 0x15dd28
movq %r8, 0x748(%rax)
movq %rcx, 0x750(%rax)
movl %edi, 0x75c(%rax)
leaq 0xd3d02(%rip), %r8      # 0x11ded7
movq %r8, 0x828(%rax)
movq %rcx, 0x838(%rax)
movl %edi, 0x844(%rax)
leaq 0xdd907(%rip), %r8      # 0x127af7
movq %r8, 0x910(%rax)
movq %rcx, 0x920(%rax)
movl %edi, 0x92c(%rax)
leaq 0xdcd1b(%rip), %r8      # 0x126f26
movq %r8, 0x9f8(%rax)
movq %rcx, 0xa08(%rax)
movl %edi, 0xa14(%rax)
leaq 0xd3cb5(%rip), %r8      # 0x11dedb
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 0x2c2d0f(%rip), %rsi    # 0x30cf6c
cmpb $0x0, (%rsi)
je 0x4a26b
leaq 0xd86fa(%rip), %rsi     # 0x122963
jmp 0x4a27e
leaq 0x2c2cf9(%rip), %rsi    # 0x30cf6b
cmpb $0x0, (%rsi)
je 0x4a29a
leaq 0xd3c61(%rip), %rsi     # 0x11dedf
movq %rsi, 0x830(%rax)
movq %rsi, 0x918(%rax)
movq %rsi, 0xa00(%rax)
movq %rsi, 0xae8(%rax)
leaq 0xc5461(%rip), %rsi     # 0x10f702
movq %rsi, 0xbc8(%rax)
movq %rdx, 0xbd0(%rax)
movq %rcx, 0xbd8(%rax)
movl $0x1, %edx
movl %edx, 0xbe4(%rax)
leaq 0xd3c1a(%rip), %rsi     # 0x11dee2
movq %rsi, 0xd98(%rax)
leaq 0xd8656(%rip), %rsi     # 0x12292c
movq %rsi, 0xda0(%rax)
movq %rcx, 0xda8(%rax)
movl %edx, 0xdb4(%rax)
leaq 0xd3bf6(%rip), %rdi     # 0x11dee7
movq %rdi, 0xe80(%rax)
movq %rsi, 0xe88(%rax)
movq %rcx, 0xe90(%rax)
movl %edx, 0xe9c(%rax)
leaq 0xd3bd9(%rip), %rsi     # 0x11deec
movq %rsi, 0xf68(%rax)
leaq 0xd8642(%rip), %rsi     # 0x122963
movq %rsi, 0xf70(%rax)
movq %rcx, 0xf78(%rax)
movl %edx, 0xf84(%rax)
leaq 0x2c2c2c(%rip), %rsi    # 0x30cf68
movb (%rsi), %sil
cmpb $0x2, %sil
leaq 0xd3b5d(%rip), %rdi     # 0x11dea7
leaq 0xc5341(%rip), %r8      # 0x10f692
cmoveq %rdi, %r8
cmpb $0x1, %sil
leaq 0xd3b42(%rip), %rsi     # 0x11dea2
cmovneq %r8, %rsi
movq %rsi, 0x1050(%rax)
leaq 0x1139b9(%rip), %rsi    # 0x15dd2b
movq %rsi, 0x1058(%rax)
movq %rcx, 0x1060(%rax)
movl %edx, 0x106c(%rax)
leaq 0x1d0f80(%rip), %rax    # 0x21b30d
cmpb $0x0, (%rax)
jne 0x4a39c
leaq 0x1d0f73(%rip), %rax    # 0x21b30c
movb $0x0, (%rax)
leaq 0x2c3ac2(%rip), %rax    # 0x30de65
cmpb $0x0, (%rax)
jne 0x4a3b5
leaq 0x1d1036(%rip), %rcx    # 0x21b3e5
movb $0x0, (%rcx)
movb $0x1, (%rax)
leaq 0xbfa34(%rip), %rax     # 0x109df0
leaq 0x1268c5(%rip), %rcx    # 0x170c88
movq %rax, (%rcx)
leaq 0x1f3f93(%rip), %rax    # 0x23e360
cmpq $0x0, (%rax)
jne 0x4a3fb
leaq 0x1f4022(%rip), %rax    # 0x23e3fc
cmpb $0x0, (%rax)
jne 0x4a3fb
leaq 0x1f2a7a(%rip), %rdi    # 0x23ce60
leaq 0xd3b03(%rip), %rsi     # 0x11def0
leaq 0xbf9fc(%rip), %rdx     # 0x109df0
xorl %eax, %eax
callq 0x9060
leaq 0x1f4b3d(%rip), %rax    # 0x23ef3f
movb $0x1, (%rax)
popq %rbp
retq