// File: jkingan[P]ladyheather/heathgps.cpp
// Function: saw_ebolt()
void saw_ebolt()
{
   // This routine is called if message that is only supported
   // on the Thunderbolt-E is received or when the received satellite count 
   // changes.

   temp_sats = max_sat_count;

   if((small_font == 1) && (SCREEN_HEIGHT < SHORT_SCREEN) && (text_mode == 0)) {
      temp_sats = 8;
      eofs = 1;
   }
   else if((TEXT_HEIGHT <= 12) || (SCREEN_HEIGHT >= MEDIUM_HEIGHT)) {
      if(rcvr_type != TSIP_RCVR) ;
      else temp_sats = 12;
      eofs = 1;
   }
   else {
      if(rcvr_type != TSIP_RCVR) ;
      else if(plot_stat_info) temp_sats = 11;
      else if(res_t == RES_T) temp_sats = 12;
      else if(res_t)          temp_sats = 14;
      else                    temp_sats = 12;
      eofs = 0;
   }
if(ACU_GG) ;
else if(ACU_360) ;
else if(ACUTIME);
else if(PALISADE) ;
else if(SV6_FAMILY) temp_sats = 8;

   // there is no room to show all the sats if the big clock is on
   if(0 && plot_digital_clock && (time_col >= (TEXT_COLS/2))) { 
      temp_sats = 8; //// what if sat_info is in plot area?
   }

   ebolt = 1;
   if(ebolt != last_ebolt) {
      max_sats = temp_sats;
if(res_t == RES_T) max_sats = 12;
else if(res_t) max_sats = 14;
if(max_sats > max_sat_display) max_sats = max_sat_display;
config_sat_rows();
      last_ebolt = ebolt;
config_screen(200);
      erase_screen();
      need_redraw = 2000;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x2e9c35(%rip), %rax    # 0x36b960
movl (%rax), %ecx
leaq 0x21c3cc(%rip), %rax    # 0x29e100
movl %ecx, (%rax)
leaq 0x1f5cfc(%rip), %rax    # 0x277a39
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x81d7f
leaq 0x1f5c98(%rip), %rax    # 0x2779e4
cmpl $0x258, (%rax)          # imm = 0x258
jge 0x81d7f
leaq 0x1f5c5d(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
jne 0x81d7f
leaq 0x21c399(%rip), %rax    # 0x29e100
movl $0x8, (%rax)
leaq 0x21c3ac(%rip), %rax    # 0x29e120
movl $0x1, (%rax)
jmp 0x81e4d
leaq 0x1f5c6e(%rip), %rax    # 0x2779f4
cmpl $0xc, (%rax)
jle 0x81d9a
leaq 0x1f5c52(%rip), %rax    # 0x2779e4
cmpl $0x2c6, (%rax)          # imm = 0x2C6
jl 0x81dc8
leaq 0x1f5d0f(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
je 0x81da9
jmp 0x81db6
leaq 0x21c350(%rip), %rax    # 0x29e100
movl $0xc, (%rax)
leaq 0x21c363(%rip), %rax    # 0x29e120
movl $0x1, (%rax)
jmp 0x81e4b
leaq 0x1f5ce1(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
je 0x81dd7
jmp 0x81e3e
leaq 0x1f87e6(%rip), %rax    # 0x27a5c4
cmpb $0x0, (%rax)
je 0x81df2
leaq 0x21c316(%rip), %rax    # 0x29e100
movl $0xb, (%rax)
jmp 0x81e3c
leaq 0x1f5ceb(%rip), %rax    # 0x277ae4
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x81e10
leaq 0x21c2f8(%rip), %rax    # 0x29e100
movl $0xc, (%rax)
jmp 0x81e3a
leaq 0x1f5ccd(%rip), %rax    # 0x277ae4
cmpb $0x0, (%rax)
je 0x81e2b
leaq 0x21c2dd(%rip), %rax    # 0x29e100
movl $0xe, (%rax)
jmp 0x81e38
leaq 0x21c2ce(%rip), %rax    # 0x29e100
movl $0xc, (%rax)
jmp 0x81e3a
jmp 0x81e3c
jmp 0x81e3e
leaq 0x21c2db(%rip), %rax    # 0x29e120
movl $0x0, (%rax)
jmp 0x81e4d
leaq 0x1f5c5c(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x81e77
leaq 0x1f8353(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x81e77
leaq 0x1f5c6b(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x81e77
jmp 0x81f35
leaq 0x1f5c32(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x81ead
leaq 0x1f8329(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x81ead
leaq 0x1f5c41(%rip), %rax    # 0x277ad8
cmpl $0x33, (%rax)
je 0x81ea8
leaq 0x1f5c35(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x81ead
jmp 0x81f33
leaq 0x1f5bfc(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x81ec8
leaq 0x1f82f3(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x81ec8
jmp 0x81f31
leaq 0x1f5be1(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x81ee3
leaq 0x1f82d8(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
jne 0x81ee3
jmp 0x81f2f
leaq 0x1f5bc6(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x81f2d
leaq 0x1f82bd(%rip), %rax    # 0x27a1b4
cmpl $0x36, (%rax)
je 0x81f20
leaq 0x1f82b1(%rip), %rax    # 0x27a1b4
cmpl $0x33, (%rax)
je 0x81f20
leaq 0x1f82a5(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
je 0x81f20
leaq 0x1f8299(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x81f2d
leaq 0x21c1d9(%rip), %rax    # 0x29e100
movl $0x8, (%rax)
jmp 0x81f2f
jmp 0x81f31
jmp 0x81f33
jmp 0x81f35
leaq 0x21c1c8(%rip), %rax    # 0x29e104
movl $0x1, (%rax)
leaq 0x21c1bb(%rip), %rax    # 0x29e104
movl (%rax), %eax
leaq 0x21c1b6(%rip), %rcx    # 0x29e108
cmpl (%rcx), %eax
je 0x81ffe
leaq 0x21c19f(%rip), %rax    # 0x29e100
movl (%rax), %ecx
leaq 0x21c18e(%rip), %rax    # 0x29e0f8
movl %ecx, (%rax)
leaq 0x1f5b71(%rip), %rax    # 0x277ae4
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x81f8a
leaq 0x21c176(%rip), %rax    # 0x29e0f8
movl $0xc, (%rax)
jmp 0x81fa5
leaq 0x1f5b53(%rip), %rax    # 0x277ae4
cmpb $0x0, (%rax)
je 0x81fa3
leaq 0x21c15b(%rip), %rax    # 0x29e0f8
movl $0xe, (%rax)
jmp 0x81fa5
leaq 0x21c14c(%rip), %rax    # 0x29e0f8
movl (%rax), %eax
leaq 0x21c1cf(%rip), %rcx    # 0x29e184
cmpl (%rcx), %eax
jle 0x81fcb
leaq 0x21c1c4(%rip), %rax    # 0x29e184
movl (%rax), %ecx
leaq 0x21c12f(%rip), %rax    # 0x29e0f8
movl %ecx, (%rax)
callq 0x82000
leaq 0x21c12d(%rip), %rax    # 0x29e104
movl (%rax), %ecx
leaq 0x21c128(%rip), %rax    # 0x29e108
movl %ecx, (%rax)
movl $0xc8, %edi
callq 0xeaf0
callq 0x117e0
leaq 0x1f5a2c(%rip), %rax    # 0x277a24
movl $0x7d0, (%rax)          # imm = 0x7D0
popq %rbp
retq