// File: jkingan[P]ladyheather/heathmsc.cpp
// Function: show_lpfrs_info(int, int, int)
int show_lpfrs_info(int row,int col, int max_row)
{
int col2;
int color;

   col2 = col + 40;
   color = WHITE;

   if(SCREEN_HEIGHT <= TINY_HEIGHT) {
      no_y_margin = 1;
   }
   if(max_row < 999) {
      if(SCREEN_HEIGHT <= 480) {
         ++row;
         ++max_row;
      }
      fill_rectangle(0,(row+1)*TEXT_HEIGHT, (VER_COL+1)*TEXT_WIDTH-1,(max_row-row)*TEXT_HEIGHT, BLACK);
      goto info_table;
   }

   erase_screen();
     
   if(SCREEN_WIDTH >= NARROW_SCREEN) {
//    show_prs_status(row,col2+40-1, MOUSE_ROW); 
   }

   info_table:
// sprintf(out, "Freq adj:             %g PPB", lpfrs_freq*1.0E9);
   sprintf(out, "Freq adj: (C:%02X F:%02X) %g PPB", lpfrs_c_rval, lpfrs_f_rval, lpfrs_freq*1.0E9);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "HH - photocell:       %7.5f V", lpfrs_hh);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "GG - Rb signal:       %7.5f V", lpfrs_gg);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "EE - varactor:        %7.5f V", lpfrs_ee);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "DD - EFC input:       %7.5f V", lpfrs_dd);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "CC - lamp current:    %7.5f mA", lpfrs_cc);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "BB - heater current:  %7.5f mA", lpfrs_bb);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "AA - 90 MHz AGC:      %7.5f V", lpfrs_aa);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "FF - reserved:        %7.5f", lpfrs_ff);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   done:
   return row;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl -0x8(%rbp), %eax
addl $0x28, %eax
movl %eax, -0x10(%rbp)
movl $0xf, -0x14(%rbp)
leaq 0x16538c(%rip), %rax    # 0x2779e4
cmpl $0x1e0, (%rax)          # imm = 0x1E0
jg 0x11266a
leaq 0x1653d4(%rip), %rax    # 0x277a3b
movb $0x1, (%rax)
cmpl $0x3e7, -0xc(%rbp)      # imm = 0x3E7
jge 0x1126da
leaq 0x16536a(%rip), %rax    # 0x2779e4
cmpl $0x1e0, (%rax)          # imm = 0x1E0
jg 0x112694
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl -0x4(%rbp), %esi
addl $0x1, %esi
leaq 0x165353(%rip), %rax    # 0x2779f4
imull (%rax), %esi
leaq 0x1652cd(%rip), %rax    # 0x277978
movl (%rax), %edx
addl $0x1, %edx
leaq 0x165339(%rip), %rax    # 0x2779f0
imull (%rax), %edx
subl $0x1, %edx
movl -0xc(%rbp), %ecx
subl -0x4(%rbp), %ecx
leaq 0x16532a(%rip), %rax    # 0x2779f4
imull (%rax), %ecx
xorl %r8d, %r8d
movl %r8d, %edi
callq 0x120d0
jmp 0x11270d
callq 0x117e0
leaq 0x1652fa(%rip), %rax    # 0x2779e0
movl (%rax), %eax
movl %eax, -0x18(%rbp)
leaq 0x170032(%rip), %rax    # 0x282724
imull $0x31a, (%rax), %eax    # imm = 0x31A
movl $0x64, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x18(%rbp), %eax
cmpl %ecx, %eax
jl 0x11270b
jmp 0x11270b
jmp 0x11270d
leaq 0x25a784(%rip), %rax    # 0x36ce98
movl (%rax), %edx
leaq 0x25a77f(%rip), %rax    # 0x36ce9c
movl (%rax), %ecx
movsd 0x5c901(%rip), %xmm0    # 0x16f028
leaq 0x25a772(%rip), %rax    # 0x36cea0
mulsd (%rax), %xmm0
leaq 0x288cc7(%rip), %rdi    # 0x39b400
leaq 0x7f3a8(%rip), %rsi     # 0x191ae8
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288c9f(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112773
jmp 0x1129cf
leaq 0x25a72e(%rip), %rax    # 0x36cea8
movsd (%rax), %xmm0
leaq 0x288c7b(%rip), %rdi    # 0x39b400
leaq 0x7f37d(%rip), %rsi     # 0x191b09
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288c53(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x1127bf
jmp 0x1129cf
leaq 0x25a6ea(%rip), %rax    # 0x36ceb0
movsd (%rax), %xmm0
leaq 0x288c2f(%rip), %rdi    # 0x39b400
leaq 0x7f34f(%rip), %rsi     # 0x191b27
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288c07(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x11280b
jmp 0x1129cf
leaq 0x25a6ae(%rip), %rax    # 0x36cec0
movsd (%rax), %xmm0
leaq 0x288be3(%rip), %rdi    # 0x39b400
leaq 0x7f321(%rip), %rsi     # 0x191b45
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288bbb(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112857
jmp 0x1129cf
leaq 0x25a66a(%rip), %rax    # 0x36cec8
movsd (%rax), %xmm0
leaq 0x288b97(%rip), %rdi    # 0x39b400
leaq 0x7f2f3(%rip), %rsi     # 0x191b63
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288b6f(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x1128a3
jmp 0x1129cf
leaq 0x25a626(%rip), %rax    # 0x36ced0
movsd (%rax), %xmm0
leaq 0x288b4b(%rip), %rdi    # 0x39b400
leaq 0x7f2c5(%rip), %rsi     # 0x191b81
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288b23(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x1128ef
jmp 0x1129cf
leaq 0x25a5e2(%rip), %rax    # 0x36ced8
movsd (%rax), %xmm0
leaq 0x288aff(%rip), %rdi    # 0x39b400
leaq 0x7f298(%rip), %rsi     # 0x191ba0
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288ad7(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x11293b
jmp 0x1129cf
leaq 0x25a59e(%rip), %rax    # 0x36cee0
movsd (%rax), %xmm0
leaq 0x288ab3(%rip), %rdi    # 0x39b400
leaq 0x7f26b(%rip), %rsi     # 0x191bbf
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288a8b(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112984
jmp 0x1129cf
leaq 0x25a52d(%rip), %rax    # 0x36ceb8
movsd (%rax), %xmm0
leaq 0x288a6a(%rip), %rdi    # 0x39b400
leaq 0x7f240(%rip), %rsi     # 0x191bdd
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x288a42(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x1129cd
jmp 0x1129cf
jmp 0x1129cf
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)