// File: 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
subq $0x210, %rsp            # imm = 0x210
movq %rdi, -0x1d0(%rbp)
movq %rdi, %rax
movq %rax, -0x1c8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movsd %xmm0, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movb $0x0, -0x41(%rbp)
callq 0x45730
leaq -0x50(%rbp), %rdi
callq 0x45120
movq -0x28(%rbp), %rdi
callq 0x452d0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rdi
callq 0x45340
movq %rax, -0x60(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x45300
testb $0x1, %al
jne 0x449ca
jmp 0x44ce7
leaq -0x90(%rbp), %rdi
callq 0x45760
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl 0xb518e(%rip), %eax     # 0xf9b74
jge 0x44c50
movslq -0x2c(%rbp), %rax
shlq $0x5, %rax
leaq 0xb512d(%rip), %rcx     # 0xf9b28
leaq 0x6b0(%rax,%rcx), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x9eb0
movq %rax, -0x1d8(%rbp)
jmp 0x44a15
movq -0x1d8(%rbp), %rax
movsbl (%rax), %esi
leaq 0x7902f(%rip), %rdi     # 0xbda55
callq 0x340b0
movl %eax, -0x1dc(%rbp)
jmp 0x44a33
movl -0x1dc(%rbp), %eax
movl %eax, -0x30(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x45780
jmp 0x44a4a
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movslq -0x30(%rbp), %rdx
leaq 0xb50c9(%rip), %rcx     # 0xf9b28
cmpl 0x30(%rcx,%rdx,4), %eax
jge 0x44c36
leaq -0x50(%rbp), %rdi
callq 0x45370
movq (%rax), %rax
addq $0x8, %rax
movslq -0x2c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movslq -0x34(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x44a9d
jp 0x44a9d
jmp 0x44c26
leaq -0x50(%rbp), %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x45370
movq -0x1e8(%rbp), %rdi
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rcx
movslq -0x34(%rbp), %rax
movsd 0x8(%rcx,%rax,8), %xmm0
movsd %xmm0, -0x1a8(%rbp,%rax,8)
callq 0x45370
movq -0x1e8(%rbp), %rdi
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rcx
movslq -0x34(%rbp), %rax
movsd 0x20(%rcx,%rax,8), %xmm0
movsd %xmm0, -0x190(%rbp,%rax,8)
callq 0x45370
movq (%rax), %rax
movslq -0x2c(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rcx
movslq -0x34(%rbp), %rax
leaq 0x3fd0(%rcx,%rax,4), %rsi
shlq $0x5, %rax
leaq -0x160(%rbp,%rax), %rdi
callq 0x9a20
jmp 0x44b3d
leaq -0x50(%rbp), %rdi
callq 0x45370
movq (%rax), %rax
movslq -0x2c(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rcx
movslq -0x34(%rbp), %rdx
movq %rdx, %rax
addq $0x3, %rax
leaq 0x3fdc(%rcx,%rdx,4), %rsi
shlq $0x5, %rax
leaq -0x160(%rbp,%rax), %rdi
callq 0x9a20
jmp 0x44b7b
leaq -0x50(%rbp), %rdi
callq 0x45370
movq (%rax), %rax
movslq -0x2c(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rcx
movslq -0x34(%rbp), %rax
movsd 0x4fc0(%rcx,%rax,8), %xmm0
movsd %xmm0, -0x178(%rbp,%rax,8)
movslq -0x2c(%rbp), %rax
shlq $0x5, %rax
leaq 0xb4f70(%rip), %rcx     # 0xf9b28
leaq 0x6b0(%rax,%rcx), %rsi
leaq -0x90(%rbp), %rdi
callq 0x457f0
movq %rax, -0x1f0(%rbp)
jmp 0x44bd5
movq -0x1f0(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
callq 0x458d0
jmp 0x44bea
jmp 0x44c26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x44cd6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x45950
jmp 0x44cd6
jmp 0x44c28
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x44a51
leaq -0x1a8(%rbp), %rdi
callq 0x45950
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x449dd
leaq -0x90(%rbp), %rdi
callq 0x459a0
cmpq $0x0, %rax
jbe 0x44cb3
movq -0x1d0(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x200(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x45370
movq -0x200(%rbp), %rdi
movq (%rax), %rsi
addq $0x5fb0, %rsi           # imm = 0x5FB0
callq 0x459c0
movq %rax, -0x1f8(%rbp)
jmp 0x44c9c
movq -0x1f8(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x45aa0
jmp 0x44cb1
jmp 0x44cb3
leaq -0x90(%rbp), %rdi
callq 0x45ad0
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0x454f0
movq %rax, -0x1b0(%rbp)
jmp 0x449a7
leaq -0x90(%rbp), %rdi
callq 0x45ad0
jmp 0x44d93
movl -0x14(%rbp), %edi
movsd -0x20(%rbp), %xmm0
leaq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x33810
jmp 0x44cfe
movl -0x38(%rbp), %edi
movsd -0x40(%rbp), %xmm0
callq 0x8e4a0
movsd %xmm0, -0x210(%rbp)
movq %rax, -0x208(%rbp)
jmp 0x44d1c
movq -0x1d0(%rbp), %rax
movsd -0x210(%rbp), %xmm0
movq -0x208(%rbp), %rcx
movq %rcx, -0x1c0(%rbp)
movsd %xmm0, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x1b8(%rbp), %rcx
movq %rcx, 0x10(%rax)
movb $0x1, -0x41(%rbp)
testb $0x1, -0x41(%rbp)
jne 0x44d83
jmp 0x44d77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x44d93
movq -0x1d0(%rbp), %rdi
callq 0x456b0
movq -0x1c8(%rbp), %rax
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
movq -0x1d0(%rbp), %rdi
callq 0x456b0
movq -0x98(%rbp), %rdi
callq 0x9d20
nopl (%rax,%rax)