// File: /workspace/github_cpp_makefile_star2_O2/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, -0x30(%rbp)
leaq -0x20c8(%rbp), %rdi
callq 0x25f42
leaq -0x68(%rbp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
andq $0x0, 0x10(%rax)
leaq -0x50(%rbp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
andq $0x0, 0x10(%rax)
leaq -0x4d0(%rbp), %r12
leaq 0x674a2(%rip), %rbx     # 0x89b60
movq %r12, %r13
movq (%r13), %r13
cmpq %r12, %r13
je 0x226f9
leaq 0x10(%r13), %r14
movq %rbx, %r15
movq (%r15), %r15
cmpq %rbx, %r15
je 0x226eb
leaq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x1d4ec
testb %al, %al
je 0x226d1
jmp 0x226c1
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x23020
jmp 0x226c1
leaq 0x67460(%rip), %r13     # 0x89b60
movq -0x30(%rbp), %rbx
movq (%r13), %r13
leaq 0x67451(%rip), %rax     # 0x89b60
cmpq %rax, %r13
je 0x22747
movq -0x4d0(%rbp), %r15
leaq 0x10(%r13), %r14
cmpq %r12, %r15
je 0x22739
leaq 0x10(%r15), %rdi
movq %r14, %rsi
callq 0x1d4ec
testb %al, %al
jne 0x22704
movq (%r15), %r15
jmp 0x2271f
leaq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x23020
jmp 0x22704
leaq -0x88(%rbp), %r12
leaq -0x38(%rbp), %r13
leaq -0x68(%rbp), %r15
movq (%r15), %r15
leaq -0x68(%rbp), %rax
cmpq %rax, %r15
je 0x2279f
movl $0xba48, %edi           # imm = 0xBA48
callq 0x8630
movq %rax, %r14
leaq 0x10(%r15), %rsi
movq %r12, %rdi
callq 0x8870
movq %r14, %rdi
movq %r12, %rsi
callq 0x1f554
movq %r12, %rdi
callq 0x82c0
movq %r14, -0x38(%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x22d2e
jmp 0x22756
movl $0x5fb0, %r12d          # imm = 0x5FB0
leaq -0x50(%rbp), %r13
movq (%r13), %r13
leaq -0x50(%rbp), %rax
cmpq %rax, %r13
je 0x227ff
movq (%rbx), %r15
leaq 0x10(%r13), %r14
cmpq 0x8(%rbx), %r15
je 0x227a9
movq (%r15), %rdi
addq %r12, %rdi
movq %r14, %rsi
callq 0x1d4ec
testb %al, %al
jne 0x227db
addq $0x8, %r15
jmp 0x227bd
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq (%r15), %rdi
testq %rdi, %rdi
je 0x227f2
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x23030
jmp 0x227a9
leaq 0x65762(%rip), %rdi     # 0x87f68
leaq -0x20c8(%rbp), %rsi
callq 0x22c74
leaq -0x50(%rbp), %rdi
callq 0x2335c
leaq -0x68(%rbp), %rdi
callq 0x2335c
leaq -0x20c8(%rbp), %rdi
callq 0x25efe
addq $0x20a8, %rsp           # imm = 0x20A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x22868
jmp 0x22868
jmp 0x22868
jmp 0x22868
movq %rax, %rbx
jmp 0x2285e
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x82c0
movq %r14, %rdi
callq 0x85d0
jmp 0x2286b
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x2335c
leaq -0x68(%rbp), %rdi
callq 0x2335c
leaq -0x20c8(%rbp), %rdi
callq 0x25efe
movq %rbx, %rdi
callq 0x8b30
nop