// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathgps.cpp
// Function: get_rcvr_message()
void get_rcvr_message()
{
   // get bytes from serial port and build up a receiver message.  When message
   // is complete, parse it and to what it says.
//NEW_RCVR

   if(need_msg_init) {
      init_messages(need_msg_init, 1);
   }

   if(1 && sim_eof && autoscale_lla) {  //llascale
      Sleep(200);
      show_mouse_lla();
      show_param_values(1); //simeof
   }  
   else if(rcvr_type == ACRON_RCVR)  get_acron_message();
   else if(rcvr_type == BRANDY_RCVR) get_brandy_message(); 
   else if(rcvr_type == CS_RCVR)     get_cs_message(); 
   else if(rcvr_type == ESIP_RCVR)   get_nmea_message();
   else if(rcvr_type == FURUNO_RCVR) get_nmea_message();
   else if(rcvr_type == GPSD_RCVR)   get_gpsd_message();
   else if(rcvr_type == LUXOR_RCVR)  get_tsip_message();
   else if(rcvr_type == LPFRS_RCVR)  get_prs_message(); 
   else if(rcvr_type == MOTO_RCVR)   get_moto_message();
   else if(rcvr_type == RT17_RCVR)   get_rt17_message();
   else if(rcvr_type == NMEA_RCVR)   get_nmea_message();
   else if(rcvr_type == NO_RCVR)     get_norcvr_message();
   else if(rcvr_type == NVS_RCVR)    get_nvs_message();    // NVS format is basically TSIP
   else if(rcvr_type == PRS_RCVR)    get_prs_message(); 
   else if(rcvr_type == RFTG_RCVR)   get_rftg_message(); 
   else if(rcvr_type == SCPI_RCVR)   get_scpi_message(); 
   else if(rcvr_type == SIRF_RCVR)   get_sirf_message(); 
   else if(rcvr_type == SA35_RCVR)   get_prs_message(); 
   else if(rcvr_type == SRO_RCVR)    get_prs_message(); 
   else if(rcvr_type == STAR_RCVR)   get_star_message(); 
   else if(rcvr_type == SS_RCVR)     get_ss_message(); 
   else if(rcvr_type == TAIP_RCVR)   get_taip_message();
   else if(rcvr_type == THERMO_RCVR) get_rcvr_enviro_message(RCVR_PORT);
   else if(rcvr_type == TICC_RCVR)   get_rcvr_ticc_message(RCVR_PORT);
   else if(rcvr_type == TIDE_RCVR)   get_norcvr_message(); 
   else if(rcvr_type == TM4_RCVR)    get_tm4_message(); 
   else if(rcvr_type == TRUE_RCVR)   get_nmea_message();
   else if(rcvr_type == TSERVE_RCVR) get_tserve_message();
   else if(rcvr_type == TSIP_RCVR)   get_tsip_message();
   else if(rcvr_type == UCCM_RCVR)   get_uccm_message();
   else if(rcvr_type == UBX_RCVR)    get_ubx_message();
   else if(rcvr_type == VENUS_RCVR)  get_venus_message();
   else if(rcvr_type == X72_RCVR)    get_x72_message(); 
   else if(rcvr_type == Z12_RCVR)    get_z12_message();
   else if(rcvr_type == ZODIAC_RCVR) get_zod_message();
   else if(rcvr_type == ZYFER_RCVR)  get_nmea_message();
   else                              get_unkn_message();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x15a19e(%rip), %rax    # 0x21b030
movl (%rax), %edi
testl %edi, %edi
je 0xc0ea2
movl $0x1, %esi
callq 0x616de
leaq 0x17d52f(%rip), %rax    # 0x23e3d8
cmpl $0x0, (%rax)
je 0xc0ed4
leaq 0x27a3ff(%rip), %rax    # 0x33b2b4
cmpl $0x0, (%rax)
je 0xc0ed4
movl $0xc8, %edi
callq 0xafe8
callq 0xfbfda
movl $0x1, %edi
popq %rbp
jmp 0x78349
leaq 0x1579f5(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x3ffff, %rax          # imm = 0x3FFFF
jg 0xc0f1c
cmpq $0x1ff, %rax            # imm = 0x1FF
jg 0xc0f69
cmpq $0x1f, %rax
jg 0xc100a
leaq -0x1(%rax), %rcx
cmpq $0x7, %rcx
ja 0xc116c
leaq 0x5f0b7(%rip), %rax     # 0x11ffc4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
popq %rbp
jmp 0x95b7e
cmpq $0xfffffff, %rax        # imm = 0xFFFFFFF
jg 0xc0fab
cmpq $0x3fffff, %rax         # imm = 0x3FFFFF
jle 0xc102e
cmpq $0xffffff, %rax         # imm = 0xFFFFFF
jle 0xc1112
cmpq $0x1000000, %rax        # imm = 0x1000000
je 0xc109f
cmpq $0x2000000, %rax        # imm = 0x2000000
je 0xc11b4
cmpq $0x8000000, %rax        # imm = 0x8000000
je 0xc109f
jmp 0xc117e
cmpq $0x1fff, %rax           # imm = 0x1FFF
jle 0xc105d
cmpq $0x7fff, %rax           # imm = 0x7FFF
jle 0xc112c
cmpq $0x8000, %rax           # imm = 0x8000
je 0xc11cb
cmpq $0x10000, %rax          # imm = 0x10000
je 0xc11ba
cmpq $0x20000, %rax          # imm = 0x20000
jne 0xc117e
popq %rbp
jmp 0xa1c55
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jle 0xc1082
movabsq $0x3ffffffff, %rcx      # imm = 0x3FFFFFFFF
cmpq %rcx, %rax
jle 0xc1142
movabsq $0x400000000, %rcx      # imm = 0x400000000
cmpq %rcx, %rax
je 0xc11d1
movabsq $0x800000000, %rcx      # imm = 0x800000000
cmpq %rcx, %rax
je 0xc11c5
movabsq $0x1000000000, %rcx     # imm = 0x1000000000
cmpq %rcx, %rax
je 0xc109f
jmp 0xc117e
cmpq $0x7f, %rax
jg 0xc10a5
cmpq $0x20, %rax
je 0xc1184
cmpq $0x40, %rax
jne 0xc117e
popq %rbp
jmp 0x96c12
cmpq $0xfffff, %rax          # imm = 0xFFFFF
jg 0xc10c3
cmpq $0x40000, %rax          # imm = 0x40000
je 0xc118a
cmpq $0x80000, %rax          # imm = 0x80000
jne 0xc117e
movl $0xa, %edi
popq %rbp
jmp 0xac881
cmpq $0x7ff, %rax            # imm = 0x7FF
jg 0xc10d8
cmpq $0x200, %rax            # imm = 0x200
je 0xc1190
cmpq $0x400, %rax            # imm = 0x400
je 0xc1126
jmp 0xc117e
cmpq $0x3fffffff, %rax       # imm = 0x3FFFFFFF
jg 0xc10f6
cmpq $0x10000000, %rax       # imm = 0x10000000
je 0xc109f
cmpq $0x20000000, %rax       # imm = 0x20000000
je 0xc110c
jmp 0xc117e
popq %rbp
jmp 0x8dde4
cmpq $0x80, %rax
je 0xc1196
cmpq $0x100, %rax            # imm = 0x100
jne 0xc117e
popq %rbp
jmp 0x99f48
cmpq $0x100000, %rax         # imm = 0x100000
je 0xc110c
cmpq $0x200000, %rax         # imm = 0x200000
je 0xc110c
jmp 0xc117e
cmpq $0x800, %rax            # imm = 0x800
je 0xc119c
cmpq $0x1000, %rax           # imm = 0x1000
jne 0xc117e
popq %rbp
jmp 0x93376
cmpq $0x40000000, %rax       # imm = 0x40000000
je 0xc11a2
movl $0x80000000, %ecx       # imm = 0x80000000
cmpq %rcx, %rax
jne 0xc117e
popq %rbp
jmp 0x86477
cmpq $0x400000, %rax         # imm = 0x400000
je 0xc11a8
cmpq $0x800000, %rax         # imm = 0x800000
jne 0xc117e
popq %rbp
jmp 0x8247a
cmpq $0x2000, %rax           # imm = 0x2000
je 0xc1166
cmpq $0x4000, %rax           # imm = 0x4000
jne 0xc117e
popq %rbp
jmp 0xa6482
movabsq $0x100000000, %rcx      # imm = 0x100000000
cmpq %rcx, %rax
je 0xc11ae
movabsq $0x200000000, %rcx      # imm = 0x200000000
cmpq %rcx, %rax
jne 0xc117e
popq %rbp
jmp 0x80d8a
popq %rbp
jmp 0x7f675
cmpq $0x10, %rax
jne 0xc117e
popq %rbp
jmp 0xa02d8
popq %rbp
jmp 0xa1976
popq %rbp
jmp 0x5872d
popq %rbp
jmp 0x9d517
popq %rbp
jmp 0x8adfd
popq %rbp
jmp 0xa7ec6
popq %rbp
jmp 0x98aff
popq %rbp
jmp 0xa95c2
popq %rbp
jmp 0xa4696
popq %rbp
jmp 0x898e5
popq %rbp
jmp 0x84926
popq %rbp
jmp 0x8fa50
movl $0xa, %edi
popq %rbp
jmp 0xaddcf
popq %rbp
jmp 0x8841e
popq %rbp
jmp 0xa427e
popq %rbp
jmp 0xa5b30