// File: /workspace/github_cpp_makefile_star2_O2/DoubleString[P]RtConverter/src/Rnxobs/RnxobsFile_sat.cpp
// Function: bamboo::RnxobsFile_sat::v_openRnx(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void RnxobsFile_sat::v_openRnx(string obscmd) {
	int curmjd,iy,im,id,ih,imi;
	double cursod,dsec;
	if (this->in.is_open())
		this->in.close();
	Deploy* dly = RtRinexStream::m_getCurConfigures();
	char obsFile[1024],key[256],name[256];
	curmjd = atoi(obscmd.substr(0,index_string(obscmd.c_str(),':')).c_str());
	cursod = atof(obscmd.substr(index_string(obscmd.c_str(),':') + 1).c_str());
	mjd2date(curmjd,cursod,&iy,&im,&id,&ih,&imi,&dsec);
	sprintf(obsFile,"%s%c",dly->obsdir, FILEPATHSEP);
	Patterns::s_getInstance()->m_getPatternName(true,"","",iy,im,id,ih,obsFile);
	strcpy(name,staname.c_str());
	sprintf(key, "STANAM=%s", toLower(name));
	Patterns::s_getInstance()->m_getPatternName(false, "rnxo", key, iy, im, id, ih,
			obsFile + strlen(obsFile));
	this->dir = string(obsFile);
	this->in.open(this->dir.c_str(), ios::in | ios::binary);
	if (!in) {
		cout << "***WARNING(RnxobsFile_sat):cant open file " << this->dir
				<< " to read!" << endl;
		return;
	}
	// Read Rnxobs Head
	this->m_readRnxHead();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x668, %rsp            # imm = 0x668
movq %rsi, %r14
leaq 0xb820(%rdi), %r15
movq %rdi, -0x50(%rbp)
addq $0xb898, %rdi           # imm = 0xB898
callq 0x8190
testb %al, %al
je 0x1f7ac
movq %r15, %rdi
callq 0x8130
movq (%r14), %rdi
movq %r15, -0x58(%rbp)
pushq $0x3a
popq %r15
movl %r15d, %esi
callq 0x1a5f7
movslq %eax, %rcx
leaq -0x590(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x8650
movq (%r13), %rdi
callq 0x8990
movl %eax, %r12d
movq %r13, %rdi
callq 0x82c0
movq (%r14), %rdi
movl %r15d, %esi
callq 0x1a5f7
incl %eax
movslq %eax, %rdx
leaq -0x590(%rbp), %r15
pushq $-0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x8650
movq (%r15), %rdi
callq 0x87b0
movsd %xmm0, -0x38(%rbp)
movq %r15, %rdi
callq 0x82c0
subq $0x8, %rsp
leaq -0x68(%rbp), %rax
leaq -0x60(%rbp), %rbx
leaq -0x44(%rbp), %rdx
leaq -0x40(%rbp), %rcx
leaq -0x3c(%rbp), %r13
leaq -0x5c(%rbp), %r9
movl %r12d, %edi
movsd -0x38(%rbp), %xmm0
movq %rbx, %rsi
movq %rdx, %r14
movq %rcx, %r12
movq %r13, %r8
pushq %rax
callq 0x19e07
popq %rax
popq %rcx
movl $0xb0, %edx
addq 0x66740(%rip), %rdx     # 0x85fa8
leaq 0x41f51(%rip), %rsi     # 0x617c0
pushq $0x2f
popq %rcx
movq %r15, %rdi
xorl %eax, %eax
callq 0x8110
callq 0x21c74
movl (%rbx), %r8d
movl (%r14), %r9d
movl (%r12), %r10d
movl (%r13), %r11d
subq $0x8, %rsp
leaq 0x40d4b(%rip), %rcx     # 0x605e5
pushq $0x1
popq %rsi
movq %rax, %rdi
movq %rcx, %rdx
pushq %r15
pushq %r11
pushq %r10
callq 0x1f05e
addq $0x20, %rsp
movq -0x50(%rbp), %r12
movq 0x5fb0(%r12), %rsi
leaq -0x690(%rbp), %r14
movq %r14, %rdi
callq 0x85c0
movq %r14, %rdi
callq 0x1a695
leaq 0x41ee9(%rip), %rsi     # 0x617c5
leaq -0x190(%rbp), %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x8110
callq 0x21c74
movq %rax, %r14
movl (%rbx), %r13d
leaq -0x44(%rbp), %rax
movl (%rax), %r15d
leaq -0x40(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x38(%rbp)
leaq -0x3c(%rbp), %rax
movl (%rax), %ebx
leaq -0x590(%rbp), %rdi
callq 0x8290
addq %rbp, %rax
addq $-0x590, %rax           # imm = 0xFA70
subq $0x8, %rsp
leaq 0x41cc5(%rip), %rdx     # 0x615f4
movq %r14, %rdi
xorl %esi, %esi
leaq -0x190(%rbp), %rcx
movl %r13d, %r8d
movl %r15d, %r9d
pushq %rax
pushq %rbx
pushq -0x38(%rbp)
callq 0x1f05e
addq $0x20, %rsp
leaq -0x88(%rbp), %r15
leaq -0x29(%rbp), %rdx
movq %r15, %rdi
leaq -0x590(%rbp), %rsi
callq 0x8260
leaq 0xba28(%r12), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x87a0
movq %r15, %rdi
callq 0x82c0
movq 0xba28(%r12), %rsi
pushq $0xc
popq %rdx
movq -0x58(%rbp), %rdi
callq 0x8400
movq 0xb820(%r12), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xb840(%r12,%rax)
je 0x1f9e6
movq 0x66612(%rip), %rdi     # 0x85fc8
leaq 0x41e12(%rip), %rsi     # 0x617cf
callq 0x8610
movq %rax, %rdi
movq %r14, %rsi
callq 0x8560
leaq 0x41e26(%rip), %rsi     # 0x617fa
movq %rax, %rdi
callq 0x8610
movq %rax, %rdi
callq 0x8310
jmp 0x1f9ee
movq %r12, %rdi
callq 0x1fa00
addq $0x668, %rsp            # imm = 0x668
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq