// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Rnxobs/RtRinexStream.cpp
// Function: bamboo::RtRinexStream::m_makeupItems(int, double, std::vector<bamboo::RnxobsFile_sat*, std::allocator<bamboo::RnxobsFile_sat*>>&)
RtConvItem RtRinexStream::m_makeupItems(int mjd,double sod,vector<RnxobsFile_sat*>& rnxs) {
	int isat,isys,ifreq,week;
	double sow;
	RtConvItem item_ep;
	vector<RnxobsFile_sat*>::iterator rnxItr;
	for (rnxItr = rnxs.begin(); rnxItr != rnxs.end(); rnxItr++) {
		map<string, RtSatObs> mapObs;
		for (isat = 0; isat < configs_sav.nprn; isat++) {
			isys = index_string(SYS, configs_sav.cprn[isat][0]);
			RtSatObs sat;
			for (ifreq = 0; ifreq < configs_sav.nfreq[isys]; ifreq++) {
				if ((*rnxItr)->obs[isat][ifreq] != 0.0) {
					sat.obs[ifreq] = (*rnxItr)->obs[isat][ifreq];
					sat.obs[MAXFREQ + ifreq] = (*rnxItr)->obs[isat][MAXFREQ + ifreq];

					sat.fob[ifreq] = (*rnxItr)->fob[isat][ifreq];
					sat.fob[MAXFREQ + ifreq] = (*rnxItr)->fob[isat][MAXFREQ + ifreq];

					sat.snr[ifreq] = (*rnxItr)->snr[isat][ifreq];
					mapObs[configs_sav.cprn[isat]] = sat;
				}
			}
		}
		if(mapObs.size() > 0)
			item_ep.obslist[(*rnxItr)->staname] = mapObs;
	}
	mjd2wksow(mjd,sod,&week,&sow);
	item_ep.curt = gpst2time(week, sow);
	return item_ep;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rcx, %rbx
movsd %xmm0, -0x68(%rbp)
movl %edx, -0x44(%rbp)
leaq 0x20(%rdi), %rax
movl $0x0, 0x20(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movq %rax, 0x38(%rdi)
movq %rcx, 0x40(%rdi)
movq %rdi, -0x38(%rbp)
callq 0x85b0
movq (%rbx), %rax
movq %rbx, -0x78(%rbp)
movq %rax, -0x30(%rbp)
cmpq 0x8(%rbx), %rax
je 0x27cdd
leaq -0x188(%rbp), %r12
movq -0x38(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x70(%rbp)
leaq -0xd8(%rbp), %rbx
leaq 0x68561(%rip), %r15     # 0x8ff58
movl $0x0, -0xc0(%rbp)
xorl %ecx, %ecx
movq %rcx, -0xb8(%rbp)
leaq -0xc0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %rax, -0xa8(%rbp)
movq %rcx, -0xa0(%rbp)
cmpl $0x0, 0x68577(%rip)     # 0x8ffa4
jle 0x27c86
xorl %r13d, %r13d
movq %r13, %r14
shlq $0x5, %r14
movq 0x6b0(%r14,%r15), %rax
movsbl (%rax), %esi
leaq 0x4402c(%rip), %rdi     # 0x6ba7b
callq 0x1db90
movq %r13, -0x50(%rbp)
leaq (%r14,%r15), %rcx
addq $0x6b0, %rcx            # imm = 0x6B0
movq %rcx, -0x88(%rbp)
movl $0x58, %ecx
leaq (%rcx,%rbp), %rdx
addq $-0x1d0, %rdx           # imm = 0xFE30
movq %rdx, -0x10(%rdx)
movq $0x0, -0x8(%rdx)
movb $0x0, (%rdx)
addq $0x20, %rcx
cmpq $0x118, %rcx            # imm = 0x118
jne 0x27a6f
xorpd %xmm0, %xmm0
movapd %xmm0, -0x1b0(%rbp)
movapd %xmm0, -0x1c0(%rbp)
movapd %xmm0, -0x1d0(%rbp)
cltq
movq %rax, -0x90(%rbp)
cmpl $0x0, 0x30(%r15,%rax,4)
jle 0x27c49
movq -0x50(%rbp), %rax
leaq (%rax,%rax,2), %rax
movq %rax, %rcx
shlq $0x4, %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x80(%rbp)
leaq (,%rax,8), %rax
movq %rax, -0x58(%rbp)
xorl %r13d, %r13d
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x60(%rbp), %rcx
addq %rax, %rcx
addq $0x8, %rcx
movsd (%rcx,%r13,8), %xmm0
ucomisd 0x42dfb(%rip), %xmm0    # 0x6a908
jne 0x27b15
jnp 0x27c2a
leaq 0x8(%rax), %rcx
movsd %xmm0, -0x1d0(%rbp,%r13,8)
addq -0x60(%rbp), %rcx
movsd 0x18(%rcx,%r13,8), %xmm0
movsd %xmm0, -0x1b8(%rbp,%r13,8)
movq -0x80(%rbp), %rcx
leaq (%rax,%rcx,8), %rax
leaq (%rax,%r13,4), %r15
addq $0x3fd0, %r15           # imm = 0x3FD0
movq %r13, %rax
shlq $0x5, %rax
leaq (%r12,%rax), %r14
movq 0x8(%r12,%rax), %rax
movq %rax, -0x40(%rbp)
movq %r15, %rdi
callq 0x8290
movq %r14, %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x8990
leaq 0x3(%r13), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
addq -0x58(%rbp), %rcx
leaq (%rcx,%rax,4), %r14
addq $0x3fd0, %r14           # imm = 0x3FD0
shlq $0x5, %rax
leaq (%r12,%rax), %r15
movq 0x8(%r12,%rax), %rax
movq %rax, -0x40(%rbp)
movq %r14, %rdi
callq 0x8290
movq %r15, %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x8990
movq -0x30(%rbp), %rax
movq (%rax), %rax
addq -0x58(%rbp), %rax
movsd 0x4fc0(%rax,%r13,8), %xmm0
movsd %xmm0, -0x1a0(%rbp,%r13,8)
leaq -0xc8(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x2802e
movq %rax, %r15
movl $0x9, %ecx
movq %rax, %rdi
leaq -0x1d0(%rbp), %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x48, %r15
xorl %r14d, %r14d
leaq (%r15,%r14), %rdi
leaq (%r12,%r14), %rsi
callq 0x8380
addq $0x20, %r14
cmpq $0xc0, %r14
jne 0x27c10
incq %r13
leaq 0x68324(%rip), %r15     # 0x8ff58
movq -0x90(%rbp), %rax
movslq 0x30(%r15,%rax,4), %rax
cmpq %rax, %r13
jl 0x27aed
xorl %r14d, %r14d
movq -0x50(%rbp), %r13
movq -0xe8(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x27c66
callq 0x85d0
addq $-0x20, %r14
cmpq $-0xc0, %r14
jne 0x27c50
incq %r13
movslq 0x68327(%rip), %rax     # 0x8ffa4
cmpq %rax, %r13
jl 0x27a36
cmpq $0x0, -0xa0(%rbp)
je 0x27cb7
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movl $0x5fb0, %eax           # imm = 0x5FB0
addq %rax, %rsi
movq -0x70(%rbp), %rdi
callq 0x280c2
movq %rax, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x289f4
leaq -0xc8(%rbp), %rdi
callq 0x28e78
movq -0x30(%rbp), %rcx
addq $0x8, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x30(%rbp)
cmpq 0x8(%rax), %rcx
jne 0x279f7
leaq -0x48(%rbp), %rsi
leaq -0x98(%rbp), %rdx
movl -0x44(%rbp), %edi
movsd -0x68(%rbp), %xmm0
callq 0x1d5a4
movl -0x48(%rbp), %edi
movsd -0x98(%rbp), %xmm0
callq 0x4fbc6
movq -0x38(%rbp), %rcx
movq %rax, 0x8(%rcx)
movsd %xmm0, 0x10(%rcx)
movq %rcx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27d29
movq %rax, %r14
jmp 0x27d6c
jmp 0x27d30
movq %rax, %r14
jmp 0x27d60
jmp 0x27d37
movq %rax, %r14
xorl %r15d, %r15d
movq -0xe8(%rbp,%r15), %rdi
leaq (%rbx,%r15), %rax
cmpq %rdi, %rax
je 0x27d53
callq 0x85d0
addq $-0x20, %r15
cmpq $-0xc0, %r15
jne 0x27d3d
leaq -0xc8(%rbp), %rdi
callq 0x28e78
movq -0x38(%rbp), %rdi
addq $0x18, %rdi
callq 0x28966
movq %r14, %rdi
callq 0x8b40
nop