// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rnxobs/RtRinexStream.cpp
// Function: bamboo::RtRinexStream::m_adaptConfigures()
void RtRinexStream::m_adaptConfigures() {
	Deploy config_new = Deploy::s_getConfigures();
	/// diff the new configures and saved configures and update the memory
	list<string> add_, del_;
	vector<RnxobsFile_sat*>::iterator rnxItr;
	list<string>::iterator strItr, strItr_mem;
	for (strItr = config_new.post_stalist.begin(); strItr != config_new.post_stalist.end(); strItr++) {
		bool lfind = false;
		for (strItr_mem = configs_sav.post_stalist.begin(); strItr_mem != configs_sav.post_stalist.end(); ++strItr_mem) {
			if ((*strItr) == (*strItr_mem)) {
				lfind = true;
				break;
			}
		}
		if (!lfind) add_.push_back(*strItr);
	}
	for (strItr_mem = configs_sav.post_stalist.begin(); strItr_mem != configs_sav.post_stalist.end(); ++strItr_mem) {
		bool lfind = false;
		for (strItr = config_new.post_stalist.begin(); strItr != config_new.post_stalist.end(); strItr++) {
			if ((*strItr) == (*strItr_mem)) {
				lfind = true;
				break;
			}
		}
		if (!lfind) del_.push_back(*strItr_mem);
	}
	/// adapt the current process
	for (strItr = add_.begin(); strItr != add_.end(); strItr++) {
		RnxobsFile_sat* rnx = new RnxobsFile_sat(*strItr);
		this->m_rnxs.push_back(rnx);
	}
	for (strItr = del_.begin(); strItr != del_.end(); strItr++) {
		for (rnxItr = m_rnxs.begin(); rnxItr != m_rnxs.end(); rnxItr++) {
			if ((*rnxItr)->staname == (*strItr)) {
				(*rnxItr)->v_closeRnx();
				delete (*rnxItr);
				m_rnxs.erase(rnxItr);
				break;
			}
		}
	}
	configs_sav = config_new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20a8, %rsp           # imm = 0x20A8
movq %rdi, -0x38(%rbp)
leaq -0x20d0(%rbp), %rdi
callq 0x2aa68
leaq -0x68(%rbp), %rcx
movq %rcx, 0x8(%rcx)
movq %rcx, (%rcx)
xorl %eax, %eax
movq %rax, 0x10(%rcx)
leaq -0x50(%rbp), %rcx
movq %rcx, 0x8(%rcx)
movq %rcx, (%rcx)
movq %rax, 0x10(%rcx)
leaq -0x4d8(%rbp), %rax
movq (%rax), %rbx
movq 0x6a9ef(%rip), %r15     # 0x91b50
cmpq %rax, %rbx
je 0x271d6
leaq 0x6a9e3(%rip), %r14     # 0x91b50
cmpq %r14, %r15
je 0x271a1
movq 0x18(%rbx), %r12
movq %r15, %r13
cmpq 0x18(%r13), %r12
jne 0x27198
testq %r12, %r12
je 0x271c7
movq 0x10(%r13), %rsi
movq 0x10(%rbx), %rdi
movq %r12, %rdx
callq 0x8650
testl %eax, %eax
je 0x271c7
movq (%r13), %r13
cmpq %r14, %r13
jne 0x27179
leaq 0x10(%rbx), %rsi
leaq -0x68(%rbp), %r15
movq %r15, %rdi
callq 0x27e5e
movq %rax, %rdi
movq %r15, %rsi
callq 0x80c0
incq -0x58(%rbp)
movq 0x6a989(%rip), %r15     # 0x91b50
movq (%rbx), %rbx
leaq -0x4d8(%rbp), %rax
cmpq %rax, %rbx
jne 0x2716d
leaq 0x6a973(%rip), %rbx     # 0x91b50
cmpq %rbx, %r15
je 0x2724e
leaq -0x50(%rbp), %r13
movq -0x4d8(%rbp), %r14
leaq -0x4d8(%rbp), %rax
cmpq %rax, %r14
je 0x2722b
movq 0x18(%r15), %r12
cmpq %r12, 0x18(%r14)
jne 0x2721c
testq %r12, %r12
je 0x27246
movq 0x10(%r15), %rsi
movq 0x10(%r14), %rdi
movq %r12, %rdx
callq 0x8650
testl %eax, %eax
je 0x27246
movq (%r14), %r14
leaq -0x4d8(%rbp), %rax
cmpq %rax, %r14
jne 0x271fd
leaq 0x10(%r15), %rsi
movq %r13, %rdi
callq 0x27e5e
movq %rax, %rdi
movq %r13, %rsi
callq 0x80c0
incq -0x40(%rbp)
movq (%r15), %r15
cmpq %rbx, %r15
jne 0x271e6
movq -0x68(%rbp), %r12
leaq -0x68(%rbp), %rax
cmpq %rax, %r12
movq -0x38(%rbp), %r14
je 0x272e4
leaq -0x80(%rbp), %rbx
leaq -0x90(%rbp), %r15
movl $0xba48, %edi           # imm = 0xBA48
callq 0x8640
movq %rax, %r13
movq %rbx, -0x90(%rbp)
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x111e0
movq %r13, %rdi
movq %r15, %rsi
callq 0x230dc
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x272b3
callq 0x85d0
movq %r13, -0x70(%rbp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x272cb
movq %r13, (%rsi)
addq $0x8, 0x8(%r14)
jmp 0x272d7
movq %r14, %rdi
leaq -0x70(%rbp), %rdx
callq 0x28ba4
movq (%r12), %r12
leaq -0x68(%rbp), %rax
cmpq %rax, %r12
jne 0x2726e
movq -0x50(%rbp), %rcx
leaq -0x50(%rbp), %rax
movq %rcx, -0x30(%rbp)
cmpq %rax, %rcx
je 0x273af
movq 0x8(%r14), %r15
movq (%r14), %rbx
cmpq %r15, %rbx
je 0x27397
movq -0x30(%rbp), %rax
movq 0x18(%rax), %r13
leaq 0x8(%rbx), %r12
movq (%rbx), %r14
cmpq %r13, 0x5fb8(%r14)
jne 0x27341
testq %r13, %r13
je 0x27354
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x5fb0(%r14), %rdi
movq %r13, %rdx
callq 0x8650
testl %eax, %eax
je 0x27354
addq $0x8, %rbx
addq $0x8, %r12
cmpq %r15, %rbx
jne 0x27315
movq -0x38(%rbp), %r14
jmp 0x27397
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
movq (%rbx), %rdi
testq %rdi, %rdi
movq -0x38(%rbp), %r14
je 0x2736f
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%r14), %r15
cmpq %r15, %r12
je 0x2738f
leaq -0x8(%r12), %rdi
subq %r12, %r15
movq %r12, %rsi
movq %r15, %rdx
callq 0x8a40
movq 0x8(%r14), %r15
addq $-0x8, %r15
movq %r15, 0x8(%r14)
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
leaq -0x50(%rbp), %rax
movq %rcx, -0x30(%rbp)
cmpq %rax, %rcx
jne 0x272fd
leaq 0x68ba2(%rip), %r15     # 0x8ff58
leaq -0x20d0(%rbp), %r14
movl $0x6b0, %ebx            # imm = 0x6B0
movl $0x6b0, %edx            # imm = 0x6B0
movq %r15, %rdi
movq %r14, %rsi
callq 0x84f0
leaq (%r15,%rbx), %rdi
leaq (%rbx,%rbp), %rsi
addq $-0x20d0, %rsi          # imm = 0xDF30
callq 0x8380
addq $0x20, %rbx
cmpq $0x1bf0, %rbx           # imm = 0x1BF0
jne 0x273d2
movq -0x4e0(%rbp), %rax
movq -0x4d8(%rbp), %rsi
movq %rax, 0x6a740(%rip)     # 0x91b48
leaq 0x1bf8(%r15), %rdi
leaq -0x4d8(%rbp), %rdx
callq 0x27caa
movl $0x1c10, %edi           # imm = 0x1C10
leaq (%r14,%rdi), %rsi
addq %r15, %rdi
callq 0x27ef2
movl $0x1c40, %eax           # imm = 0x1C40
leaq (%r14,%rax), %rsi
addq %rax, %r15
movl $0x400, %edx            # imm = 0x400
movq %r15, %rdi
callq 0x84f0
leaq -0x50(%rbp), %rdi
callq 0x27eac
leaq -0x68(%rbp), %rdi
callq 0x27eac
movq %r14, %rdi
callq 0x2aa1a
addq $0x20a8, %rsp           # imm = 0x20A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2749e
jmp 0x2749e
jmp 0x2749e
jmp 0x2749e
movq %rax, %r14
jmp 0x27492
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x27492
callq 0x85d0
movq %r13, %rdi
callq 0x85d0
jmp 0x274a1
jmp 0x2749e
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x27eac
leaq -0x68(%rbp), %rdi
callq 0x27eac
leaq -0x20d0(%rbp), %rdi
callq 0x2aa1a
movq %r14, %rdi
callq 0x8b30
nop