// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebx
movl %edi, %r15d
leaq 0x150c42(%rip), %rax    # 0x218804
movl (%rax), %eax
cmpl $0x1e0, %eax            # imm = 0x1E0
jg 0xc7bd5
leaq 0x150c89(%rip), %rcx    # 0x21885b
movb $0x1, (%rcx)
cmpl $0x3e6, %r14d           # imm = 0x3E6
jg 0xc7c35
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 0x150c15(%rip), %rax    # 0x218814
movl (%rax), %eax
imull %eax, %esi
leaq 0x150b8d(%rip), %rcx    # 0x218798
movl (%rcx), %edx
incl %edx
leaq 0x150bfa(%rip), %rcx    # 0x218810
imull (%rcx), %edx
decl %edx
movl %r14d, %ecx
subl %ebx, %ecx
imull %eax, %ecx
xorl %edi, %edi
xorl %r8d, %r8d
callq 0xf30c
movl %ebx, %r15d
movl %r12d, %ebx
jmp 0xc7c3a
callq 0xed5e
leaq 0x246077(%rip), %rax    # 0x30dcb8
movl (%rax), %edx
leaq 0x246072(%rip), %rax    # 0x30dcbc
movl (%rax), %ecx
leaq 0x24606d(%rip), %rax    # 0x30dcc0
movsd (%rax), %xmm0
mulsd 0x413c9(%rip), %xmm0    # 0x109028
leaq 0x2745ba(%rip), %r13    # 0x33c220
leaq 0x6728f(%rip), %rsi     # 0x12eefc
movq %r13, %rdi
movb $0x1, %al
callq 0x9060
leal 0x1(%r15), %r12d
movl %r15d, %edi
movl %ebx, %esi
movl $0xf, %edx
movq %r13, %rcx
callq 0xe7d0
cmpl %r14d, %r12d
jge 0xc7ddf
leaq 0x244dc3(%rip), %rax    # 0x30ca60
movsd (%rax), %xmm0
leaq 0x274578(%rip), %rdi    # 0x33c220
leaq 0x6735e(%rip), %rsi     # 0x12f00d
movb $0x1, %al
callq 0x9060
leal 0x2(%r15), %r13d
movl %r12d, %edi
movl %ebx, -0x2c(%rbp)
movl %ebx, %esi
movl $0xf, %edx
leaq 0x274552(%rip), %rcx    # 0x33c220
callq 0xe7d0
cmpl %r14d, %r13d
jge 0xc7ddc
leaq 0x244d85(%rip), %rax    # 0x30ca68
movsd (%rax), %xmm0
leaq 0x274532(%rip), %rbx    # 0x33c220
leaq 0x67336(%rip), %rsi     # 0x12f02b
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x3(%r15), %r12d
movl %r13d, %edi
movl -0x2c(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe7d0
cmpl %r14d, %r12d
jge 0xc7ddf
leaq 0x244d52(%rip), %rax    # 0x30ca78
movsd (%rax), %xmm0
leaq 0x2744ef(%rip), %rbx    # 0x33c220
leaq 0x67311(%rip), %rsi     # 0x12f049
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x4(%r15), %r13d
movl %r12d, %edi
movl -0x2c(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe7d0
cmpl %r14d, %r13d
jge 0xc7ddc
leaq 0x244d1b(%rip), %rax    # 0x30ca80
movsd (%rax), %xmm0
leaq 0x2744b0(%rip), %rbx    # 0x33c220
leaq 0x672f1(%rip), %rsi     # 0x12f068
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
leal 0x5(%r15), %r12d
movl %r13d, %edi
movl -0x2c(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe7d0
cmpl %r14d, %r12d
jge 0xc7ddf
leaq 0x244cec(%rip), %rax    # 0x30ca90
movsd (%rax), %xmm0
leaq 0x274471(%rip), %rbx    # 0x33c220
leaq 0x672d0(%rip), %rsi     # 0x12f086
movq %rbx, %rdi
movb $0x1, %al
callq 0x9060
addl $0x6, %r15d
movl %r12d, %edi
movl -0x2c(%rbp), %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe7d0
movl %r15d, %r12d
jmp 0xc7ddf
movl %r13d, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq