// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathgps.cpp
// Function: show_rftg_info(int, int)
int show_rftg_info(int row, int col)
{
int max_row;
int color;

   color = WHITE;
   max_row = MOUSE_ROW;
   if(zoom_screen == 'D') {
      max_row = (SCREEN_HEIGHT / TEXT_HEIGHT) - 3;
      col = 3;
   }
   else if(osc_params) ;
   else if((rftg_unit == 0) && have_rftg_unit) { // Rb unit
      if(zoom_screen == 'I') max_row = (SCREEN_HEIGHT / TEXT_HEIGHT) - 3;
      else if(plot_digital_clock) max_row = (row + 9);
   }

   color = WHITE;
   sprintf(out, "Phase error:        %g       ", rftg_phase_err);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Average phase:      %g       ", rftg_avg_phase);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "APE:                %g       ", rftg_ape);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Delta APE 10 min:   %g       ", rftg_delta_ape_10m);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Sensitivity:        %g       ", rftg_sensitivity);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;


   sprintf(out, "Osc voltage:        %g V     ", rftg_oscv);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   if(rftg_unit == 0) {  // RB
      sprintf(out, "Lamp voltage:       %g V     ", ant_v1);
      vidstr(row++, col, color, out);
      if(row >= max_row) return row;

      sprintf(out, "XTAL voltage:       %g V     ", ant_v2);
      vidstr(row++, col, color, out);
      if(row >= max_row) return row;
   }
   else {  // XO
      sprintf(out, "Antenna current:    %g mA    ", ant_ma);
      vidstr(row++, col, color, out);
      if(row >= max_row) return row;

      sprintf(out, "Antenna fault V1:   %g V     ", ant_v1);
      vidstr(row++, col, color, out);
      if(row >= max_row) return row;

      sprintf(out, "Antenna fault V2:   %g V     ", ant_v2);
      vidstr(row++, col, color, out);
      if(row >= max_row) return row;

      sprintf(out, "ADC:                %g V     ", rftg_adc);
      vidstr(row++, col, color, out);
      if(row >= max_row) return row;

      sprintf(out, "DAC 5 minute avg:   %g V     ", rftg_dac_5min);
      vidstr(row++, col, color, out);
      if(row >= max_row) return row;
   }


   sprintf(out, "Freq correction:    %g       ", rftg_freq_corr);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   if(fabs(rftg_time_corr)) {
      sprintf(out, "Time correction:    %g       ", rftg_time_corr);
      vidstr(row++, col, color, out);
      if(row >= max_row) return row;
   }


   sprintf(out, "Elapsed time:       %d secs  ", rftg_elapsed);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;


   sprintf(out, "Delta APE:          %g       ", rftg_delta_ape);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "APE2:               %g       ", rftg_ape2);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Constant APE:       %g       ", rftg_const_ape);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Phase ref:          %g       ", rftg_phase_ref);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;
 

   sprintf(out, "Delta temperature:  %g %cC     ", rftg_delta_temp, DEGREES);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Correction sched:   %d secs  ", rftg_corr_sched);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Warmup time:        %d min   ", rftg_warmup_time);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Avg sample:         %d min   ", rftg_avg_sample);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "PLL port:           0x%02X     ", rftg_pll_port);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "PLD port:           0x%02X     ", rftg_pld_port);
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   return row;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %r12d
leaq 0x25d672(%rip), %rax    # 0x30c7a8
movb (%rax), %al
cmpb $0x44, %al
jne 0xaf15c
leaq 0x1696c1(%rip), %rax    # 0x218804
movl (%rax), %eax
leaq 0x1696c8(%rip), %rcx    # 0x218814
cltd
idivl (%rcx)
movl %eax, %ebx
addl $-0x3, %ebx
movl $0x3, %r14d
jmp 0xaf178
movl %esi, %r14d
leaq 0x169642(%rip), %rcx    # 0x2187a8
movl (%rcx), %ebx
leaq 0x25df7d(%rip), %rcx    # 0x30d0ec
cmpb $0x0, (%rcx)
je 0xaf473
leaq 0x25e869(%rip), %rax    # 0x30d9e8
movsd (%rax), %xmm0
leaq 0x28d096(%rip), %r13    # 0x33c220
leaq 0x7772d(%rip), %rsi     # 0x1268be
movq %r13, %rdi
movb $0x1, %al
callq 0x9060
leal 0x1(%r12), %r15d
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %r13, %rcx
callq 0xe787
cmpl %ebx, %r15d
jge 0xaf8d7
leaq 0x25e835(%rip), %rax    # 0x30d9f8
movsd (%rax), %xmm0
movl %ebx, -0x2c(%rbp)
leaq 0x28d04f(%rip), %rbx    # 0x33c220
leaq 0x77704(%rip), %rsi     # 0x1268dc
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x2(%r12), %r13d
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r13d
jge 0xaf8d4
leaq 0x25e7fd(%rip), %rax    # 0x30da08
movsd (%rax), %xmm0
leaq 0x28d00a(%rip), %rbx    # 0x33c220
leaq 0x776dd(%rip), %rsi     # 0x1268fa
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x3(%r12), %r15d
movl %r13d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r15d
jge 0xaf8d7
leaq 0x25e7c0(%rip), %rax    # 0x30da10
movsd (%rax), %xmm0
leaq 0x28cfc5(%rip), %rbx    # 0x33c220
leaq 0x776b6(%rip), %rsi     # 0x126918
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x4(%r12), %r13d
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r13d
jge 0xaf8d4
leaq 0x25e79b(%rip), %rax    # 0x30da30
movsd (%rax), %xmm0
leaq 0x28cf80(%rip), %rbx    # 0x33c220
leaq 0x7768f(%rip), %rsi     # 0x126936
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x5(%r12), %r15d
movl %r13d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r15d
jge 0xaf8d7
leaq 0x25e7b6(%rip), %rax    # 0x30da90
movsd (%rax), %xmm0
leaq 0x28cf3b(%rip), %rbx    # 0x33c220
leaq 0x77668(%rip), %rsi     # 0x126954
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x6(%r12), %r13d
movl %r15d, %edi
movl %r14d, -0x30(%rbp)
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r13d
jge 0xaf8d4
leaq 0x25e691(%rip), %rax    # 0x30d9b4
leal 0x7(%r12), %r15d
cmpl $0x0, (%rax)
je 0xaf4cb
leaq 0x25e730(%rip), %rax    # 0x30da68
movsd (%rax), %xmm0
leaq 0x28cedd(%rip), %rbx    # 0x33c220
leaq 0x77664(%rip), %rsi     # 0x1269ae
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
movl %r13d, %edi
movl -0x30(%rbp), %r14d
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r15d
jge 0xaf8d7
leaq 0x25e6dc(%rip), %rax    # 0x30da58
movsd (%rax), %xmm0
leaq 0x28ce99(%rip), %rbx    # 0x33c220
leaq 0x7763e(%rip), %rsi     # 0x1269cc
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x8(%r12), %r13d
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r13d
jge 0xaf8d4
leaq 0x25e69f(%rip), %rax    # 0x30da60
movsd (%rax), %xmm0
leaq 0x28ce54(%rip), %rbx    # 0x33c220
leaq 0x77617(%rip), %rsi     # 0x1269ea
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x9(%r12), %r15d
movl %r13d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r15d
jge 0xaf8d7
leaq 0x25e67a(%rip), %rax    # 0x30da80
movsd (%rax), %xmm0
leaq 0x28ce0f(%rip), %rbx    # 0x33c220
leaq 0x775f0(%rip), %rsi     # 0x126a08
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0xa(%r12), %r13d
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r13d
jge 0xaf8d4
leaq 0x25e63d(%rip), %rax    # 0x30da88
movsd (%rax), %xmm0
leaq 0x28cdca(%rip), %rbx    # 0x33c220
leaq 0x775c9(%rip), %rsi     # 0x126a26
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0xb, %r12d
movl %r13d, %edi
jmp 0xaf539
leaq 0x25e53a(%rip), %rcx    # 0x30d9b4
cmpl $0x0, (%rcx)
jne 0xaf178
leaq 0x25e52e(%rip), %rcx    # 0x30d9b8
cmpl $0x0, (%rcx)
je 0xaf178
cmpb $0x49, %al
jne 0xaf4b4
leaq 0x169366(%rip), %rax    # 0x218804
movl (%rax), %eax
leaq 0x16936d(%rip), %rcx    # 0x218814
cltd
idivl (%rcx)
movl %eax, %ebx
addl $-0x3, %ebx
jmp 0xaf178
leaq 0x16bf2a(%rip), %rax    # 0x21b3e5
leal 0x9(%r12), %ecx
cmpb $0x0, (%rax)
cmovnel %ecx, %ebx
jmp 0xaf178
leaq 0x25e586(%rip), %rax    # 0x30da58
movsd (%rax), %xmm0
leaq 0x28cd43(%rip), %rbx    # 0x33c220
leaq 0x7748e(%rip), %rsi     # 0x126972
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
movl %r13d, %edi
movl -0x30(%rbp), %r14d
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r15d
jge 0xaf8d7
leaq 0x25e54a(%rip), %rax    # 0x30da60
movsd (%rax), %xmm0
leaq 0x28ccff(%rip), %rbx    # 0x33c220
leaq 0x77468(%rip), %rsi     # 0x126990
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0x8, %r12d
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
movl %r12d, %r15d
cmpl -0x2c(%rbp), %r12d
jge 0xaf8d7
leaq 0x25e4f3(%rip), %rax    # 0x30da50
movsd (%rax), %xmm0
leaq 0x28ccb8(%rip), %rbx    # 0x33c220
leaq 0x774d5(%rip), %rsi     # 0x126a44
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x1(%r12), %r15d
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r15d
jge 0xaf8d7
leaq 0x25e4a6(%rip), %rax    # 0x30da48
movsd (%rax), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xaf5b2
jnp 0xaf5f3
leaq 0x28cc67(%rip), %rbx    # 0x33c220
leaq 0x774a2(%rip), %rsi     # 0x126a62
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0x2, %r12d
movl %r15d, %edi
movl -0x30(%rbp), %r14d
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
movl %r12d, %r15d
cmpl -0x2c(%rbp), %r12d
jl 0xaf5f7
jmp 0xaf8d7
movl -0x30(%rbp), %r14d
leaq 0x25e43a(%rip), %rax    # 0x30da38
movl (%rax), %edx
leaq 0x28cc19(%rip), %rbx    # 0x33c220
leaq 0x77472(%rip), %rsi     # 0x126a80
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0x1(%r15), %r12d
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r12d
jge 0xaf8e9
leaq 0x25e3e0(%rip), %rax    # 0x30da20
movsd (%rax), %xmm0
leaq 0x28cbd5(%rip), %rbx    # 0x33c220
leaq 0x7744c(%rip), %rsi     # 0x126a9e
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x2(%r15), %r13d
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
movl -0x2c(%rbp), %ebx
callq 0xe787
cmpl %ebx, %r13d
jge 0xaf8d4
leaq 0x25e392(%rip), %rax    # 0x30da18
movsd (%rax), %xmm0
leaq 0x28cb8f(%rip), %rdi    # 0x33c220
leaq 0x77424(%rip), %rsi     # 0x126abc
movb $0x1, %al
callq 0x9060
leal 0x3(%r15), %r12d
movl %r13d, %edi
movl %r14d, %esi
movl $0xf, %edx
leaq 0x28cb6b(%rip), %rcx    # 0x33c220
callq 0xe787
cmpl %ebx, %r12d
jge 0xaf8e9
movl %ebx, %r13d
leaq 0x25e35b(%rip), %rax    # 0x30da28
movsd (%rax), %xmm0
leaq 0x28cb48(%rip), %rdi    # 0x33c220
leaq 0x773fb(%rip), %rsi     # 0x126ada
movb $0x1, %al
callq 0x9060
leal 0x4(%r15), %ebx
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
leaq 0x28cb24(%rip), %rcx    # 0x33c220
callq 0xe787
cmpl %r13d, %ebx
jge 0xaf8ee
leaq 0x25e2df(%rip), %rax    # 0x30d9f0
movsd (%rax), %xmm0
leaq 0x28cb04(%rip), %r14    # 0x33c220
leaq 0x773d5(%rip), %rsi     # 0x126af8
movq %r14, %rdi
movb $0x1, %al
callq 0x9060
leal 0x5(%r15), %r12d
movl %ebx, %edi
movl -0x30(%rbp), %esi
movl $0xf, %edx
movq %r14, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r12d
jge 0xaf8e9
leaq 0x25e2ac(%rip), %rax    # 0x30da00
movsd (%rax), %xmm0
leaq 0x28cac1(%rip), %rbx    # 0x33c220
leaq 0x773b0(%rip), %rsi     # 0x126b16
movq %rbx, %rdi
movl $0x1, %edx
movb $0x1, %al
callq 0x9060
leal 0x6(%r15), %r13d
movl %r12d, %edi
movl -0x30(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r13d
jge 0xaf8d4
leaq 0x25e2a7(%rip), %rax    # 0x30da44
movl (%rax), %edx
leaq 0x28ca7a(%rip), %rbx    # 0x33c220
leaq 0x77389(%rip), %rsi     # 0x126b36
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0x7(%r15), %r12d
movl %r13d, %edi
movl -0x30(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r12d
jge 0xaf8e9
leaq 0x25e25d(%rip), %rax    # 0x30da3c
movl (%rax), %edx
leaq 0x28ca38(%rip), %rbx    # 0x33c220
leaq 0x77365(%rip), %rsi     # 0x126b54
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0x8(%r15), %r13d
movl %r12d, %edi
movl -0x30(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r13d
jge 0xaf8d4
leaq 0x25e21f(%rip), %rax    # 0x30da40
movl (%rax), %edx
leaq 0x28c9f6(%rip), %rbx    # 0x33c220
leaq 0x77341(%rip), %rsi     # 0x126b72
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0x9(%r15), %r12d
movl %r13d, %edi
movl -0x30(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r12d
jge 0xaf8e9
leaq 0x25e235(%rip), %rax    # 0x30da98
movl (%rax), %edx
leaq 0x28c9b4(%rip), %rbx    # 0x33c220
leaq 0x7731d(%rip), %rsi     # 0x126b90
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0xa(%r15), %r13d
movl %r12d, %edi
movl -0x30(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
cmpl -0x2c(%rbp), %r13d
jge 0xaf8d4
leaq 0x25e1fb(%rip), %rax    # 0x30da9c
movl (%rax), %edx
leaq 0x28c976(%rip), %rbx    # 0x33c220
leaq 0x772ff(%rip), %rsi     # 0x126bb0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
addl $0xb, %r15d
movl %r13d, %edi
movl -0x30(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
jmp 0xaf8d7
movl %r13d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r12d, %r15d
jmp 0xaf8d7
movl %ebx, %r15d
jmp 0xaf8d7