// File: /workspace/github_cpp_makefile_star2_O1/jkingan[P]ladyheather/heathui.cpp
// Function: config_enviro_plots(int)
void config_enviro_plots(int enable)
{
if(rcvr_type == TIDE_RCVR) return;

    plot[TEMP1].plot_id = "TEMP1";     // [TC1] -> [FIVE]
    plot[TEMP1].units = degc;
    plot[TEMP1].float_center = 1;

    plot[TEMP2].plot_id = "TEMP2";     // [TC2] -> [FIVE]
    plot[TEMP2].units = degc;
    plot[TEMP2].float_center = 1;

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

    plot[PRESSURE].plot_id = "Pres";
    plot[PRESSURE].units = "mbar";
    plot[PRESSURE].ref_scale = (DATA_SIZE) 1.0;
    plot[PRESSURE].float_center = 1;

   if(enable && (rcvr_type == THERMO_RCVR)) {
      plot[HUMIDITY].show_plot = 1;
      plot[PRESSURE].show_plot = 1;
      plot[TEMP1].show_plot = 1;
      plot[TEMP2].show_plot = 1;
      plot[ADC3].show_plot = 1;
      plot[ADC4].show_plot = 1;

      plot[TEMP].show_plot = 0;
   }

   if((rcvr_type == THERMO_RCVR) || ((rcvr_type == TIDE_RCVR) && enviro_mode())) {
      plot[ADC3].plot_id = "ADC3";
      plot[ADC3].units = "V";
      plot[ADC3].ref_scale = (DATA_SIZE) 1.0;
      plot[ADC3].float_center = 1;

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

      plot[HUMIDITY].plot_color = MAGENTA;
      plot[PRESSURE].plot_color = WHITE;
      plot[TEMP1].plot_color = YELLOW;
      plot[TEMP2].plot_color = RED;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x1df59c(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x800000, %rax         # imm = 0x800000
je 0x394ab
leaq 0xe49a1(%rip), %rcx     # 0x11dceb
leaq 0x1249df(%rip), %rbx    # 0x15dd30
movq %rcx, 0xf68(%rbx)
leaq 0x1249c9(%rip), %rdx    # 0x15dd28
movq %rdx, 0xf70(%rbx)
movl $0x1, %ecx
movl %ecx, 0xf84(%rbx)
leaq 0xd6351(%rip), %rsi     # 0x10f6c9
movq %rsi, 0x1050(%rbx)
movq %rdx, 0x1058(%rbx)
movl %ecx, 0x106c(%rbx)
leaq 0xe495e(%rip), %rdx     # 0x11dcf1
movq %rdx, 0xd98(%rbx)
leaq 0xe95c2(%rip), %rdx     # 0x122963
movq %rdx, 0xda0(%rbx)
movabsq $0x3ff0000000000000, %r14 # imm = 0x3FF0000000000000
movq %r14, 0xda8(%rbx)
movl %ecx, 0xdb4(%rbx)
leaq 0xe492e(%rip), %rdx     # 0x11dcf4
movq %rdx, 0xe80(%rbx)
leaq 0xe4925(%rip), %rdx     # 0x11dcf9
movq %rdx, 0xe88(%rbx)
movq %r14, 0xe90(%rbx)
movl %ecx, 0xe9c(%rbx)
testl %edi, %edi
sete %dl
cmpq $0x80000, %rax          # imm = 0x80000
setne %sil
orb %dl, %sil
jne 0x39427
movl %ecx, 0xdb0(%rbx)
movl %ecx, 0xe98(%rbx)
movl %ecx, 0xf80(%rbx)
movl %ecx, 0x1068(%rbx)
movl %ecx, 0x18(%rbx)
movl %ecx, 0x100(%rbx)
movl $0x0, 0x2d0(%rbx)
cmpq $0x80000, %rax          # imm = 0x80000
je 0x39440
cmpq $0x800000, %rax         # imm = 0x800000
jne 0x394ab
callq 0x5f743
testl %eax, %eax
je 0x394ab
leaq 0xe488d(%rip), %rax     # 0x11dcd4
movq %rax, (%rbx)
leaq 0xf6233(%rip), %rax     # 0x12f684
movq %rax, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movl $0x1, %ecx
movl %ecx, 0x1c(%rbx)
leaq 0xe4871(%rip), %rdx     # 0x11dcd9
movq %rdx, 0xe8(%rbx)
movq %rax, 0xf0(%rbx)
movq %r14, 0xf8(%rbx)
movl %ecx, 0x104(%rbx)
movl $0xd, 0xdb8(%rbx)
movl $0xf, 0xea0(%rbx)
movl $0xe, 0xf88(%rbx)
movl $0xc, 0x1070(%rbx)
popq %rbx
popq %r14
popq %rbp
retq