// File: /workspace/github_cpp_makefile_star2_O1/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 0x25d965(%rip), %rax    # 0x30c7a8
movb (%rax), %al
cmpb $0x44, %al
jne 0xaee69
leaq 0x1699b4(%rip), %rax    # 0x218804
movl (%rax), %eax
leaq 0x1699bb(%rip), %rcx    # 0x218814
cltd
idivl (%rcx)
movl %eax, %ebx
addl $-0x3, %ebx
movl $0x3, %r14d
jmp 0xaee85
movl %esi, %r14d
leaq 0x169935(%rip), %rcx    # 0x2187a8
movl (%rcx), %ebx
leaq 0x25e270(%rip), %rcx    # 0x30d0ec
cmpb $0x0, (%rcx)
je 0xaf180
leaq 0x25eb5c(%rip), %rax    # 0x30d9e8
movsd (%rax), %xmm0
leaq 0x28d389(%rip), %r13    # 0x33c220
leaq 0x77940(%rip), %rsi     # 0x1267de
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 0xe7d0
cmpl %ebx, %r15d
jge 0xaf5e4
leaq 0x25eb28(%rip), %rax    # 0x30d9f8
movsd (%rax), %xmm0
movl %ebx, -0x2c(%rbp)
leaq 0x28d342(%rip), %rbx    # 0x33c220
leaq 0x77917(%rip), %rsi     # 0x1267fc
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 0xe7d0
cmpl -0x2c(%rbp), %r13d
jge 0xaf5e1
leaq 0x25eaf0(%rip), %rax    # 0x30da08
movsd (%rax), %xmm0
leaq 0x28d2fd(%rip), %rbx    # 0x33c220
leaq 0x778f0(%rip), %rsi     # 0x12681a
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 0xe7d0
cmpl -0x2c(%rbp), %r15d
jge 0xaf5e4
leaq 0x25eab3(%rip), %rax    # 0x30da10
movsd (%rax), %xmm0
leaq 0x28d2b8(%rip), %rbx    # 0x33c220
leaq 0x778c9(%rip), %rsi     # 0x126838
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 0xe7d0
cmpl -0x2c(%rbp), %r13d
jge 0xaf5e1
leaq 0x25ea8e(%rip), %rax    # 0x30da30
movsd (%rax), %xmm0
leaq 0x28d273(%rip), %rbx    # 0x33c220
leaq 0x778a2(%rip), %rsi     # 0x126856
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 0xe7d0
cmpl -0x2c(%rbp), %r15d
jge 0xaf5e4
leaq 0x25eaa9(%rip), %rax    # 0x30da90
movsd (%rax), %xmm0
leaq 0x28d22e(%rip), %rbx    # 0x33c220
leaq 0x7787b(%rip), %rsi     # 0x126874
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 0xe7d0
cmpl -0x2c(%rbp), %r13d
jge 0xaf5e1
leaq 0x25e984(%rip), %rax    # 0x30d9b4
leal 0x7(%r12), %r15d
cmpl $0x0, (%rax)
je 0xaf1d8
leaq 0x25ea23(%rip), %rax    # 0x30da68
movsd (%rax), %xmm0
leaq 0x28d1d0(%rip), %rbx    # 0x33c220
leaq 0x77877(%rip), %rsi     # 0x1268ce
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 0xe7d0
cmpl -0x2c(%rbp), %r15d
jge 0xaf5e4
leaq 0x25e9cf(%rip), %rax    # 0x30da58
movsd (%rax), %xmm0
leaq 0x28d18c(%rip), %rbx    # 0x33c220
leaq 0x77851(%rip), %rsi     # 0x1268ec
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 0xe7d0
cmpl -0x2c(%rbp), %r13d
jge 0xaf5e1
leaq 0x25e992(%rip), %rax    # 0x30da60
movsd (%rax), %xmm0
leaq 0x28d147(%rip), %rbx    # 0x33c220
leaq 0x7782a(%rip), %rsi     # 0x12690a
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 0xe7d0
cmpl -0x2c(%rbp), %r15d
jge 0xaf5e4
leaq 0x25e96d(%rip), %rax    # 0x30da80
movsd (%rax), %xmm0
leaq 0x28d102(%rip), %rbx    # 0x33c220
leaq 0x77803(%rip), %rsi     # 0x126928
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 0xe7d0
cmpl -0x2c(%rbp), %r13d
jge 0xaf5e1
leaq 0x25e930(%rip), %rax    # 0x30da88
movsd (%rax), %xmm0
leaq 0x28d0bd(%rip), %rbx    # 0x33c220
leaq 0x777dc(%rip), %rsi     # 0x126946
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0xb, %r12d
movl %r13d, %edi
jmp 0xaf246
leaq 0x25e82d(%rip), %rcx    # 0x30d9b4
cmpl $0x0, (%rcx)
jne 0xaee85
leaq 0x25e821(%rip), %rcx    # 0x30d9b8
cmpl $0x0, (%rcx)
je 0xaee85
cmpb $0x49, %al
jne 0xaf1c1
leaq 0x169659(%rip), %rax    # 0x218804
movl (%rax), %eax
leaq 0x169660(%rip), %rcx    # 0x218814
cltd
idivl (%rcx)
movl %eax, %ebx
addl $-0x3, %ebx
jmp 0xaee85
leaq 0x16c21d(%rip), %rax    # 0x21b3e5
leal 0x9(%r12), %ecx
cmpb $0x0, (%rax)
cmovnel %ecx, %ebx
jmp 0xaee85
leaq 0x25e879(%rip), %rax    # 0x30da58
movsd (%rax), %xmm0
leaq 0x28d036(%rip), %rbx    # 0x33c220
leaq 0x776a1(%rip), %rsi     # 0x126892
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 0xe7d0
cmpl -0x2c(%rbp), %r15d
jge 0xaf5e4
leaq 0x25e83d(%rip), %rax    # 0x30da60
movsd (%rax), %xmm0
leaq 0x28cff2(%rip), %rbx    # 0x33c220
leaq 0x7767b(%rip), %rsi     # 0x1268b0
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0x8, %r12d
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe7d0
movl %r12d, %r15d
cmpl -0x2c(%rbp), %r12d
jge 0xaf5e4
leaq 0x25e7e6(%rip), %rax    # 0x30da50
movsd (%rax), %xmm0
leaq 0x28cfab(%rip), %rbx    # 0x33c220
leaq 0x776e8(%rip), %rsi     # 0x126964
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 0xe7d0
cmpl -0x2c(%rbp), %r15d
jge 0xaf5e4
leaq 0x25e799(%rip), %rax    # 0x30da48
movsd (%rax), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xaf2bf
jnp 0xaf300
leaq 0x28cf5a(%rip), %rbx    # 0x33c220
leaq 0x776b5(%rip), %rsi     # 0x126982
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 0xe7d0
movl %r12d, %r15d
cmpl -0x2c(%rbp), %r12d
jl 0xaf304
jmp 0xaf5e4
movl -0x30(%rbp), %r14d
leaq 0x25e72d(%rip), %rax    # 0x30da38
movl (%rax), %edx
leaq 0x28cf0c(%rip), %rbx    # 0x33c220
leaq 0x77685(%rip), %rsi     # 0x1269a0
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 0xe7d0
cmpl -0x2c(%rbp), %r12d
jge 0xaf5f6
leaq 0x25e6d3(%rip), %rax    # 0x30da20
movsd (%rax), %xmm0
leaq 0x28cec8(%rip), %rbx    # 0x33c220
leaq 0x7765f(%rip), %rsi     # 0x1269be
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 0xe7d0
cmpl %ebx, %r13d
jge 0xaf5e1
leaq 0x25e685(%rip), %rax    # 0x30da18
movsd (%rax), %xmm0
leaq 0x28ce82(%rip), %rdi    # 0x33c220
leaq 0x77637(%rip), %rsi     # 0x1269dc
movb $0x1, %al
callq 0x9060
leal 0x3(%r15), %r12d
movl %r13d, %edi
movl %r14d, %esi
movl $0xf, %edx
leaq 0x28ce5e(%rip), %rcx    # 0x33c220
callq 0xe7d0
cmpl %ebx, %r12d
jge 0xaf5f6
movl %ebx, %r13d
leaq 0x25e64e(%rip), %rax    # 0x30da28
movsd (%rax), %xmm0
leaq 0x28ce3b(%rip), %rdi    # 0x33c220
leaq 0x7760e(%rip), %rsi     # 0x1269fa
movb $0x1, %al
callq 0x9060
leal 0x4(%r15), %ebx
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
leaq 0x28ce17(%rip), %rcx    # 0x33c220
callq 0xe7d0
cmpl %r13d, %ebx
jge 0xaf5fb
leaq 0x25e5d2(%rip), %rax    # 0x30d9f0
movsd (%rax), %xmm0
leaq 0x28cdf7(%rip), %r14    # 0x33c220
leaq 0x775e8(%rip), %rsi     # 0x126a18
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 0xe7d0
cmpl -0x2c(%rbp), %r12d
jge 0xaf5f6
leaq 0x25e59f(%rip), %rax    # 0x30da00
movsd (%rax), %xmm0
leaq 0x28cdb4(%rip), %rbx    # 0x33c220
leaq 0x775c3(%rip), %rsi     # 0x126a36
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 0xe7d0
cmpl -0x2c(%rbp), %r13d
jge 0xaf5e1
leaq 0x25e59a(%rip), %rax    # 0x30da44
movl (%rax), %edx
leaq 0x28cd6d(%rip), %rbx    # 0x33c220
leaq 0x7759c(%rip), %rsi     # 0x126a56
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 0xe7d0
cmpl -0x2c(%rbp), %r12d
jge 0xaf5f6
leaq 0x25e550(%rip), %rax    # 0x30da3c
movl (%rax), %edx
leaq 0x28cd2b(%rip), %rbx    # 0x33c220
leaq 0x77578(%rip), %rsi     # 0x126a74
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 0xe7d0
cmpl -0x2c(%rbp), %r13d
jge 0xaf5e1
leaq 0x25e512(%rip), %rax    # 0x30da40
movl (%rax), %edx
leaq 0x28cce9(%rip), %rbx    # 0x33c220
leaq 0x77554(%rip), %rsi     # 0x126a92
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 0xe7d0
cmpl -0x2c(%rbp), %r12d
jge 0xaf5f6
leaq 0x25e528(%rip), %rax    # 0x30da98
movl (%rax), %edx
leaq 0x28cca7(%rip), %rbx    # 0x33c220
leaq 0x77530(%rip), %rsi     # 0x126ab0
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 0xe7d0
cmpl -0x2c(%rbp), %r13d
jge 0xaf5e1
leaq 0x25e4ee(%rip), %rax    # 0x30da9c
movl (%rax), %edx
leaq 0x28cc69(%rip), %rbx    # 0x33c220
leaq 0x77512(%rip), %rsi     # 0x126ad0
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 0xe7d0
jmp 0xaf5e4
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 0xaf5e4
movl %ebx, %r15d
jmp 0xaf5e4