// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/unittest/Test_HashTable.cpp
// Function: HashSetTest_MultiDistinctCaseFolded_Test::TestBody()
TEST_F(HashSetTest, MultiDistinctCaseFolded)
{
  HashSet<kFlagCaseInsensitive> tbl;
  HashSetInit(&tbl, &heap);

  for (int i = 0; i < 2048; ++i)
  {
    char str[128];
    sprintf(str, "foo%d", i);
    HashSetInsert(&tbl, Djb2HashNoCase(str), StrDup(&alloc, str));
  }
  ASSERT_EQ(2048, tbl.m_RecordCount);

  for (int i = 0; i < 2048; ++i)
  {
    char str[128];
    sprintf(str, "fOO%d", i);
    ASSERT_TRUE(HashSetLookup(&tbl, Djb2HashNoCase(str), str));
  }
  HashSetDestroy(&tbl);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %r14
movups %xmm0, 0xc(%r14)
movaps %xmm0, (%r14)
movq %rax, 0x20(%r14)
addq $0x18, %rbx
leaq 0x15701(%rip), %r15     # 0x48395
leaq 0x70(%rsp), %r12
xorl %ebp, %ebp
cmpl $0x800, %ebp            # imm = 0x800
je 0x32cda
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0xd0f0
movq %r12, %rdi
callq 0x33f8d
movl %eax, %r13d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32f68
movq %r14, %rdi
movl %r13d, %esi
movq %rax, %rdx
callq 0x33bf8
incl %ebp
jmp 0x32c9b
leaq 0x20(%rsp), %rcx
movl $0x800, (%rcx)          # imm = 0x800
leaq 0x58(%rsp), %r8
leaq 0x156aa(%rip), %rsi     # 0x4839b
leaq 0x15675(%rip), %rdx     # 0x4836d
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
callq 0x2f537
cmpb $0x0, (%rbx)
je 0x32d72
leaq 0x78(%rsp), %rdi
callq 0x2295e
leaq 0x18(%rsp), %rbx
leaq 0x15698(%rip), %r14     # 0x483b8
leaq 0x70(%rsp), %r15
leaq 0x40(%rsp), %r12
xorl %ebp, %ebp
cmpl $0x800, %ebp            # imm = 0x800
je 0x32d92
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0xd0f0
movq %r15, %rdi
callq 0x33f8d
movq %r12, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x33019
movb %al, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
testb %al, %al
je 0x32da1
movq %rbx, %rdi
callq 0x2295e
incl %ebp
jmp 0x32d2c
leaq 0x20(%rsp), %rdi
callq 0x11c8e
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x32e11
movq (%rax), %r8
jmp 0x32e18
leaq 0x40(%rsp), %rdi
callq 0x33027
jmp 0x32e61
leaq 0x8(%rsp), %rdi
callq 0x11c8e
leaq 0x1565e(%rip), %rdx     # 0x48410
leaq 0x124b7(%rip), %rcx     # 0x45270
leaq 0x1196a(%rip), %r8      # 0x4472a
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x12d68
movq 0x20(%rsp), %r8
leaq 0x15576(%rip), %rdx     # 0x48351
movq %rsp, %rdi
pushq $0x2
popq %rsi
movl $0xad, %ecx
callq 0x104f8
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x10576
movq %rsp, %rdi
callq 0x10558
leaq 0x20(%rsp), %rdi
callq 0xdd68
leaq 0x8(%rsp), %rdi
jmp 0x32e54
leaq 0x1708f(%rip), %r8      # 0x49ea7
leaq 0x15532(%rip), %rdx     # 0x48351
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
movl $0xa7, %ecx
callq 0x104f8
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x10576
leaq 0x78(%rsp), %rbx
leaq 0x10(%rsp), %rdi
callq 0x10558
leaq 0x20(%rsp), %rdi
callq 0x1f8e0
movq %rbx, %rdi
callq 0x2295e
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rsp, %rdi
callq 0x10558
jmp 0x32e83
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0xdd68
jmp 0x32e92
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x1f8e0
jmp 0x32ea1
movq %rax, %r14
movq %rbx, %rdi
jmp 0x32ecc
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x10558
jmp 0x32eb8
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x1f8e0
jmp 0x32ec7
movq %rax, %r14
leaq 0x78(%rsp), %rdi
callq 0x2295e
movq %r14, %rdi
callq 0xdbf0