// File: /workspace/github_cpp_makefile_star2_O3/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:
leaq 0x2ae639(%rip), %rax    # 0x30c780
movl (%rax), %eax
leaq 0x1e0dd0(%rip), %rcx    # 0x23ef20
movl %eax, (%rcx)
leaq 0x1ba700(%rip), %rdx    # 0x218859
cmpb $0x1, (%rdx)
leaq 0x1ba6a1(%rip), %rdx    # 0x218804
movl (%rdx), %edx
jne 0x5e1a2
cmpl $0x257, %edx            # imm = 0x257
jg 0x5e1a2
leaq 0x1ba662(%rip), %rsi    # 0x2187d8
cmpl $0x0, (%rsi)
jne 0x5e1a2
movl $0x8, (%rcx)
leaq 0x1e0db8(%rip), %rax    # 0x23ef40
movl $0x1, (%rax)
leaq 0x1ba73b(%rip), %rax    # 0x2188d0
movq (%rax), %rdx
movl $0x8, %eax
jmp 0x5e228
leaq 0x1ba66b(%rip), %rsi    # 0x218814
cmpl $0xd, (%rsi)
setl %sil
cmpl $0x2c6, %edx            # imm = 0x2C6
setge %dil
orb %sil, %dil
leaq 0x1ba70c(%rip), %rdx    # 0x2188d0
movq (%rdx), %rdx
cmpb $0x1, %dil
jne 0x5e1ed
cmpq $0x1, %rdx
jne 0x5e1de
movl $0xc, (%rcx)
movl $0xc, %eax
leaq 0x1e0d5b(%rip), %rsi    # 0x23ef40
movl $0x1, (%rsi)
jmp 0x5e228
cmpq $0x1, %rdx
jne 0x5e21b
leaq 0x1bd1ea(%rip), %rax    # 0x21b3e4
leaq 0x1ba703(%rip), %rsi    # 0x218904
xorl %edi, %edi
cmpb $0x2, (%rsi)
setae %dil
cmpb $0x0, (%rax)
leal 0xc(%rdi,%rdi), %esi
movl $0xb, %eax
cmovel %esi, %eax
movl %eax, (%rcx)
leaq 0x1e0d1e(%rip), %rsi    # 0x23ef40
movl $0x0, (%rsi)
cmpq $0x1, %rdx
sete %dil
leaq 0x1bcd9d(%rip), %rsi    # 0x21afd4
movl (%rsi), %esi
cmpl $0x41, %esi
sete %r8b
testb %r8b, %dil
jne 0x5e275
cmpq $0x1, %rdx
sete %dl
cmpl $0x50, %esi
setne %dil
testb %dil, %dl
je 0x5e275
addl $-0x33, %esi
cmpl $0x1d, %esi
ja 0x5e275
movl $0x20004009, %edx       # imm = 0x20004009
btl %esi, %edx
jae 0x5e275
movl $0x8, (%rcx)
movl $0x8, %eax
leaq 0x1e0ca8(%rip), %rcx    # 0x23ef24
movl $0x1, (%rcx)
leaq 0x1e0c9f(%rip), %rsi    # 0x23ef28
cmpl $0x1, (%rsi)
je 0x5e338
leaq 0x1e0c7f(%rip), %rdx    # 0x23ef18
movl %eax, (%rdx)
leaq 0x1ba662(%rip), %rcx    # 0x218904
movzbl (%rcx), %ecx
testl %ecx, %ecx
je 0x5e2ba
movl $0xc, %eax
cmpl $0x1, %ecx
je 0x5e2b8
movl $0xe, %eax
movl %eax, (%rdx)
leaq 0x1e0ce3(%rip), %rcx    # 0x23efa4
movl (%rcx), %ecx
cmpl %ecx, %eax
jle 0x5e2c9
movl %ecx, (%rdx)
leaq 0x2ae4b4(%rip), %rax    # 0x30c784
movl (%rax), %edi
testl %edi, %edi
jle 0x5e311
movl %ecx, %eax
cltd
idivl %edi
leaq 0x2ae4a6(%rip), %rdx    # 0x30c788
movl %eax, (%rdx)
leaq 0x2ae4a5(%rip), %r8     # 0x30c790
xorl %r9d, %r9d
movl %r9d, (%r8)
leaq 0x2ae494(%rip), %r8     # 0x30c78c
movl %r9d, (%r8)
cmpl $0x1, %edi
sete %dil
testb $0x1, %cl
sete %cl
orb %dil, %cl
jne 0x5e311
incl %eax
movl %eax, (%rdx)
pushq %rbp
movq %rsp, %rbp
movl $0x1, (%rsi)
movl $0xc8, %edi
callq 0xcf89
callq 0xeceb
leaq 0x1ba513(%rip), %rax    # 0x218844
movl $0x7d0, (%rax)          # imm = 0x7D0
popq %rbp
retq