// File: /workspace/github_cpp_makefile_star2_O1/dustin[P]kvtest/ep.cc
// Function: kvtest::EventuallyPersistentStore::flushSome(std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>*, kvtest::Callback<bool>&)
void EventuallyPersistentStore::flushSome(std::queue<std::string> *q,
                                             Callback<bool> &cb) {

        std::string key = q->front();
        q->pop();

        int bucket_num = storage.bucket(key);
        LockHolder lh(storage.getMutex(bucket_num));
        StoredValue *v = storage.unlocked_find(key, bucket_num);

        bool found = v != NULL;
        bool isDirty = (found && v->isDirty());
        const char *val = NULL;
        if (isDirty) {
            v->markClean();
            // Copy it for the duration.
            val = strdup(v->getValue());
        }
        lh.unlock();

        if (found && isDirty) {
            underlying->set(key, val, cb);
        } else if (!found) {
            underlying->del(key, cb);
        }

        free((void*)val);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x10(%rsi), %rax
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0x3d04
movq %r15, %rdi
callq 0x7f90
cmpb $0x0, 0x30(%r14)
je 0x7254
movq 0x18(%rsp), %rax
movb (%rax), %dl
testb %dl, %dl
je 0x7120
incq %rax
movl $0x1505, %esi           # imm = 0x1505
movl %esi, %ecx
movsbl %dl, %edx
shll $0x5, %ecx
addl %esi, %ecx
xorl %edx, %ecx
movb (%rax), %dl
incq %rax
movl %ecx, %esi
testb %dl, %dl
jne 0x7109
jmp 0x7125
movl $0x1505, %ecx           # imm = 0x1505
movl %ecx, %eax
negl %eax
cmovsl %ecx, %eax
movl 0x20(%r14), %ecx
cltd
idivl %ecx
testl %ecx, %ecx
js 0x7273
movl 0x28(%r14), %ecx
testl %ecx, %ecx
js 0x7292
movl %edx, %ebp
movl %edx, %eax
xorl %edx, %edx
divl %ecx
leaq (%rdx,%rdx,4), %rsi
shlq $0x3, %rsi
addq 0x40(%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x5c64
movq 0x38(%r14), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %r13
testq %r13, %r13
je 0x7192
leaq 0x18(%rsp), %r15
leaq 0x8(%r13), %rsi
movq %r15, %rdi
callq 0x3050
testl %eax, %eax
je 0x7195
movq 0x30(%r13), %r13
testq %r13, %r13
jne 0x7179
xorl %r13d, %r13d
testq %r13, %r13
je 0x71a0
movb (%r13), %bpl
jmp 0x71a2
xorl %ebp, %ebp
testb %bpl, %bpl
je 0x71ba
movb $0x0, (%r13)
movq 0x28(%r13), %rdi
callq 0x3410
movq %rax, %r15
jmp 0x71bd
xorl %r15d, %r15d
cmpb $0x0, 0x10(%rsp)
jne 0x71d3
movq 0x8(%rsp), %rdi
callq 0x31e0
movb $0x1, 0x10(%rsp)
testq %r13, %r13
sete %al
xorb $0x1, %bpl
orb %al, %bpl
jne 0x71f9
movq 0x8(%r14), %rdi
movq (%rdi), %rax
leaq 0x18(%rsp), %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
jmp 0x7210
testq %r13, %r13
jne 0x7210
movq 0x8(%r14), %rdi
movq (%rdi), %rax
leaq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq *0x38(%rax)
movq %r15, %rdi
callq 0x32d0
cmpb $0x0, 0x10(%rsp)
jne 0x722e
movq 0x8(%rsp), %rdi
callq 0x31e0
movb $0x1, 0x10(%rsp)
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x7245
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2542(%rip), %rdi      # 0x979d
leaq 0x2517(%rip), %rsi      # 0x9779
leaq 0x259f(%rip), %rcx      # 0x9808
movl $0x9c, %edx
callq 0x3160
leaq 0x25ed(%rip), %rdi      # 0x9867
leaq 0x24f8(%rip), %rsi      # 0x9779
leaq 0x25ad(%rip), %rcx      # 0x9835
movl $0xab, %edx
callq 0x3160
leaq 0x25e5(%rip), %rdi      # 0x987e
leaq 0x24d9(%rip), %rsi      # 0x9779
leaq 0x258e(%rip), %rcx      # 0x9835
movl $0xae, %edx
callq 0x3160
jmp 0x72b8
movq %rax, %rbx
jmp 0x72d1
movq %rax, %rbx
cmpb $0x0, 0x10(%rsp)
jne 0x72d1
movq 0x8(%rsp), %rdi
callq 0x31e0
movb $0x1, 0x10(%rsp)
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x72e8
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x33e0