// File: /workspace/github_cpp_makefile_star2_O3/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, -0x60(%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, -0x70(%rbp)
movq %rax, -0x30(%rbp)
cmpq 0x8(%rbx), %rax
je 0x2782d
leaq -0x188(%rbp), %rbx
movq -0x38(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x68(%rbp)
leaq -0xd8(%rbp), %r12
leaq 0x68a15(%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, 0x68a2b(%rip)     # 0x8ffa4
jle 0x27807
xorl %r13d, %r13d
movq %r13, %r14
shlq $0x5, %r14
movq 0x6b0(%r14,%r15), %rax
movsbl (%rax), %esi
leaq 0x444e0(%rip), %rdi     # 0x6ba7b
callq 0x1d54b
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 0x275bb
xorpd %xmm0, %xmm0
movapd %xmm0, -0x1b0(%rbp)
movapd %xmm0, -0x1c0(%rbp)
movapd %xmm0, -0x1d0(%rbp)
cltq
movq %rax, -0x80(%rbp)
movl 0x30(%r15,%rax,4), %eax
testl %eax, %eax
jle 0x27799
movq -0x50(%rbp), %rcx
leaq (%rcx,%rcx,2), %rdx
movq %rdx, -0x58(%rbp)
movq %rdx, %rsi
shlq $0x4, %rsi
xorl %r13d, %r13d
movq %rsi, -0x78(%rbp)
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rcx,%rsi), %rdx
addq $0x8, %rdx
movsd (%rdx,%r13,8), %xmm0
ucomisd 0x432c0(%rip), %xmm0    # 0x6a908
jne 0x27650
jnp 0x2778a
leaq 0x8(%rcx), %rax
movsd %xmm0, -0x1d0(%rbp,%r13,8)
addq %rsi, %rax
movsd 0x18(%rax,%r13,8), %xmm0
movsd %xmm0, -0x1b8(%rbp,%r13,8)
movq -0x58(%rbp), %rax
leaq (%rcx,%rax,8), %rax
leaq (%rax,%r13,4), %r15
addq $0x3fd0, %r15           # imm = 0x3FD0
movq %r13, %rax
shlq $0x5, %rax
leaq (%rbx,%rax), %r14
movq 0x8(%rbx,%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 0x8980
leaq 0x3(%r13), %rax
movq -0x58(%rbp), %rcx
leaq (,%rcx,8), %r15
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
addq %r15, %rcx
leaq (%rcx,%rax,4), %r14
addq $0x3fd0, %r14           # imm = 0x3FD0
shlq $0x5, %rax
leaq (%rbx,%rax), %rcx
movq %rcx, -0x90(%rbp)
movq 0x8(%rbx,%rax), %rax
movq %rax, -0x40(%rbp)
movq %r14, %rdi
callq 0x8290
movq -0x90(%rbp), %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x8980
movq -0x30(%rbp), %rax
addq (%rax), %r15
movsd 0x4fc0(%r15,%r13,8), %xmm0
movsd %xmm0, -0x1a0(%rbp,%r13,8)
leaq -0xc8(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x27b7e
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 (%rbx,%r14), %rsi
callq 0x8380
addq $0x20, %r14
cmpq $0xc0, %r14
jne 0x2775c
leaq 0x687db(%rip), %r15     # 0x8ff58
movq -0x80(%rbp), %rax
movl 0x30(%r15,%rax,4), %eax
movq -0x78(%rbp), %rsi
incq %r13
movslq %eax, %rcx
cmpq %rcx, %r13
jl 0x2762b
xorl %r14d, %r14d
movq -0x50(%rbp), %r13
movq -0xe8(%rbp,%r14), %rdi
leaq (%r12,%r14), %rax
cmpq %rdi, %rax
je 0x277b6
callq 0x85d0
addq $-0x20, %r14
cmpq $-0xc0, %r14
jne 0x277a0
incq %r13
movslq 0x687d7(%rip), %rax     # 0x8ffa4
cmpq %rax, %r13
jl 0x27582
cmpq $0x0, -0xa0(%rbp)
je 0x27807
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movl $0x5fb0, %eax           # imm = 0x5FB0
addq %rax, %rsi
movq -0x68(%rbp), %rdi
callq 0x27c14
movq %rax, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x28548
leaq -0xc8(%rbp), %rdi
callq 0x289cc
movq -0x30(%rbp), %rcx
addq $0x8, %rcx
movq -0x70(%rbp), %rax
movq %rcx, -0x30(%rbp)
cmpq 0x8(%rax), %rcx
jne 0x27543
leaq -0x48(%rbp), %rsi
leaq -0x98(%rbp), %rdx
movl -0x44(%rbp), %edi
movsd -0x60(%rbp), %xmm0
callq 0x1cf30
movl -0x48(%rbp), %edi
movsd -0x98(%rbp), %xmm0
callq 0x4f24a
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 0x27879
movq %rax, %rbx
jmp 0x278bc
jmp 0x27880
movq %rax, %rbx
jmp 0x278b0
jmp 0x27887
movq %rax, %rbx
xorl %r14d, %r14d
movq -0xe8(%rbp,%r14), %rdi
leaq (%r12,%r14), %rax
cmpq %rdi, %rax
je 0x278a3
callq 0x85d0
addq $-0x20, %r14
cmpq $-0xc0, %r14
jne 0x2788d
leaq -0xc8(%rbp), %rdi
callq 0x289cc
movq -0x38(%rbp), %rdi
addq $0x18, %rdi
callq 0x284ba
movq %rbx, %rdi
callq 0x8b30
nop