// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathgps.cpp
// Function: get_sv6_sat_list()
void get_sv6_sat_list()
{
int prn[4];
int mode;

   log_packet_id("Packet 0x44 (SV6_FAMILY sats and dops - nav mode)");

   mode = tsip_byte();   // mode
   if(ACU_GG) ;
   else if(ACU_360) ;
   else if(ACUTIME) ;
   else {
      if     (mode == 0x01) rcvr_mode = RCVR_MODE_SINGLE;    // auto modes
      else if(mode == 0x03) rcvr_mode = RCVR_MODE_2D;
      else if(mode == 0x04) rcvr_mode = RCVR_MODE_3D;
      else if(mode == 0x11) rcvr_mode = RCVR_MODE_SINGLE;    // maunal modes
      else if(mode == 0x13) rcvr_mode = RCVR_MODE_2D;
      else if(mode == 0x14) rcvr_mode = RCVR_MODE_3D;
      else                  rcvr_mode = RCVR_MODE_UNKNOWN;
   }

   prn[0] = tsip_byte();   // prn1
   prn[1] = tsip_byte();   // prn2
   prn[2] = tsip_byte();   // prn3
   prn[3] = tsip_byte();   // prn4

   have_dops = 0;
   pdop = tsip_single();
   hdop = tsip_single();
   vdop = tsip_single();
   tdop = tsip_single();

   if(pdop > 20.0) pdop = 20.0;
   if(hdop > 20.0) hdop = 20.0;
   if(vdop > 20.0) vdop = 20.0;
   if(tdop > 20.0) tdop = 20.0;

   have_dops |= (PDOP | HDOP | VDOP | TDOP);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0xaf8d5(%rip), %rdi     # 0x121af4
callq 0x58dc2
callq 0x587be
cmpl $0x100, %eax            # imm = 0x100
jb 0x7223a
leaq 0x1ccd39(%rip), %rcx    # 0x23ef70
orb $0x8, (%rcx)
leaq 0x1a668f(%rip), %rcx    # 0x2188d0
cmpq $0x1, (%rcx)
jne 0x72253
leaq 0x1a8d86(%rip), %rcx    # 0x21afd4
cmpl $0x41, (%rcx)
je 0x72292
movzbl %al, %edx
movb $0x1, %cl
cmpl $0x10, %edx
jg 0x72270
cmpl $0x1, %edx
je 0x72289
movl %eax, %ecx
cmpl $0x3, %edx
je 0x72289
cmpl $0x4, %edx
je 0x72289
jmp 0x72283
cmpl $0x11, %edx
je 0x72289
cmpl $0x13, %edx
je 0x72287
cmpl $0x14, %edx
jne 0x72283
movb $0x4, %cl
jmp 0x72289
movb $0x63, %cl
jmp 0x72289
movb $0x3, %cl
leaq 0x29ae40(%rip), %rax    # 0x30d0d0
movb %cl, (%rax)
callq 0x587be
cmpl $0x100, %eax            # imm = 0x100
jb 0x722a8
leaq 0x1ccccb(%rip), %rax    # 0x23ef70
orb $0x8, (%rax)
callq 0x587be
cmpl $0x100, %eax            # imm = 0x100
jb 0x722be
leaq 0x1cccb5(%rip), %rax    # 0x23ef70
orb $0x8, (%rax)
callq 0x587be
cmpl $0x100, %eax            # imm = 0x100
jb 0x722d4
leaq 0x1ccc9f(%rip), %rax    # 0x23ef70
orb $0x8, (%rax)
callq 0x587be
cmpl $0x100, %eax            # imm = 0x100
jb 0x722ea
leaq 0x1ccc89(%rip), %rax    # 0x23ef70
orb $0x8, (%rax)
leaq 0x1b11f3(%rip), %rbx    # 0x2234e4
movl $0x0, (%rbx)
callq 0x58a30
cvtss2sd %xmm0, %xmm0
leaq 0x1b11e1(%rip), %r14    # 0x2234e8
movsd %xmm0, (%r14)
callq 0x58a30
cvtss2sd %xmm0, %xmm0
leaq 0x1b11d4(%rip), %r15    # 0x2234f0
movsd %xmm0, (%r15)
callq 0x58a30
cvtss2sd %xmm0, %xmm0
leaq 0x1b11c7(%rip), %r12    # 0x2234f8
movsd %xmm0, (%r12)
callq 0x58a30
cvtss2sd %xmm0, %xmm1
leaq 0x1b11c1(%rip), %rax    # 0x223508
movsd %xmm1, (%rax)
movsd (%r14), %xmm1
ucomisd 0x997e8(%rip), %xmm1    # 0x10bb40
movabsq $0x4034000000000000, %rcx # imm = 0x4034000000000000
jbe 0x72367
movq %rcx, (%r14)
movsd (%r15), %xmm1
ucomisd 0x997cc(%rip), %xmm1    # 0x10bb40
jbe 0x72379
movq %rcx, (%r15)
movsd (%r12), %xmm1
ucomisd 0x997b9(%rip), %xmm1    # 0x10bb40
jbe 0x7238d
movq %rcx, (%r12)
ucomiss 0xac6bc(%rip), %xmm0    # 0x11ea50
jbe 0x72399
movq %rcx, (%rax)
orb $0x17, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq