// File: flastest[P]HW2_Systems_flaster_strand/test_cache_lib.cc
// Function: testSameKey(bool)
bool testSameKey(bool DEBUG_PRINT_MESSAGES)
{
    if (DEBUG_PRINT_MESSAGES) std::cout<<"testing putting something into the array that a key already exists for"<<std::endl;
    auto my_cache = makeCache();
    char value[]{ "six" };
    Cache::size_type size;
    my_cache->set("apple", value, 4);
    auto ret = (my_cache->get("apple", size));
    std::string p(ret);
    if (DEBUG_PRINT_MESSAGES) {
        std::cout << p << std::endl;
    }
    return (p == "six");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movb %dil, %al
andb $0x1, %al
movb %al, -0x1(%rbp)
testb $0x1, -0x1(%rbp)
je 0x6e0b
movq 0xa1e8(%rip), %rdi      # 0x10fd8
leaq 0x4470(%rip), %rsi      # 0xb267
callq 0x21b0
movq %rax, %rdi
movq 0xa1ba(%rip), %rsi      # 0x10fc0
callq 0x21e0
movl $0x800, %edi            # imm = 0x800
callq 0x6430
movq %rax, -0x10(%rbp)
movl $0x786973, -0x14(%rbp)  # imm = 0x786973
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x22e0
movq -0xb0(%rbp), %rdx
leaq 0x4274(%rip), %rsi      # 0xb0bd
leaq -0x38(%rbp), %rdi
callq 0x80f0
jmp 0x6e54
movq -0xb8(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x14(%rbp), %rdx
movl $0x4, %ecx
callq 0x25c0
jmp 0x6e6f
leaq -0x38(%rbp), %rdi
callq 0x2100
leaq -0x39(%rbp), %rdi
callq 0x2200
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x22e0
movq -0xc0(%rbp), %rdx
leaq 0x4213(%rip), %rsi      # 0xb0bd
leaq -0x78(%rbp), %rdi
callq 0x80f0
jmp 0x6eb5
movq -0xc8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
leaq -0x18(%rbp), %rdx
callq 0x2640
movq %rax, -0xd0(%rbp)
jmp 0x6ed2
leaq -0x78(%rbp), %rdi
callq 0x2100
leaq -0x79(%rbp), %rdi
callq 0x2200
movq -0xd0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq -0xa1(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x22e0
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x80f0
jmp 0x6f29
leaq -0xa1(%rbp), %rdi
callq 0x2200
testb $0x1, -0x1(%rbp)
je 0x7008
movq 0xa092(%rip), %rdi      # 0x10fd8
leaq -0xa0(%rbp), %rsi
callq 0x21a0
movq %rax, -0xe8(%rbp)
jmp 0x6f5b
movq -0xe8(%rbp), %rdi
movq 0xa057(%rip), %rsi      # 0x10fc0
callq 0x21e0
jmp 0x6f70
jmp 0x7008
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6f98
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x2100
leaq -0x39(%rbp), %rdi
callq 0x2200
jmp 0x7040
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6fc9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x2100
leaq -0x79(%rbp), %rdi
callq 0x2200
jmp 0x7040
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xa1(%rbp), %rdi
callq 0x2200
jmp 0x7040
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x2100
jmp 0x7040
leaq 0x429f(%rip), %rsi      # 0xb2ae
leaq -0xa0(%rbp), %rdi
callq 0x81a0
movb %al, -0xe9(%rbp)
jmp 0x7023
leaq -0xa0(%rbp), %rdi
callq 0x2100
movb -0xe9(%rbp), %al
andb $0x1, %al
addq $0xf0, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x22d0
nopl (%rax)