// File: /workspace/github_cpp_makefile_star2_O3/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 $0x658, %rsp            # imm = 0x658
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xb820(%rdi), %r14
addq $0xb898, %rdi           # imm = 0xB898
callq 0x8180
testb %al, %al
je 0x2343d
movq %r14, %rdi
callq 0x8130
movq %r14, -0x48(%rbp)
movq (%r15), %rdi
movl $0x3a, %esi
callq 0x1d54b
movslq %eax, %rcx
leaq -0x580(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x8660
movq (%r12), %r13
movq %r13, %rdi
callq 0x89a0
movl %eax, %r12d
leaq -0x570(%rbp), %r14
cmpq %r14, %r13
je 0x23488
movq %r13, %rdi
callq 0x85d0
movq (%r15), %rdi
movl $0x3a, %esi
callq 0x1d54b
incl %eax
movslq %eax, %rdx
leaq -0x580(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0x8660
movq (%r13), %r15
movq %r15, %rdi
callq 0x87d0
cmpq %r14, %r15
je 0x234d6
movq %r15, %rdi
movsd %xmm0, -0x40(%rbp)
callq 0x85d0
movsd -0x40(%rbp), %xmm0
subq $0x8, %rsp
leaq -0x58(%rbp), %rax
leaq -0x38(%rbp), %rsi
leaq -0x34(%rbp), %rdx
leaq -0x30(%rbp), %rcx
leaq -0x2c(%rbp), %r8
leaq -0x4c(%rbp), %r9
movl %r12d, %edi
pushq %rax
callq 0x1cc5e
addq $0x10, %rsp
movl $0xb0, %edx
addq 0x6aa9d(%rip), %rdx     # 0x8dfa8
leaq 0x482be(%rip), %rsi     # 0x6b7d0
leaq -0x580(%rbp), %r12
movq %r12, %rdi
movl $0x2f, %ecx
xorl %eax, %eax
callq 0x8120
leaq 0x6ca11(%rip), %r14     # 0x8ff40
movq (%r14), %r15
testq %r15, %r15
jne 0x2354f
movl $0xc808, %edi           # imm = 0xC808
callq 0x8640
movq %rax, %r15
movq %rax, %rdi
callq 0x228d4
movq %r15, (%r14)
movl -0x38(%rbp), %r8d
movl -0x34(%rbp), %r9d
movl -0x30(%rbp), %eax
movl -0x2c(%rbp), %r10d
subq $0x8, %rsp
leaq 0x4708c(%rip), %rcx     # 0x6a5f5
movq %r15, %rdi
movl $0x1, %esi
movq %rcx, %rdx
pushq %r12
pushq %r10
pushq %rax
callq 0x22baa
addq $0x20, %rsp
movq 0x5fb0(%rbx), %rsi
leaq -0x680(%rbp), %r15
movq %r15, %rdi
callq 0x85c0
movq %r15, %rdi
callq 0x1d5f1
leaq 0x4822e(%rip), %rsi     # 0x6b7d5
leaq -0x180(%rbp), %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x8120
movq (%r14), %r15
testq %r15, %r15
jne 0x235d8
movl $0xc808, %edi           # imm = 0xC808
callq 0x8640
movq %rax, %r15
movq %rax, %rdi
callq 0x228d4
movq %r15, (%r14)
movl -0x38(%rbp), %r13d
movl -0x34(%rbp), %r14d
movl -0x30(%rbp), %eax
movq %rax, -0x40(%rbp)
movl -0x2c(%rbp), %r12d
leaq -0x580(%rbp), %rdi
callq 0x8290
addq %rbp, %rax
addq $-0x580, %rax           # imm = 0xFA80
subq $0x8, %rsp
leaq 0x47ff9(%rip), %rdx     # 0x6b604
leaq -0x180(%rbp), %rcx
movq %r15, %rdi
xorl %esi, %esi
movl %r13d, %r8d
movl %r14d, %r9d
pushq %rax
pushq %r12
pushq -0x40(%rbp)
callq 0x22baa
addq $0x20, %rsp
leaq -0x68(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x580(%rbp), %r15
movq %r15, %rdi
callq 0x8290
leaq (%rax,%rbp), %rdx
addq $-0x580, %rdx           # imm = 0xFA80
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x1100a
movq %rbx, %r12
leaq 0xba28(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x87c0
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x2367f
callq 0x85d0
movq (%r15), %rsi
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
movl $0xc, %edx
callq 0x8400
movq (%rbx), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rbx,%rax)
je 0x23714
movq 0x6a928(%rip), %r14     # 0x8dfd0
leaq 0x48130(%rip), %rsi     # 0x6b7df
movl $0x2a, %edx
movq %r14, %rdi
callq 0x8720
movq 0xba28(%r12), %rsi
movq 0xba30(%r12), %rdx
movq %r14, %rdi
callq 0x8720
movq %rax, %rbx
leaq 0x4812c(%rip), %rsi     # 0x6b80a
movl $0x9, %edx
movq %rax, %rdi
callq 0x8720
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8600
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8050
movq %rax, %rdi
callq 0x8450
jmp 0x2371c
movq %r12, %rdi
callq 0x23744
addq $0x658, %rsp            # imm = 0x658
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x23730
movq %rax, %rbx
movq %r15, %rdi
callq 0x85d0
movq %rbx, %rdi
callq 0x8b30
nop