// File: /workspace/github_cpp_makefile_star2_O1/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 0x2af0e
movq 0x20e0(%rbx), %rax
movq %rbx, -0x30(%rbp)
leaq 0x20d0(%rbx), %r12
cmpq %r12, %rax
je 0x63398
movl $0x0, 0xa0(%rax)
movq %rax, %rdi
callq 0x8460
jmp 0x6337f
leaq -0x4c8(%rbp), %rax
movq 0x10(%rax), %rcx
cmpq %rax, %rcx
je 0x63551
movq -0x30(%rbp), %rax
addq $0x20c8, %rax           # imm = 0x20C8
movq %rax, -0x38(%rbp)
leaq 0x40(%rcx), %rax
movq %rcx, -0x40(%rbp)
movq 0x40(%rcx), %rbx
movq %rax, -0x48(%rbp)
cmpq %rax, %rbx
je 0x63535
leaq 0x30(%rbx), %r14
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x64e86
leaq 0x10(%rbx), %r13
movq %r12, %r15
cmpq %r12, %rax
je 0x63519
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x63fe2
movl $0x1, 0x60(%rax)
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x63fe2
movq %rax, %r12
movl (%rax), %eax
cmpl (%r13), %eax
jne 0x634ce
movsd 0x8(%r12), %xmm0
subsd 0x18(%rbx), %xmm0
andpd 0x64fb(%rip), %xmm0     # 0x69930
movsd 0x8383(%rip), %xmm1     # 0x6b7c0
ucomisd %xmm0, %xmm1
jbe 0x634ce
movsd 0x10(%r12), %xmm0
subsd 0x20(%rbx), %xmm0
andpd 0x64d5(%rip), %xmm0     # 0x69930
movsd 0x835d(%rip), %xmm1     # 0x6b7c0
ucomisd %xmm0, %xmm1
jbe 0x634ce
movsd 0x18(%r12), %xmm0
subsd 0x28(%rbx), %xmm0
andpd 0x64b3(%rip), %xmm0     # 0x69930
movsd 0x833b(%rip), %xmm1     # 0x6b7c0
ucomisd %xmm0, %xmm1
jbe 0x634ce
movq 0x48(%r12), %rdx
cmpq 0x58(%rbx), %rdx
jne 0x634ce
testq %rdx, %rdx
je 0x634ad
movq 0x50(%rbx), %rsi
movq 0x40(%r12), %rdi
callq 0x8650
testl %eax, %eax
jne 0x634ce
movq 0x28(%r12), %rdx
cmpq 0x38(%rbx), %rdx
jne 0x634ce
testq %rdx, %rdx
je 0x63525
movq (%r14), %rsi
movq 0x20(%r12), %rdi
callq 0x8650
testl %eax, %eax
je 0x63525
leaq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x1143c
movq -0x30(%rbp), %r14
movq %r14, %rdi
leaq -0x80(%rbp), %rsi
callq 0x63f04
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x6350c
callq 0x85d0
movq %r14, %rdi
movq %r13, %rsi
callq 0x63258
jmp 0x63525
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x63258
movq (%rbx), %rbx
cmpq -0x48(%rbp), %rbx
movq %r15, %r12
jne 0x633d3
movq -0x40(%rbp), %rdi
callq 0x8460
movq %rax, %rcx
leaq -0x4c8(%rbp), %rax
cmpq %rax, %rcx
jne 0x633ba
leaq -0x60(%rbp), %rbx
movq %rbx, 0x8(%rbx)
movq %rbx, (%rbx)
movq $0x0, 0x10(%rbx)
movq -0x30(%rbp), %rax
movq 0x20e0(%rax), %r14
cmpq %r12, %r14
je 0x635ad
leaq -0x60(%rbp), %r15
cmpl $0x0, 0xa0(%r14)
jne 0x6359d
leaq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x2830a
movq %rax, %rdi
movq %r15, %rsi
callq 0x80c0
incq -0x50(%rbp)
movq %r14, %rdi
callq 0x8460
movq %rax, %r14
cmpq %r12, %rax
jne 0x63578
movq -0x60(%rbp), %r12
cmpq %rbx, %r12
je 0x63606
leaq -0x90(%rbp), %r15
leaq -0xa0(%rbp), %r14
movq %r15, -0xa0(%rbp)
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x1143c
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x63f04
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x635fd
callq 0x85d0
movq (%r12), %r12
cmpq %rbx, %r12
jne 0x635c4
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 0x63638
movq -0x4f0(%rbp), %rax
movq -0x30(%rbp), %rbx
movq %rax, 0x1c00(%rbx)
cmpq %r12, %r15
je 0x6367d
leaq -0x4e8(%rbp), %rdx
leaq 0x1c08(%rbx), %rdi
movq (%rdx), %rsi
callq 0x28156
leaq 0x1c20(%rbx), %rdi
leaq -0x4d0(%rbp), %rsi
callq 0x2839e
addq $0x1c50, %rbx           # imm = 0x1C50
leaq -0x4a0(%rbp), %rsi
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
callq 0x84f0
leaq -0x60(%rbp), %rdi
callq 0x28358
leaq -0x20e0(%rbp), %rdi
callq 0x2aec0
addq $0x20b8, %rsp           # imm = 0x20B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x636ee
jmp 0x636ee
jmp 0x636ee
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x636f1
callq 0x85d0
jmp 0x636f1
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x28358
jmp 0x6371a
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x6371a
callq 0x85d0
jmp 0x6371a
jmp 0x63717
jmp 0x63717
movq %rax, %rbx
leaq -0x20e0(%rbp), %rdi
callq 0x2aec0
movq %rbx, %rdi
callq 0x8b40