// File: /workspace/github_cpp_makefile_star2_O3/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 0x25afb3(%rip), %rax    # 0x30c7a8
cmpb $0x49, (%rax)
jne 0xb1809
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 0x25af6b(%rip), %rax    # 0x30c784
cmpl $0x1, (%rax)
jle 0xb18ee
testl %ebx, %ebx
jle 0xb17fa
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 0xb1854
leaq 0x18b4ef(%rip), %rax    # 0x23cd3e
cmpb $0x0, (%rax)
jne 0xb17fa
leaq 0x166fad(%rip), %rax    # 0x218808
movslq (%rax), %rax
leaq 0x28a7ab(%rip), %rcx    # 0x33c010
addq %rax, %rcx
addq $-0x1e, %rcx
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe787
leaq 0x166fd6(%rip), %rax    # 0x218859
cmpb $0x1, (%rax)
leaq 0x75758(%rip), %rcx     # 0x126fe5
leaq 0x75750(%rip), %rax     # 0x126fe4
cmoveq %rax, %rcx
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe787
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 0xb17fa
incl %r15d
movq -0x38(%rbp), %rax
addl %r12d, %eax
incl %eax
movl %r12d, %ecx
incl %ecx
movl %ecx, %r12d
cmpl $0x1, %eax
jne 0xb1842
jmp 0xb17fa
leaq 0x18d6af(%rip), %rax    # 0x23efa4
movl (%rax), %eax
cmpl %ebx, %eax
cmovgel %ebx, %eax
testl %eax, %eax
jle 0xb17fa
xorl %r12d, %r12d
leal 0x1(%r12), %r13d
cmpl $0x9, %r13d
jb 0xb1922
leaq 0x18b425(%rip), %rax    # 0x23cd3e
cmpb $0x0, (%rax)
jne 0xb17fa
addl %r15d, %r12d
leaq 0x166edc(%rip), %rax    # 0x218808
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
cmpl %r14d, %ecx
jle 0xb194c
leaq 0x166e65(%rip), %rcx    # 0x2187a8
cmpl (%rcx), %r12d
jge 0xb17fa
leaq 0x166e51(%rip), %rcx    # 0x2187a4
subl (%rcx), %eax
incl %eax
movslq %eax, %rcx
addq 0x9e617(%rip), %rcx     # 0x14ff78
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe787
leaq 0x166ee1(%rip), %rax    # 0x218859
cmpb $0x1, (%rax)
leaq 0x75663(%rip), %rcx     # 0x126fe5
leaq 0x7565b(%rip), %rax     # 0x126fe4
cmoveq %rax, %rcx
movl %r12d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe787
leaq 0x18d600(%rip), %rax    # 0x23efa4
movl (%rax), %eax
cmpl %ebx, %eax
cmovgel %ebx, %eax
movl %r13d, %r12d
cmpl %eax, %r13d
jl 0xb1907
jmp 0xb17fa