// File: /workspace/github_c_makefile_star2_O1/icebert[P]pblat/htslib/hfile.c
// Function: hfile_add_scheme_handler
void hfile_add_scheme_handler(const char *scheme,
                              const struct hFILE_scheme_handler *handler)
{
    int absent;
    khint_t k = kh_put(scheme_string, schemes, scheme, &absent);
    if (absent || handler->priority > kh_value(schemes, k)->priority) {
        kh_value(schemes, k) = handler;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %rbp
movq 0x691f9(%rip), %r14     # 0xd4700
movl 0x8(%r14), %eax
cmpl 0xc(%r14), %eax
jb 0x6b534
movl (%r14), %esi
movl 0x4(%r14), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x6b522
decl %esi
jmp 0x6b524
incl %esi
movq %r14, %rdi
callq 0x6bbfd
testl %eax, %eax
js 0x6b61a
movl (%r14), %esi
leal -0x1(%rsi), %r8d
movsbl (%rbp), %r12d
testl %r12d, %r12d
je 0x6b56b
movb 0x1(%rbp), %al
testb %al, %al
je 0x6b56e
leaq 0x2(%rbp), %rcx
movl %r12d, %edx
shll $0x5, %edx
subl %r12d, %edx
movsbl %al, %r12d
addl %edx, %r12d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x6b550
jmp 0x6b56e
xorl %r12d, %r12d
andl %r8d, %r12d
movq 0x10(%r14), %rdi
movl %r12d, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %eax
leal (%r12,%r12), %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x6b665
movq %rbp, 0x18(%rsp)
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movl $0x1, %r14d
movl %r12d, %r13d
movq %rsi, 0x8(%rsp)
movl %esi, %r15d
movq %rdi, 0x30(%rsp)
movl %r8d, 0x14(%rsp)
movl %r13d, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %ebx
leal (,%r13,2), %ebp
andl $0x1e, %ebp
movl %ebx, %eax
movl %ebp, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x6b622
testb $0x1, %al
jne 0x6b600
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq 0x18(%rsp), %rsi
callq 0x6a50
movl 0x14(%rsp), %r8d
movq 0x30(%rsp), %rdi
testl %eax, %eax
je 0x6b622
btl %ebp, %ebx
cmovbl %r13d, %r15d
addl %r14d, %r13d
andl %r8d, %r13d
incl %r14d
movl %r15d, %eax
cmpl %r12d, %r13d
jne 0x6b5b6
jmp 0x6b627
movl (%r14), %r12d
jmp 0x6b6c9
movq 0x8(%rsp), %rax
movl %eax, %r12d
movq 0x8(%rsp), %rdx
cmpl %edx, %eax
movq 0x28(%rsp), %rbx
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %rbp
jne 0x6b665
movl %r13d, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %eax
leal (,%r13,2), %ecx
shrl %cl, %eax
cmpl %edx, %r15d
cmovel %r13d, %r15d
testb $0x2, %al
cmovel %r13d, %r15d
movl %r15d, %r12d
movl %r12d, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %esi
leal (%r12,%r12), %ecx
andl $0x1e, %ecx
shrl %cl, %esi
testb $0x2, %sil
jne 0x6b6a6
movb $0x1, %dl
testb $0x1, %sil
je 0x6b6cb
movq 0x18(%r14), %rdx
movl %r12d, %esi
movq %rbp, (%rdx,%rsi,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%r14), %rcx
andl %edx, (%rcx,%rax,4)
incl 0x4(%r14)
jmp 0x6b6c9
movq 0x18(%r14), %rdx
movl %r12d, %esi
movq %rbp, (%rdx,%rsi,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%r14), %rcx
andl %edx, (%rcx,%rax,4)
incl 0x4(%r14)
incl 0x8(%r14)
xorl %edx, %edx
movl %r12d, %eax
testb %dl, %dl
je 0x6b6e9
movl 0x18(%rbx), %ecx
movq 0x69024(%rip), %rdx     # 0xd4700
movq 0x20(%rdx), %rdx
movq (%rdx,%rax,8), %rdx
cmpl 0x18(%rdx), %ecx
jle 0x6b6f8
movq 0x69010(%rip), %rcx     # 0xd4700
movq 0x20(%rcx), %rcx
movq %rbx, (%rcx,%rax,8)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq