// File: /workspace/github_cpp_makefile_star2_O1/jkingan[P]ladyheather/heathgps.cpp
// Function: erase_sat_table(int, int, int, int, int, int)
void erase_sat_table(int row,int col, int col_switch, int col2, int top_row, int rows_avail)
{
int i,j;

   // erase the old sat info table display

   if(zoom_screen == 'I') ;
   else if(sat_cols > 1) {
      i = rows_avail*2;

      for(j=1; j<=i; j++) {  // show spaces for unused satellites
         if(all_adevs && (j > 8)) break;  // only room for 8 sats here

         vidstr(row, col, WHITE, &blanks[TEXT_COLS-COL2]);
         if(small_font == 1) vidstr(row, col, WHITE, "  ..");
         else                vidstr(row, col, WHITE, " ..");
         ++row;

         if(j == col_switch) {
            col = col2;
            row = top_row+1;
         }
         if((col >= col2) && (row > (top_row+rows_avail))) break;
      }
   }
   else {
      for(j=1; j<=SAT_SHOW_ROWS; j++) {  // show spaces for unused satellites
         if(all_adevs && (j > 8)) break;  // only room for 8 sats here
         if((col < (TEXT_COLS/2)) && (row >= MOUSE_ROW)) break;

         vidstr(row, col, WHITE, &blanks[TEXT_COLS-FILTER_COL+1]);
         if(small_font == 1) vidstr(row, col, WHITE, "  ..");
         else                vidstr(row, col, WHITE, " ..");
         ++row;
      }
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, -0x2c(%rbp)
movl %edx, -0x30(%rbp)
leaq 0x25b2ab(%rip), %rax    # 0x30c7a8
cmpb $0x49, (%rax)
jne 0xb1511
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r9d, %ebx
movl %esi, %r14d
movl %edi, %r15d
leaq 0x25b263(%rip), %rax    # 0x30c784
cmpl $0x1, (%rax)
jle 0xb15f6
testl %ebx, %ebx
jle 0xb1502
movl %ecx, %r13d
leal (%rbx,%rbx), %eax
addl -0x2c(%rbp), %ebx
cmpl $0x2, %eax
movl $0x1, %r12d
cmovll %r12d, %eax
negl %eax
movq %rax, -0x38(%rbp)
cmpl $0x9, %r12d
jb 0xb155c
leaq 0x18b7e7(%rip), %rax    # 0x23cd3e
cmpb $0x0, (%rax)
jne 0xb1502
leaq 0x1672a5(%rip), %rax    # 0x218808
movslq (%rax), %rax
leaq 0x28aaa3(%rip), %rcx    # 0x33c010
addq %rax, %rcx
addq $-0x1e, %rcx
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe7d0
leaq 0x1672ce(%rip), %rax    # 0x218859
cmpb $0x1, (%rax)
leaq 0x75970(%rip), %rcx     # 0x126f05
leaq 0x75968(%rip), %rax     # 0x126f04
cmoveq %rax, %rcx
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe7d0
cmpl %r12d, -0x30(%rbp)
cmovel %r13d, %r14d
cmovel -0x2c(%rbp), %r15d
cmpl %r13d, %r14d
setl %al
cmpl %ebx, %r15d
setl %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0xb1502
incl %r15d
movq -0x38(%rbp), %rax
addl %r12d, %eax
incl %eax
movl %r12d, %ecx
incl %ecx
movl %ecx, %r12d
cmpl $0x1, %eax
jne 0xb154a
jmp 0xb1502
leaq 0x18d9a7(%rip), %rax    # 0x23efa4
movl (%rax), %eax
cmpl %ebx, %eax
cmovgel %ebx, %eax
testl %eax, %eax
jle 0xb1502
xorl %r12d, %r12d
leal 0x1(%r12), %r13d
cmpl $0x9, %r13d
jb 0xb162a
leaq 0x18b71d(%rip), %rax    # 0x23cd3e
cmpb $0x0, (%rax)
jne 0xb1502
addl %r15d, %r12d
leaq 0x1671d4(%rip), %rax    # 0x218808
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
cmpl %r14d, %ecx
jle 0xb1654
leaq 0x16715d(%rip), %rcx    # 0x2187a8
cmpl (%rcx), %r12d
jge 0xb1502
leaq 0x167149(%rip), %rcx    # 0x2187a4
subl (%rcx), %eax
incl %eax
movslq %eax, %rcx
addq 0x9e90f(%rip), %rcx     # 0x14ff78
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe7d0
leaq 0x1671d9(%rip), %rax    # 0x218859
cmpb $0x1, (%rax)
leaq 0x7587b(%rip), %rcx     # 0x126f05
leaq 0x75873(%rip), %rax     # 0x126f04
cmoveq %rax, %rcx
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe7d0
leaq 0x18d8f8(%rip), %rax    # 0x23efa4
movl (%rax), %eax
cmpl %ebx, %eax
cmovgel %ebx, %eax
movl %r13d, %r12d
cmpl %eax, %r13d
jl 0xb160f
jmp 0xb1502