// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathgps.cpp
// Function: show_brandy_info(int, int)
int show_brandy_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;
   }

   color = WHITE;
   sprintf(out, "Instant phase:   %g          ", inst_phase); 
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Phase control:   %.6f        ", phase_control_val); 
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Average phase:   %.6f        ", avg_phase); 
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Freq control:    %-6d         ", (int) freq_control_val); 
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Last freq corr:  %g          ", last_freq_corr); 
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Freq trend:      %g          ", freq_trend); 
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Last correction: %s          ", last_correction); 
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "Phase status:    0x%02X      ", phase_status); 
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "PLL constraint:  0x%02X      ", pll_constraint);
   out[32] = 0;
   vidstr(row++, col, color, out);
   if(row >= max_row) return row;

   sprintf(out, "OSC type:        %s          ", brandy_osc); 
   out[32] = 0;
   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, %ebx
leaq 0x25d9a1(%rip), %rax    # 0x30c7a8
cmpb $0x44, (%rax)
jne 0xaee2e
leaq 0x1699f1(%rip), %rax    # 0x218804
movl (%rax), %eax
leaq 0x1699f8(%rip), %rcx    # 0x218814
cltd
idivl (%rcx)
movl %eax, %r12d
addl $-0x3, %r12d
movl $0x3, %r13d
jmp 0xaee3b
movl %esi, %r13d
leaq 0x169970(%rip), %rax    # 0x2187a8
movl (%rax), %r12d
leaq 0x28d166(%rip), %rax    # 0x33bfa8
movsd (%rax), %xmm0
leaq 0x28d3d3(%rip), %r15    # 0x33c220
leaq 0x7793d(%rip), %rsi     # 0x126791
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r15)
leal 0x1(%rbx), %r14d
movl %ebx, %edi
movl %r13d, %esi
movl $0xf, %edx
movq %r15, %rcx
callq 0xe787
cmpl %r12d, %r14d
jge 0xaf106
leaq 0x28d127(%rip), %rax    # 0x33bfb0
movsd (%rax), %xmm0
leaq 0x7791b(%rip), %rsi     # 0x1267af
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r15)
movq %r15, %rcx
movl %r13d, %r15d
leal 0x2(%rbx), %r13d
movl %r14d, %edi
movl %r15d, %esi
movl $0xf, %edx
callq 0xe787
cmpl %r12d, %r13d
jge 0xaf103
leaq 0x28d0eb(%rip), %rax    # 0x33bfb8
movsd (%rax), %xmm0
leaq 0x778f5(%rip), %rsi     # 0x1267cd
leaq 0x28d341(%rip), %r14    # 0x33c220
movq %r14, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r14)
movq %r14, %rcx
leal 0x3(%rbx), %r14d
movl %r13d, %edi
movl %r15d, %esi
movl $0xf, %edx
callq 0xe787
cmpl %r12d, %r14d
jge 0xaf106
leaq 0x28d0ab(%rip), %rax    # 0x33bfc0
cvttsd2si (%rax), %edx
leaq 0x778cb(%rip), %rsi     # 0x1267eb
leaq 0x28d2f9(%rip), %r13    # 0x33c220
movq %r13, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r13)
movq %r13, %rcx
leal 0x4(%rbx), %r13d
movl %r14d, %edi
movl %r15d, %esi
movl $0xf, %edx
callq 0xe787
cmpl %r12d, %r13d
jge 0xaf103
leaq 0x28d06b(%rip), %rax    # 0x33bfc8
movsd (%rax), %xmm0
leaq 0x778a2(%rip), %rsi     # 0x12680a
leaq 0x28d2b1(%rip), %r14    # 0x33c220
movq %r14, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r14)
movq %r14, %rcx
leal 0x5(%rbx), %r14d
movl %r13d, %edi
movl %r15d, %esi
movl $0xf, %edx
callq 0xe787
cmpl %r12d, %r14d
jge 0xaf106
movl %r15d, %r13d
leaq 0x28d028(%rip), %rax    # 0x33bfd0
movsd (%rax), %xmm0
leaq 0x77875(%rip), %rsi     # 0x126828
leaq 0x28d266(%rip), %r15    # 0x33c220
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r15)
movq %r15, %rcx
leal 0x6(%rbx), %r15d
movl %r14d, %edi
movl %r13d, -0x30(%rbp)
movl %r13d, %esi
movl $0xf, %edx
callq 0xe787
movl %r15d, %r13d
cmpl %r12d, %r15d
jge 0xaf103
leaq 0x7784f(%rip), %rsi     # 0x126846
leaq 0x28cfe2(%rip), %rdx    # 0x33bfe0
leaq 0x28d21b(%rip), %r15    # 0x33c220
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r15)
leal 0x7(%rbx), %r14d
movl %r13d, %edi
movl -0x30(%rbp), %r13d
movl %r13d, %esi
movl $0xf, %edx
movq %r15, %rcx
callq 0xe787
cmpl %r12d, %r14d
jge 0xaf106
leaq 0x28cfc5(%rip), %rax    # 0x33c004
movl (%rax), %edx
leaq 0x7781c(%rip), %rsi     # 0x126864
leaq 0x28d1d1(%rip), %r15    # 0x33c220
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r15)
movq %r15, %rcx
leal 0x8(%rbx), %r15d
movl %r14d, %edi
movl %r13d, %esi
movl $0xf, %edx
callq 0xe787
movl %r15d, -0x2c(%rbp)
cmpl %r12d, %r15d
jge 0xaf118
leaq 0x28cf7f(%rip), %rax    # 0x33c008
movl (%rax), %edx
leaq 0x777f0(%rip), %rsi     # 0x126882
leaq 0x28d187(%rip), %r15    # 0x33c220
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r15)
leal 0x9(%rbx), %r14d
movl -0x2c(%rbp), %edi
movl %r13d, %esi
movl $0xf, %edx
movq %r15, %rcx
callq 0xe787
cmpl %r12d, %r14d
jge 0xaf106
leaq 0x777d5(%rip), %rsi     # 0x1268a0
leaq 0x28ccfe(%rip), %rdx    # 0x33bdd0
leaq 0x28d147(%rip), %r15    # 0x33c220
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r15)
addl $0xa, %ebx
movl %r14d, %edi
movl %r13d, %esi
movl $0xf, %edx
movq %r15, %rcx
callq 0xe787
movl %ebx, %r14d
jmp 0xaf106
movl %r13d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl -0x2c(%rbp), %r14d
jmp 0xaf106