// File: /workspace/github_cpp_makefile_star2_O2/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 0x2577b8(%rip), %rax    # 0x2f67a8
movb (%rax), %al
cmpb $0x44, %al
jne 0x9f014
leaq 0x163807(%rip), %rax    # 0x202804
movl (%rax), %eax
leaq 0x16380e(%rip), %rcx    # 0x202814
cltd
idivl (%rcx)
movl %eax, %ebx
addl $-0x3, %ebx
pushq $0x3
popq %r14
jmp 0x9f030
movl %esi, %r14d
leaq 0x16378a(%rip), %rcx    # 0x2027a8
movl (%rcx), %ebx
leaq 0x2580c5(%rip), %rcx    # 0x2f70ec
cmpb $0x0, (%rcx)
je 0x9f31a
leaq 0x2589b1(%rip), %rax    # 0x2f79e8
movsd (%rax), %xmm0
leaq 0x2871de(%rip), %r13    # 0x326220
leaq 0x717ba(%rip), %rsi     # 0x110803
movq %r13, %rdi
movb $0x1, %al
callq 0x9060
leal 0x1(%r12), %r15d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl %r14d, %esi
movq %r13, %rcx
callq 0xe2d2
cmpl %ebx, %r15d
jge 0x9f75e
leaq 0x25897f(%rip), %rax    # 0x2f79f8
movsd (%rax), %xmm0
movl %ebx, -0x2c(%rbp)
leaq 0x287199(%rip), %rbx    # 0x326220
leaq 0x71793(%rip), %rsi     # 0x110821
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x2(%r12), %r13d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r13d
jge 0x9f75b
leaq 0x258949(%rip), %rax    # 0x2f7a08
movsd (%rax), %xmm0
leaq 0x287156(%rip), %rbx    # 0x326220
leaq 0x7176e(%rip), %rsi     # 0x11083f
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x3(%r12), %r15d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r15d
jge 0x9f75e
leaq 0x25890e(%rip), %rax    # 0x2f7a10
movsd (%rax), %xmm0
leaq 0x287113(%rip), %rbx    # 0x326220
leaq 0x71749(%rip), %rsi     # 0x11085d
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x4(%r12), %r13d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r13d
jge 0x9f75b
leaq 0x2588eb(%rip), %rax    # 0x2f7a30
movsd (%rax), %xmm0
leaq 0x2870d0(%rip), %rbx    # 0x326220
leaq 0x71724(%rip), %rsi     # 0x11087b
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x5(%r12), %r15d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r15d
jge 0x9f75e
leaq 0x258908(%rip), %rax    # 0x2f7a90
movsd (%rax), %xmm0
leaq 0x28708d(%rip), %rbx    # 0x326220
leaq 0x716ff(%rip), %rsi     # 0x110899
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x6(%r12), %r13d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %r14d, -0x30(%rbp)
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r13d
jge 0x9f75b
leaq 0x2587e5(%rip), %rax    # 0x2f79b4
leal 0x7(%r12), %r15d
cmpl $0x0, (%rax)
je 0x9f372
leaq 0x258884(%rip), %rax    # 0x2f7a68
movsd (%rax), %xmm0
leaq 0x287031(%rip), %rbx    # 0x326220
leaq 0x716fd(%rip), %rsi     # 0x1108f3
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x30(%rbp), %r14d
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r15d
jge 0x9f75e
leaq 0x258832(%rip), %rax    # 0x2f7a58
movsd (%rax), %xmm0
leaq 0x286fef(%rip), %rbx    # 0x326220
leaq 0x716d9(%rip), %rsi     # 0x110911
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x8(%r12), %r13d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r13d
jge 0x9f75b
leaq 0x2587f7(%rip), %rax    # 0x2f7a60
movsd (%rax), %xmm0
leaq 0x286fac(%rip), %rbx    # 0x326220
leaq 0x716b4(%rip), %rsi     # 0x11092f
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x9(%r12), %r15d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r15d
jge 0x9f75e
leaq 0x2587d4(%rip), %rax    # 0x2f7a80
movsd (%rax), %xmm0
leaq 0x286f69(%rip), %rbx    # 0x326220
leaq 0x7168f(%rip), %rsi     # 0x11094d
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0xa(%r12), %r13d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r13d
jge 0x9f75b
leaq 0x258799(%rip), %rax    # 0x2f7a88
movsd (%rax), %xmm0
leaq 0x286f26(%rip), %rbx    # 0x326220
leaq 0x7166a(%rip), %rsi     # 0x11096b
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0xb, %r12d
pushq $0xf
popq %rdx
movl %r13d, %edi
jmp 0x9f3e1
leaq 0x258693(%rip), %rcx    # 0x2f79b4
cmpl $0x0, (%rcx)
jne 0x9f030
leaq 0x258687(%rip), %rcx    # 0x2f79b8
cmpl $0x0, (%rcx)
je 0x9f030
cmpb $0x49, %al
jne 0x9f35b
leaq 0x1634bf(%rip), %rax    # 0x202804
movl (%rax), %eax
leaq 0x1634c6(%rip), %rcx    # 0x202814
cltd
idivl (%rcx)
movl %eax, %ebx
addl $-0x3, %ebx
jmp 0x9f030
leaq 0x166083(%rip), %rax    # 0x2053e5
leal 0x9(%r12), %ecx
cmpb $0x0, (%rax)
cmovnel %ecx, %ebx
jmp 0x9f030
leaq 0x2586df(%rip), %rax    # 0x2f7a58
movsd (%rax), %xmm0
leaq 0x286e9c(%rip), %rbx    # 0x326220
leaq 0x7152c(%rip), %rsi     # 0x1108b7
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x30(%rbp), %r14d
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r15d
jge 0x9f75e
leaq 0x2586a5(%rip), %rax    # 0x2f7a60
movsd (%rax), %xmm0
leaq 0x286e5a(%rip), %rbx    # 0x326220
leaq 0x71508(%rip), %rsi     # 0x1108d5
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0x8, %r12d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
movl %r12d, %r15d
cmpl -0x2c(%rbp), %r12d
jge 0x9f75e
leaq 0x258650(%rip), %rax    # 0x2f7a50
movsd (%rax), %xmm0
leaq 0x286e15(%rip), %rbx    # 0x326220
leaq 0x71577(%rip), %rsi     # 0x110989
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x1(%r12), %r15d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r15d
jge 0x9f75e
leaq 0x258605(%rip), %rax    # 0x2f7a48
movsd (%rax), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x9f453
jnp 0x9f492
leaq 0x286dc6(%rip), %rbx    # 0x326220
leaq 0x71546(%rip), %rsi     # 0x1109a7
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0x2, %r12d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl -0x30(%rbp), %r14d
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
movl %r12d, %r15d
cmpl -0x2c(%rbp), %r12d
jl 0x9f496
jmp 0x9f75e
movl -0x30(%rbp), %r14d
leaq 0x25859b(%rip), %rax    # 0x2f7a38
movl (%rax), %edx
leaq 0x286d7a(%rip), %rbx    # 0x326220
leaq 0x71518(%rip), %rsi     # 0x1109c5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0x1(%r15), %r12d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %r14d, %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r12d
jge 0x9f770
leaq 0x258543(%rip), %rax    # 0x2f7a20
movsd (%rax), %xmm0
leaq 0x286d38(%rip), %rbx    # 0x326220
leaq 0x714f4(%rip), %rsi     # 0x1109e3
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x2(%r15), %r13d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl %r14d, %esi
movq %rbx, %rcx
movl -0x2c(%rbp), %ebx
callq 0xe2d2
cmpl %ebx, %r13d
jge 0x9f75b
leaq 0x2584f7(%rip), %rax    # 0x2f7a18
movsd (%rax), %xmm0
leaq 0x286cf4(%rip), %rdi    # 0x326220
leaq 0x714ce(%rip), %rsi     # 0x110a01
movb $0x1, %al
callq 0x9060
leal 0x3(%r15), %r12d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl %r14d, %esi
leaq 0x286cd2(%rip), %rcx    # 0x326220
callq 0xe2d2
cmpl %ebx, %r12d
jge 0x9f770
movl %ebx, %r13d
leaq 0x2584c2(%rip), %rax    # 0x2f7a28
movsd (%rax), %xmm0
leaq 0x286caf(%rip), %rdi    # 0x326220
leaq 0x714a7(%rip), %rsi     # 0x110a1f
movb $0x1, %al
callq 0x9060
leal 0x4(%r15), %ebx
pushq $0xf
popq %rdx
movl %r12d, %edi
movl %r14d, %esi
leaq 0x286c8d(%rip), %rcx    # 0x326220
callq 0xe2d2
cmpl %r13d, %ebx
jge 0x9f775
leaq 0x258448(%rip), %rax    # 0x2f79f0
movsd (%rax), %xmm0
leaq 0x286c6d(%rip), %r14    # 0x326220
leaq 0x71483(%rip), %rsi     # 0x110a3d
movq %r14, %rdi
movb $0x1, %al
callq 0x9060
leal 0x5(%r15), %r12d
pushq $0xf
popq %rdx
movl %ebx, %edi
movl -0x30(%rbp), %esi
movq %r14, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r12d
jge 0x9f770
leaq 0x258417(%rip), %rax    # 0x2f7a00
movsd (%rax), %xmm0
leaq 0x286c2c(%rip), %rbx    # 0x326220
leaq 0x71460(%rip), %rsi     # 0x110a5b
pushq $0x1
popq %rdx
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x6(%r15), %r13d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl -0x30(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r13d
jge 0x9f75b
leaq 0x258416(%rip), %rax    # 0x2f7a44
movl (%rax), %edx
leaq 0x286be9(%rip), %rbx    # 0x326220
leaq 0x7143d(%rip), %rsi     # 0x110a7b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0x7(%r15), %r12d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x30(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r12d
jge 0x9f770
leaq 0x2583ce(%rip), %rax    # 0x2f7a3c
movl (%rax), %edx
leaq 0x286ba9(%rip), %rbx    # 0x326220
leaq 0x7141b(%rip), %rsi     # 0x110a99
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0x8(%r15), %r13d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl -0x30(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r13d
jge 0x9f75b
leaq 0x258392(%rip), %rax    # 0x2f7a40
movl (%rax), %edx
leaq 0x286b69(%rip), %rbx    # 0x326220
leaq 0x713f9(%rip), %rsi     # 0x110ab7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0x9(%r15), %r12d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x30(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r12d
jge 0x9f770
leaq 0x2583aa(%rip), %rax    # 0x2f7a98
movl (%rax), %edx
leaq 0x286b29(%rip), %rbx    # 0x326220
leaq 0x713d7(%rip), %rsi     # 0x110ad5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
leal 0xa(%r15), %r13d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl -0x30(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl -0x2c(%rbp), %r13d
jge 0x9f75b
leaq 0x258372(%rip), %rax    # 0x2f7a9c
movl (%rax), %edx
leaq 0x286aed(%rip), %rbx    # 0x326220
leaq 0x713bb(%rip), %rsi     # 0x110af5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
addl $0xb, %r15d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x30(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
jmp 0x9f75e
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 0x9f75e
movl %ebx, %r15d
jmp 0x9f75e