// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/RtConverter/RtConverter.cpp
// Function: main
int main(int argc, char* args[]) {
	signal(SIGPIPE, SIG_IGN);
	Deploy::s_initInstance(argc,args);
	list<RtConverter*> rt_svrs;
	Deploy dly = Deploy::s_getConfigures();
	strinitcom();

	RtConverter rtconv_nrtk(5,dly.nrtkport,RtConverter::ConvType::obsbin);
	RtConverter rtconv_rtk(10,dly.rtkport, RtConverter::ConvType::obsbnc);
	RtConverter rtconv_eph(1, dly.ephport, RtConverter::ConvType::eph);
	RtRinexStream poststr;
	VrsNtripClient vrsstr;
	rt_svrs.push_back(&rtconv_nrtk);
	rt_svrs.push_back(&rtconv_rtk);
	rt_svrs.push_back(&rtconv_eph);

	/// post observation 
	poststr.openStream(rt_svrs);
	/// vrs observation 
	vrsstr.openStream(rt_svrs);

	/// server thread 
	rtconv_nrtk.beginProcess();
	rtconv_rtk.beginProcess();
	rtconv_eph.beginProcess();
	while (true) {
		Deploy::s_updateConfigures();
		sleepms(5000);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e6ff8, %rsp         # imm = 0x1E6FF8
movq %rsi, %rbx
movl %edi, %r14d
movl $0x1, %esi
movl $0xd, %edi
callq 0x8790
leaq 0x657c7(%rip), %r12     # 0x91fa0
cmpq $0x0, (%r12)
jne 0x2c7ff
movl $0x2040, %edi           # imm = 0x2040
callq 0x8640
movq %rax, %r15
movq %rax, %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x29434
movq %r15, (%r12)
leaq -0x48(%rbp), %r12
movq %r12, 0x8(%r12)
movq %r12, (%r12)
movq $0x0, 0x10(%r12)
leaq -0x41e8(%rbp), %rdi
callq 0x2aa68
callq 0x57d56
movl -0x4194(%rbp), %edx
leaq -0x1e7020(%rbp), %rbx
movq %rbx, %rdi
movl $0x5, %esi
movl $0x1, %ecx
callq 0x2b42c
movl -0x4198(%rbp), %edx
leaq -0x1460b8(%rbp), %r14
movq %r14, %rdi
movl $0xa, %esi
xorl %ecx, %ecx
callq 0x2b42c
movl -0x4190(%rbp), %edx
leaq -0xa5150(%rbp), %r15
movq %r15, %rdi
movl $0x1, %esi
movl $0x2, %ecx
callq 0x2b42c
xorps %xmm0, %xmm0
leaq -0x88(%rbp), %rax
movaps %xmm0, -0x28(%rax)
xorl %r13d, %r13d
movq %r13, -0x18(%rax)
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq %r13, 0x10(%rax)
leaq -0x2198(%rbp), %rdi
callq 0x2a972
leaq -0x158(%rbp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq %r13, 0x10(%rax)
leaq -0x138(%rbp), %rax
movl %r13d, (%rax)
movq %r13, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %r13, 0x20(%rax)
leaq -0x108(%rbp), %rax
movl %r13d, (%rax)
movq %r13, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %r13, 0x20(%rax)
leaq -0xd8(%rbp), %rax
movl %r13d, (%rax)
movq %r13, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %r13, 0x20(%rax)
leaq -0x30(%rbp), %rsi
movq %rbx, (%rsi)
leaq -0x48(%rbp), %rdi
callq 0x2cb74
leaq -0x30(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x48(%rbp), %rdi
callq 0x2cb74
leaq -0x30(%rbp), %rsi
movq %r15, (%rsi)
leaq -0x48(%rbp), %rdi
callq 0x2cb74
leaq -0xb0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x264a4
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x2cba6
leaq -0x21a8(%rbp), %rdi
leaq -0x60(%rbp), %r14
movq %r14, %rsi
callq 0x621d6
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x2c985
movq (%rdi), %rbx
callq 0x85d0
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x2c975
leaq -0x1e7020(%rbp), %rdi
callq 0x2b644
leaq -0x1460b8(%rbp), %rdi
callq 0x2b644
leaq -0xa5150(%rbp), %rdi
callq 0x2b644
callq 0x2ab46
movl $0x1388, %edi           # imm = 0x1388
callq 0x4ff28
jmp 0x2c9a9
jmp 0x2c9e0
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x2c9e3
movq (%rdi), %r15
callq 0x85d0
movq %r15, %rdi
cmpq %r14, %r15
jne 0x2c9c8
jmp 0x2c9e3
jmp 0x2c9e0
jmp 0x2c9e0
jmp 0x2c9e0
movq %rax, %rbx
leaq -0x21a8(%rbp), %rdi
callq 0x62014
jmp 0x2c9f4
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x26318
leaq -0xa5150(%rbp), %rdi
callq 0x2b4e2
jmp 0x2ca11
movq %rax, %rbx
leaq -0x1460b8(%rbp), %rdi
callq 0x2b4e2
jmp 0x2ca22
movq %rax, %rbx
leaq -0x1e7020(%rbp), %rdi
callq 0x2b4e2
jmp 0x2ca35
jmp 0x2ca32
movq %rax, %rbx
leaq -0x41e8(%rbp), %rdi
callq 0x2aa1a
jmp 0x2ca53
movq %rax, %rbx
movq %r15, %rdi
callq 0x85d0
jmp 0x2ca6c
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x2ca6c
movq (%rdi), %r14
callq 0x85d0
movq %r14, %rdi
cmpq %r12, %r14
jne 0x2ca5c
movq %rbx, %rdi
callq 0x8b30