// File: /workspace/github_cpp_makefile_star2_O3/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 $0xd8, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x3490
testq %rax, %rax
je 0x85ac
movq %rax, %r14
movq %rbx, -0x50(%rbp)
movq %rax, %rdi
callq 0x34b0
testq %rax, %rax
je 0x859e
movq %rax, %r13
movq -0x50(%rbp), %rax
addq $0x958, %rax            # imm = 0x958
movq %rax, -0xb8(%rbp)
leaq 0x813d(%rip), %rbx      # 0x10408
cmpb $0x4, 0x12(%r13)
jne 0x858a
leaq 0x13(%r13), %r15
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r15, %rdi
callq 0x3170
leaq (%rax,%r13), %rdx
addq $0x13, %rdx
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x630e
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
leaq 0x80f6(%rip), %rdx      # 0x1040a
callq 0x630e
movq -0x40(%rbp), %rdx
cmpq -0x68(%rbp), %rdx
jne 0x8344
movq -0x70(%rbp), %r13
testq %rdx, %rdx
je 0x83d4
movq -0x48(%rbp), %rdi
movq %r13, %rsi
callq 0x3350
testl %eax, %eax
je 0x83d4
leaq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %r15, %rdi
callq 0x3170
leaq (%rax,%r15), %rdx
leaq -0xb0(%rbp), %rdi
movq %r15, %rsi
callq 0x630e
leaq -0xe8(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0xf8(%rbp), %rdi
leaq 0x8080(%rip), %rsi      # 0x10409
leaq 0x807a(%rip), %rdx      # 0x1040a
callq 0x630e
movq -0xa8(%rbp), %rdx
cmpq -0xf0(%rbp), %rdx
jne 0x83c8
movq -0xf8(%rbp), %r13
testq %rdx, %rdx
je 0x83d9
movq -0xb0(%rbp), %rdi
movq %r13, %rsi
callq 0x3350
testl %eax, %eax
setne %r12b
jmp 0x83dc
movb $0x1, %r12b
movq -0xf8(%rbp), %r13
jmp 0x83dc
xorl %r12d, %r12d
jmp 0x840c
xorl %r12d, %r12d
leaq -0xe8(%rbp), %rax
cmpq %rax, %r13
je 0x83f0
movq %r13, %rdi
callq 0x3320
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x8408
callq 0x3320
movq -0x70(%rbp), %r13
leaq -0x60(%rbp), %rax
cmpq %rax, %r13
je 0x841d
movq %r13, %rdi
callq 0x3320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x842f
callq 0x3320
testb %r12b, %r12b
je 0x858a
movq %r14, %r12
movq %rbx, %r14
movl $0x98, %edi
callq 0x3340
movq %rax, %r13
leaq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq %r15, %rdi
callq 0x3170
leaq (%rax,%r15), %rdx
leaq -0xd8(%rbp), %rdi
movq %r15, %rsi
callq 0x630e
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x6270
movq %rbx, %rdi
movq %r15, %rsi
callq 0x35c0
movq %rbx, %rdi
leaq 0x7f48(%rip), %rsi      # 0x103f3
callq 0x35c0
leaq -0x80(%rbp), %rsi
movq %rsi, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x84da
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x84e0
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r13, %rdi
leaq -0xd8(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xe0a4
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x8525
callq 0x3320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
movq -0x50(%rbp), %rbx
je 0x853b
callq 0x3320
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x8553
callq 0x3320
movq %r13, -0x70(%rbp)
movq 0x960(%rbx), %rsi
cmpq 0x968(%rbx), %rsi
je 0x8574
movq %r13, (%rsi)
addq $0x8, 0x960(%rbx)
jmp 0x8584
movq -0xb8(%rbp), %rdi
leaq -0x70(%rbp), %rdx
callq 0xdf22
movq %r14, %rbx
movq %r12, %r14
movq %r14, %rdi
callq 0x34b0
movq %rax, %r13
testq %rax, %rax
jne 0x82cb
movq %r14, %rdi
callq 0x34f0
movq -0x50(%rbp), %rbx
jmp 0x860d
movq (%rbx), %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x31a0
movq 0xca10(%rip), %r14      # 0x14fd0
testl %eax, %eax
je 0x85d2
leaq 0x7e51(%rip), %rsi      # 0x1041c
movl $0x20, %edx
jmp 0x85de
leaq 0x7e32(%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 0xc9bc(%rip), %r14      # 0x14fd0
leaq 0x7e22(%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 0x86f5
leaq -0x48(%rbp), %rbx
movq (%r12), %rsi
movq %rbx, %rdi
callq 0xe50a
movq -0x48(%rbp), %r15
testq %r15, %r15
je 0x8697
movq %r15, %rdi
callq 0x3170
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x33a0
jmp 0x86af
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 -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x86e8
callq 0x3320
addq $0x8, %r12
cmpq %r13, %r12
jne 0x866a
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x875a
movq %rax, %rbx
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x872b
callq 0x3320
jmp 0x872b
jmp 0x8728
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8742
callq 0x3320
jmp 0x8742
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x875a
callq 0x3320
movq %r13, %rdi
jmp 0x87aa
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x877f
callq 0x3320
jmp 0x877f
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x879d
callq 0x3320
jmp 0x879d
movq %rax, %rbx
jmp 0x87af
jmp 0x879a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x87af
callq 0x3320
movq %rbx, %rdi
callq 0x3580
nop