// File: /workspace/github_cpp_makefile_star2_O1/karel-brinda[P]ococo/ext/htslib/hts.c
// Function: hts_format_description
char *hts_format_description(const htsFormat *format)
{
    kstring_t str = { 0, 0, NULL };

    switch (format->format) {
    case sam:   kputs("SAM", &str); break;
    case bam:   kputs("BAM", &str); break;
    case cram:  kputs("CRAM", &str); break;
    case vcf:   kputs("VCF", &str); break;
    case bcf:
        if (format->version.major == 1) kputs("Legacy BCF", &str);
        else kputs("BCF", &str);
        break;
    case bai:   kputs("BAI", &str); break;
    case crai:  kputs("CRAI", &str); break;
    case csi:   kputs("CSI", &str); break;
    case tbi:   kputs("Tabix", &str); break;
    default:    kputs("unknown", &str); break;
    }

    if (format->version.major >= 0) {
        kputs(" version ", &str);
        kputw(format->version.major, &str);
        if (format->version.minor >= 0) {
            kputc('.', &str);
            kputw(format->version.minor, &str);
        }
    }

    switch (format->compression) {
    case custom: kputs(" compressed", &str); break;
    case gzip:   kputs(" gzip-compressed", &str); break;
    case bgzf:
        switch (format->format) {
        case bam:
        case bcf:
        case csi:
        case tbi:
            // These are by definition BGZF, so just use the generic term
            kputs(" compressed", &str);
            break;
        default:
            kputs(" BGZF-compressed", &str);
            break;
        }
        break;
    default: break;
    }

    switch (format->category) {
    case sequence_data: kputs(" sequence", &str); break;
    case variant_data:  kputs(" variant calling", &str); break;
    case index_file:    kputs(" index", &str); break;
    case region_list:   kputs(" genomic region", &str); break;
    default: break;
    }

    if (format->compression == no_compression)
        switch (format->format) {
        case sam:
        case crai:
        case vcf:
        case bed:
            kputs(" text", &str);
            break;

        default:
            kputs(" data", &str);
            break;
        }
    else
        kputs(" data", &str);

    return ks_release(&str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl 0x4(%rdi), %eax
addl $-0x3, %eax
cmpl $0x9, %eax
ja 0xe931
leaq 0x441c3(%rip), %rcx     # 0x52950
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movb $0x4d, 0x2(%rax)
movw $0x4153, (%rax)         # imm = 0x4153
jmp 0xe982
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movb $0x49, 0x2(%rax)
jmp 0xe82c
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movb $0x46, 0x2(%rax)
movw $0x4356, (%rax)         # imm = 0x4356
jmp 0xe982
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movb $0x4d, 0x2(%rax)
movw $0x4142, (%r14)         # imm = 0x4142
jmp 0xe982
cmpw $0x1, 0x8(%rbx)
jne 0xe961
movl $0x10, %r15d
movl $0x10, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movabsq $0x422079636167654c, %rax # imm = 0x422079636167654C
movq %rax, (%r14)
movw $0x4643, 0x8(%r14)      # imm = 0x4643
movq %r14, %rax
addq $0xa, %rax
movl $0xa, %ebp
jmp 0xe98e
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movb $0x49, 0x2(%rax)
movw $0x5343, (%rax)         # imm = 0x5343
jmp 0xe982
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movl $0x4d415243, (%rax)     # imm = 0x4D415243
jmp 0xe8f3
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movl $0x49415243, (%rax)     # imm = 0x49415243
movq %r14, %rax
addq $0x4, %rax
movl $0x4, %ebp
jmp 0xe98e
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movb $0x78, 0x4(%rax)
movl $0x69626154, (%rax)     # imm = 0x69626154
addq $0x5, %rax
movl $0x5, %ebp
jmp 0xe98e
movl $0x10, %r15d
movl $0x10, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movl $0x6e776f6e, 0x3(%rax)  # imm = 0x6E776F6E
movl $0x6e6b6e75, (%rax)     # imm = 0x6E6B6E75
addq $0x7, %rax
movl $0x7, %ebp
jmp 0xe98e
movl $0x8, %r15d
movl $0x8, %edi
callq 0x4700
testq %rax, %rax
je 0xe993
movq %rax, %r14
movb $0x46, 0x2(%rax)
movw $0x4342, (%rax)         # imm = 0x4342
movq %r14, %rax
addq $0x3, %rax
movl $0x3, %ebp
movb $0x0, (%rax)
jmp 0xe99b
xorl %ebp, %ebp
xorl %r15d, %r15d
xorl %r14d, %r14d
cmpw $0x0, 0x8(%rbx)
js 0xec86
leal 0xb(%rbp), %eax
cmpl %eax, %r15d
jae 0xe9e0
leaq 0xa(%rbp), %rax
movl %eax, %ecx
shrl %ecx
orq %rax, %rcx
movl %ecx, %eax
shrl $0x2, %eax
orq %rcx, %rax
movl %eax, %r12d
shrl $0x4, %r12d
orq %rax, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xe9e6
jmp 0xea05
movq %r15, %r12
movq %r14, %rax
movabsq $0x6e6f697372657620, %rcx # imm = 0x6E6F697372657620
movq %rcx, (%rax,%rbp)
movw $0x20, 0x8(%rax,%rbp)
addq $0x9, %rbp
movq %r12, %r15
movq %rax, %r14
movq %rbx, 0x8(%rsp)
movzwl 0x8(%rbx), %eax
movl %eax, %ecx
negw %cx
cmovsw %ax, %cx
movzwl %cx, %ecx
xorl %ebx, %ebx
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
movl %ecx, %esi
imulq %rdx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %ecx, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, 0x10(%rsp,%rbx)
incq %rbx
cmpl $0x9, %ecx
movl %esi, %ecx
ja 0xea21
testw %ax, %ax
jns 0xea58
movl %ebx, %eax
incl %ebx
movb $0x2d, 0x10(%rsp,%rax)
movslq %ebx, %rax
leaq (%rax,%rbp), %rcx
addq $0x2, %rcx
cmpq %rcx, %r15
jae 0xeac7
addq %rbp, %rax
incq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r12
shrq $0x20, %r12
orq %rcx, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
movq %rax, %r13
testq %rax, %rax
jne 0xeacd
movq %r15, %r12
movq %r14, %r13
jmp 0xeb03
movq %r15, %r12
movq %r14, %r13
movl %ebx, %ecx
leal (%rbx,%rbp), %eax
testl %ebx, %ebx
movl $0x1, %edx
cmovlel %ebx, %edx
subl %edx, %eax
incl %eax
leaq 0x10(%rsp), %rdx
addq %rdx, %rcx
decq %rcx
movb (%rcx), %dl
movb %dl, (%r13,%rbp)
incq %rbp
decq %rcx
cmpq %rbp, %rax
jne 0xeaeb
movb $0x0, (%r13,%rbp)
movq 0x8(%rsp), %rbx
cmpw $0x0, 0xa(%rbx)
js 0xeb6c
leaq 0x2(%rbp), %rax
cmpq %rax, %r12
jae 0xeb77
leaq 0x1(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r14
shrq $0x20, %r14
orq %rcx, %r14
incq %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xeb7d
jmp 0xeb8c
movq %r12, %r15
movq %r13, %r14
jmp 0xec86
movq %r12, %r14
movq %r13, %rax
movw $0x2e, (%rax,%rbp)
incq %rbp
movq %r14, %r12
movq %rax, %r13
movzwl 0xa(%rbx), %eax
movl %eax, %ecx
negw %cx
cmovsw %ax, %cx
movzwl %cx, %ecx
xorl %ebx, %ebx
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
movl %ecx, %esi
imulq %rdx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %ecx, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, 0x10(%rsp,%rbx)
incq %rbx
cmpl $0x9, %ecx
movl %esi, %ecx
ja 0xeba3
testw %ax, %ax
jns 0xebda
movl %ebx, %eax
incl %ebx
movb $0x2d, 0x10(%rsp,%rax)
movslq %ebx, %rax
leaq (%rax,%rbp), %rcx
addq $0x2, %rcx
cmpq %rcx, %r12
jae 0xec49
addq %rbp, %rax
incq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r15
shrq $0x20, %r15
orq %rcx, %r15
incq %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x48d0
movq %rax, %r14
testq %rax, %rax
jne 0xec4f
movq %r12, %r15
movq %r13, %r14
jmp 0xec81
movq %r12, %r15
movq %r13, %r14
movl %ebx, %ecx
testl %ebx, %ebx
movl $0x1, %eax
cmovlel %ebx, %eax
negl %eax
addl %ebx, %eax
incl %eax
leaq 0x10(%rsp), %rdx
addq %rdx, %rcx
decq %rcx
movb (%rcx), %dl
movb %dl, (%r14,%rbp)
incq %rbp
decq %rcx
decl %eax
jne 0xec6c
movb $0x0, (%r14,%rbp)
movq 0x8(%rsp), %rbx
movl 0xc(%rbx), %eax
cmpl $0x1, %eax
je 0xed1f
cmpl $0x2, %eax
je 0xeca1
cmpl $0x3, %eax
je 0xecbb
jmp 0xedc0
movl 0x4(%rbx), %eax
cmpl $0xc, %eax
ja 0xf10a
movl $0x1610, %ecx           # imm = 0x1610
btl %eax, %ecx
jae 0xf10a
leaq 0xd(%rbp), %rax
cmpq %rax, %r15
jae 0xed7c
leaq 0xc(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r12
shrq $0x20, %r12
orq %rcx, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xed82
jmp 0xedc0
leaq 0x12(%rbp), %rax
cmpq %rax, %r15
jae 0xed9e
leaq 0x11(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r12
shrq $0x20, %r12
orq %rcx, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xeda4
jmp 0xedc0
movq %r15, %r12
movq %r14, %rax
movabsq $0x736572706d6f6320, %rcx # imm = 0x736572706D6F6320
movq %rcx, (%rax,%rbp)
movl $0x64657373, 0x7(%rax,%rbp) # imm = 0x64657373
addq $0xb, %rbp
jmp 0xedb3
movq %r15, %r12
movq %r14, %rax
movups 0x43e2f(%rip), %xmm0    # 0x52bda
movups %xmm0, (%rax,%rbp)
addq $0x10, %rbp
leaq (%rax,%rbp), %rcx
movq %r12, %r15
movq %rax, %r14
movb $0x0, (%rcx)
movl (%rbx), %eax
decl %eax
cmpl $0x3, %eax
ja 0xeffd
leaq 0x43ba4(%rip), %rcx     # 0x52978
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xb(%rbp), %rax
cmpq %rax, %r15
jae 0xefbc
leaq 0xa(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r12
shrq $0x20, %r12
orq %rcx, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xefc2
jmp 0xeffd
leaq 0x8(%rbp), %rax
cmpq %rax, %r15
jae 0xef79
leaq 0x7(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r12
shrq $0x20, %r12
orq %rcx, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xef7f
jmp 0xeffd
leaq 0x11(%rbp), %rax
cmpq %rax, %r15
jae 0xef93
leaq 0x10(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r12
shrq $0x20, %r12
orq %rcx, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xef99
jmp 0xeffd
leaq 0x12(%rbp), %rax
cmpq %rax, %r15
jae 0xefdb
leaq 0x11(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r12
shrq $0x20, %r12
orq %rcx, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xefe1
jmp 0xeffd
movq %r15, %r12
movq %r14, %rax
movw $0x7865, 0x4(%rax,%rbp) # imm = 0x7865
movl $0x646e6920, (%rax,%rbp) # imm = 0x646E6920
addq $0x6, %rbp
jmp 0xeff0
movq %r15, %r12
movq %r14, %rax
movabsq $0x6e6f696765722063, %rcx # imm = 0x6E6F696765722063
movq %rcx, 0x7(%rax,%rbp)
movabsq $0x63696d6f6e656720, %rcx # imm = 0x63696D6F6E656720
movq %rcx, (%rax,%rbp)
addq $0xf, %rbp
jmp 0xeff0
movq %r15, %r12
movq %r14, %rax
movabsq $0x636e657571657320, %rcx # imm = 0x636E657571657320
movq %rcx, (%rax,%rbp)
movb $0x65, 0x8(%rax,%rbp)
addq $0x9, %rbp
jmp 0xeff0
movq %r15, %r12
movq %r14, %rax
movups 0x43c1e(%rip), %xmm0    # 0x52c06
movups %xmm0, (%rax,%rbp)
addq $0x10, %rbp
leaq (%rax,%rbp), %rcx
movq %r12, %r15
movq %rax, %r14
movb $0x0, (%rcx)
cmpl $0x0, 0xc(%rbx)
je 0xf064
leaq 0x7(%rbp), %rax
cmpq %rax, %r15
jae 0xf0d0
leaq 0x6(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x20, %rsi
orq %rcx, %rsi
incq %rsi
movq %r14, %rdi
callq 0x48d0
testq %rax, %rax
jne 0xf0d3
jmp 0xf0f8
movl 0x4(%rbx), %eax
cmpl $0xd, %eax
ja 0xf003
movl $0x2188, %ecx           # imm = 0x2188
btl %eax, %ecx
jae 0xf003
leaq 0x7(%rbp), %rax
cmpq %rax, %r15
jae 0xf0e1
leaq 0x6(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x20, %rsi
orq %rcx, %rsi
incq %rsi
movq %r14, %rdi
callq 0x48d0
testq %rax, %rax
jne 0xf0e4
jmp 0xf0f8
movq %r14, %rax
movb $0x61, 0x4(%rax,%rbp)
movl $0x74616420, (%rax,%rbp) # imm = 0x74616420
jmp 0xf0f0
movq %r14, %rax
movb $0x74, 0x4(%rax,%rbp)
movl $0x78657420, (%rax,%rbp) # imm = 0x78657420
movq %rax, %r14
movb $0x0, 0x5(%rax,%rbp)
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x12(%rbp), %rax
cmpq %rax, %r15
jae 0xf16a
leaq 0x11(%rbp), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %r12
shrq $0x20, %r12
orq %rcx, %r12
incq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x48d0
testq %rax, %rax
jne 0xf170
jmp 0xedc0
movq %r15, %r12
movq %r14, %rax
movups 0x43a74(%rip), %xmm0    # 0x52beb
jmp 0xedab