// File: /workspace/github_cpp_makefile_star2_O3/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 0x23e02d(%rip), %r12    # 0x30d570
movsd (%r12), %xmm0
movsd 0x2ab4a7(%rip), %xmm2   # 0x37a9f8
movsd %xmm0, -0x30(%rbp)
ucomisd %xmm2, %xmm0
jne 0xcf562
jnp 0xcf6d4
leaq 0x16ee83(%rip), %rax    # 0x23e3ec
cmpl $0x0, (%rax)
je 0xcf6d4
movq %rdi, %rbx
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0xcf585
jnp 0xcf6b0
leaq 0x14bdf8(%rip), %rax    # 0x21b384
cmpl $0x0, (%rax)
je 0xcf6b0
leaq 0x16efec(%rip), %rax    # 0x23e588
cmpl $0x0, (%rax)
je 0xcf6b0
leaq 0x16ee48(%rip), %rax    # 0x23e3f4
cmpl $0x0, (%rax)
je 0xcf6b0
movsd -0x30(%rbp), %xmm0
subsd %xmm2, %xmm0
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
subsd %xmm1, %xmm0
mulsd 0x39a46(%rip), %xmm0    # 0x109018
leaq 0x14bd9f(%rip), %rax    # 0x21b378
movl (%rax), %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd 0x5c186(%rip), %xmm1    # 0x12b770
ucomisd %xmm1, %xmm0
jbe 0xcf6b0
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movsd 0x39a0e(%rip), %xmm3    # 0x109010
xorpd %xmm4, %xmm4
leaq 0x6456c(%rip), %r14     # 0x133b79
leaq 0x5e19c(%rip), %r15     # 0x12d7b0
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movapd %xmm0, %xmm1
addsd 0x5c151(%rip), %xmm1    # 0x12b778
divsd %xmm3, %xmm1
addsd %xmm4, %xmm1
divsd 0x4f2c9(%rip), %xmm1    # 0x11e900
addsd -0x30(%rbp), %xmm1
ucomisd %xmm2, %xmm1
jbe 0xcf6a5
divsd %xmm3, %xmm0
addsd %xmm4, %xmm0
divsd 0x399ee(%rip), %xmm0    # 0x109040
addsd %xmm0, %xmm2
movsd %xmm2, -0x38(%rbp)
movsd %xmm2, (%r12)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc3f69
movq %rbx, %rdi
movl $0x1, %esi
callq 0xde4cf
xorpd %xmm4, %xmm4
movsd 0x39988(%rip), %xmm3    # 0x109010
movsd -0x38(%rbp), %xmm2
leaq 0x14bce4(%rip), %rax    # 0x21b378
movl (%rax), %eax
imull $0x64, %eax, %ecx
incl %r13d
cmpl %ecx, %r13d
jl 0xcf614
movsd -0x30(%rbp), %xmm0
movsd %xmm0, (%r12)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xde4cf
testl %eax, %eax
je 0xcf6c6
movq %rbx, %rdi
callq 0xde9f3
movsd (%r12), %xmm0
movsd %xmm0, 0x2ab324(%rip)   # 0x37a9f8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq