// File: /workspace/github_cpp_makefile_star2_O2/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 0x29fbe1(%rip), %rax    # 0x2f6780
movl (%rax), %eax
leaq 0x1d2378(%rip), %rcx    # 0x228f20
movl %eax, (%rcx)
leaq 0x1abca8(%rip), %rdx    # 0x202859
cmpb $0x1, (%rdx)
leaq 0x1abc49(%rip), %rdx    # 0x202804
movl (%rdx), %edx
jne 0x56bf5
cmpl $0x257, %edx            # imm = 0x257
jg 0x56bf5
leaq 0x1abc0a(%rip), %rsi    # 0x2027d8
cmpl $0x0, (%rsi)
jne 0x56bf5
movl $0x8, (%rcx)
leaq 0x1d2360(%rip), %rax    # 0x228f40
movl $0x1, (%rax)
leaq 0x1abce3(%rip), %rax    # 0x2028d0
movq (%rax), %rdx
pushq $0x8
popq %rax
jmp 0x56c74
leaq 0x1abc18(%rip), %rsi    # 0x202814
cmpl $0xd, (%rsi)
setl %sil
cmpl $0x2c6, %edx            # imm = 0x2C6
setge %dil
orb %sil, %dil
leaq 0x1abcb9(%rip), %rdx    # 0x2028d0
movq (%rdx), %rdx
cmpb $0x1, %dil
jne 0x56c3e
cmpq $0x1, %rdx
jne 0x56c2f
pushq $0xc
popq %rax
movl $0xc, (%rcx)
leaq 0x1d230a(%rip), %rsi    # 0x228f40
movl $0x1, (%rsi)
jmp 0x56c74
cmpq $0x1, %rdx
jne 0x56c6a
leaq 0x1ae799(%rip), %rax    # 0x2053e4
leaq 0x1abcb2(%rip), %rsi    # 0x202904
xorl %edi, %edi
cmpb $0x2, (%rsi)
setae %dil
cmpb $0x0, (%rax)
leal 0xc(%rdi,%rdi), %esi
pushq $0xb
popq %rax
cmovel %esi, %eax
movl %eax, (%rcx)
leaq 0x1d22cf(%rip), %rsi    # 0x228f40
andl $0x0, (%rsi)
cmpq $0x1, %rdx
sete %dil
leaq 0x1ae351(%rip), %rsi    # 0x204fd4
movl (%rsi), %esi
cmpl $0x41, %esi
sete %r8b
testb %r8b, %dil
jne 0x56cbf
cmpq $0x1, %rdx
sete %dl
cmpl $0x50, %esi
setne %dil
testb %dil, %dl
je 0x56cbf
addl $-0x33, %esi
cmpl $0x1d, %esi
ja 0x56cbf
movl $0x20004009, %edx       # imm = 0x20004009
btl %esi, %edx
jae 0x56cbf
pushq $0x8
popq %rax
movl $0x8, (%rcx)
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x1d2257(%rip), %rbx    # 0x228f24
movl $0x1, (%rbx)
leaq 0x1d224e(%rip), %r14    # 0x228f28
cmpl $0x1, (%r14)
je 0x56d3a
leaq 0x1d2231(%rip), %rcx    # 0x228f18
movl %eax, (%rcx)
leaq 0x1abc14(%rip), %rdx    # 0x202904
movzbl (%rdx), %edx
testl %edx, %edx
je 0x56d05
cmpl $0x1, %edx
jne 0x56d00
pushq $0xc
jmp 0x56d02
pushq $0xe
popq %rax
movl %eax, (%rcx)
leaq 0x1d2298(%rip), %rdx    # 0x228fa4
movl (%rdx), %edx
cmpl %edx, %eax
jle 0x56d14
movl %edx, (%rcx)
callq 0x56d3f
movl (%rbx), %eax
movl %eax, (%r14)
movl $0xc8, %edi
callq 0xcc4f
callq 0xe7d9
leaq 0x1abb10(%rip), %rax    # 0x202844
movl $0x7d0, (%rax)          # imm = 0x7D0
popq %rbx
popq %r14
popq %rbp
retq