// File: DoubleString[P]RtConverter/src/Rnxbrd/RnxEphFileAdapter.cpp
// Function: bamboo::RnxEphFileAdapter::v_openRnxEph(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void RnxEphFileAdapter::v_openRnxEph(string ephcmd) {
	int curmjd;
	this->isOpen = 1;
	Deploy dly = Deploy::s_getConfigures();
	int iyear, imon, iday, ih, imin;
	double dsec, cursod;
	curmjd = atoi(ephcmd.substr(0, index_string(ephcmd.c_str(), ':')).c_str());
	cursod = atof(ephcmd.substr(index_string(ephcmd.c_str(), ':') + 1).c_str());

	mjd0 = curmjd;
	sod0 = 0.0;
	mjd1 = curmjd + 1;
	sod1 = 0.0;
	mjd2date(curmjd, cursod, &iyear, &imon, &iday, &ih, &imin, &dsec);
	memset(curFile, 0, sizeof(char) * 1024);
	strcpy(curFile, dly.ephdir);
	Patterns::s_getInstance()->m_getPatternName(true, "", "", iyear, imon, iday,
			ih, curFile);

	if (curFile[strlen(curFile) - 1] == 'p') {
		this->m_readRnxnav('M');
	} else {
		this->m_readRnxnav('G');
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2130, %rsp           # imm = 0x2130
movq %rsi, -0x20e0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20e8(%rbp)
movl $0x1, 0xdc8(%rax)
leaq -0x2058(%rbp), %rdi
callq 0x4f7c0
movq -0x20e0(%rbp), %rdi
callq 0x92b0
movq %rax, %rdi
movl $0x3a, %esi
callq 0x340b0
movl %eax, -0x20d4(%rbp)
jmp 0xb79cc
movq -0x20e0(%rbp), %rsi
movl -0x20d4(%rbp), %eax
movslq %eax, %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x20a0(%rbp), %rdi
callq 0x97a0
jmp 0xb79ee
leaq -0x20a0(%rbp), %rdi
movq %rdi, -0x20f8(%rbp)
callq 0x92b0
movq %rax, %rdi
callq 0x9b60
movq -0x20f8(%rbp), %rdi
movl %eax, -0x14(%rbp)
callq 0x9480
movq -0x20e0(%rbp), %rdi
callq 0x92b0
movq %rax, %rdi
movl $0x3a, %esi
callq 0x340b0
movl %eax, -0x20ec(%rbp)
jmp 0xb7a39
movq -0x20e0(%rbp), %rsi
movl -0x20ec(%rbp), %eax
incl %eax
movslq %eax, %rdx
leaq -0x20d0(%rbp), %rdi
movq $-0x1, %rcx
callq 0x97a0
jmp 0xb7a60
leaq -0x20d0(%rbp), %rdi
movq %rdi, -0x2100(%rbp)
callq 0x92b0
movq %rax, %rdi
callq 0x9940
movq -0x2100(%rbp), %rdi
movsd %xmm0, -0x2080(%rbp)
callq 0x9480
movq -0x20e8(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, 0xdb0(%rax)
movq $0x0, 0xdb8(%rax)
movl -0x14(%rbp), %ecx
incl %ecx
movl %ecx, 0xdb4(%rax)
movq $0x0, 0xdc0(%rax)
movl -0x14(%rbp), %edi
movsd -0x2080(%rbp), %xmm0
movq %rsp, %rax
leaq -0x2078(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x205c(%rbp), %rsi
leaq -0x2060(%rbp), %rdx
leaq -0x2064(%rbp), %rcx
leaq -0x2068(%rbp), %r8
leaq -0x206c(%rbp), %r9
callq 0x33420
jmp 0xb7b02
movq -0x20e8(%rbp), %rdi
addq $0x9b0, %rdi            # imm = 0x9B0
movq %rdi, -0x2110(%rbp)
xorl %esi, %esi
movl $0x400, %edx            # imm = 0x400
callq 0x93d0
movq -0x2110(%rbp), %rdi
leaq -0x1da8(%rbp), %rsi
callq 0x96f0
callq 0x42fb0
movq %rax, -0x2108(%rbp)
jmp 0xb7b44
movq -0x2108(%rbp), %rdi
movq -0x20e8(%rbp), %rsi
movl -0x205c(%rbp), %r8d
movl -0x2060(%rbp), %r9d
movl -0x2064(%rbp), %ecx
movl -0x2068(%rbp), %edx
addq $0x9b0, %rsi            # imm = 0x9B0
movq %rsp, %rax
movq %rsi, 0x10(%rax)
movl %edx, 0x8(%rax)
movl %ecx, (%rax)
leaq 0x5181(%rip), %rcx      # 0xbcd07
movl $0x1, %esi
movq %rcx, %rdx
callq 0x3e680
jmp 0xb7b95
movq -0x20e8(%rbp), %rdi
addq $0x9b0, %rdi            # imm = 0x9B0
callq 0x92e0
movq %rax, %rcx
movq -0x20e8(%rbp), %rax
subq $0x1, %rcx
movsbl 0x9b0(%rax,%rcx), %eax
cmpl $0x70, %eax
jne 0xb7bf8
movq -0x20e8(%rbp), %rdi
movl $0x4d, %esi
callq 0xb7c30
jmp 0xb7bd6
jmp 0xb7c0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20a8(%rbp)
movl %eax, -0x20ac(%rbp)
leaq -0x2058(%rbp), %rdi
callq 0x4f750
jmp 0xb7c22
movq -0x20e8(%rbp), %rdi
movl $0x47, %esi
callq 0xb7c30
jmp 0xb7c0b
jmp 0xb7c0d
leaq -0x2058(%rbp), %rdi
callq 0x4f750
addq $0x2130, %rsp           # imm = 0x2130
popq %rbp
retq
movq -0x20a8(%rbp), %rdi
callq 0x9d20
nop