// File: /workspace/github_cpp_makefile_star2_O1/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 0x2399b
movq %r14, %rdi
callq 0x8130
movq %r14, -0x48(%rbp)
movq (%r15), %rdi
movl $0x3a, %esi
callq 0x1db90
movslq %eax, %rcx
leaq -0x480(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x8660
movq (%r12), %r13
movq %r13, %rdi
callq 0x89b0
movl %eax, %r12d
leaq -0x470(%rbp), %r14
cmpq %r14, %r13
je 0x239e6
movq %r13, %rdi
callq 0x85d0
movq (%r15), %rdi
movl $0x3a, %esi
callq 0x1db90
incl %eax
movslq %eax, %rdx
leaq -0x480(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0x8660
movq (%r13), %r15
movq %r15, %rdi
callq 0x87e0
cmpq %r14, %r15
je 0x23a34
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 0x1d2d2
addq $0x10, %rsp
movl $0xb0, %edx
addq 0x6a537(%rip), %rdx     # 0x8dfa0
leaq 0x47d60(%rip), %rsi     # 0x6b7d0
leaq -0x480(%rbp), %r15
movq %r15, %rdi
movl $0x2f, %ecx
xorl %eax, %eax
callq 0x8120
leaq 0x6c4b3(%rip), %r14     # 0x8ff40
cmpq $0x0, (%r14)
jne 0x23aab
movl $0xc808, %edi           # imm = 0xC808
callq 0x8640
movq %rax, %r12
movq %rax, %rdi
callq 0x22f5c
movq %r12, (%r14)
movq (%r14), %rdi
movl -0x38(%rbp), %r8d
movl -0x34(%rbp), %r9d
movl -0x30(%rbp), %eax
movl -0x2c(%rbp), %r10d
subq $0x8, %rsp
leaq 0x46b2d(%rip), %rcx     # 0x6a5f5
movl $0x1, %esi
movq %rcx, %rdx
pushq %r15
pushq %r10
pushq %rax
callq 0x2310a
addq $0x20, %rsp
movq 0x5fb0(%rbx), %rsi
leaq -0x680(%rbp), %r15
movq %r15, %rdi
callq 0x85c0
movq %r15, %rdi
callq 0x1dc36
leaq 0x47cd2(%rip), %rsi     # 0x6b7d5
leaq -0x580(%rbp), %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x8120
cmpq $0x0, (%r14)
jne 0x23b32
movl $0xc808, %edi           # imm = 0xC808
callq 0x8640
movq %rax, %r12
movq %rax, %rdi
callq 0x22f5c
movq %r12, (%r14)
movq (%r14), %r12
movl -0x38(%rbp), %r13d
movl -0x34(%rbp), %r14d
movl -0x30(%rbp), %eax
movq %rax, -0x40(%rbp)
movl -0x2c(%rbp), %r15d
leaq -0x480(%rbp), %rdi
callq 0x8290
addq %rbp, %rax
addq $-0x480, %rax           # imm = 0xFB80
subq $0x8, %rsp
leaq 0x47a9c(%rip), %rdx     # 0x6b604
leaq -0x580(%rbp), %rcx
movq %r12, %rdi
xorl %esi, %esi
movl %r13d, %r8d
movl %r14d, %r9d
pushq %rax
pushq %r15
pushq -0x40(%rbp)
callq 0x2310a
addq $0x20, %rsp
leaq -0x68(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x480(%rbp), %rdi
callq 0x8290
leaq (%rax,%rbp), %rdx
addq $-0x480, %rdx           # imm = 0xFB80
leaq -0x78(%rbp), %r14
movq %r14, %rdi
leaq -0x480(%rbp), %rsi
callq 0x1126a
movq %rbx, %r12
leaq 0xba28(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x87d0
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x23bdd
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 0x23c72
movq 0x6a3c2(%rip), %r14     # 0x8dfc8
leaq 0x47bd2(%rip), %rsi     # 0x6b7df
movl $0x2a, %edx
movq %r14, %rdi
callq 0x8730
movq 0xba28(%r12), %rsi
movq 0xba30(%r12), %rdx
movq %r14, %rdi
callq 0x8730
movq %rax, %rbx
leaq 0x47bce(%rip), %rsi     # 0x6b80a
movl $0x9, %edx
movq %rax, %rdi
callq 0x8730
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 0x23c7a
movq %r12, %rdi
callq 0x23ca2
addq $0x658, %rsp            # imm = 0x658
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x23c8e
movq %rax, %rbx
movq %r12, %rdi
callq 0x85d0
movq %rbx, %rdi
callq 0x8b40
nop