// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/test/test_khash.c
// Function: check_str2int_entry
static int check_str2int_entry(khash_t(str2int) *h, char *key, khint_t val,
                               uint8_t is_deleted) {
    khint_t k = kh_get(str2int, h, key);
    if (is_deleted) {
        if (k < kh_end(h)) {
            fprintf(stderr, "Found deleted entry %s in hash table\n", key);
            return -1;
        } else {
            return 0;
        }
    }

    if (k >= kh_end(h)) {
        fprintf(stderr, "Couldn't find %s in hash table\n", key);
        return -1;
    }
    if (strcmp(kh_key(h, k), key) != 0) {
        fprintf(stderr, "Wrong key in hash table, expected %s got %s\n",
                key, kh_key(h, k));
        return -1;
    }
    if (kh_val(h, k) != val) {
        fprintf(stderr, "Wrong value in hash table, expected %u got %u\n",
                val, kh_val(h, k));
        return -1;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %rdx
movl (%rdi), %eax
testl %eax, %eax
je 0x22d5
movl %ecx, 0x4(%rsp)
movq %rax, 0x10(%rsp)
leal -0x1(%rax), %esi
movb (%rdx), %cl
testb %cl, %cl
movl %ebp, 0x8(%rsp)
je 0x22dd
leaq 0x1(%rdx), %rax
movl $0x811c9dc5, %r15d      # imm = 0x811C9DC5
movzbl %cl, %ecx
xorl %r15d, %ecx
imull $0x1000193, %ecx, %r15d # imm = 0x1000193
movb (%rax), %cl
incq %rax
testb %cl, %cl
jne 0x22bd
jmp 0x22e3
xorl %r13d, %r13d
jmp 0x237c
movl $0x811c9dc5, %r15d      # imm = 0x811C9DC5
andl %esi, %r15d
movq 0x10(%rdi), %rbx
movl $0x1, %r14d
movl %r15d, %r13d
movq %rdi, 0x20(%rsp)
movl %esi, 0xc(%rsp)
movq %rdx, 0x18(%rsp)
movl %r13d, %eax
shrl $0x4, %eax
movl (%rbx,%rax,4), %ebp
leal (,%r13,2), %r12d
andl $0x1e, %r12d
movl %ebp, %eax
movl %r12d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x2362
testb $0x1, %al
jne 0x234a
movq 0x18(%rdi), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq %rdx, %rsi
callq 0x1100
movl 0xc(%rsp), %esi
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rdx
testl %eax, %eax
je 0x2362
addl %r14d, %r13d
andl %esi, %r13d
incl %r14d
cmpl %r15d, %r13d
jne 0x2301
movq 0x10(%rsp), %rax
movl %eax, %r13d
jmp 0x2374
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x3, %bpl
movq 0x10(%rsp), %rax
cmovnel %eax, %r13d
movl 0x8(%rsp), %ebp
movl 0x4(%rsp), %ecx
testb %cl, %cl
je 0x2398
cmpl %eax, %r13d
jae 0x23c9
movq 0x2c54(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0xe87(%rip), %rsi       # 0x321d
jmp 0x23eb
cmpl %eax, %r13d
jae 0x23da
movq 0x18(%rdi), %rax
movl %r13d, %ebx
movq (%rax,%rbx,8), %r15
movq %rdi, %r12
movq %r15, %rdi
movq %rdx, %rsi
movq %rdx, %r14
callq 0x1100
testl %eax, %eax
jne 0x23f4
movq 0x20(%r12), %rax
movl (%rax,%rbx,4), %ecx
cmpl %ebp, %ecx
jne 0x2414
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2bff(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0xe58(%rip), %rsi       # 0x3243
xorl %eax, %eax
callq 0x1110
jmp 0x242e
movq 0x2be5(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0xe5e(%rip), %rsi       # 0x3263
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x1110
jmp 0x242e
movq 0x2bc5(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0xe6b(%rip), %rsi       # 0x3290
movl %ebp, %edx
xorl %eax, %eax
callq 0x1110
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x23cb