// File: /workspace/github_cpp_makefile_star2_O1/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 0x25dc94(%rip), %rax    # 0x30c7a8
cmpb $0x44, (%rax)
jne 0xaeb3b
leaq 0x169ce4(%rip), %rax    # 0x218804
movl (%rax), %eax
leaq 0x169ceb(%rip), %rcx    # 0x218814
cltd
idivl (%rcx)
movl %eax, %r12d
addl $-0x3, %r12d
movl $0x3, %r13d
jmp 0xaeb48
movl %esi, %r13d
leaq 0x169c63(%rip), %rax    # 0x2187a8
movl (%rax), %r12d
leaq 0x28d459(%rip), %rax    # 0x33bfa8
movsd (%rax), %xmm0
leaq 0x28d6c6(%rip), %r15    # 0x33c220
leaq 0x77b50(%rip), %rsi     # 0x1266b1
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 0xe7d0
cmpl %r12d, %r14d
jge 0xaee13
leaq 0x28d41a(%rip), %rax    # 0x33bfb0
movsd (%rax), %xmm0
leaq 0x77b2e(%rip), %rsi     # 0x1266cf
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 0xe7d0
cmpl %r12d, %r13d
jge 0xaee10
leaq 0x28d3de(%rip), %rax    # 0x33bfb8
movsd (%rax), %xmm0
leaq 0x77b08(%rip), %rsi     # 0x1266ed
leaq 0x28d634(%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 0xe7d0
cmpl %r12d, %r14d
jge 0xaee13
leaq 0x28d39e(%rip), %rax    # 0x33bfc0
cvttsd2si (%rax), %edx
leaq 0x77ade(%rip), %rsi     # 0x12670b
leaq 0x28d5ec(%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 0xe7d0
cmpl %r12d, %r13d
jge 0xaee10
leaq 0x28d35e(%rip), %rax    # 0x33bfc8
movsd (%rax), %xmm0
leaq 0x77ab5(%rip), %rsi     # 0x12672a
leaq 0x28d5a4(%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 0xe7d0
cmpl %r12d, %r14d
jge 0xaee13
movl %r15d, %r13d
leaq 0x28d31b(%rip), %rax    # 0x33bfd0
movsd (%rax), %xmm0
leaq 0x77a88(%rip), %rsi     # 0x126748
leaq 0x28d559(%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 0xe7d0
movl %r15d, %r13d
cmpl %r12d, %r15d
jge 0xaee10
leaq 0x77a62(%rip), %rsi     # 0x126766
leaq 0x28d2d5(%rip), %rdx    # 0x33bfe0
leaq 0x28d50e(%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 0xe7d0
cmpl %r12d, %r14d
jge 0xaee13
leaq 0x28d2b8(%rip), %rax    # 0x33c004
movl (%rax), %edx
leaq 0x77a2f(%rip), %rsi     # 0x126784
leaq 0x28d4c4(%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 0xe7d0
movl %r15d, -0x2c(%rbp)
cmpl %r12d, %r15d
jge 0xaee25
leaq 0x28d272(%rip), %rax    # 0x33c008
movl (%rax), %edx
leaq 0x77a03(%rip), %rsi     # 0x1267a2
leaq 0x28d47a(%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 0xe7d0
cmpl %r12d, %r14d
jge 0xaee13
leaq 0x779e8(%rip), %rsi     # 0x1267c0
leaq 0x28cff1(%rip), %rdx    # 0x33bdd0
leaq 0x28d43a(%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 0xe7d0
movl %ebx, %r14d
jmp 0xaee13
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 0xaee13