// File: /workspace/github_cpp_makefile_star2_O2/jkingan[P]ladyheather/heathui.cpp
// Function: write_luxor_config()
void write_luxor_config()
{
FILE *file;

   if(!strchr(edit_buffer, '.')) strcat(edit_buffer, ".scr");

   file = topen(edit_buffer, "w");
   if(file == 0) {
      sprintf(out, "ERROR: could not write file: %s", edit_buffer);
      edit_error(out);
      return;
   }

   fprintf(file, "PL %f  ;BATT low voltage\n", batt_lvc);
   fprintf(file, "PH %f  ;BATT high voltage\n", batt_hvc);
   fprintf(file, "PC %f  ;BATT overcurrent\n", batt_ovc);
   fprintf(file, "PW %f  ;BATT over-wattage\n", batt_watts);
   fprintf(file, "PU %f  ;LED low voltage\n", load_lvc);
   fprintf(file, "PV %f  ;LED high voltage\n", load_hvc);
   fprintf(file, "PO %f  ;LED overcurrent\n", load_ovc);
   fprintf(file, "PP %f  ;LED over-wattage\n", load_watts);
   fprintf(file, "PZ %f  ;AUX low voltage\n", auxv_lvc);
   fprintf(file, "PX %f  ;AUX high voltage\n", auxv_hvc);
   fprintf(file, "PT %f  ;TEMP1 overtemp\n", tc1_ovt);
   fprintf(file, "PS %f  ;TEMP2 overtemp\n", tc2_ovt);
   fprintf(file, "PM %f  ;Msg timeout\n", msg_timeout);
   fprintf(file, "&E %f  ;IR1 temp sensor emissivity\n", emis1);
   fprintf(file, "&I %f  ;IR2 temp sensor emissivity\n", emis2);
   fprintf(file, "BP %-2d   ;BATT pwm resolution\n", batt_pwm_res);
   fprintf(file, "BR %-2d   ;BATT pwm sweep rate\n", sweep_rate);
   fprintf(file, "&L %-3d  ;LUX sensor sensitivity\n", lux1_time);
   fprintf(file, "&U %-3d  ;LUMEN sensor sensitivity\n", lux2_time);
   fclose(file);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x2f7696(%rip), %rbx    # 0x3292e0
pushq $0x2e
popq %rsi
movq %rbx, %rdi
callq 0x9100
testq %rax, %rax
jne 0x31c6e
movq %rbx, %rdi
callq 0x9120
movl $0x7263732e, (%rbx,%rax) # imm = 0x7263732E
movb $0x0, 0x4(%rbx,%rax)
leaq 0x2f766b(%rip), %rdi    # 0x3292e0
leaq 0xd9687(%rip), %rsi     # 0x10b303
callq 0x9a22
testq %rax, %rax
je 0x31eaa
movq %rax, %rbx
leaq 0x1d348c(%rip), %rax    # 0x205120
movsd (%rax), %xmm0
leaq 0xcdbcb(%rip), %rsi     # 0xff86a
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d3468(%rip), %rax    # 0x205118
movsd (%rax), %xmm0
leaq 0xcdbc9(%rip), %rsi     # 0xff884
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d3444(%rip), %rax    # 0x205110
movsd (%rax), %xmm0
leaq 0xcdbc8(%rip), %rsi     # 0xff89f
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d3440(%rip), %rax    # 0x205128
movsd (%rax), %xmm0
leaq 0xcdbc6(%rip), %rsi     # 0xff8b9
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d33fc(%rip), %rax    # 0x205100
movsd (%rax), %xmm0
leaq 0xcdbc5(%rip), %rsi     # 0xff8d4
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d33d8(%rip), %rax    # 0x2050f8
movsd (%rax), %xmm0
leaq 0xcdbc2(%rip), %rsi     # 0xff8ed
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d33b4(%rip), %rax    # 0x2050f0
movsd (%rax), %xmm0
leaq 0xcdbc0(%rip), %rsi     # 0xff907
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d33b0(%rip), %rax    # 0x205108
movsd (%rax), %xmm0
leaq 0xcdbbd(%rip), %rsi     # 0xff920
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d33c4(%rip), %rax    # 0x205138
movsd (%rax), %xmm0
leaq 0xcdbbb(%rip), %rsi     # 0xff93a
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d33a0(%rip), %rax    # 0x205130
movsd (%rax), %xmm0
leaq 0xcdbb8(%rip), %rsi     # 0xff953
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d3394(%rip), %rax    # 0x205140
movsd (%rax), %xmm0
leaq 0xcdbb6(%rip), %rsi     # 0xff96d
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d3380(%rip), %rax    # 0x205148
movsd (%rax), %xmm0
leaq 0xcdbb2(%rip), %rsi     # 0xff985
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x1d336c(%rip), %rax    # 0x205150
movsd (%rax), %xmm0
leaq 0xcdbae(%rip), %rsi     # 0xff99d
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x2c4fe0(%rip), %rax    # 0x2f6de0
movsd (%rax), %xmm0
leaq 0xcdba7(%rip), %rsi     # 0xff9b2
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x2c4fcc(%rip), %rax    # 0x2f6de8
movsd (%rax), %xmm0
leaq 0xcdbaf(%rip), %rsi     # 0xff9d6
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
leaq 0x2c4fdc(%rip), %rax    # 0x2f6e14
movzbl (%rax), %edx
leaq 0xcdbb8(%rip), %rsi     # 0xff9fa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9560
leaq 0x2c507d(%rip), %rax    # 0x2f6ed0
movl (%rax), %edx
leaq 0xcdbbe(%rip), %rsi     # 0xffa1a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9560
leaq 0x2c4fa3(%rip), %rax    # 0x2f6e10
movzbl (%rax), %edx
leaq 0xcdbc3(%rip), %rsi     # 0xffa3a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9560
leaq 0x2c4f89(%rip), %rax    # 0x2f6e11
movzbl (%rax), %edx
leaq 0xcdbca(%rip), %rsi     # 0xffa5c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9560
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x9360
leaq 0x2f436f(%rip), %rbx    # 0x326220
leaq 0xcd496(%rip), %rsi     # 0xff34e
leaq 0x2f7421(%rip), %rdx    # 0x3292e0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x214df