// File: /workspace/github_cpp_makefile_star2_O2/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 %ecx, -0x34(%rbp)
movl %edx, -0x38(%rbp)
leaq 0x255250(%rip), %rax    # 0x2f67a8
cmpb $0x49, (%rax)
jne 0xa156c
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 0x255208(%rip), %rax    # 0x2f6784
cmpl $0x1, (%rax)
jle 0xa1633
leal (%rbx,%rbx), %eax
movl %eax, -0x30(%rbp)
addl -0x2c(%rbp), %ebx
pushq $0x1
popq %r12
cmpl -0x30(%rbp), %r12d
jg 0xa155d
cmpl $0x9, %r12d
jb 0xa15aa
leaq 0x185799(%rip), %rax    # 0x226d3e
cmpb $0x0, (%rax)
jne 0xa155d
leaq 0x161257(%rip), %rax    # 0x202808
movslq (%rax), %rax
leaq 0x284a55(%rip), %rcx    # 0x326010
addq %rax, %rcx
addq $-0x1e, %rcx
movl %r15d, %edi
movl %r14d, %esi
movq %rbx, %r13
pushq $0xf
popq %rbx
movl %ebx, %edx
callq 0xe2d2
leaq 0x16127d(%rip), %rax    # 0x202859
cmpb $0x1, (%rax)
leaq 0x6f944(%rip), %rcx     # 0x110f2a
leaq 0x6f93c(%rip), %rax     # 0x110f29
cmoveq %rax, %rcx
movl %r15d, %edi
movl %r14d, %esi
movl %ebx, %edx
movq %r13, %rbx
callq 0xe2d2
cmpl %r12d, -0x38(%rbp)
movl -0x34(%rbp), %eax
cmovel %eax, %r14d
cmovel -0x2c(%rbp), %r15d
cmpl %eax, %r14d
setl %al
cmpl %ebx, %r15d
setl %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0xa155d
incl %r15d
incl %r12d
jmp 0xa1592
pushq $0x1
popq %r13
pushq $0xf
popq %r12
leaq 0x187962(%rip), %rax    # 0x228fa4
movl (%rax), %eax
cmpl %ebx, %eax
cmovgel %ebx, %eax
cmpl %eax, %r13d
jg 0xa155d
cmpl $0x9, %r13d
jb 0xa1668
leaq 0x1856df(%rip), %rax    # 0x226d3e
cmpb $0x0, (%rax)
jne 0xa155d
leaq 0x161199(%rip), %rax    # 0x202808
movl (%rax), %ecx
movl %ecx, %eax
cltd
pushq $0x2
popq %rsi
idivl %esi
cmpl %r14d, %eax
jle 0xa168e
leaq 0x161123(%rip), %rax    # 0x2027a8
cmpl (%rax), %r15d
jge 0xa155d
leaq 0x16110f(%rip), %rax    # 0x2027a4
subl (%rax), %ecx
incl %ecx
movslq %ecx, %rcx
addq 0x988d5(%rip), %rcx     # 0x139f78
movl %r15d, %edi
movl %r14d, %esi
movl %r12d, %edx
callq 0xe2d2
leaq 0x1611a1(%rip), %rax    # 0x202859
cmpb $0x1, (%rax)
leaq 0x6f868(%rip), %rcx     # 0x110f2a
leaq 0x6f860(%rip), %rax     # 0x110f29
cmoveq %rax, %rcx
movl %r15d, %edi
movl %r14d, %esi
movl %r12d, %edx
callq 0xe2d2
incl %r15d
incl %r13d
jmp 0xa163b