// File: /workspace/github_cpp_makefile_star2_O3/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 0x15ab16(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x400, %rax            # imm = 0x400
je 0xbdea6
cmpq $0x80000, %rax          # imm = 0x80000
je 0xbdea6
cmpq $0x800000, %rax         # imm = 0x800000
jne 0xbde26
leaq 0x2504fc(%rip), %rsi    # 0x30e2e0
cmpl $0x0, 0x225d4(%rsi)
sete %cl
cmpl $0x0, 0x225d0(%rsi)
setle %dl
leaq 0x16580d(%rip), %rdi    # 0x22360c
cmpl $0x0, (%rdi)
sete %dil
cmpl $0x0, 0x225cc(%rsi)
sete %sil
orb %dil, %sil
cmpb $0x1, %sil
jne 0xbdea6
orb %dl, %cl
je 0xbdea6
pushq %rbp
movq %rsp, %rbp
movupd 0x75d1f(%rip), %xmm0    # 0x133b51
leaq 0x27e3e7(%rip), %rcx    # 0x33c220
movapd %xmm0, (%rcx)
movabsq $0x20202020202020, %rdx # imm = 0x20202020202020
movq %rdx, 0xd(%rcx)
leaq 0x24f4aa(%rip), %rdx    # 0x30d2fc
leaq 0x24f56b(%rip), %rcx    # 0x30d3c4
movl (%rcx), %ecx
movl (%rdx), %edi
orl %ecx, %edi
sete %dl
leaq 0x24ebeb(%rip), %rsi    # 0x30ca54
movl (%rsi), %esi
orl %esi, %edi
je 0xbdf4e
testl %esi, %esi
setne %sil
andb %sil, %dl
cmpb $0x1, %dl
jne 0xbdea7
leaq 0x24ebb8(%rip), %rax    # 0x30ca40
movsd (%rax), %xmm0
leaq 0x27e38d(%rip), %rdi    # 0x33c220
leaq 0x6c106(%rip), %rsi     # 0x129fa0
leaq 0x64cb3(%rip), %rdx     # 0x122b54
jmp 0xbdf47
retq
cmpq $0x10000, %rax          # imm = 0x10000
je 0xbdec4
cmpq $0x20000, %rax          # imm = 0x20000
jne 0xbdef9
leaq 0x24eb42(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
jmp 0xbdedb
leaq 0x15aa3d(%rip), %rax    # 0x218908
cmpl $0x4c, (%rax)
leaq 0x24eb2b(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
jne 0xbdf32
leaq 0x9fe4e(%rip), %rax     # 0x15dd30
movq 0x1d8(%rax), %rdx
leaq 0x27e330(%rip), %rdi    # 0x33c220
leaq 0x6c0bd(%rip), %rsi     # 0x129fb4
jmp 0xbdf47
leaq 0x15d0d0(%rip), %rdx    # 0x21afd0
cmpl $0x0, (%rdx)
je 0xbdf96
leaq 0x24eaf0(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
leaq 0x9fe15(%rip), %rax     # 0x15dd30
movq 0x1d8(%rax), %rdx
leaq 0x27e2f7(%rip), %rdi    # 0x33c220
leaq 0x6c0a7(%rip), %rsi     # 0x129fd7
jmp 0xbdf47
leaq 0x27e2e7(%rip), %rdi    # 0x33c220
leaq 0x6c085(%rip), %rsi     # 0x129fc5
leaq 0x77d88(%rip), %rdx     # 0x135ccf
movb $0x1, %al
callq 0x9060
leaq 0x24f27b(%rip), %rcx    # 0x30d1d0
movb $0xc, %al
testb $0x10, (%rcx)
jne 0xbdf7c
leaq 0x24f275(%rip), %rcx    # 0x30d1d8
movb $0xe, %al
testb $0x1, (%rcx)
jne 0xbdf7c
leaq 0x281767(%rip), %rax    # 0x33f6d8
cmpb $0x0, (%rax)
sete %al
shlb $0x2, %al
orb $0xb, %al
movzbl %al, %edx
leaq 0x27e29a(%rip), %rcx    # 0x33c220
movl $0x2, %edi
movl $0xf, %esi
popq %rbp
jmp 0xe787
leaq 0x15a967(%rip), %rdx    # 0x218904
cmpb $0x0, (%rdx)
jne 0xbdfbf
cmpq $0x1, %rax
sete %sil
leaq 0x15d023(%rip), %rdx    # 0x21afd4
movl (%rdx), %edx
cmpl $0x41, %edx
sete %dil
testb %dil, %sil
je 0xbe010
testl %ecx, %ecx
je 0xbdf4e
leaq 0x24ea36(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
ucomisd 0x4b062(%rip), %xmm0    # 0x109038
jae 0xbdff6
movsd 0x4b108(%rip), %xmm1    # 0x1090e8
ucomisd %xmm0, %xmm1
jae 0xbdff6
leaq 0x27e233(%rip), %rdi    # 0x33c220
leaq 0x6c005(%rip), %rsi     # 0x129ff9
jmp 0xbe004
leaq 0x27e223(%rip), %rdi    # 0x33c220
leaq 0x6bfe4(%rip), %rsi     # 0x129fe8
movb $0x1, %al
callq 0x9060
jmp 0xbdf4e
cmpq $0x1, %rax
setne %sil
cmpl $0x50, %edx
setne %dil
testl $0x800009e4, %eax       # imm = 0x800009E4
jne 0xbdfbf
orb %dil, %sil
je 0xbdfbf
cmpq $0x1, %rax
jne 0xbdf09
addl $-0x33, %edx
cmpl $0x1d, %edx
ja 0xbe04b
movl $0x20004009, %eax       # imm = 0x20004009
btl %edx, %eax
jb 0xbdf4e
leaq 0x24e9ae(%rip), %rax    # 0x30ca00
movsd (%rax), %xmm0
leaq 0x27e1c3(%rip), %rdi    # 0x33c220
leaq 0x6bf73(%rip), %rsi     # 0x129fd7
leaq 0x71709(%rip), %rdx     # 0x12f774
jmp 0xbdf47