// File: /workspace/github_cpp_makefile_star2_O2/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 0x257ad1(%rip), %rax    # 0x2f67a8
cmpb $0x44, (%rax)
jne 0x9ecfc
leaq 0x163b21(%rip), %rax    # 0x202804
movl (%rax), %eax
leaq 0x163b28(%rip), %rcx    # 0x202814
cltd
idivl (%rcx)
movl %eax, %r12d
addl $-0x3, %r12d
pushq $0x3
popq %r13
jmp 0x9ed09
movl %esi, %r13d
leaq 0x163aa2(%rip), %rax    # 0x2027a8
movl (%rax), %r12d
leaq 0x287298(%rip), %rax    # 0x325fa8
movsd (%rax), %xmm0
leaq 0x287505(%rip), %r15    # 0x326220
leaq 0x719b4(%rip), %rsi     # 0x1106d6
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r15)
leal 0x1(%rbx), %r14d
pushq $0xf
popq %rdx
movl %ebx, %edi
movl %r13d, %esi
movq %r15, %rcx
callq 0xe2d2
cmpl %r12d, %r14d
jge 0x9efc0
leaq 0x28725b(%rip), %rax    # 0x325fb0
movsd (%rax), %xmm0
leaq 0x71994(%rip), %rsi     # 0x1106f4
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r15)
movq %r15, %rcx
movl %r13d, %r15d
leal 0x2(%rbx), %r13d
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %r15d, %esi
callq 0xe2d2
cmpl %r12d, %r13d
jge 0x9efbd
leaq 0x287221(%rip), %rax    # 0x325fb8
movsd (%rax), %xmm0
leaq 0x71970(%rip), %rsi     # 0x110712
leaq 0x287477(%rip), %r14    # 0x326220
movq %r14, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r14)
movq %r14, %rcx
leal 0x3(%rbx), %r14d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl %r15d, %esi
callq 0xe2d2
cmpl %r12d, %r14d
jge 0x9efc0
leaq 0x2871e3(%rip), %rax    # 0x325fc0
cvttsd2si (%rax), %edx
leaq 0x71948(%rip), %rsi     # 0x110730
leaq 0x287431(%rip), %r13    # 0x326220
movq %r13, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r13)
movq %r13, %rcx
leal 0x4(%rbx), %r13d
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %r15d, %esi
callq 0xe2d2
cmpl %r12d, %r13d
jge 0x9efbd
leaq 0x2871a5(%rip), %rax    # 0x325fc8
movsd (%rax), %xmm0
leaq 0x71921(%rip), %rsi     # 0x11074f
leaq 0x2873eb(%rip), %r14    # 0x326220
movq %r14, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r14)
movq %r14, %rcx
leal 0x5(%rbx), %r14d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl %r15d, %esi
callq 0xe2d2
cmpl %r12d, %r14d
jge 0x9efc0
movl %r15d, %r13d
leaq 0x287164(%rip), %rax    # 0x325fd0
movsd (%rax), %xmm0
leaq 0x718f6(%rip), %rsi     # 0x11076d
leaq 0x2873a2(%rip), %r15    # 0x326220
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movb $0x0, 0x20(%r15)
movq %r15, %rcx
leal 0x6(%rbx), %r15d
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %r13d, -0x30(%rbp)
movl %r13d, %esi
callq 0xe2d2
movl %r15d, %r13d
cmpl %r12d, %r15d
jge 0x9efbd
leaq 0x718d2(%rip), %rsi     # 0x11078b
leaq 0x287120(%rip), %rdx    # 0x325fe0
leaq 0x287359(%rip), %r15    # 0x326220
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r15)
leal 0x7(%rbx), %r14d
pushq $0xf
popq %rdx
movl %r13d, %edi
movl -0x30(%rbp), %r13d
movl %r13d, %esi
movq %r15, %rcx
callq 0xe2d2
cmpl %r12d, %r14d
jge 0x9efc0
leaq 0x287105(%rip), %rax    # 0x326004
movl (%rax), %edx
leaq 0x718a1(%rip), %rsi     # 0x1107a9
leaq 0x287311(%rip), %r15    # 0x326220
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r15)
movq %r15, %rcx
leal 0x8(%rbx), %r15d
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %r13d, %esi
callq 0xe2d2
movl %r15d, -0x2c(%rbp)
cmpl %r12d, %r15d
jge 0x9efd2
leaq 0x2870c1(%rip), %rax    # 0x326008
movl (%rax), %edx
leaq 0x71877(%rip), %rsi     # 0x1107c7
leaq 0x2872c9(%rip), %r15    # 0x326220
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r15)
leal 0x9(%rbx), %r14d
pushq $0xf
popq %rdx
movl -0x2c(%rbp), %edi
movl %r13d, %esi
movq %r15, %rcx
callq 0xe2d2
cmpl %r12d, %r14d
jge 0x9efc0
leaq 0x7185e(%rip), %rsi     # 0x1107e5
leaq 0x286e42(%rip), %rdx    # 0x325dd0
leaq 0x28728b(%rip), %r15    # 0x326220
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movb $0x0, 0x20(%r15)
addl $0xa, %ebx
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %r13d, %esi
movq %r15, %rcx
callq 0xe2d2
movl %ebx, %r14d
jmp 0x9efc0
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 0x9efc0