// File: /workspace/github_cpp_makefile_star2_O1/karel-brinda[P]ococo/ext/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 0x1bf85(%rip), %r14     # 0x645c0
movl 0x8(%r14), %eax
cmpl 0xc(%r14), %eax
jb 0x48668
movl (%r14), %esi
movl 0x4(%r14), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x48656
decl %esi
jmp 0x48658
incl %esi
movq %r14, %rdi
callq 0x48d2f
testl %eax, %eax
js 0x4874e
movl (%r14), %esi
leal -0x1(%rsi), %r8d
movsbl (%rbp), %r12d
testl %r12d, %r12d
je 0x4869f
movb 0x1(%rbp), %al
testb %al, %al
je 0x486a2
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 0x48684
jmp 0x486a2
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 0x48799
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 0x48756
testb $0x1, %al
jne 0x48734
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq 0x18(%rsp), %rsi
callq 0x4750
movl 0x14(%rsp), %r8d
movq 0x30(%rsp), %rdi
testl %eax, %eax
je 0x48756
btl %ebp, %ebx
cmovbl %r13d, %r15d
addl %r14d, %r13d
andl %r8d, %r13d
incl %r14d
movl %r15d, %eax
cmpl %r12d, %r13d
jne 0x486ea
jmp 0x4875b
movl (%r14), %r12d
jmp 0x487fd
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 0x48799
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 0x487da
movb $0x1, %dl
testb $0x1, %sil
je 0x487ff
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 0x487fd
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 0x4881d
movl 0x18(%rbx), %ecx
movq 0x1bdb0(%rip), %rdx     # 0x645c0
movq 0x20(%rdx), %rdx
movq (%rdx,%rax,8), %rdx
cmpl 0x18(%rdx), %ecx
jle 0x4882c
movq 0x1bd9c(%rip), %rcx     # 0x645c0
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