// File: /workspace/github_cpp_makefile_star2_O2/vianna274[P]dropbox/src/Server.cpp
// Function: Dropbox::Server::Server(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
Server::Server(string ipLocal, string ipMain, vector<string> backups) : connectClientSocket(SERVER_PORT), listenToServersSocket(BACKUPS_PORT)
{
    this->isMain = false;
    this->ipLocal = ipLocal;
    this->ipMain = ipMain;
    this->backups = backups;
    this->usersIp = {};
    this->backupsSockets = {};
    this->status = STATUS_NOT_YET;
    this->talkToPrimary = new WrapperSocket(ipMain, BACKUPS_PORT);
    initializeUsers();
    initializePorts();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
callq 0x58b4
leaq 0x5201(%rip), %rsi      # 0xc3a8
leaq -0x29(%rbp), %rdx
movq %rbx, %rdi
callq 0x3130
leaq 0x20(%rbx), %rdi
leaq 0xe8(%rbx), %r13
movl $0xc8, %edx
xorl %esi, %esi
callq 0x3220
movq %r13, %rdi
movl $0xfa0, %esi            # imm = 0xFA0
callq 0xb4da
movq %r13, -0x60(%rbp)
leaq 0x130(%rbx), %rdi
movq %rdi, -0x58(%rbp)
movl $0x2328, %esi           # imm = 0x2328
callq 0xb4da
leaq 0x970(%rbx), %rax
movq %rax, -0x48(%rbp)
leaq 0x988(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x9c8(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x9a8(%rbx)
movups %xmm0, 0x998(%rbx)
movups %xmm0, 0x988(%rbx)
movups %xmm0, 0x978(%rbx)
movups %xmm0, 0x968(%rbx)
movups %xmm0, 0x958(%rbx)
movq %rax, 0x9b8(%rbx)
andq $0x0, 0x9c0(%rbx)
leaq 0x9a0(%rbx), %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
movb %al, 0x9c8(%rbx)
leaq 0x9e8(%rbx), %rcx
movq %rcx, 0x9d8(%rbx)
andq $0x0, 0x9e0(%rbx)
leaq 0x9b8(%rbx), %rdi
leaq 0x9d8(%rbx), %r13
movb %al, 0x9e8(%rbx)
movb %al, 0x9f8(%rbx)
movq %rdi, -0x50(%rbp)
movq %r15, %rsi
callq 0x3210
movq %r13, %rdi
movq %r12, %rsi
callq 0x3210
movq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xa082
movq -0x40(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa036
movq -0x38(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa768
movl $0x1b, 0x180(%rbx)
pushq $0x48
popq %rdi
callq 0x3320
movq %rax, %r15
leaq -0x80(%rbp), %rdi
movq %r12, %rsi
callq 0x33d0
leaq -0x80(%rbp), %rsi
movq %r15, %rdi
movl $0x2328, %edx           # imm = 0x2328
callq 0xb422
movq %r15, 0x178(%rbx)
leaq -0x80(%rbp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x6e6c
movq %rbx, %rdi
callq 0x715e
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x80(%rbp), %rdi
callq 0x3170
jmp 0x733b
movq %rax, %r14
movq %r15, %rdi
callq 0x32f0
jmp 0x7352
movq %rax, %r14
jmp 0x7396
movq %rax, %r14
jmp 0x739f
movq %rax, %r14
leaq 0x958(%rbx), %r15
movq %r13, %rdi
callq 0x3170
movq -0x50(%rbp), %rdi
callq 0x3170
movq -0x38(%rbp), %rdi
callq 0xa4c6
movq -0x40(%rbp), %rdi
callq 0xa056
movq -0x48(%rbp), %rdi
callq 0xa056
movq %r15, %rdi
callq 0xa478
movq -0x58(%rbp), %rdi
callq 0xb4c4
movq -0x60(%rbp), %rdi
callq 0xb4c4
movq %rbx, %rdi
callq 0x3170
movq %r14, %rdi
callq 0x3540
nop