// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x1bc8ce(%rip), %rax    # 0x202800
xorl %ecx, %ecx
cmpl $0x141, (%rax)          # imm = 0x141
setl %cl
xorl $0x37, %ecx
leaq 0x1bc851(%rip), %rax    # 0x202798
movl %ecx, (%rax)
leaq 0x2b1180(%rip), %rax    # 0x2f70d0
movb $0x7, %cl
movb %cl, (%rax)
leaq 0x2b1176(%rip), %rax    # 0x2f70d1
movb %cl, (%rax)
leaq 0x2b17d8(%rip), %rax    # 0x2f773c
andl $0x0, (%rax)
leaq 0x2b1536(%rip), %rax    # 0x2f74a4
movl $0x1, (%rax)
leaq 0x1bf48d(%rip), %rax    # 0x205408
movb $0x1, (%rax)
leaq 0x1bf454(%rip), %rax    # 0x2053d9
xorl %ebx, %ebx
movb %bl, (%rax)
leaq 0x1bc834(%rip), %rax    # 0x2027c4
andl $0x0, (%rax)
leaq 0x1bf441(%rip), %rax    # 0x2053db
movb %bl, (%rax)
leaq 0x1e0d55(%rip), %rax    # 0x226cf8
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
movq %rcx, (%rax)
leaq 0x1e0d49(%rip), %rax    # 0x226d00
movq %rcx, (%rax)
leaq 0x1e0d47(%rip), %rax    # 0x226d08
movq %rcx, (%rax)
leaq 0x1e0d45(%rip), %rax    # 0x226d10
movq %rcx, (%rax)
leaq 0x1e0d43(%rip), %rax    # 0x226d18
movq %rcx, (%rax)
callq 0x4645e
leaq 0x2b11a4(%rip), %rax    # 0x2f7188
movabsq $0x4051400000000000, %rcx # imm = 0x4051400000000000
movq %rcx, (%rax)
leaq 0x2b1110(%rip), %rax    # 0x2f7108
movq %rcx, (%rax)
leaq 0x2b0c8a(%rip), %rax    # 0x2f6c8c
cmpb %bl, (%rax)
jne 0x46013
leaq 0x2b0c7b(%rip), %rax    # 0x2f6c88
movl $0x3, (%rax)
movl $0xd4, %ecx
leaq 0x101d11(%rip), %rax    # 0x147d30
cmpq $0x12f4, %rcx           # imm = 0x12F4
je 0x46038
movl $0x40, (%rax,%rcx)
addq $0xe8, %rcx
jmp 0x4601f
leaq 0xc1dc0(%rip), %rcx     # 0x107dff
movq %rcx, 0x2b8(%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x2c8(%rax)
leaq 0xc1f5d(%rip), %rdx     # 0x107fbb
movq %rdx, 0x1d0(%rax)
leaq 0xd3628(%rip), %rdx     # 0x119694
movq %rdx, 0x1d8(%rax)
movq %rcx, 0x1e0(%rax)
leaq 0x2b1ddd(%rip), %rsi    # 0x2f7e5e
cmpb $0x0, (%rsi)
jne 0x46090
movl $0x1, 0x1ec(%rax)
leaq 0xc1f29(%rip), %rsi     # 0x107fc0
movq %rsi, 0xe8(%rax)
leaq 0xc6258(%rip), %rdi     # 0x10c2fd
movq %rdi, 0xf0(%rax)
movq %rcx, 0xf8(%rax)
leaq 0x2b1da6(%rip), %rsi    # 0x2f7e60
cmpb $0x0, (%rsi)
jne 0x460c9
movl $0x1, 0x100(%rax)
leaq 0x2b1d8d(%rip), %rsi    # 0x2f7e5d
cmpb $0x0, (%rsi)
jne 0x460df
movl $0x1, 0x104(%rax)
leaq 0xc1edf(%rip), %rsi     # 0x107fc5
movq %rsi, (%rax)
movq %rcx, 0x10(%rax)
movl $0x40, 0xd4(%rax)
leaq 0x2b1d5e(%rip), %rsi    # 0x2f7e5c
cmpb $0x0, (%rsi)
pushq $0x1
popq %rsi
je 0x46125
leaq 0x1bc7b4(%rip), %r8     # 0x2028c1
cmpb $0x0, (%r8)
leaq 0xc1eb1(%rip), %r9      # 0x107fc9
leaq 0xc8d68(%rip), %r8      # 0x10ee87
cmoveq %r9, %r8
jmp 0x4614b
movl %esi, 0x1c(%rax)
leaq 0x1bc792(%rip), %r8     # 0x2028c1
cmpb $0x0, (%r8)
leaq 0xc1e8f(%rip), %r9      # 0x107fc9
leaq 0xc8d46(%rip), %r8      # 0x10ee87
cmoveq %r9, %r8
movl %esi, 0x3bc(%rax)
movq %r8, 0x8(%rax)
leaq 0xc1e77(%rip), %r8      # 0x107fcd
movq %r8, 0x3a0(%rax)
movq %rcx, 0x3b0(%rax)
movl $0x40, 0x474(%rax)
leaq 0x1bc74d(%rip), %r8     # 0x2028c2
cmpb $0x0, (%r8)
leaq 0xc1e54(%rip), %r8      # 0x107fd4
leaq 0xc1e4a(%rip), %r9      # 0x107fd1
cmoveq %r8, %r9
movq %r9, 0x3a8(%rax)
leaq 0xc1e3f(%rip), %r8      # 0x107fd8
movq %r8, 0x488(%rax)
movq %rdx, 0x490(%rax)
movq %rcx, 0x498(%rax)
movl %esi, 0x4a4(%rax)
leaq 0xc1e22(%rip), %r8      # 0x107fdd
movq %r8, 0x570(%rax)
movq %rdi, 0x578(%rax)
movq %rcx, 0x580(%rax)
movl %esi, 0x58c(%rax)
leaq 0xc1e05(%rip), %rdi     # 0x107fe2
movq %rdi, 0x658(%rax)
leaq 0xba08d(%rip), %rdi     # 0x100278
movq %rdi, 0x660(%rax)
movq %rcx, 0x668(%rax)
movl %esi, 0x674(%rax)
leaq 0xb35d7(%rip), %r8      # 0xf97dd
movq %r8, 0x740(%rax)
leaq 0x101b14(%rip), %r8     # 0x147d28
movq %r8, 0x748(%rax)
movq %rcx, 0x750(%rax)
movl %esi, 0x75c(%rax)
leaq 0xc1db7(%rip), %r8      # 0x107fe6
movq %r8, 0x828(%rax)
movq %rcx, 0x838(%rax)
movl %esi, 0x844(%rax)
leaq 0xcb8bd(%rip), %r8      # 0x111b07
movq %r8, 0x910(%rax)
movq %rcx, 0x920(%rax)
movl %esi, 0x92c(%rax)
leaq 0xcace6(%rip), %r8      # 0x110f4b
movq %r8, 0x9f8(%rax)
movq %rcx, 0xa08(%rax)
movl %esi, 0xa14(%rax)
leaq 0xc1d6a(%rip), %r8      # 0x107fea
movq %r8, 0xae0(%rax)
movq %rcx, 0xaf0(%rax)
movl %esi, 0xafc(%rax)
movq %rdi, 0x830(%rax)
movq %rdi, 0x918(%rax)
movq %rdi, 0xa00(%rax)
movq %rdi, 0xae8(%rax)
leaq 0x2b0cb5(%rip), %rdi    # 0x2f6f6c
cmpb $0x0, (%rdi)
je 0x462c5
leaq 0xc66c8(%rip), %rdi     # 0x10c98b
jmp 0x462d8
leaq 0x2b0c9f(%rip), %rdi    # 0x2f6f6b
cmpb $0x0, (%rdi)
je 0x462f4
leaq 0xc1d16(%rip), %rdi     # 0x107fee
movq %rdi, 0x830(%rax)
movq %rdi, 0x918(%rax)
movq %rdi, 0xa00(%rax)
movq %rdi, 0xae8(%rax)
leaq 0xb351b(%rip), %rdi     # 0xf9816
movq %rdi, 0xbc8(%rax)
movq %rdx, 0xbd0(%rax)
movq %rcx, 0xbd8(%rax)
movl %esi, 0xbe4(%rax)
leaq 0xc1cd4(%rip), %rdx     # 0x107ff1
movq %rdx, 0xd98(%rax)
leaq 0xc6629(%rip), %rdx     # 0x10c954
movq %rdx, 0xda0(%rax)
movq %rcx, 0xda8(%rax)
movl %esi, 0xdb4(%rax)
leaq 0xc1cb0(%rip), %rdi     # 0x107ff6
movq %rdi, 0xe80(%rax)
movq %rdx, 0xe88(%rax)
movq %rcx, 0xe90(%rax)
movl %esi, 0xe9c(%rax)
leaq 0xc1c93(%rip), %rdx     # 0x107ffb
movq %rdx, 0xf68(%rax)
leaq 0xc6615(%rip), %rdx     # 0x10c98b
movq %rdx, 0xf70(%rax)
movq %rcx, 0xf78(%rax)
movl %esi, 0xf84(%rax)
leaq 0x2b0bd7(%rip), %rdx    # 0x2f6f68
movb (%rdx), %dl
cmpb $0x2, %dl
leaq 0xc1c19(%rip), %rdi     # 0x107fb6
leaq 0xb3402(%rip), %r8      # 0xf97a6
cmoveq %rdi, %r8
cmpb $0x1, %dl
leaq 0xc1bff(%rip), %rdx     # 0x107fb1
cmovneq %r8, %rdx
movq %rdx, 0x1050(%rax)
leaq 0x101967(%rip), %rdx    # 0x147d2b
movq %rdx, 0x1058(%rax)
movq %rcx, 0x1060(%rax)
movl %esi, 0x106c(%rax)
leaq 0x1bef2e(%rip), %rax    # 0x20530d
cmpb $0x0, (%rax)
jne 0x463ee
leaq 0x1bef21(%rip), %rax    # 0x20530c
movb $0x0, (%rax)
leaq 0x2b1a70(%rip), %rax    # 0x2f7e65
cmpb $0x0, (%rax)
jne 0x46407
leaq 0x1befe4(%rip), %rcx    # 0x2053e5
movb $0x0, (%rcx)
movb $0x1, (%rax)
leaq 0xada42(%rip), %rax     # 0xf3e50
leaq 0x114873(%rip), %rcx    # 0x15ac88
movq %rax, (%rcx)
leaq 0x1e1f41(%rip), %rax    # 0x228360
cmpq $0x0, (%rax)
jne 0x4644d
leaq 0x1e1fd0(%rip), %rax    # 0x2283fc
cmpb $0x0, (%rax)
jne 0x4644d
leaq 0x1e0a28(%rip), %rdi    # 0x226e60
leaq 0xc1bc0(%rip), %rsi     # 0x107fff
leaq 0xada0a(%rip), %rdx     # 0xf3e50
xorl %eax, %eax
callq 0x9060
leaq 0x1e2aeb(%rip), %rax    # 0x228f3f
movb $0x1, (%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq