// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3a8, %rsp            # imm = 0x3A8
movq %rdx, %r14
movq %rsi, -0x38(%rbp)
movq %rdi, %r12
addq $0x48, %rdi
movq %rdi, -0x60(%rbp)
callq 0x3470
testl %eax, %eax
jne 0xc310
leaq -0x100(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%r14), %rsi
movq %r14, -0x70(%rbp)
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %r14
movq %r14, %rdi
callq 0x6244
movq %r12, %rdi
movq %r14, %rsi
callq 0xaed8
movq %rax, -0x30(%rbp)
movq -0x110(%rbp), %rdi
cmpq %rbx, %rdi
je 0xc121
callq 0x3320
movq 0x9a0(%r12), %rbx
movq 0x9a8(%r12), %rax
movq %rax, -0x68(%rbp)
cmpq %rax, %rbx
je 0xc2f5
leaq -0xd0(%rbp), %r13
leaq -0x2e0(%rbp), %r15
movq %r15, %r14
movq %r12, %r15
movq (%rbx), %rax
movq %rax, -0x78(%rbp)
movq %r13, %r12
movq %r13, %rdi
movq -0x30(%rbp), %rsi
callq 0xe346
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xb8(%rbp), %r13
movq %r13, %rdi
callq 0x6244
leaq -0x1f8(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x69b4
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xc1c0
callq 0x3320
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
movq %r15, %r12
je 0xc1d4
callq 0x3320
leaq -0xf0(%rbp), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0xe582
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x3100
leaq -0x48(%rbp), %rsi
movq %rsi, -0x58(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq %r14, %r15
je 0xc221
movq %rdx, -0x58(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x48(%rbp)
jmp 0xc227
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
leaq -0x98(%rbp), %r14
movq 0x8(%rax), %rdx
movq %rdx, -0x50(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0xe8, %edx
movq %r15, %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x32b0
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x6244
movl $0x1d, %ecx
movq %rsp, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r12, %rdi
movq -0x78(%rbp), %rsi
leaq -0x58(%rbp), %rdx
movq %r14, %rcx
callq 0x6a6c
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0xc2b6
callq 0x3320
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xc2c8
callq 0x3320
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0xc2e0
callq 0x3320
addq $0x8, %rbx
cmpq -0x68(%rbp), %rbx
leaq -0xd0(%rbp), %r13
jne 0xc14c
movq -0x60(%rbp), %rdi
callq 0x3280
addq $0x3a8, %rsp            # imm = 0x3A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x3250
movq %rax, %r14
movq -0x110(%rbp), %rdi
cmpq %rbx, %rdi
jne 0xc3a0
jmp 0xc3a5
movq %rax, %r14
jmp 0xc348
movq %rax, %r14
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xc348
callq 0x3320
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
jne 0xc3a0
jmp 0xc3a5
movq %rax, %r14
jmp 0xc38d
movq %rax, %r14
jmp 0xc37b
movq %rax, %r14
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0xc37b
callq 0x3320
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xc38d
callq 0x3320
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0xc3a5
callq 0x3320
movq %r14, %rdi
callq 0x3580
nop