// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ae5d3(%rip), %rax    # 0x30c780
movl (%rax), %ecx
leaq 0x1e0d6a(%rip), %rax    # 0x23ef20
movl %ecx, (%rax)
leaq 0x1ba69a(%rip), %rcx    # 0x218859
cmpb $0x1, (%rcx)
leaq 0x1ba63b(%rip), %rcx    # 0x218804
movl (%rcx), %ecx
jne 0x5e341
cmpl $0x257, %ecx            # imm = 0x257
jg 0x5e341
leaq 0x1ba5f4(%rip), %rdx    # 0x2187d8
cmpl $0x0, (%rdx)
jne 0x5e341
movl $0x1, %ecx
movl $0x8, %edx
movl %edx, (%rax)
leaq 0x1e0d40(%rip), %rdx    # 0x23ef40
movl %ecx, (%rdx)
leaq 0x1ba6c7(%rip), %rcx    # 0x2188d0
movq (%rcx), %rdx
cmpq $0x1, %rdx
sete %dil
leaq 0x1bcdb9(%rip), %rcx    # 0x21afd4
movl (%rcx), %ecx
cmpl $0x41, %ecx
sete %sil
andb %dil, %sil
leaq 0x1ba6ca(%rip), %rdi    # 0x2188f8
movl (%rdi), %edi
cmpl $0x47, %edi
sete %r8b
testb %r8b, %sil
jne 0x5e27b
testb %sil, %sil
je 0x5e250
cmpl $0x33, %edi
je 0x5e27b
cmpl $0x47, %edi
je 0x5e27b
testb %sil, %sil
jne 0x5e27b
cmpq $0x1, %rdx
sete %dl
cmpl $0x50, %ecx
setne %sil
testb %sil, %dl
je 0x5e27b
addl $-0x33, %ecx
cmpl $0x1d, %ecx
ja 0x5e27b
movl $0x20004009, %edx       # imm = 0x20004009
btl %ecx, %edx
jae 0x5e27b
movl $0x8, (%rax)
leaq 0x1e0ca2(%rip), %rcx    # 0x23ef24
movl $0x1, (%rcx)
leaq 0x1e0c99(%rip), %rsi    # 0x23ef28
cmpl $0x1, (%rsi)
je 0x5e340
movl (%rax), %ecx
leaq 0x1e0c77(%rip), %rax    # 0x23ef18
movl %ecx, (%rax)
leaq 0x1ba65a(%rip), %rcx    # 0x218904
movzbl (%rcx), %edx
testl %edx, %edx
je 0x5e2c2
movl $0xc, %ecx
cmpl $0x1, %edx
je 0x5e2c0
movl $0xe, %ecx
movl %ecx, (%rax)
leaq 0x1e0cdb(%rip), %rcx    # 0x23efa4
movl (%rcx), %ecx
cmpl %ecx, (%rax)
jle 0x5e2d1
movl %ecx, (%rax)
leaq 0x2ae4ac(%rip), %rax    # 0x30c784
movl (%rax), %edi
testl %edi, %edi
jle 0x5e319
movl %ecx, %eax
cltd
idivl %edi
leaq 0x2ae49e(%rip), %rdx    # 0x30c788
movl %eax, (%rdx)
leaq 0x2ae49d(%rip), %r8     # 0x30c790
xorl %r9d, %r9d
movl %r9d, (%r8)
leaq 0x2ae48c(%rip), %r8     # 0x30c78c
movl %r9d, (%r8)
cmpl $0x1, %edi
sete %dil
testb $0x1, %cl
sete %cl
orb %dil, %cl
jne 0x5e319
incl %eax
movl %eax, (%rdx)
pushq %rbp
movq %rsp, %rbp
movl $0x1, (%rsi)
movl $0xc8, %edi
callq 0xcf81
callq 0xed5e
leaq 0x1ba50b(%rip), %rax    # 0x218844
movl $0x7d0, (%rax)          # imm = 0x7D0
popq %rbp
retq
leaq 0x1ba4cc(%rip), %rdx    # 0x218814
cmpl $0xd, (%rdx)
setl %dl
cmpl $0x2c6, %ecx            # imm = 0x2C6
setge %cl
orb %dl, %cl
leaq 0x1ba570(%rip), %rdx    # 0x2188d0
movq (%rdx), %rsi
cmpb $0x1, %cl
jne 0x5e381
movl $0x1, %ecx
movl $0xc, %edx
cmpq $0x1, %rsi
je 0x5e1f7
jmp 0x5e1f9
xorl %ecx, %ecx
cmpq $0x1, %rsi
jne 0x5e1f9
leaq 0x1bd050(%rip), %rcx    # 0x21b3e4
leaq 0x1ba569(%rip), %rdx    # 0x218904
xorl %esi, %esi
cmpb $0x2, (%rdx)
setae %sil
cmpb $0x0, (%rcx)
leal 0xc(%rsi,%rsi), %ecx
movl $0xb, %edx
cmovel %ecx, %edx
xorl %ecx, %ecx
jmp 0x5e1f7