// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
callq 0x6648
leaq 0x10(%rbx), %rax
movq %rax, -0x70(%rbp)
movq %rax, (%rbx)
leaq 0x7ba8(%rip), %rsi      # 0x103e0
leaq 0x7bb5(%rip), %rdx      # 0x103f4
movq %rbx, %rdi
callq 0x62de
leaq 0x20(%rbx), %rdi
leaq 0xe8(%rbx), %r12
movl $0xc8, %edx
xorl %esi, %esi
callq 0x3230
movq %r12, %rdi
movl $0xfa0, %esi            # imm = 0xFA0
callq 0xe6f4
movq %r12, -0x68(%rbp)
leaq 0x130(%rbx), %rdi
movq %rdi, -0x60(%rbp)
movl $0x2328, %esi           # imm = 0x2328
callq 0xe6f4
leaq 0x970(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x988(%rbx), %rax
movq %rax, -0x38(%rbp)
leaq 0x9a0(%rbx), %rax
movq %rax, -0x30(%rbp)
leaq 0x9b8(%rbx), %rdi
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, -0x50(%rbp)
movq %rax, 0x9b8(%rbx)
xorl %eax, %eax
movq %rax, 0x9c0(%rbx)
movb %al, 0x9c8(%rbx)
leaq 0x9d8(%rbx), %r12
leaq 0x9e8(%rbx), %rcx
movq %rcx, -0x48(%rbp)
movq %rcx, 0x9d8(%rbx)
movq %rax, 0x9e0(%rbx)
movb %al, 0x9e8(%rbx)
movb %al, 0x9f8(%rbx)
movq %rdi, -0x58(%rbp)
movq %r15, %rsi
callq 0x3220
movq %r12, %rdi
movq %r13, %rsi
callq 0x3220
movq -0x40(%rbp), %rdi
movq %r14, %rsi
callq 0xcfe2
movq -0x38(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd470
movq -0x30(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd716
movl $0x1b, 0x180(%rbx)
movl $0x48, %edi
callq 0x3340
movq %rax, %r14
leaq -0x80(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0x6244
leaq -0x90(%rbp), %rsi
movq %r14, %rdi
movl $0x2328, %edx           # imm = 0x2328
callq 0xe64e
movq %r14, 0x178(%rbx)
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x89c5
callq 0x3320
movq %rbx, %rdi
callq 0x8234
addq $0x184, %rbx            # imm = 0x184
movl $0x7d0, %edx            # imm = 0x7D0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3230
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x8a0e
callq 0x3320
jmp 0x8a0e
movq %rax, %r13
movq %r14, %rdi
callq 0x3320
jmp 0x8a25
movq %rax, %r13
jmp 0x8a86
movq %rax, %r13
jmp 0x8a8f
movq %rax, %r13
movq (%r12), %rdi
cmpq -0x48(%rbp), %rdi
je 0x8a34
callq 0x3320
movq -0x58(%rbp), %rax
movq (%rax), %rdi
cmpq -0x50(%rbp), %rdi
je 0x8a46
callq 0x3320
leaq 0x958(%rbx), %r14
movq -0x30(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x8a5e
callq 0x3320
movq -0x38(%rbp), %rdi
callq 0xcf94
movq -0x40(%rbp), %rdi
callq 0xcf94
movq (%r14), %rdi
testq %rdi, %rdi
je 0x8a7d
callq 0x3320
movq -0x60(%rbp), %rdi
callq 0xe6de
movq -0x68(%rbp), %rdi
callq 0xe6de
movq (%rbx), %rdi
cmpq -0x70(%rbp), %rdi
je 0x8a9d
callq 0x3320
movq %r13, %rdi
callq 0x3580
nop