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

   // !!!!! placeholder
   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: (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, "TEC temperature:      %7.5f C", sa35_tec);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

   sprintf(out, "RF voltage:           %7.5f V", sa35_rf);
   vidstr(row++,col, WHITE, out);
   if(row >= max_row) goto done;

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

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

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

// sa35_dds
// sa35_tune
// sa35_center_freq
// sa35_efc_enable

   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 0x164fdc(%rip), %rax    # 0x2779e4
cmpl $0x1e0, (%rax)          # imm = 0x1E0
jg 0x112a1a
leaq 0x165024(%rip), %rax    # 0x277a3b
movb $0x1, (%rax)
cmpl $0x3e7, -0xc(%rbp)      # imm = 0x3E7
jge 0x112a8a
leaq 0x164fba(%rip), %rax    # 0x2779e4
cmpl $0x1e0, (%rax)          # imm = 0x1E0
jg 0x112a44
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 0x164fa3(%rip), %rax    # 0x2779f4
imull (%rax), %esi
leaq 0x164f1d(%rip), %rax    # 0x277978
movl (%rax), %edx
addl $0x1, %edx
leaq 0x164f89(%rip), %rax    # 0x2779f0
imull (%rax), %edx
subl $0x1, %edx
movl -0xc(%rbp), %ecx
subl -0x4(%rbp), %ecx
leaq 0x164f7a(%rip), %rax    # 0x2779f4
imull (%rax), %ecx
xorl %r8d, %r8d
movl %r8d, %edi
callq 0x120d0
jmp 0x112abd
callq 0x117e0
leaq 0x164f4a(%rip), %rax    # 0x2779e0
movl (%rax), %eax
movl %eax, -0x18(%rbp)
leaq 0x16fc82(%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 0x112abb
jmp 0x112abb
jmp 0x112abd
leaq 0x25a3d4(%rip), %rax    # 0x36ce98
movl (%rax), %edx
leaq 0x25a3cf(%rip), %rax    # 0x36ce9c
movl (%rax), %ecx
movsd 0x5c551(%rip), %xmm0    # 0x16f028
leaq 0x25a3c2(%rip), %rax    # 0x36cea0
mulsd (%rax), %xmm0
leaq 0x288917(%rip), %rdi    # 0x39b400
leaq 0x7eff8(%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 0x2888ef(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112b23
jmp 0x112c9b
leaq 0x259116(%rip), %rax    # 0x36bc40
movsd (%rax), %xmm0
leaq 0x2888cb(%rip), %rdi    # 0x39b400
leaq 0x7f0bd(%rip), %rsi     # 0x191bf9
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 0x2888a3(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112b6f
jmp 0x112c9b
leaq 0x2590d2(%rip), %rax    # 0x36bc48
movsd (%rax), %xmm0
leaq 0x28887f(%rip), %rdi    # 0x39b400
leaq 0x7f08f(%rip), %rsi     # 0x191c17
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 0x288857(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112bbb
jmp 0x112c9b
leaq 0x259096(%rip), %rax    # 0x36bc58
movsd (%rax), %xmm0
leaq 0x288833(%rip), %rdi    # 0x39b400
leaq 0x7f061(%rip), %rsi     # 0x191c35
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 0x28880b(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112c07
jmp 0x112c9b
leaq 0x259052(%rip), %rax    # 0x36bc60
movsd (%rax), %xmm0
leaq 0x2887e7(%rip), %rdi    # 0x39b400
leaq 0x7f034(%rip), %rsi     # 0x191c54
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 0x2887bf(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112c50
jmp 0x112c9b
leaq 0x259019(%rip), %rax    # 0x36bc70
movsd (%rax), %xmm0
leaq 0x28879e(%rip), %rdi    # 0x39b400
leaq 0x7f009(%rip), %rsi     # 0x191c72
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 0x288776(%rip), %rcx    # 0x39b400
callq 0x10ee0
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x112c99
jmp 0x112c9b
jmp 0x112c9b
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)