// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Server.cpp
// Function: Dropbox::Server::initializeUsers()
void Server::initializeUsers()
{
    DIR *dir;
    struct dirent *ent;
    if ((dir = opendir (rootDir.c_str())) != NULL) {
        while ((ent = readdir (dir)) != NULL) {
            if(ent->d_type == 0x4 && string(ent->d_name) != string("..") && string(ent->d_name) != string(".")) {
                User *user = new User(ent->d_name, rootDir+ent->d_name+"/");
                users.push_back(user);
            }
        }
        closedir(dir);
    } 
    else if(mkdir(rootDir.c_str(), 0777) == 0) 
        cout << "CREATED ROOT DIR" << endl;
    else
        cout << "COULDN'T OPEN OR CREATE ROOT DIR" << endl;

    cout << "System Users :" << endl;
    for(User *user : users)
    {
        cout << user->getUsername().c_str() << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x3490
testq %rax, %rax
je 0x85c0
movq %rax, %r14
movq %rbx, -0x38(%rbp)
movq %rax, %rdi
callq 0x34b0
testq %rax, %rax
je 0x85b2
movq %rax, %r12
leaq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq -0xa8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x38(%rbp), %rax
addq $0x958, %rax            # imm = 0x958
movq %rax, -0xc8(%rbp)
leaq -0x58(%rbp), %r15
movq %r14, -0xd0(%rbp)
movq %r15, %rbx
movb 0x12(%r12), %r15b
cmpb $0x4, %r15b
jne 0x83c2
leaq 0x13(%r12), %r13
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq %r13, %rdi
callq 0x3170
leaq (%r12,%rax), %rdx
addq $0x13, %rdx
leaq -0x78(%rbp), %rdi
movq %r13, %rsi
callq 0x62de
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0xb8(%rbp), %rdi
leaq 0x8108(%rip), %rsi      # 0x10408
leaq 0x8103(%rip), %rdx      # 0x1040a
callq 0x62de
movq -0x70(%rbp), %rdx
cmpq -0xb0(%rbp), %rdx
jne 0x833a
testq %rdx, %rdx
je 0x83c2
movq -0xb8(%rbp), %rsi
movq -0x78(%rbp), %rdi
callq 0x3350
testl %eax, %eax
je 0x83c2
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
movq %r13, %rdi
callq 0x3170
leaq (%rax,%r13), %rdx
leaq -0x98(%rbp), %rdi
movq %r13, %rsi
callq 0x62de
leaq -0x128(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq -0x138(%rbp), %rdi
leaq 0x808a(%rip), %rsi      # 0x10409
leaq 0x8084(%rip), %rdx      # 0x1040a
callq 0x62de
movq -0x90(%rbp), %rdx
movb $0x1, %r14b
cmpq -0x130(%rbp), %rdx
jne 0x85aa
testq %rdx, %rdx
je 0x83c5
movq -0x138(%rbp), %rsi
movq -0x98(%rbp), %rdi
callq 0x3350
testl %eax, %eax
setne %r13b
jmp 0x83c8
xorl %r14d, %r14d
xorl %r13d, %r13d
testb %r14b, %r14b
je 0x83fd
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x83e5
callq 0x3320
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x83fd
callq 0x3320
cmpb $0x4, %r15b
movq %rbx, %r15
jne 0x8430
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x841e
callq 0x3320
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x8430
callq 0x3320
testb %r13b, %r13b
je 0x858d
movl $0x98, %edi
callq 0x3340
movq %rax, %r13
leaq 0x13(%r12), %r15
leaq -0x100(%rbp), %rax
movq %rax, -0x110(%rbp)
movq %r15, %rdi
callq 0x3170
leaq (%r12,%rax), %rdx
addq $0x13, %rdx
leaq -0x110(%rbp), %rdi
movq %r15, %rsi
callq 0x62de
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %r14
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x6244
leaq -0xe0(%rbp), %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x35c0
movq %rbx, %rdi
leaq 0x7f41(%rip), %rsi      # 0x103f3
callq 0x35c0
movq %rbx, %r15
movq %r12, -0xf0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x84e3
movq %rdx, -0xf0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe0(%rbp)
jmp 0x84eb
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0xe8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r13, %rdi
leaq -0x110(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0xe108
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
je 0x852c
callq 0x3320
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x853e
callq 0x3320
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x8556
callq 0x3320
movq %r13, -0x118(%rbp)
movq 0x960(%r14), %rsi
cmpq 0x968(%r14), %rsi
je 0x857a
movq %r13, (%rsi)
addq $0x8, 0x960(%r14)
jmp 0x858d
movq -0xc8(%rbp), %rdi
leaq -0x118(%rbp), %rdx
callq 0xdf86
movq -0xd0(%rbp), %r14
movq %r14, %rdi
callq 0x34b0
movq %rax, %r12
testq %rax, %rax
jne 0x82a9
jmp 0x85b2
movb $0x1, %r13b
jmp 0x83c8
movq %r14, %rdi
callq 0x34f0
movq -0x38(%rbp), %rbx
jmp 0x8621
movq (%rbx), %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x31a0
movq 0xc9fc(%rip), %r14      # 0x14fd0
testl %eax, %eax
je 0x85e6
leaq 0x7e3d(%rip), %rsi      # 0x1041c
movl $0x20, %edx
jmp 0x85f2
leaq 0x7e1e(%rip), %rsi      # 0x1040b
movl $0x10, %edx
movq %r14, %rdi
callq 0x33a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3330
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3260
movq 0xc9a8(%rip), %r14      # 0x14fd0
leaq 0x7e0e(%rip), %rsi      # 0x1043d
movl $0xe, %edx
movq %r14, %rdi
callq 0x33a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3330
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3260
movq 0x958(%rbx), %r12
movq 0x960(%rbx), %r13
cmpq %r13, %r12
je 0x8709
leaq -0x58(%rbp), %rbx
movq (%r12), %rsi
movq %rbx, %rdi
callq 0xe556
movq -0x58(%rbp), %r15
testq %r15, %r15
je 0x86ab
movq %r15, %rdi
callq 0x3170
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x33a0
jmp 0x86c3
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x3520
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3330
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3260
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x86fc
callq 0x3320
addq $0x8, %r12
cmpq %r13, %r12
jne 0x867e
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x874b
callq 0x3320
jmp 0x874b
movq %rax, %rbx
leaq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xb8(%rbp), %rdi
cmpq -0xc0(%rbp), %rdi
je 0x8765
callq 0x3320
jmp 0x8765
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq -0x30(%rbp), %rdi
jne 0x87da
jmp 0x87df
movq %rax, %rbx
jmp 0x87ad
jmp 0x8782
movq %rax, %rbx
jmp 0x87df
movq %rax, %rbx
jmp 0x87c5
movq %rax, %rbx
jmp 0x879b
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
je 0x879b
callq 0x3320
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x87ad
callq 0x3320
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x87c5
callq 0x3320
movq %r13, %rdi
jmp 0x87da
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x87df
callq 0x3320
movq %rbx, %rdi
callq 0x3580
nop