// File: /workspace/github_cpp_makefile_star2_O2/DoubleString[P]RtConverter/src/VrsObs/VrsNtripClient.cpp
// Function: bamboo::VrsNtripClient::m_adaptConfigures()
void VrsNtripClient::m_adaptConfigures() {
	Deploy config_new = Deploy::s_getConfigures();
	list<VrsStaItem>::iterator staItr;
	list<RtConverter*>::iterator rtItr;
	map<string, list<VrsStaItem>>::iterator mapItr;
	map<string, VrsStaItem>::iterator vrsItr;
	for (vrsItr = m_stas.begin(); vrsItr != m_stas.end(); ++vrsItr) {
		(*vrsItr).second.lcheck = false;
	}
	for (mapItr = config_new.rt_mounts.begin(); mapItr != config_new.rt_mounts.end(); ++mapItr) {
		for (staItr = (*mapItr).second.begin(); staItr != (*mapItr).second.end(); ++staItr) {
			if (m_stas.find((*staItr).staname) == m_stas.end()) {
				/// new station
				m_newConnection((*staItr));
			}
			else {
				/// already in memory,will check the configure
				m_stas[(*staItr).staname].lcheck = true;
				VrsStaItem& item_mem = m_stas[(*staItr).staname];
				if (item_mem == (*staItr))
					continue;
				// delete first 
				m_deleteConnection((*staItr).staname);
				// add new here
				m_newConnection((*staItr));
			}
		}
	}
	list<string> _dels;
	list<string>::iterator strItr;
	for (vrsItr = m_stas.begin(); vrsItr != m_stas.end(); ++vrsItr) {
		if ((*vrsItr).second.lcheck == false) {
			_dels.push_back((*vrsItr).first);
		}
	}
	for (strItr = _dels.begin(); strItr != _dels.end(); ++strItr) {
		m_deleteConnection(*strItr);
	}
	configs_sav = config_new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20b8, %rsp           # imm = 0x20B8
movq %rdi, %r13
leaq -0x20e0(%rbp), %rdi
callq 0x25f42
movq 0x20e0(%r13), %rax
leaq 0x20d0(%r13), %rcx
movq %rcx, -0x38(%rbp)
cmpq -0x38(%rbp), %rax
je 0x58f94
andl $0x0, 0xa0(%rax)
movq %rax, %rdi
callq 0x8460
jmp 0x58f7d
leaq 0x20c8(%r13), %r14
leaq -0x4c8(%rbp), %rax
movq 0x10(%rax), %rcx
movq %r13, -0x30(%rbp)
leaq -0x4c8(%rbp), %rax
cmpq %rax, %rcx
je 0x59075
movq %rcx, -0x40(%rbp)
leaq 0x40(%rcx), %rbx
movq %rbx, -0x48(%rbp)
movq (%rbx), %rbx
cmpq -0x48(%rbp), %rbx
je 0x59060
leaq 0x30(%rbx), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x5a6bc
leaq 0x10(%rbx), %r13
cmpq -0x38(%rbp), %rax
je 0x5904f
movq %r14, %rdi
movq %r12, %rsi
callq 0x597fc
movl $0x1, 0x60(%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x597fc
movq %rax, %rdi
movq %r13, %rsi
callq 0x599a3
testb %al, %al
jne 0x58fc6
leaq -0x80(%rbp), %rdi
movq %r12, %rsi
callq 0x8870
movq -0x30(%rbp), %r12
movq %r12, %rdi
leaq -0x80(%rbp), %r15
movq %r15, %rsi
callq 0x5971e
movq %r15, %rdi
callq 0x82c0
movq %r12, %rdi
movq %r13, %rsi
callq 0x58e88
jmp 0x58fc6
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x58e88
jmp 0x58fc6
movq -0x40(%rbp), %rdi
callq 0x8460
movq %rax, %rcx
movq -0x30(%rbp), %r13
jmp 0x58faa
leaq -0x60(%rbp), %r14
movq %r14, 0x8(%r14)
movq %r14, (%r14)
andq $0x0, 0x10(%r14)
movq 0x20e0(%r13), %r12
cmpq -0x38(%rbp), %r12
je 0x590b7
cmpl $0x0, 0xa0(%r12)
jne 0x590aa
leaq 0x20(%r12), %rsi
movq %r14, %rdi
callq 0x23020
movq %r12, %rdi
callq 0x8460
movq %rax, %r12
jmp 0x5908c
leaq -0xa0(%rbp), %r15
movq %r14, %rbx
movq (%rbx), %rbx
cmpq %r14, %rbx
je 0x590ea
leaq 0x10(%rbx), %rsi
movq %r15, %rdi
callq 0x8870
movq %r13, %rdi
movq %r15, %rsi
callq 0x5971e
movq %r15, %rdi
callq 0x82c0
jmp 0x590c1
addq $0x10, %r13
leaq -0x20e0(%rbp), %rsi
movq %r13, %rdi
callq 0x22c74
leaq -0x60(%rbp), %rdi
callq 0x2335c
leaq -0x20e0(%rbp), %rdi
callq 0x25efe
addq $0x20b8, %rsp           # imm = 0x20B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x59128
jmp 0x59128
movq %rax, %rbx
jmp 0x5913c
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x82c0
leaq -0x60(%rbp), %rdi
callq 0x2335c
jmp 0x5915c
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x82c0
jmp 0x5915c
jmp 0x59159
jmp 0x59159
movq %rax, %rbx
leaq -0x20e0(%rbp), %rdi
callq 0x25efe
movq %rbx, %rdi
callq 0x8b30