// File: /workspace/github_cpp_makefile_star2_O2/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 0x239838(%rip), %r13    # 0x2f7570
movsd (%r13), %xmm0
movsd 0x2a6cb2(%rip), %xmm2   # 0x3649f8
movsd %xmm0, -0x30(%rbp)
ucomisd %xmm2, %xmm0
jne 0xbdd57
jnp 0xbdec0
leaq 0x16a68e(%rip), %rax    # 0x2283ec
cmpl $0x0, (%rax)
je 0xbdec0
movq %rdi, %rbx
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0xbdd7a
jnp 0xbde9c
leaq 0x147603(%rip), %rax    # 0x205384
cmpl $0x0, (%rax)
je 0xbde9c
leaq 0x16a7f7(%rip), %rax    # 0x228588
cmpl $0x0, (%rax)
je 0xbde9c
leaq 0x16a653(%rip), %rax    # 0x2283f4
cmpl $0x0, (%rax)
je 0xbde9c
movsd -0x30(%rbp), %xmm0
subsd %xmm2, %xmm0
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
subsd %xmm1, %xmm0
mulsd 0x35251(%rip), %xmm0    # 0xf3018
leaq 0x1475aa(%rip), %rax    # 0x205378
movl (%rax), %eax
cvtsi2sd %eax, %xmm1
mulsd 0x578dc(%rip), %xmm1    # 0x1156b8
ucomisd %xmm1, %xmm0
jbe 0xbde9c
pushq $-0x1
popq %r14
movsd 0x3521e(%rip), %xmm3    # 0xf3010
xorpd %xmm4, %xmm4
leaq 0x598d3(%rip), %r15     # 0x1176d0
pushq $0x1
popq %r12
cvtsi2sd %eax, %xmm0
movapd %xmm0, %xmm1
addsd 0x578af(%rip), %xmm1    # 0x1156c0
divsd %xmm3, %xmm1
addsd %xmm4, %xmm1
divsd 0x4aa57(%rip), %xmm1    # 0x108878
addsd -0x30(%rbp), %xmm1
ucomisd %xmm2, %xmm1
jbe 0xbde91
divsd %xmm3, %xmm0
addsd %xmm4, %xmm0
divsd 0x35204(%rip), %xmm0    # 0xf3040
addsd %xmm0, %xmm2
movsd %xmm2, -0x38(%rbp)
movsd %xmm2, (%r13)
movq %rbx, %rdi
leaq 0x5fc44(%rip), %rsi     # 0x11da99
movq %r15, %rdx
callq 0xb2e38
movq %rbx, %rdi
movl %r12d, %esi
callq 0xcb879
xorpd %xmm4, %xmm4
movsd 0x3519c(%rip), %xmm3    # 0xf3010
movsd -0x38(%rbp), %xmm2
leaq 0x1474f8(%rip), %rax    # 0x205378
movl (%rax), %eax
imull $0x64, %eax, %ecx
incl %r14d
cmpl %ecx, %r14d
jl 0xbde01
movsd -0x30(%rbp), %xmm0
movsd %xmm0, (%r13)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xcb879
testl %eax, %eax
je 0xbdeb2
movq %rbx, %rdi
callq 0xcbd63
movsd (%r13), %xmm0
movsd %xmm0, 0x2a6b38(%rip)   # 0x3649f8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq