// File: /workspace/github_cpp_makefile_star2_O1/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:
leaq 0x15b1b0(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x400, %rax            # imm = 0x400
je 0xbd81f
cmpq $0x80000, %rax          # imm = 0x80000
je 0xbd81f
cmpq $0x800000, %rax         # imm = 0x800000
jne 0xbd798
leaq 0x250b96(%rip), %rsi    # 0x30e2e0
cmpl $0x0, 0x225d4(%rsi)
sete %cl
cmpl $0x0, 0x225d0(%rsi)
setle %dl
leaq 0x165ea7(%rip), %rdi    # 0x22360c
cmpl $0x0, (%rdi)
sete %dil
cmpl $0x0, 0x225cc(%rsi)
sete %sil
orb %dil, %sil
cmpb $0x1, %sil
jne 0xbd81f
cmpq $0x80000, %rax          # imm = 0x80000
je 0xbd81f
orb %dl, %cl
je 0xbd81f
pushq %rbp
movq %rsp, %rbp
movupd 0x762bd(%rip), %xmm0    # 0x133a61
leaq 0x27ea75(%rip), %rcx    # 0x33c220
movapd %xmm0, (%rcx)
movabsq $0x20202020202020, %rdx # imm = 0x20202020202020
movq %rdx, 0xd(%rcx)
leaq 0x24fb38(%rip), %rdi    # 0x30d2fc
leaq 0x24fbf9(%rip), %rsi    # 0x30d3c4
movl (%rsi), %esi
movl (%rdi), %r9d
orl %esi, %r9d
sete %dil
leaq 0x24f276(%rip), %r8     # 0x30ca54
movl (%r8), %r8d
orl %r8d, %r9d
je 0xbd8c7
testl %r8d, %r8d
setne %r8b
andb %r8b, %dil
cmpb $0x1, %dil
jne 0xbd820
leaq 0x24f23f(%rip), %rax    # 0x30ca40
movsd (%rax), %xmm0
leaq 0x27ea14(%rip), %rdi    # 0x33c220
leaq 0x6c6c2(%rip), %rsi     # 0x129ed5
leaq 0x6525a(%rip), %rdx     # 0x122a74
jmp 0xbd8c0
retq
cmpq $0x10000, %rax          # imm = 0x10000
je 0xbd83d
cmpq $0x20000, %rax          # imm = 0x20000
jne 0xbd872
leaq 0x24f1c9(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
jmp 0xbd854
leaq 0x15b0c4(%rip), %rax    # 0x218908
cmpl $0x4c, (%rax)
leaq 0x24f1b2(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
jne 0xbd8ab
leaq 0xa04d5(%rip), %rax     # 0x15dd30
movq 0x1d8(%rax), %rdx
leaq 0x27e9b7(%rip), %rdi    # 0x33c220
leaq 0x6c679(%rip), %rsi     # 0x129ee9
jmp 0xbd8c0
leaq 0x15d757(%rip), %rdi    # 0x21afd0
cmpl $0x0, (%rdi)
je 0xbd90f
leaq 0x24f177(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
leaq 0xa049c(%rip), %rax     # 0x15dd30
movq 0x1d8(%rax), %rdx
leaq 0x27e97e(%rip), %rdi    # 0x33c220
leaq 0x6c663(%rip), %rsi     # 0x129f0c
jmp 0xbd8c0
leaq 0x27e96e(%rip), %rdi    # 0x33c220
leaq 0x6c641(%rip), %rsi     # 0x129efa
leaq 0x78316(%rip), %rdx     # 0x135bd6
movb $0x1, %al
callq 0x9060
leaq 0x24f902(%rip), %rcx    # 0x30d1d0
movb $0xc, %al
testb $0x10, (%rcx)
jne 0xbd8f5
leaq 0x24f8fc(%rip), %rcx    # 0x30d1d8
movb $0xe, %al
testb $0x1, (%rcx)
jne 0xbd8f5
leaq 0x281dee(%rip), %rax    # 0x33f6d8
cmpb $0x0, (%rax)
sete %al
shlb $0x2, %al
orb $0xb, %al
movzbl %al, %edx
leaq 0x27e921(%rip), %rcx    # 0x33c220
movl $0x2, %edi
movl $0xf, %esi
popq %rbp
jmp 0xe7d0
leaq 0x15afee(%rip), %rdi    # 0x218904
cmpb $0x0, (%rdi)
jne 0xbd94d
cmpq $0x1, %rax
sete %r9b
leaq 0x15d6aa(%rip), %rdi    # 0x21afd4
movl (%rdi), %edi
cmpl $0x41, %edi
sete %r8b
andb %r9b, %r8b
leaq 0x15afbb(%rip), %r9     # 0x2188f8
movl (%r9), %r9d
cmpl $0x47, %r9d
sete %r10b
testb %r10b, %r8b
je 0xbd9a2
testl %esi, %esi
je 0xbd9f7
leaq 0x24f0a4(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
ucomisd 0x4b6d0(%rip), %xmm0    # 0x109038
jae 0xbd988
movsd 0x4b776(%rip), %xmm1    # 0x1090e8
ucomisd %xmm0, %xmm1
jae 0xbd988
leaq 0x27e8a1(%rip), %rdi    # 0x33c220
leaq 0x6c5a8(%rip), %rsi     # 0x129f2e
jmp 0xbd996
leaq 0x27e891(%rip), %rdi    # 0x33c220
leaq 0x6c587(%rip), %rsi     # 0x129f1d
movb $0x1, %al
callq 0x9060
jmp 0xbd8c7
testb %r8b, %r8b
je 0xbd9b8
cmpl $0x33, %r9d
je 0xbd94d
cmpl $0x47, %r9d
je 0xbd94d
testb %r8b, %r8b
jne 0xbd94d
cmpq $0x1, %rax
setne %r8b
cmpl $0x50, %edi
setne %r9b
testl $0x800009e4, %eax       # imm = 0x800009E4
jne 0xbd94d
orb %r9b, %r8b
je 0xbd94d
cmpq $0x1, %rax
jne 0xbd882
addl $-0x33, %edi
cmpl $0x1d, %edi
ja 0xbda04
movl $0x20004009, %eax       # imm = 0x20004009
btl %edi, %eax
jae 0xbda04
movapd %xmm0, (%rcx)
movq %rdx, 0xd(%rcx)
jmp 0xbd8c7
leaq 0x24eff5(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
leaq 0x27e80a(%rip), %rdi    # 0x33c220
leaq 0x6c4ef(%rip), %rsi     # 0x129f0c
leaq 0x71c60(%rip), %rdx     # 0x12f684
jmp 0xbd8c0