// File: /workspace/github_cpp_makefile_star2_O1/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 0x2af0e
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), %r13
cmpq %rax, %r13
je 0x27683
leaq 0x6a536(%rip), %r15     # 0x91b50
leaq -0x68(%rbp), %r14
movq 0x6a52b(%rip), %rbx     # 0x91b50
cmpq %r15, %rbx
je 0x27655
movq 0x18(%r13), %r12
cmpq 0x18(%rbx), %r12
jne 0x2764d
testq %r12, %r12
je 0x27673
movq 0x10(%rbx), %rsi
movq 0x10(%r13), %rdi
movq %r12, %rdx
callq 0x8650
testl %eax, %eax
je 0x27673
movq (%rbx), %rbx
cmpq %r15, %rbx
jne 0x2762e
leaq 0x10(%r13), %rsi
movq %r14, %rbx
movq %r14, %rdi
callq 0x2830a
movq %rax, %rdi
movq %rbx, %rsi
callq 0x80c0
incq -0x58(%rbp)
movq (%r13), %r13
leaq -0x4d8(%rbp), %rax
cmpq %rax, %r13
jne 0x2761e
movq 0x6a4c6(%rip), %r12     # 0x91b50
leaq 0x6a4bf(%rip), %r13     # 0x91b50
cmpq %r13, %r12
je 0x27706
leaq -0x50(%rbp), %r15
movq -0x4d8(%rbp), %rbx
leaq -0x4d8(%rbp), %rax
cmpq %rax, %rbx
je 0x276e1
movq 0x18(%r12), %r14
movq 0x18(%rbx), %rdx
cmpq %r14, %rdx
jne 0x276d2
testq %rdx, %rdx
je 0x276fd
movq 0x10(%r12), %rsi
movq 0x10(%rbx), %rdi
callq 0x8650
testl %eax, %eax
je 0x276fd
movq (%rbx), %rbx
leaq -0x4d8(%rbp), %rax
cmpq %rax, %rbx
jne 0x276b2
leaq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0x2830a
movq %rax, %rdi
movq %r15, %rsi
callq 0x80c0
incq -0x40(%rbp)
movq (%r12), %r12
cmpq %r13, %r12
jne 0x2769a
movq -0x68(%rbp), %r12
leaq -0x68(%rbp), %rbx
cmpq %rbx, %r12
movq -0x38(%rbp), %r14
je 0x2779c
leaq -0x90(%rbp), %r15
movl $0xba48, %edi           # imm = 0xBA48
callq 0x8640
movq %rax, %r13
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x1143c
movq %r13, %rdi
movq %r15, %rsi
callq 0x2362c
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x2776f
callq 0x85d0
movq %r13, -0x70(%rbp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x27787
movq %r13, (%rsi)
addq $0x8, 0x8(%r14)
jmp 0x27793
movq %r14, %rdi
leaq -0x70(%rbp), %rdx
callq 0x2904c
movq (%r12), %r12
cmpq %rbx, %r12
jne 0x27722
movq -0x50(%rbp), %rcx
leaq -0x50(%rbp), %rax
movq %rcx, -0x30(%rbp)
cmpq %rax, %rcx
je 0x2785f
movq (%r14), %rbx
movq 0x8(%r14), %r14
cmpq %r14, %rbx
je 0x27843
movq -0x30(%rbp), %rax
movq 0x18(%rax), %r13
leaq 0x8(%rbx), %r15
movq (%rbx), %r12
movq 0x5fb8(%r12), %rdx
cmpq %r13, %rdx
jne 0x277fb
testq %rdx, %rdx
je 0x2780a
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x5fb0(%r12), %rdi
callq 0x8650
testl %eax, %eax
je 0x2780a
addq $0x8, %rbx
addq $0x8, %r15
cmpq %r14, %rbx
jne 0x277cd
jmp 0x27843
movq (%r12), %rax
movq %r12, %rdi
callq *0x20(%rax)
movq (%rbx), %rdi
testq %rdi, %rdi
movq -0x38(%rbp), %rbx
je 0x27826
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rbx), %rdx
cmpq %rdx, %r15
je 0x2783e
leaq -0x8(%r15), %rdi
subq %r15, %rdx
movq %r15, %rsi
callq 0x8a50
addq $-0x8, 0x8(%rbx)
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
leaq -0x50(%rbp), %rax
movq %rcx, -0x30(%rbp)
cmpq %rax, %rcx
movq -0x38(%rbp), %r14
jne 0x277b1
leaq 0x686f2(%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 0x27882
movq -0x4e0(%rbp), %rax
movq -0x4d8(%rbp), %rsi
movq %rax, 0x6a290(%rip)     # 0x91b48
leaq 0x1bf8(%r15), %rdi
leaq -0x4d8(%rbp), %rdx
callq 0x28156
movl $0x1c10, %edi           # imm = 0x1C10
leaq (%r14,%rdi), %rsi
addq %r15, %rdi
callq 0x2839e
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 0x28358
leaq -0x68(%rbp), %rdi
callq 0x28358
movq %r14, %rdi
callq 0x2aec0
addq $0x20a8, %rsp           # imm = 0x20A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27952
jmp 0x27952
jmp 0x27952
jmp 0x27952
movq %rax, %rbx
jmp 0x27946
movq %rax, %rbx
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x27946
callq 0x85d0
movq %r13, %rdi
callq 0x85d0
jmp 0x27955
jmp 0x27952
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x28358
leaq -0x68(%rbp), %rdi
callq 0x28358
leaq -0x20d0(%rbp), %rdi
callq 0x2aec0
movq %rbx, %rdi
callq 0x8b40
nop