// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rbx
pushq %rax
leaq 0x15577d(%rip), %rax    # 0x2028d0
movq (%rax), %rbx
cmpq $0x400, %rbx            # imm = 0x400
je 0xad17a
cmpq $0x80000, %rbx          # imm = 0x80000
je 0xad17a
cmpq $0x800000, %rbx         # imm = 0x800000
jne 0xad181
callq 0x57eca
testl %eax, %eax
je 0xad181
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movupd 0x708e8(%rip), %xmm0    # 0x11da71
leaq 0x279090(%rip), %rax    # 0x326220
movapd %xmm0, (%rax)
movabsq $0x20202020202020, %rcx # imm = 0x20202020202020
movq %rcx, 0xd(%rax)
leaq 0x24a153(%rip), %rcx    # 0x2f72fc
leaq 0x24a214(%rip), %rax    # 0x2f73c4
movl (%rax), %eax
movl (%rcx), %esi
orl %eax, %esi
sete %cl
leaq 0x249894(%rip), %rdx    # 0x2f6a54
movl (%rdx), %edx
orl %edx, %esi
je 0xad2a4
testl %edx, %edx
setne %dl
andb %dl, %cl
cmpb $0x1, %cl
jne 0xad1fb
leaq 0x249863(%rip), %rax    # 0x2f6a40
movsd (%rax), %xmm0
leaq 0x279038(%rip), %rdi    # 0x326220
leaq 0x66cf6(%rip), %rsi     # 0x113ee5
leaq 0x5f8a6(%rip), %rdx     # 0x10ca9c
jmp 0xad29d
cmpq $0x10000, %rbx          # imm = 0x10000
je 0xad21a
cmpq $0x20000, %rbx          # imm = 0x20000
jne 0xad24f
leaq 0x2497ec(%rip), %rax    # 0x2f6a00
movsd (%rax), %xmm0
jmp 0xad231
leaq 0x1556e7(%rip), %rax    # 0x202908
cmpl $0x4c, (%rax)
leaq 0x2497d5(%rip), %rax    # 0x2f6a00
movsd (%rax), %xmm0
jne 0xad288
leaq 0x9aaf8(%rip), %rax     # 0x147d30
movq 0x1d8(%rax), %rdx
leaq 0x278fda(%rip), %rdi    # 0x326220
leaq 0x66cac(%rip), %rsi     # 0x113ef9
jmp 0xad29d
leaq 0x157d7a(%rip), %rcx    # 0x204fd0
cmpl $0x0, (%rcx)
je 0xad2ed
leaq 0x24979a(%rip), %rax    # 0x2f6a00
movsd (%rax), %xmm0
leaq 0x9aabf(%rip), %rax     # 0x147d30
movq 0x1d8(%rax), %rdx
leaq 0x278fa1(%rip), %rdi    # 0x326220
leaq 0x66c96(%rip), %rsi     # 0x113f1c
jmp 0xad29d
leaq 0x278f91(%rip), %rdi    # 0x326220
leaq 0x66c74(%rip), %rsi     # 0x113f0a
leaq 0x7293e(%rip), %rdx     # 0x11fbdb
movb $0x1, %al
callq 0x9060
leaq 0x249f25(%rip), %rcx    # 0x2f71d0
movb $0xc, %al
testb $0x10, (%rcx)
jne 0xad2d2
leaq 0x249f1f(%rip), %rcx    # 0x2f71d8
movb $0xe, %al
testb $0x1, (%rcx)
jne 0xad2d2
leaq 0x27c411(%rip), %rax    # 0x3296d8
cmpb $0x0, (%rax)
sete %al
shlb $0x2, %al
orb $0xb, %al
movzbl %al, %edx
leaq 0x278f44(%rip), %rcx    # 0x326220
pushq $0x2
popq %rdi
pushq $0xf
popq %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xe2d2
leaq 0x155610(%rip), %rcx    # 0x202904
cmpb $0x0, (%rcx)
jne 0xad315
cmpq $0x1, %rbx
sete %dl
leaq 0x157ccd(%rip), %rcx    # 0x204fd4
movl (%rcx), %ecx
cmpl $0x41, %ecx
sete %sil
testb %sil, %dl
je 0xad366
testl %eax, %eax
je 0xad2a4
leaq 0x2496e0(%rip), %rax    # 0x2f6a00
movsd (%rax), %xmm0
ucomisd 0x45d0c(%rip), %xmm0    # 0xf3038
jae 0xad34c
movsd 0x45db2(%rip), %xmm1    # 0xf30e8
ucomisd %xmm0, %xmm1
jae 0xad34c
leaq 0x278edd(%rip), %rdi    # 0x326220
leaq 0x66bf4(%rip), %rsi     # 0x113f3e
jmp 0xad35a
leaq 0x278ecd(%rip), %rdi    # 0x326220
leaq 0x66bd3(%rip), %rsi     # 0x113f2d
movb $0x1, %al
callq 0x9060
jmp 0xad2a4
cmpq $0x1, %rbx
setne %dl
cmpl $0x50, %ecx
setne %sil
testl $0x800009e4, %ebx       # imm = 0x800009E4
jne 0xad315
orb %sil, %dl
je 0xad315
cmpq $0x1, %rbx
jne 0xad25f
addl $-0x33, %ecx
cmpl $0x1d, %ecx
ja 0xad3a1
movl $0x20004009, %eax       # imm = 0x20004009
btl %ecx, %eax
jb 0xad2a4
leaq 0x249658(%rip), %rax    # 0x2f6a00
movsd (%rax), %xmm0
leaq 0x278e6d(%rip), %rdi    # 0x326220
leaq 0x66b62(%rip), %rsi     # 0x113f1c
leaq 0x6c2d3(%rip), %rdx     # 0x119694
jmp 0xad29d