// File: /workspace/github_cpp_makefile_star2_O2/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 $0x198, %rsp            # imm = 0x198
movq %rcx, %r14
movsd %xmm0, -0x60(%rbp)
movl %edx, -0x34(%rbp)
movq %rdi, %rbx
callq 0x22e7e
movq %r14, -0x68(%rbp)
movq (%r14), %r13
movq %rbx, -0x58(%rbp)
leaq 0x18(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x65695(%rip), %r14     # 0x87f68
movq -0x68(%rbp), %rax
cmpq 0x8(%rax), %r13
je 0x22ae0
andl $0x0, -0xb0(%rbp)
andq $0x0, -0xa8(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq %rax, -0x98(%rbp)
andq $0x0, -0x90(%rbp)
movl $0x4fc0, %eax           # imm = 0x4FC0
movq %rax, -0x48(%rbp)
movq $0x0, -0x30(%rbp)
pushq $0x20
popq %rax
movq %rax, -0x50(%rbp)
xorl %r15d, %r15d
movslq 0x65685(%rip), %rax     # 0x87fb4
cmpq %rax, %r15
jge 0x22a9d
movq %r15, %rbx
shlq $0x5, %rbx
movq 0x6b0(%rbx,%r14), %rax
movsbl (%rax), %esi
leaq 0x3f131(%rip), %rdi     # 0x61a82
callq 0x1a5f7
movl %eax, %r12d
movq %r15, -0x70(%rbp)
leaq (%rbx,%r14), %rax
addq $0x6b0, %rax            # imm = 0x6B0
movq %rax, -0x78(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x22ea2
movslq %r12d, %rax
movq %rax, -0x80(%rbp)
movl $0xa8, %ebx
pushq $0x48
popq %r12
xorl %r14d, %r14d
xorl %r15d, %r15d
leaq 0x655d4(%rip), %rax     # 0x87f68
movq -0x80(%rbp), %rcx
movslq 0x30(%rax,%rcx,4), %rax
cmpq %rax, %r15
jge 0x22a6f
movq (%r13), %rax
movq -0x50(%rbp), %rcx
addq %rax, %rcx
movsd -0x18(%rcx,%r14,2), %xmm0
ucomisd 0x3df38(%rip), %xmm0    # 0x608f8
jne 0x229c8
jnp 0x22a5b
movsd %xmm0, -0x1c0(%rbp,%r14,2)
movsd (%rcx,%r14,2), %xmm0
movsd %xmm0, -0x1a8(%rbp,%r14,2)
addq -0x30(%rbp), %rax
leaq (%r14,%rax), %rsi
addq $0x3fd0, %rsi           # imm = 0x3FD0
leaq (%r12,%rbp), %rdi
addq $-0x1c0, %rdi           # imm = 0xFE40
callq 0x8c30
movq (%r13), %rax
addq -0x30(%rbp), %rax
leaq (%r14,%rax), %rsi
addq $0x3fdc, %rsi           # imm = 0x3FDC
leaq (%rbx,%rbp), %rdi
addq $-0x1c0, %rdi           # imm = 0xFE40
callq 0x8c30
movq (%r13), %rax
addq -0x48(%rbp), %rax
movsd (%rax,%r14,2), %xmm0
movsd %xmm0, -0x190(%rbp,%r14,2)
leaq -0xb8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x22ee0
movq %rax, %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x22f4a
incq %r15
addq $0x4, %r14
addq $0x20, %r12
addq $0x20, %rbx
jmp 0x2298d
leaq -0x1c0(%rbp), %rdi
callq 0x22f8e
movq -0x70(%rbp), %r15
incq %r15
addq $0x30, -0x50(%rbp)
addq $0x18, -0x30(%rbp)
addq $0x18, -0x48(%rbp)
leaq 0x654d0(%rip), %r14     # 0x87f68
jmp 0x22928
cmpq $0x0, -0x90(%rbp)
je 0x22acb
movq (%r13), %rsi
movl $0x5fb0, %eax           # imm = 0x5FB0
addq %rax, %rsi
movq -0x40(%rbp), %rdi
callq 0x22fb6
movq %rax, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x23b1a
leaq -0xb8(%rbp), %rdi
callq 0x23fc6
addq $0x8, %r13
jmp 0x228d3
leaq -0x38(%rbp), %rsi
leaq -0x88(%rbp), %rdx
movl -0x34(%rbp), %edi
movsd -0x60(%rbp), %xmm0
callq 0x1a0c4
movl -0x38(%rbp), %edi
movsd -0x88(%rbp), %xmm0
callq 0x4708a
movq -0x58(%rbp), %rcx
movq %rax, 0x8(%rcx)
movsd %xmm0, 0x10(%rcx)
movq %rcx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x22b2c
movq %rax, %rbx
jmp 0x22b53
jmp 0x22b33
movq %rax, %rbx
jmp 0x22b47
movq %rax, %rbx
leaq -0x1c0(%rbp), %rdi
callq 0x22f8e
leaq -0xb8(%rbp), %rdi
callq 0x23fc6
movq -0x40(%rbp), %rdi
callq 0x23a3a
movq %rbx, %rdi
callq 0x8b30