// File: /workspace/github_cpp_makefile_star2_O1/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 0x87a0
leaq 0x6533d(%rip), %r12     # 0x91fa0
cmpq $0x0, (%r12)
jne 0x2cc89
movl $0x2040, %edi           # imm = 0x2040
callq 0x8640
movq %rax, %r15
movq %rax, %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x29900
movq %r15, (%r12)
leaq -0x48(%rbp), %r12
movq %r12, 0x8(%r12)
movq %r12, (%r12)
movq $0x0, 0x10(%r12)
leaq -0x41e8(%rbp), %rdi
callq 0x2af0e
callq 0x5893a
movl -0x4194(%rbp), %edx
leaq -0x1e7020(%rbp), %rbx
movq %rbx, %rdi
movl $0x5, %esi
movl $0x1, %ecx
callq 0x2b8e8
movl -0x4198(%rbp), %edx
leaq -0x1460b8(%rbp), %r14
movq %r14, %rdi
movl $0xa, %esi
xorl %ecx, %ecx
callq 0x2b8e8
movl -0x4190(%rbp), %edx
leaq -0xa5150(%rbp), %r15
movq %r15, %rdi
movl $0x1, %esi
movl $0x2, %ecx
callq 0x2b8e8
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 0x2ae18
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 0x2cffe
leaq -0x30(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x48(%rbp), %rdi
callq 0x2cffe
leaq -0x30(%rbp), %rsi
movq %r15, (%rsi)
leaq -0x48(%rbp), %rdi
callq 0x2cffe
leaq -0xb0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x26964
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x2d030
leaq -0x21a8(%rbp), %rdi
leaq -0x60(%rbp), %r14
movq %r14, %rsi
callq 0x62dea
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x2ce0f
movq (%rdi), %rbx
callq 0x85d0
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x2cdff
leaq -0x1e7020(%rbp), %rdi
callq 0x2bb0e
leaq -0x1460b8(%rbp), %rdi
callq 0x2bb0e
leaq -0xa5150(%rbp), %rdi
callq 0x2bb0e
callq 0x2afec
movl $0x1388, %edi           # imm = 0x1388
callq 0x508e9
jmp 0x2ce33
jmp 0x2ce6a
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x2ce6d
movq (%rdi), %r15
callq 0x85d0
movq %r15, %rdi
cmpq %r14, %r15
jne 0x2ce52
jmp 0x2ce6d
jmp 0x2ce6a
jmp 0x2ce6a
jmp 0x2ce6a
movq %rax, %rbx
leaq -0x21a8(%rbp), %rdi
callq 0x62c28
jmp 0x2ce7e
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x267d8
leaq -0xa5150(%rbp), %rdi
callq 0x2b99e
jmp 0x2ce9b
movq %rax, %rbx
leaq -0x1460b8(%rbp), %rdi
callq 0x2b99e
jmp 0x2ceac
movq %rax, %rbx
leaq -0x1e7020(%rbp), %rdi
callq 0x2b99e
jmp 0x2cebf
jmp 0x2cebc
movq %rax, %rbx
leaq -0x41e8(%rbp), %rdi
callq 0x2aec0
jmp 0x2cedd
movq %rax, %rbx
movq %r15, %rdi
callq 0x85d0
jmp 0x2cef6
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x2cef6
movq (%rdi), %r14
callq 0x85d0
movq %r14, %rdi
cmpq %r12, %r14
jne 0x2cee6
movq %rbx, %rdi
callq 0x8b40