// File: pdx-cs-tutors[P]pdp/tests/base_test.cpp
// Function: BaseTestSuite::test(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::function<void ()>)
void BaseTestSuite::test(std::string key, std::function<void()> function) {
    if (tests.find(key) == tests.end()) {
        std::vector<std::function<void()>> funcs = {function};
        tests.insert(std::make_pair(key, funcs));
    } else {
        tests[key].push_back(function);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rsi, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
addq $0x8, %rdi
callq 0x1f190
movq -0xd8(%rbp), %rdi
movq %rax, -0x20(%rbp)
addq $0x8, %rdi
callq 0x20040
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1e970
testb $0x1, %al
jne 0x21767
jmp 0x2197f
movq -0xe0(%rbp), %rsi
leaq -0x70(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0x1fef0
jmp 0x2177d
leaq -0x70(%rbp), %rax
movq %rax, -0x50(%rbp)
movq $0x1, -0x48(%rbp)
leaq -0x85(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x1e1b0
movq -0xf0(%rbp), %rcx
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x40(%rbp), %rdi
callq 0x20590
jmp 0x217ba
leaq -0x85(%rbp), %rdi
callq 0x1f960
leaq -0x70(%rbp), %rax
movq %rax, -0x100(%rbp)
addq $0x20, %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x108(%rbp)
callq 0x1e710
movq -0x100(%rbp), %rcx
movq -0x108(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0xf8(%rbp)
jne 0x217dc
movq -0xe8(%rbp), %rsi
movq -0xd8(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x110(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0x1e7f0
jmp 0x21838
movq -0x110(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x1ebb0
movb %dl, -0x119(%rbp)
movq %rax, -0x118(%rbp)
jmp 0x2185a
movb -0x119(%rbp), %al
movq -0x118(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
movb %al, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x1e500
leaq -0x40(%rbp), %rdi
callq 0x1f5b0
jmp 0x219a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movq -0x78(%rbp), %rax
leaq -0x70(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x128(%rbp)
je 0x218df
movq -0x128(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x130(%rbp)
callq 0x1e710
movq -0x130(%rbp), %rax
leaq -0x70(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x128(%rbp)
jne 0x218b1
jmp 0x219ae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x85(%rbp), %rdi
callq 0x1f960
leaq -0x70(%rbp), %rax
movq %rax, -0x140(%rbp)
addq $0x20, %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x148(%rbp)
callq 0x1e710
movq -0x140(%rbp), %rcx
movq -0x148(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x138(%rbp)
jne 0x21915
jmp 0x219ae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x21974
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x1e500
leaq -0x40(%rbp), %rdi
callq 0x1f5b0
jmp 0x219ae
movq -0xe8(%rbp), %rsi
movq -0xd8(%rbp), %rdi
addq $0x8, %rdi
callq 0x20890
movq -0xe0(%rbp), %rsi
movq %rax, %rdi
callq 0x1eee0
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x80(%rbp), %rdi
callq 0x20540
nopw (%rax,%rax)