// File: /workspace/github_cpp_makefile_star2_O1/jkingan[P]ladyheather/heathmsc.cpp
// Function: write_rinex_obs(_IO_FILE*)
void write_rinex_obs(FILE *file)
{
double delta;
double skipped_jd;
double old_obs;
int count;

   if(jd_obs == last_jd_obs) return;  // raw data has not updated
   if(rinex_header_written == 0) return;
   skipped_jd = last_jd_obs;

   delta = jd_obs - last_jd_obs;
   delta = delta - (double) (int) delta;
   delta *= 24.0*60.0*60.0;
   if(1 && have_raw_rate && rinex_fix && obs_data_written && last_jd_obs && (delta > (((double) raw_msg_rate) * 1.10))) {  // rnx3
      // time stamp skipped, output null observation headers for missing data
      old_obs = jd_obs;
      count = 0;
      while(skipped_jd < (old_obs-jtime(0,0,raw_msg_rate,JD_OBS_ROUND))) {  // output dummy obs headers
         skipped_jd += jtime(0,0,0, (double) raw_msg_rate);
         jd_obs = skipped_jd;
write_rinex_line(file, "#! missing observation", "COMMENT");  //rnx3
         write_rinex_obs_header(file, 1);
         if(++count > (raw_msg_rate*100)) break;  // prevent runaway loop
      }
      jd_obs = old_obs;
   }

   if(write_rinex_obs_header(file, 0)) {
      write_rinex_obs_data(file);
   }

   last_jd_obs = jd_obs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x23e6b9(%rip), %r12    # 0x30d570
movsd (%r12), %xmm0
movsd 0x2abb33(%rip), %xmm2   # 0x37a9f8
movsd %xmm0, -0x30(%rbp)
ucomisd %xmm2, %xmm0
jne 0xceed6
jnp 0xcf040
leaq 0x16f50f(%rip), %rax    # 0x23e3ec
cmpl $0x0, (%rax)
je 0xcf040
movq %rdi, %rbx
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0xceef9
jnp 0xcf01c
leaq 0x14c484(%rip), %rax    # 0x21b384
cmpl $0x0, (%rax)
je 0xcf01c
leaq 0x16f678(%rip), %rax    # 0x23e588
cmpl $0x0, (%rax)
je 0xcf01c
leaq 0x16f4d4(%rip), %rax    # 0x23e3f4
cmpl $0x0, (%rax)
je 0xcf01c
movsd -0x30(%rbp), %xmm0
subsd %xmm2, %xmm0
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
subsd %xmm1, %xmm0
mulsd 0x3a0d2(%rip), %xmm0    # 0x109018
leaq 0x14c42b(%rip), %r13    # 0x21b378
xorps %xmm1, %xmm1
cvtsi2sdl (%r13), %xmm1
mulsd 0x5c732(%rip), %xmm1    # 0x12b690
ucomisd %xmm1, %xmm0
jbe 0xcf01c
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movsd 0x3a09a(%rip), %xmm3    # 0x109010
xorpd %xmm4, %xmm4
leaq 0x5e73f(%rip), %r15     # 0x12d6c0
xorps %xmm0, %xmm0
cvtsi2sdl (%r13), %xmm0
movapd %xmm0, %xmm1
addsd 0x5c702(%rip), %xmm1    # 0x12b698
divsd %xmm3, %xmm1
addsd %xmm4, %xmm1
divsd 0x4f8aa(%rip), %xmm1    # 0x11e850
addsd -0x30(%rbp), %xmm1
ucomisd %xmm2, %xmm1
jbe 0xcf011
divsd %xmm3, %xmm0
addsd %xmm4, %xmm0
divsd 0x3a07f(%rip), %xmm0    # 0x109040
addsd %xmm0, %xmm2
movsd %xmm2, -0x38(%rbp)
movsd %xmm2, (%r12)
movq %rbx, %rdi
leaq 0x64aaf(%rip), %rsi     # 0x133a89
movq %r15, %rdx
callq 0xc3936
movq %rbx, %rdi
movl $0x1, %esi
callq 0xddc19
xorpd %xmm4, %xmm4
movsd 0x3a015(%rip), %xmm3    # 0x109010
movsd -0x38(%rbp), %xmm2
imull $0x64, (%r13), %eax
incl %r14d
cmpl %eax, %r14d
jl 0xcef81
movsd -0x30(%rbp), %xmm0
movsd %xmm0, (%r12)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xddc19
testl %eax, %eax
je 0xcf032
movq %rbx, %rdi
callq 0xde13d
movsd (%r12), %xmm0
movsd %xmm0, 0x2ab9b8(%rip)   # 0x37a9f8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq