// File: /workspace/github_cpp_makefile_star2_O3/vianna274[P]dropbox/server.cpp
// Function: main
int main(int argc, char *argv[])
{	
	Server *server;
	if(argc == 2){
		// main
		string ipLocal(argv[1]);
		server = new Server(ipLocal);
	}
	else{
		// backups
		string ipLocal(argv[1]);
		string ipMain(argv[2]);
		vector<string> ipBackups;
		for(int i = 3; i<argc; i++){
			ipBackups.push_back(argv[i]);
		}
		server = new Server(ipLocal, ipMain, ipBackups);
	}
	
	server->run();

	delete server;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
cmpl $0x2, %edi
jne 0xf045
movq 0x8(%rbx), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x3150
movl $0xa00, %edi            # imm = 0xA00
callq 0x3340
movq %rax, %rbx
leaq -0x118(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x128(%rbp), %rdi
callq 0x6270
leaq -0x128(%rbp), %rsi
movq %rbx, %rdi
callq 0x8050
movq -0x128(%rbp), %rdi
cmpq %r15, %rdi
je 0xf007
callq 0x3320
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf019
callq 0x3320
movq %rbx, %rdi
callq 0x8a76
movq %rbx, %rdi
callq 0xa0b4
movq %rbx, %rdi
callq 0x3320
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edi, %r14d
movq 0x8(%rbx), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x3150
movq 0x10(%rbx), %rsi
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rdx
callq 0x3150
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movq $0x0, -0x60(%rbp)
cmpl $0x4, %r14d
jl 0xf0d7
movl %r14d, %r13d
movl $0x3, %r15d
leaq -0xb0(%rbp), %r14
leaq -0x70(%rbp), %r12
movq (%rbx,%r15,8), %rsi
movq %r14, %rdi
leaq -0x29(%rbp), %rdx
callq 0x3150
movq %r12, %rdi
movq %r14, %rsi
callq 0xdd1c
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xf0cf
callq 0x3320
incq %r15
cmpq %r15, %r13
jne 0xf09c
movl $0xa00, %edi            # imm = 0xA00
callq 0x3340
movq %rax, %rbx
leaq -0xf8(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x108(%rbp), %rdi
callq 0x6270
leaq -0xd8(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0x6270
leaq -0xc8(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xd1b0
leaq -0x108(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
movq %rbx, %rdi
callq 0x87d4
leaq -0xc8(%rbp), %rdi
callq 0xcf3c
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
je 0xf179
callq 0x3320
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xf18a
callq 0x3320
leaq -0x70(%rbp), %rdi
callq 0xcf3c
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xf002
jmp 0xf007
movq %rax, %r14
leaq -0xc8(%rbp), %rdi
callq 0xcf3c
jmp 0xf1bd
movq %rax, %r14
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
je 0xf1d3
callq 0x3320
jmp 0xf1d3
movq %rax, %r14
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xf1e9
callq 0x3320
jmp 0xf1e9
movq %rax, %r14
movq %rbx, %rdi
jmp 0xf237
jmp 0xf21c
movq %rax, %r14
movq -0x128(%rbp), %rdi
cmpq %r15, %rdi
je 0xf209
callq 0x3320
jmp 0xf209
movq %rax, %r14
movq %rbx, %rdi
jmp 0xf252
jmp 0xf210
movq %rax, %r14
jmp 0xf257
jmp 0xf217
movq %rax, %r14
jmp 0xf269
movq %rax, %r14
jmp 0xf23c
movq %rax, %r14
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xf23c
callq 0x3320
leaq -0x70(%rbp), %rdi
callq 0xcf3c
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf257
callq 0x3320
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf269
callq 0x3320
movq %r14, %rdi
callq 0x3580