// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebx
movl %edi, %r15d
leaq 0x14bc72(%rip), %rax    # 0x202804
movl (%rax), %eax
cmpl $0x1e0, %eax            # imm = 0x1E0
jg 0xb6ba5
leaq 0x14bcb9(%rip), %rcx    # 0x20285b
movb $0x1, (%rcx)
cmpl $0x3e6, %r14d           # imm = 0x3E6
jg 0xb6c05
xorl %ecx, %ecx
cmpl $0x1e1, %eax            # imm = 0x1E1
setl %cl
addl %ecx, %r14d
movl %ebx, %r12d
leal (%rcx,%r15), %ebx
leal (%rcx,%r15), %esi
incl %esi
leaq 0x14bc45(%rip), %rax    # 0x202814
movl (%rax), %eax
imull %eax, %esi
leaq 0x14bbbd(%rip), %rcx    # 0x202798
movl (%rcx), %edx
incl %edx
leaq 0x14bc2a(%rip), %rcx    # 0x202810
imull (%rcx), %edx
decl %edx
movl %r14d, %ecx
subl %ebx, %ecx
imull %eax, %ecx
xorl %edi, %edi
xorl %r8d, %r8d
callq 0xed4b
movl %ebx, %r15d
movl %r12d, %ebx
jmp 0xb6c0a
callq 0xe7d9
leaq 0x2410a7(%rip), %rax    # 0x2f7cb8
movl (%rax), %edx
leaq 0x2410a2(%rip), %rax    # 0x2f7cbc
movl (%rax), %ecx
leaq 0x24109d(%rip), %rax    # 0x2f7cc0
movsd (%rax), %xmm0
mulsd 0x3c3f9(%rip), %xmm0    # 0xf3028
leaq 0x26f5ea(%rip), %r13    # 0x326220
leaq 0x622cf(%rip), %rsi     # 0x118f0c
movq %r13, %rdi
movb $0x1, %al
callq 0x9060
leal 0x1(%r15), %r12d
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %ebx, %esi
movq %r13, %rcx
callq 0xe2d2
cmpl %r14d, %r12d
jge 0xb6e66
leaq 0x24105d(%rip), %rax    # 0x2f7cc8
movsd (%rax), %xmm0
leaq 0x26f5aa(%rip), %rdi    # 0x326220
leaq 0x622b0(%rip), %rsi     # 0x118f2d
movb $0x1, %al
callq 0x9060
leal 0x2(%r15), %r13d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl %ebx, -0x2c(%rbp)
movl %ebx, %esi
leaq 0x26f586(%rip), %rcx    # 0x326220
callq 0xe2d2
cmpl %r14d, %r13d
jge 0xb6e63
leaq 0x241021(%rip), %rax    # 0x2f7cd0
movsd (%rax), %xmm0
leaq 0x26f566(%rip), %rbx    # 0x326220
leaq 0x6228a(%rip), %rsi     # 0x118f4b
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x3(%r15), %r12d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x2c(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl %r14d, %r12d
jge 0xb6e66
leaq 0x240ff0(%rip), %rax    # 0x2f7ce0
movsd (%rax), %xmm0
leaq 0x26f525(%rip), %rbx    # 0x326220
leaq 0x62267(%rip), %rsi     # 0x118f69
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x4(%r15), %r13d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl -0x2c(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl %r14d, %r13d
jge 0xb6e63
leaq 0x240fb7(%rip), %rax    # 0x2f7ce8
movsd (%rax), %xmm0
leaq 0x26f4e4(%rip), %rbx    # 0x326220
leaq 0x62244(%rip), %rsi     # 0x118f87
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x5(%r15), %r12d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x2c(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl %r14d, %r12d
jge 0xb6e66
leaq 0x240f7e(%rip), %rax    # 0x2f7cf0
movsd (%rax), %xmm0
leaq 0x26f4a3(%rip), %rbx    # 0x326220
leaq 0x62221(%rip), %rsi     # 0x118fa5
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x6(%r15), %r13d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl -0x2c(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl %r14d, %r13d
jge 0xb6e63
leaq 0x240f45(%rip), %rax    # 0x2f7cf8
movsd (%rax), %xmm0
leaq 0x26f462(%rip), %rbx    # 0x326220
leaq 0x621ff(%rip), %rsi     # 0x118fc4
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x7(%r15), %r12d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x2c(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl %r14d, %r12d
jge 0xb6e66
leaq 0x240f10(%rip), %rax    # 0x2f7d00
movsd (%rax), %xmm0
leaq 0x26f425(%rip), %rbx    # 0x326220
leaq 0x621e1(%rip), %rsi     # 0x118fe3
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x8(%r15), %r13d
pushq $0xf
popq %rdx
movl %r12d, %edi
movl -0x2c(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
cmpl %r14d, %r13d
jge 0xb6e63
leaq 0x240eab(%rip), %rax    # 0x2f7cd8
movsd (%rax), %xmm0
leaq 0x26f3e8(%rip), %rbx    # 0x326220
leaq 0x621c2(%rip), %rsi     # 0x119001
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0x9, %r15d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x2c(%rbp), %esi
movq %rbx, %rcx
callq 0xe2d2
movl %r15d, %r12d
jmp 0xb6e66
movl %r13d, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq