// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
leaq -0x20e0(%rbp), %rdi
callq 0x2aa68
movq 0x20e0(%rbx), %r15
leaq 0x20d0(%rbx), %r12
cmpq %r12, %r15
je 0x62786
movq %r15, %rax
movl $0x0, 0xa0(%rax)
movq %rax, %rdi
callq 0x8460
cmpq %r12, %rax
jne 0x6276f
leaq -0x4c8(%rbp), %rax
movq 0x10(%rax), %rdx
cmpq %rax, %rdx
movq %rbx, -0x30(%rbp)
je 0x6294e
movq %rdx, %rcx
leaq 0x20c8(%rbx), %rax
movq %rax, -0x38(%rbp)
leaq 0x40(%rcx), %rax
movq %rcx, -0x40(%rbp)
movq 0x40(%rcx), %rbx
movq %rax, -0x48(%rbp)
cmpq %rax, %rbx
je 0x62927
leaq 0x30(%rbx), %r14
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x6423c
leaq 0x10(%rbx), %r13
movq %r12, %r15
cmpq %r12, %rax
je 0x6290b
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x633be
movl $0x1, 0x60(%rax)
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x633be
movq %rax, %r12
movl (%rax), %eax
cmpl (%r13), %eax
jne 0x628c0
movsd 0x8(%r12), %xmm0
subsd 0x18(%rbx), %xmm0
andpd 0x7109(%rip), %xmm0     # 0x69930
movsd 0x8f91(%rip), %xmm1     # 0x6b7c0
ucomisd %xmm0, %xmm1
jbe 0x628c0
movsd 0x10(%r12), %xmm0
subsd 0x20(%rbx), %xmm0
andpd 0x70e3(%rip), %xmm0     # 0x69930
movsd 0x8f6b(%rip), %xmm1     # 0x6b7c0
ucomisd %xmm0, %xmm1
jbe 0x628c0
movsd 0x18(%r12), %xmm0
subsd 0x28(%rbx), %xmm0
andpd 0x70c1(%rip), %xmm0     # 0x69930
movsd 0x8f49(%rip), %xmm1     # 0x6b7c0
ucomisd %xmm0, %xmm1
jbe 0x628c0
movq 0x48(%r12), %rdx
cmpq 0x58(%rbx), %rdx
jne 0x628c0
testq %rdx, %rdx
je 0x6289f
movq 0x50(%rbx), %rsi
movq 0x40(%r12), %rdi
callq 0x8650
testl %eax, %eax
jne 0x628c0
movq 0x28(%r12), %rdx
cmpq 0x38(%rbx), %rdx
jne 0x628c0
testq %rdx, %rdx
je 0x62917
movq (%r14), %rsi
movq 0x20(%r12), %rdi
callq 0x8650
testl %eax, %eax
je 0x62917
leaq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x111e0
movq -0x30(%rbp), %r14
movq %r14, %rdi
leaq -0x80(%rbp), %rsi
callq 0x632e0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x628fe
callq 0x85d0
movq %r14, %rdi
movq %r13, %rsi
callq 0x62644
jmp 0x62917
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x62644
movq (%rbx), %rbx
cmpq -0x48(%rbp), %rbx
movq %r15, %r12
jne 0x627c5
movq -0x40(%rbp), %rdi
callq 0x8460
movq %rax, %rcx
leaq -0x4c8(%rbp), %rax
cmpq %rax, %rcx
jne 0x627ac
movq -0x30(%rbp), %rax
movq 0x20e0(%rax), %r15
leaq -0x60(%rbp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
cmpq %r12, %r15
je 0x629f9
leaq -0x60(%rbp), %r14
cmpl $0x0, 0xa0(%r15)
jne 0x62993
leaq 0x20(%r15), %rsi
movq %r14, %rdi
callq 0x27e5e
movq %rax, %rdi
movq %r14, %rsi
callq 0x80c0
incq -0x50(%rbp)
movq %r15, %rdi
callq 0x8460
movq %rax, %r15
cmpq %r12, %rax
jne 0x6296e
movq -0x60(%rbp), %rbx
cmpq %r14, %rbx
je 0x629f9
leaq -0x90(%rbp), %r12
leaq -0xa0(%rbp), %r15
movq %r12, -0xa0(%rbp)
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x111e0
movq -0x30(%rbp), %rdi
movq %r15, %rsi
callq 0x632e0
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0x629f1
callq 0x85d0
movq (%rbx), %rbx
cmpq %r14, %rbx
jne 0x629ba
movq -0x30(%rbp), %rbx
leaq 0x10(%rbx), %r15
leaq -0x20e0(%rbp), %r12
movl $0x6b0, %edx            # imm = 0x6B0
movq %r15, %rdi
movq %r12, %rsi
callq 0x84f0
leaq 0x6c0(%rbx), %r13
movl $0xaa, %ebx
leaq -0x1a30(%rbp), %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x8380
addq $0x20, %r14
addq $0x20, %r13
decq %rbx
jne 0x62a2b
movq -0x4f0(%rbp), %rax
movq -0x30(%rbp), %rbx
movq %rax, 0x1c00(%rbx)
cmpq %r12, %r15
je 0x62a70
leaq -0x4e8(%rbp), %rdx
leaq 0x1c08(%rbx), %rdi
movq (%rdx), %rsi
callq 0x27caa
leaq 0x1c20(%rbx), %rdi
leaq -0x4d0(%rbp), %rsi
callq 0x27ef2
addq $0x1c50, %rbx           # imm = 0x1C50
leaq -0x4a0(%rbp), %rsi
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
callq 0x84f0
leaq -0x60(%rbp), %rdi
callq 0x27eac
leaq -0x20e0(%rbp), %rdi
callq 0x2aa1a
addq $0x20b8, %rsp           # imm = 0x20B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x62ae1
jmp 0x62ae1
jmp 0x62ae1
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0x62ae4
callq 0x85d0
jmp 0x62ae4
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x27eac
jmp 0x62b0d
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x62b0d
callq 0x85d0
jmp 0x62b0d
jmp 0x62b0a
jmp 0x62b0a
movq %rax, %rbx
leaq -0x20e0(%rbp), %rdi
callq 0x2aa1a
movq %rbx, %rdi
callq 0x8b30
nop