// File: vianna274[P]dropbox/src/Server.cpp
// Function: Dropbox::Server::propagateFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Server::propagateFile(string filename, string username) 
{
    propagationMutex.lock();
    User * user = getUser(username);
    for(WrapperSocket * socket : this->backupsSockets) {
        FileRecord record = this->getRecord(user->getFileRecords(),filename);
        this->sendFile(socket, user->getDirPath() + filename, record, username);
    }
    propagationMutex.unlock();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x400, %rsp            # imm = 0x400
movq %rsi, -0x300(%rbp)
movq %rdx, -0x2f8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x2f0(%rbp)
addq $0x48, %rdi
callq 0x6a60
movq -0x2f8(%rbp), %rsi
leaq -0x40(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
callq 0x3190
movq -0x2f0(%rbp), %rdi
movq -0x2e8(%rbp), %rsi
callq 0xf3b0
movq %rax, -0x2e0(%rbp)
jmp 0x1082c
leaq -0x40(%rbp), %rdi
callq 0x3280
movq -0x2e0(%rbp), %rcx
movq -0x2f0(%rbp), %rax
movq %rcx, -0x20(%rbp)
addq $0x9a0, %rax            # imm = 0x9A0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
callq 0x12550
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
callq 0x12580
movq %rax, -0x68(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x125b0
testb $0x1, %al
jne 0x10881
jmp 0x10a5f
leaq -0x60(%rbp), %rdi
callq 0x125f0
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x170(%rbp), %rdi
callq 0x16cd0
movq -0x300(%rbp), %rsi
leaq -0x190(%rbp), %rdi
callq 0x3190
jmp 0x108b6
movq -0x2f0(%rbp), %rsi
leaq -0x158(%rbp), %rdi
leaq -0x170(%rbp), %rdx
leaq -0x190(%rbp), %rcx
callq 0x9dd0
jmp 0x108d9
leaq -0x190(%rbp), %rdi
callq 0x3280
leaq -0x170(%rbp), %rdi
callq 0x6a00
movq -0x70(%rbp), %rax
movq %rax, -0x310(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x1d0(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x17040
movq -0x308(%rbp), %rsi
movq -0x300(%rbp), %rdx
leaq -0x1b0(%rbp), %rdi
callq 0x12630
jmp 0x1092f
leaq -0x2b8(%rbp), %rdi
leaq -0x158(%rbp), %rsi
movl $0xe8, %edx
callq 0x3300
movq -0x2f8(%rbp), %rsi
leaq -0x2d8(%rbp), %rdi
callq 0x3190
jmp 0x1095c
movq %rsp, %rdi
movl $0x1d, %ecx
leaq -0x2b8(%rbp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq -0x310(%rbp), %rsi
movq -0x2f0(%rbp), %rdi
leaq -0x1b0(%rbp), %rdx
leaq -0x2d8(%rbp), %rcx
callq 0x9ee0
jmp 0x10991
leaq -0x2d8(%rbp), %rdi
callq 0x3280
leaq -0x1b0(%rbp), %rdi
callq 0x3280
leaq -0x1d0(%rbp), %rdi
callq 0x3280
leaq -0x60(%rbp), %rdi
callq 0x12610
jmp 0x1086b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x3280
jmp 0x10a78
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x10a03
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x3280
leaq -0x170(%rbp), %rdi
callq 0x6a00
jmp 0x10a78
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x10a51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x10a45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x2d8(%rbp), %rdi
callq 0x3280
leaq -0x1b0(%rbp), %rdi
callq 0x3280
leaq -0x1d0(%rbp), %rdi
callq 0x3280
jmp 0x10a78
movq -0x2f0(%rbp), %rdi
addq $0x48, %rdi
callq 0x6a90
addq $0x400, %rsp            # imm = 0x400
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x3610
nopw %cs:(%rax,%rax)