// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/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 $0x18, %rsp
movq %rdi, %rbp
movl 0x4(%rdi), %eax
addl $-0x3, %eax
cmpl $0x9, %eax
ja 0x4d425
leaq 0x4aff5(%rip), %rcx     # 0x98260
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movb $0x4d, 0x2(%rax)
movw $0x4153, (%rax)         # imm = 0x4153
jmp 0x4d47c
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movb $0x49, 0x2(%rax)
jmp 0x4d30a
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movb $0x46, 0x2(%rax)
movw $0x4356, (%rax)         # imm = 0x4356
jmp 0x4d47c
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movb $0x4d, 0x2(%rax)
movw $0x4142, (%r15)         # imm = 0x4142
jmp 0x4d47c
cmpw $0x1, 0x8(%rbp)
jne 0x4d45b
movl $0x10, %r14d
movl $0x10, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movabsq $0x422079636167654c, %rax # imm = 0x422079636167654C
movq %rax, (%r15)
movw $0x4643, 0x8(%r15)      # imm = 0x4643
movq %r15, %rax
addq $0xa, %rax
movl $0x10, %r14d
movl $0xa, %ebx
jmp 0x4d48e
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movb $0x49, 0x2(%rax)
movw $0x5343, (%rax)         # imm = 0x5343
jmp 0x4d47c
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movl $0x4d415243, (%rax)     # imm = 0x4D415243
jmp 0x4d3d7
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movl $0x49415243, (%rax)     # imm = 0x49415243
movq %r15, %rax
addq $0x4, %rax
movl $0x8, %r14d
movl $0x4, %ebx
jmp 0x4d48e
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movb $0x78, 0x4(%rax)
movl $0x69626154, (%rax)     # imm = 0x69626154
addq $0x5, %rax
movl $0x8, %r14d
movl $0x5, %ebx
jmp 0x4d48e
movl $0x10, %r14d
movl $0x10, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movl $0x6e776f6e, 0x3(%rax)  # imm = 0x6E776F6E
movl $0x6e6b6e75, (%rax)     # imm = 0x6E6B6E75
addq $0x7, %rax
movl $0x10, %r14d
movl $0x7, %ebx
jmp 0x4d48e
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d493
movq %rax, %r15
movb $0x46, 0x2(%rax)
movw $0x4342, (%rax)         # imm = 0x4342
movq %r15, %rax
addq $0x3, %rax
movl $0x8, %r14d
movl $0x3, %ebx
movb $0x0, (%rax)
jmp 0x4d498
xorl %ebx, %ebx
xorl %r15d, %r15d
movzwl 0x8(%rbp), %r12d
testw %r12w, %r12w
js 0x4d72f
leaq 0xa(%rbx), %rax
cmpq %r14, %rax
movq %rbp, 0x10(%rsp)
jae 0x4d4ba
movq %r15, %rax
jmp 0x4d4e6
movl %eax, %ecx
shrl %ecx
orq %rax, %rcx
movl %ecx, %eax
shrl $0x2, %eax
orq %rcx, %rax
movl %eax, %r14d
shrl $0x4, %r14d
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4d507
movabsq $0x6e6f697372657620, %rcx # imm = 0x6E6F697372657620
movq %rcx, (%rax,%rbx)
movw $0x20, 0x8(%rax,%rbx)
addq $0x9, %rbx
movzwl 0x8(%rbp), %r12d
movq %rax, %r15
movl %r12d, %eax
negw %ax
cmovsw %r12w, %ax
movzwl %ax, %eax
xorl %ebp, %ebp
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %eax, %edx
imulq %rcx, %rdx
shrq $0x23, %rdx
leal (%rdx,%rdx), %esi
leal (%rsi,%rsi,4), %esi
movl %eax, %edi
subl %esi, %edi
orb $0x30, %dil
movb %dil, (%rsp,%rbp)
incq %rbp
cmpl $0x9, %eax
movl %edx, %eax
ja 0x4d51c
testw %r12w, %r12w
jns 0x4d550
movl %ebp, %eax
incl %ebp
movb $0x2d, (%rsp,%rax)
movslq %ebp, %rax
addq %rbx, %rax
incq %rax
cmpq %r14, %rax
jae 0x4d563
movq %r15, %r12
jmp 0x4d5ae
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
movq %rax, %r12
testq %rax, %rax
je 0x4d8a9
movl %ebp, %eax
leal (%rbx,%rbp), %r13d
testl %ebp, %ebp
movl $0x1, %ecx
cmovlel %ebp, %ecx
subl %ecx, %r13d
incl %r13d
movq %rsp, %rcx
addq %rcx, %rax
decq %rax
movb (%rax), %cl
movb %cl, (%r12,%rbx)
incq %rbx
decq %rax
cmpq %rbx, %r13
jne 0x4d5cd
movb $0x0, (%r12,%r13)
movq 0x10(%rsp), %rbp
cmpw $0x0, 0xa(%rbp)
js 0x4d5fd
leaq 0x1(%r13), %rbx
cmpq %r14, %rbx
jae 0x4d608
movq %r12, %rax
jmp 0x4d650
movq %r13, %rbx
movq %r12, %r15
jmp 0x4d72f
movq %rbx, %rax
shrq %rax
orq %rbx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %r14
shrq $0x10, %r14
orq %rcx, %r14
incq %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4db2c
movw $0x2e, (%rax,%r13)
movq %rax, %r12
movq %rbp, %r13
movzwl 0xa(%rbp), %eax
movl %eax, %ecx
negw %cx
cmovsw %ax, %cx
movzwl %cx, %ecx
xorl %ebp, %ebp
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, (%rsp,%rbp)
incq %rbp
cmpl $0x9, %ecx
movl %esi, %ecx
ja 0x4d674
testw %ax, %ax
jns 0x4d6a9
movl %ebp, %eax
incl %ebp
movb $0x2d, (%rsp,%rax)
movslq %ebp, %rax
addq %rbx, %rax
incq %rax
cmpq %r14, %rax
jae 0x4d6bc
movq %r12, %r15
jmp 0x4d707
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x6c80
movq %rax, %r15
testq %rax, %rax
je 0x4db34
movl %ebp, %eax
incl %ebp
movq %rsp, %rcx
addq %rcx, %rax
decq %rax
movb (%rax), %cl
movb %cl, (%r15,%rbx)
incq %rbx
decl %ebp
decq %rax
cmpl $0x1, %ebp
jg 0x4d714
movb $0x0, (%r15,%rbx)
movq %r13, %rbp
movl 0xc(%rbp), %eax
cmpl $0x1, %eax
je 0x4d76e
cmpl $0x2, %eax
je 0x4d746
cmpl $0x3, %eax
je 0x4d760
jmp 0x4d83e
movl 0x4(%rbp), %eax
cmpl $0xc, %eax
ja 0x4db3c
movl $0x1610, %ecx           # imm = 0x1610
btl %eax, %ecx
jae 0x4db3c
leaq 0xc(%rbx), %rax
cmpq %r14, %rax
jae 0x4d77f
movq %r15, %rax
jmp 0x4d7c3
leaq 0x11(%rbx), %rax
cmpq %r14, %rax
jae 0x4d7e0
movq %r15, %rax
jmp 0x4d824
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4d83e
movabsq $0x736572706d6f6320, %rcx # imm = 0x736572706D6F6320
movq %rcx, (%rax,%rbx)
movl $0x64657373, 0x7(%rax,%rbx) # imm = 0x64657373
movl $0xb, %ecx
jmp 0x4d834
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4d83e
movups 0x4ac80(%rip), %xmm0    # 0x984ab
movups %xmm0, (%rax,%rbx)
movl $0x10, %ecx
movq %rax, %r15
addq %rcx, %rbx
movb $0x0, (%rax,%rbx)
movl (%rbp), %eax
decl %eax
cmpl $0x3, %eax
ja 0x4da3f
leaq 0x4aa35(%rip), %rcx     # 0x98288
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xa(%rbx), %rax
cmpq %r14, %rax
jae 0x4d983
movq %r15, %rax
jmp 0x4d9c7
leaq 0x7(%rbx), %rax
cmpq %r14, %rax
jae 0x4d8b4
movq %r15, %rax
jmp 0x4d8fc
leaq 0x10(%rbx), %rax
cmpq %r14, %rax
jae 0x4d914
movq %r15, %rax
jmp 0x4d95c
leaq 0x11(%rbx), %rax
cmpq %r14, %rax
jae 0x4d9e1
movq %r15, %rax
jmp 0x4da25
movq %rbx, %r13
movq %r15, %r12
jmp 0x4d5e3
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4da3f
movw $0x7865, 0x4(%rax,%rbx) # imm = 0x7865
movl $0x646e6920, (%rax,%rbx) # imm = 0x646E6920
movl $0x6, %ecx
jmp 0x4da35
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4da3f
movabsq $0x6e6f696765722063, %rcx # imm = 0x6E6F696765722063
movq %rcx, 0x7(%rax,%rbx)
movabsq $0x63696d6f6e656720, %rcx # imm = 0x63696D6F6E656720
movq %rcx, (%rax,%rbx)
movl $0xf, %ecx
jmp 0x4da35
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4da3f
movabsq $0x636e657571657320, %rcx # imm = 0x636E657571657320
movq %rcx, (%rax,%rbx)
movb $0x65, 0x8(%rax,%rbx)
movl $0x9, %ecx
jmp 0x4da35
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4da3f
movups 0x4aaab(%rip), %xmm0    # 0x984d7
movups %xmm0, (%rax,%rbx)
movl $0x10, %ecx
movq %rax, %r15
addq %rcx, %rbx
movb $0x0, (%rax,%rbx)
cmpl $0x0, 0xc(%rbp)
je 0x4da53
leaq 0x6(%rbx), %rax
cmpq %r14, %rax
jae 0x4da76
movq %r15, %rax
jmp 0x4dab7
movl 0x4(%rbp), %eax
cmpl $0xd, %eax
ja 0x4da45
movl $0x2188, %ecx           # imm = 0x2188
btl %eax, %ecx
jae 0x4da45
leaq 0x6(%rbx), %rax
cmpq %r14, %rax
jae 0x4dac5
movq %r15, %rax
jmp 0x4db06
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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %r15, %rdi
callq 0x6c80
testq %rax, %rax
je 0x4db1a
movb $0x61, 0x4(%rax,%rbx)
movl $0x74616420, (%rax,%rbx) # imm = 0x74616420
jmp 0x4db12
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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %r15, %rdi
callq 0x6c80
testq %rax, %rax
je 0x4db1a
movb $0x74, 0x4(%rax,%rbx)
movl $0x78657420, (%rax,%rbx) # imm = 0x78657420
movq %rax, %r15
movb $0x0, 0x5(%rbx,%rax)
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rbx
jmp 0x4d65a
movq %r12, %r15
jmp 0x4d72c
leaq 0x11(%rbx), %rax
cmpq %r14, %rax
jae 0x4db4a
movq %r15, %rax
jmp 0x4db92
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, %r14
shrq $0x10, %r14
orq %rax, %r14
incq %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6c80
testq %rax, %rax
je 0x4d83e
movups 0x4a923(%rip), %xmm0    # 0x984bc
jmp 0x4d82b