// File: 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
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
movl %r8d, -0x14(%rbp)
movl %r9d, -0x18(%rbp)
leaq 0x27abe5(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x49, %eax
jne 0xf0db0
jmp 0xf0fb7
leaq 0x27abad(%rip), %rax    # 0x36b964
cmpl $0x1, (%rax)
jle 0xf0ea5
movl -0x18(%rbp), %eax
shll %eax
movl %eax, -0x1c(%rbp)
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jg 0xf0ea0
leaq 0x1ab13c(%rip), %rax    # 0x29bf1e
cmpb $0x0, (%rax)
je 0xf0df2
cmpl $0x8, -0x20(%rbp)
jle 0xf0df2
jmp 0xf0ea0
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
leaq 0x186be9(%rip), %rax    # 0x2779e8
movl (%rax), %eax
subl $0x1e, %eax
cltq
leaq 0x2aa3e3(%rip), %rcx    # 0x39b1f0
addq %rax, %rcx
movl $0xf, %edx
callq 0x10ee0
leaq 0x186c18(%rip), %rax    # 0x277a39
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0xf0e42
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x9954e(%rip), %rcx     # 0x18a389
callq 0x10ee0
jmp 0xf0e59
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x99536(%rip), %rcx     # 0x18a38a
callq 0x10ee0
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x20(%rbp), %eax
cmpl -0xc(%rbp), %eax
jne 0xf0e79
movl -0x10(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x10(%rbp), %eax
jl 0xf0e90
movl -0x4(%rbp), %eax
movl -0x14(%rbp), %ecx
addl -0x18(%rbp), %ecx
cmpl %ecx, %eax
jle 0xf0e90
jmp 0xf0ea0
jmp 0xf0e92
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xf0dcf
jmp 0xf0fb5
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x1ad2cb(%rip), %rax    # 0x29e184
movl (%rax), %eax
cmpl -0x18(%rbp), %eax
jle 0xf0ec8
movl -0x18(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0xf0ed4
leaq 0x1ad2b5(%rip), %rax    # 0x29e184
movl (%rax), %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
movl -0x28(%rbp), %ecx
cmpl %ecx, %eax
jg 0xf0fb3
leaq 0x1ab035(%rip), %rax    # 0x29bf1e
cmpb $0x0, (%rax)
je 0xf0ef9
cmpl $0x8, -0x20(%rbp)
jle 0xf0ef9
jmp 0xf0fb3
movl -0x8(%rbp), %eax
movl %eax, -0x2c(%rbp)
leaq 0x186ae2(%rip), %rax    # 0x2779e8
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jge 0xf0f2c
movl -0x4(%rbp), %eax
leaq 0x186a65(%rip), %rcx    # 0x277988
cmpl (%rcx), %eax
jl 0xf0f2c
jmp 0xf0fb3
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
leaq 0x186aaf(%rip), %rax    # 0x2779e8
movl (%rax), %eax
leaq 0x186a42(%rip), %rcx    # 0x277984
subl (%rcx), %eax
addl $0x1, %eax
cltq
leaq 0x2aa2a0(%rip), %rcx    # 0x39b1f0
addq %rax, %rcx
movl $0xf, %edx
callq 0x10ee0
leaq 0x186ad5(%rip), %rax    # 0x277a39
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0xf0f85
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x9940b(%rip), %rcx     # 0x18a389
callq 0x10ee0
jmp 0xf0f9c
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x993f3(%rip), %rcx     # 0x18a38a
callq 0x10ee0
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xf0eac
jmp 0xf0fb5
jmp 0xf0fb7
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)