// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Operations.cpp
// Function: Dropbox::Operations::sendUploadAll(Dropbox::WrapperSocket*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<Dropbox::_FileRecord, std::allocator<Dropbox::_FileRecord>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Operations::sendUploadAll(WrapperSocket * socket, string dirPath, vector<FileRecord> files, string username) {
	if(files.empty()) {
		this->sendNothing(socket);
        return;
    }
	MessageData packet = make_packet(TYPE_SEND_UPLOAD_ALL, 1, 1, -1, "send_upload_all");
	socket->send(&packet);
    int seq = 1;
    for(FileRecord record : files) {
		this->sendFile(socket, dirPath + record.filename, record, username);
        seq++;
    }
	packet = make_packet(TYPE_SEND_UPLOAD_ALL_DONE, 1, 1, -1, "send_upload_all_done");
	socket->send(&packet);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x21d8, %rsp           # imm = 0x21D8
movq %r8, -0x60(%rbp)
movq %rdx, -0x68(%rbp)
movq %rsi, %r13
movq (%rcx), %rax
cmpq 0x8(%rcx), %rax
je 0x7d28
movq %rcx, %rbx
leaq 0x8765(%rip), %r9       # 0x10317
leaq -0x1144(%rbp), %r12
movq %r12, %rdi
movl $0x9, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x657c
movq %r13, -0x30(%rbp)
movq %r13, %rdi
movq %r12, %rsi
callq 0xeae4
movq (%rbx), %r12
movq 0x8(%rbx), %rax
movq %rax, -0x58(%rbp)
cmpq %rax, %r12
je 0x7cdd
leaq -0x2118(%rbp), %rbx
leaq -0x50(%rbp), %r13
movl $0xe8, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32b0
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x68(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x6244
movq %r13, %r15
movq %r13, %rdi
movq %rbx, %rsi
callq 0x35c0
movl $0xe8, %edx
leaq -0x170(%rbp), %r13
movq %r13, %rdi
movq %rbx, %r14
movq %rbx, %rsi
callq 0x32b0
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x60(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
callq 0x6244
movl $0x1d, %ecx
movq %rsp, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq -0x30(%rbp), %rsi
movq %r15, %r13
movq %r15, %rdx
movq %rbx, %rcx
callq 0x6a6c
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x7cb7
callq 0x3320
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x7cc9
callq 0x3320
addq $0xe8, %r12
cmpq -0x58(%rbp), %r12
movq %r14, %rbx
jne 0x7c04
leaq 0x8643(%rip), %r9       # 0x10327
leaq -0x2118(%rbp), %rbx
movq %rbx, %rdi
movl $0xa, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x657c
leaq -0x1144(%rbp), %r14
movl $0xfd4, %edx            # imm = 0xFD4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32b0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
jmp 0x7d59
leaq 0x857a(%rip), %r9       # 0x102a9
leaq -0x1144(%rbp), %rbx
movq %rbx, %rdi
movl $0x7, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x657c
movq %r13, %rdi
movq %rbx, %rsi
callq 0xeae4
addq $0x21d8, %rsp           # imm = 0x21D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7d72
movq %rax, %rbx
jmp 0x7d8f
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x7d8f
callq 0x3320
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x7da1
callq 0x3320
movq %rbx, %rdi
callq 0x3580
nop