// File: /workspace/github_cpp_makefile_star2_O1/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 0xf13d
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 0x6244
leaq -0x128(%rbp), %rsi
movq %rbx, %rdi
callq 0x8014
movq -0x128(%rbp), %rdi
cmpq %r15, %rdi
je 0xf0ff
callq 0x3320
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf111
callq 0x3320
movq %rbx, %rdi
callq 0x8aa6
movq %rbx, %rdi
callq 0xa0e4
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 0xf1cf
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 0xdd80
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xf1c7
callq 0x3320
incq %r15
cmpq %r15, %r13
jne 0xf194
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 0x6244
leaq -0xd8(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0x6244
leaq -0xc8(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xd1ee
leaq -0x108(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
movq %rbx, %rdi
callq 0x8804
leaq -0xc8(%rbp), %rdi
callq 0xcf94
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
je 0xf271
callq 0x3320
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xf282
callq 0x3320
leaq -0x70(%rbp), %rdi
callq 0xcf94
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xf0fa
jmp 0xf0ff
movq %rax, %r14
leaq -0xc8(%rbp), %rdi
callq 0xcf94
jmp 0xf2b5
movq %rax, %r14
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
je 0xf2cb
callq 0x3320
jmp 0xf2cb
movq %rax, %r14
movq -0x108(%rbp), %rdi
cmpq %r15, %rdi
je 0xf2e1
callq 0x3320
jmp 0xf2e1
movq %rax, %r14
movq %rbx, %rdi
jmp 0xf32f
jmp 0xf314
movq %rax, %r14
movq -0x128(%rbp), %rdi
cmpq %r15, %rdi
je 0xf301
callq 0x3320
jmp 0xf301
movq %rax, %r14
movq %rbx, %rdi
jmp 0xf34a
jmp 0xf308
movq %rax, %r14
jmp 0xf34f
jmp 0xf30f
movq %rax, %r14
jmp 0xf361
movq %rax, %r14
jmp 0xf334
movq %rax, %r14
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xf334
callq 0x3320
leaq -0x70(%rbp), %rdi
callq 0xcf94
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf34f
callq 0x3320
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf361
callq 0x3320
movq %r14, %rdi
callq 0x3580