// File: jkingan[P]ladyheather/heathgps.cpp
// Function: show_dac_info()
void show_dac_info()
{
   // show the current DAC related value in the screen receiver data block
   if(rcvr_type == NO_RCVR) return;
   if(rcvr_type == THERMO_RCVR) return;
   if((rcvr_type == TIDE_RCVR) && enviro_mode()) return;

   sprintf(out, "                    ");
// if((rcvr_type == NMEA_RCVR) || (rcvr_type == GPSD_RCVR) || (rcvr_type == STAR_RCVR) || (rcvr_type == TAIP_RCVR)) {
   if((have_dac == 0) && (have_sawtooth == 0) && (have_lars_dac == 0)) {
   }
   else if((have_dac == 0) && (have_sawtooth == 0) && have_lars_dac) {
      sprintf(out, "DACL: %-11.4f %s   ", lars_dac, " ");
   }
   else if(rcvr_type == CS_RCVR) {
      sprintf(out, "DAC:%11.5f %s   ", dac_voltage, plot[DAC].units);
   }
   else if(rcvr_type == TICC_RCVR) {
      if(ticc_type == LARS_TICC) {
         sprintf(out, "DAC:%11.5f %s   ", dac_voltage, plot[DAC].units);
      }
      else {
         sprintf(out, "FdgA:%11.6f %s   ", dac_voltage, "ps");
      }
   }
   else if(lte_lite) {
      sprintf(out, "DAC:%11.6f %s   ", dac_voltage, plot[DAC].units);
   }
   else if(TIMING_RCVR) {
      if(have_sawtooth) {
         if((dac_voltage >= 1000.0) || (dac_voltage <= -100.0)) {
            sprintf(out, "Sawt:%10.5f ns  ", dac_voltage);  // pps_quant);
         }
         else {
            sprintf(out, "Sawt:%10.6f ns  ", dac_voltage);  // pps_quant);
         }
      }
      else sprintf(out, "                    ");
   }
   else if(rcvr_type == TSIP_RCVR) {
      if(SV6_FAMILY) sprintf(out, "                    ");
      else    sprintf(out, "DAC:%11.6f %s   ", dac_voltage, "V");
   }
   else {
      sprintf(out, "DAC:%11.6f %s   ", dac_voltage, plot[DAC].units);
   }

   if     (critical_alarms & CRIT_OCXO)  vidstr(VAL_ROW+2, VAL_COL, RED,    out);
   else if(minor_alarms & MINOR_OSC_AGE) vidstr(VAL_ROW+2, VAL_COL, YELLOW, out);
   else if(osc_control_on)               vidstr(VAL_ROW+2, VAL_COL, OSC_PID_COLOR, out);
   else                                  vidstr(VAL_ROW+2, VAL_COL, WHITE,  out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x173ab5(%rip), %rax    # 0x277ab0
cmpq $0x400, (%rax)          # imm = 0x400
jne 0x104009
jmp 0x10447c
leaq 0x173aa0(%rip), %rax    # 0x277ab0
cmpq $0x80000, (%rax)        # imm = 0x80000
jne 0x10401e
jmp 0x10447c
leaq 0x173a8b(%rip), %rax    # 0x277ab0
cmpq $0x800000, (%rax)       # imm = 0x800000
jne 0x10403d
callq 0x83ad0
cmpl $0x0, %eax
je 0x10403d
jmp 0x10447c
leaq 0x2973bc(%rip), %rdi    # 0x39b400
leaq 0x9266e(%rip), %rsi     # 0x1966b9
movb $0x0, %al
callq 0x9060
leaq 0x268483(%rip), %rax    # 0x36c4dc
cmpl $0x0, (%rax)
jne 0x10407b
leaq 0x26853f(%rip), %rax    # 0x36c5a4
cmpl $0x0, (%rax)
jne 0x10407b
leaq 0x267bc3(%rip), %rax    # 0x36bc34
cmpl $0x0, (%rax)
jne 0x10407b
jmp 0x1043db
leaq 0x26845a(%rip), %rax    # 0x36c4dc
cmpl $0x0, (%rax)
jne 0x1040cb
leaq 0x268516(%rip), %rax    # 0x36c5a4
cmpl $0x0, (%rax)
jne 0x1040cb
leaq 0x267b9a(%rip), %rax    # 0x36bc34
cmpl $0x0, (%rax)
je 0x1040cb
leaq 0x267b7a(%rip), %rax    # 0x36bc20
movsd (%rax), %xmm0
leaq 0x29734f(%rip), %rdi    # 0x39b400
leaq 0x892f3(%rip), %rsi     # 0x18d3ab
leaq 0x81d25(%rip), %rdx     # 0x185de4
movb $0x1, %al
callq 0x9060
jmp 0x1043d9
leaq 0x1739de(%rip), %rax    # 0x277ab0
cmpq $0x20000, (%rax)        # imm = 0x20000
jne 0x10410e
leaq 0x267afe(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
leaq 0xb8c33(%rip), %rax     # 0x1bcd20
movq 0x1d8(%rax), %rdx
leaq 0x297305(%rip), %rdi    # 0x39b400
leaq 0x892bd(%rip), %rsi     # 0x18d3bf
movb $0x1, %al
callq 0x9060
jmp 0x1043d7
leaq 0x17399b(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x104186
leaq 0x1739c3(%rip), %rax    # 0x277ae8
cmpl $0x4c, (%rax)
jne 0x10415a
leaq 0x267aaf(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
leaq 0xb8be4(%rip), %rax     # 0x1bcd20
movq 0x1d8(%rax), %rdx
leaq 0x2972b6(%rip), %rdi    # 0x39b400
leaq 0x8926e(%rip), %rsi     # 0x18d3bf
movb $0x1, %al
callq 0x9060
jmp 0x104181
leaq 0x267a7f(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
leaq 0x297294(%rip), %rdi    # 0x39b400
leaq 0x8925d(%rip), %rsi     # 0x18d3d0
leaq 0x946ce(%rip), %rdx     # 0x198848
movb $0x1, %al
callq 0x9060
jmp 0x1043d5
leaq 0x176023(%rip), %rax    # 0x27a1b0
cmpl $0x0, (%rax)
je 0x1041c5
leaq 0x267a47(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
leaq 0xb8b7c(%rip), %rax     # 0x1bcd20
movq 0x1d8(%rax), %rdx
leaq 0x29724e(%rip), %rdi    # 0x39b400
leaq 0x89229(%rip), %rsi     # 0x18d3e2
movb $0x1, %al
callq 0x9060
jmp 0x1043d3
leaq 0x173918(%rip), %rax    # 0x277ae4
cmpb $0x0, (%rax)
jne 0x10427f
leaq 0x1738d4(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x1041fe
leaq 0x175fcb(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x1041fe
leaq 0x1738e3(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
je 0x10427f
leaq 0x1738ab(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x10422f
leaq 0x175fa2(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x10422f
leaq 0x1738ba(%rip), %rax    # 0x277ad8
cmpl $0x33, (%rax)
je 0x10427f
leaq 0x1738ae(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
je 0x10427f
leaq 0x17387a(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x104248
leaq 0x175f71(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
je 0x10427f
leaq 0x173861(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x104261
leaq 0x175f58(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
je 0x10427f
leaq 0x173848(%rip), %rcx    # 0x277ab0
movabsq $0x800009e4, %rax       # imm = 0x800009E4
andq (%rcx), %rax
cmpq $0x0, %rax
je 0x104317
leaq 0x26831e(%rip), %rax    # 0x36c5a4
cmpl $0x0, (%rax)
je 0x1042fd
leaq 0x26794e(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
movsd 0x6ad92(%rip), %xmm1    # 0x16f030
ucomisd %xmm1, %xmm0
jae 0x1042b9
movsd 0x6ae5c(%rip), %xmm0    # 0x16f108
leaq 0x26792d(%rip), %rax    # 0x36bbe0
ucomisd (%rax), %xmm0
jb 0x1042db
leaq 0x267920(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
leaq 0x297135(%rip), %rdi    # 0x39b400
leaq 0x89121(%rip), %rsi     # 0x18d3f3
movb $0x1, %al
callq 0x9060
jmp 0x1042fb
leaq 0x2678fe(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
leaq 0x297113(%rip), %rdi    # 0x39b400
leaq 0x89110(%rip), %rsi     # 0x18d404
movb $0x1, %al
callq 0x9060
jmp 0x104312
leaq 0x2970fc(%rip), %rdi    # 0x39b400
leaq 0x923ae(%rip), %rsi     # 0x1966b9
movb $0x0, %al
callq 0x9060
jmp 0x1043d1
leaq 0x173792(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x1043a1
leaq 0x173785(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x104378
leaq 0x175e7c(%rip), %rax    # 0x27a1b4
cmpl $0x36, (%rax)
je 0x104361
leaq 0x175e70(%rip), %rax    # 0x27a1b4
cmpl $0x33, (%rax)
je 0x104361
leaq 0x175e64(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
je 0x104361
leaq 0x175e58(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x104378
leaq 0x297098(%rip), %rdi    # 0x39b400
leaq 0x9234a(%rip), %rsi     # 0x1966b9
movb $0x0, %al
callq 0x9060
jmp 0x10439f
leaq 0x267861(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
leaq 0x297076(%rip), %rdi    # 0x39b400
leaq 0x89051(%rip), %rsi     # 0x18d3e2
leaq 0x8ded8(%rip), %rdx     # 0x192270
movb $0x1, %al
callq 0x9060
jmp 0x1043cf
leaq 0x267838(%rip), %rax    # 0x36bbe0
movsd (%rax), %xmm0
leaq 0xb896d(%rip), %rax     # 0x1bcd20
movq 0x1d8(%rax), %rdx
leaq 0x29703f(%rip), %rdi    # 0x39b400
leaq 0x8901a(%rip), %rsi     # 0x18d3e2
movb $0x1, %al
callq 0x9060
jmp 0x1043d1
jmp 0x1043d3
jmp 0x1043d5
jmp 0x1043d7
jmp 0x1043d9
jmp 0x1043db
leaq 0x267fce(%rip), %rax    # 0x36c3b0
movl (%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x104409
movl $0x2, %edi
movl $0xf, %esi
movl $0xc, %edx
leaq 0x296ffe(%rip), %rcx    # 0x39b400
callq 0x10ee0
jmp 0x10447c
leaq 0x267fa8(%rip), %rax    # 0x36c3b8
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x104437
movl $0x2, %edi
movl $0xf, %esi
movl $0xe, %edx
leaq 0x296fd0(%rip), %rcx    # 0x39b400
callq 0x10ee0
jmp 0x10447a
leaq 0x29a47a(%rip), %rax    # 0x39e8b8
cmpb $0x0, (%rax)
je 0x104460
movl $0x2, %edi
movl $0xf, %esi
movl $0xb, %edx
leaq 0x296fa7(%rip), %rcx    # 0x39b400
callq 0x10ee0
jmp 0x104478
movl $0x2, %edi
movl $0xf, %edx
leaq 0x296f8f(%rip), %rcx    # 0x39b400
movl %edx, %esi
callq 0x10ee0
jmp 0x10447a
jmp 0x10447c
popq %rbp
retq
nop