// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movl 0x4(%rdi), %eax
addl $-0x3, %eax
cmpl $0x9, %eax
ja 0x4d1f8
leaq 0x4b105(%rip), %rcx     # 0x98140
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movb $0x4d, 0x2(%rax)
movw $0x4153, (%rax)         # imm = 0x4153
jmp 0x4d250
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movb $0x49, 0x2(%rax)
jmp 0x4d0da
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movb $0x46, 0x2(%rax)
movw $0x4356, (%rax)         # imm = 0x4356
jmp 0x4d250
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movb $0x4d, 0x2(%rax)
movw $0x4142, (%r15)         # imm = 0x4142
jmp 0x4d250
cmpw $0x1, 0x8(%rbx)
jne 0x4d22f
movl $0x10, %r14d
movl $0x10, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
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, %r13d
jmp 0x4d263
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movb $0x49, 0x2(%rax)
movw $0x5343, (%rax)         # imm = 0x5343
jmp 0x4d250
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movl $0x4d415243, (%rax)     # imm = 0x4D415243
jmp 0x4d1a8
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movl $0x49415243, (%rax)     # imm = 0x49415243
movq %r15, %rax
addq $0x4, %rax
movl $0x8, %r14d
movl $0x4, %r13d
jmp 0x4d263
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movb $0x78, 0x4(%rax)
movl $0x69626154, (%rax)     # imm = 0x69626154
addq $0x5, %rax
movl $0x8, %r14d
movl $0x5, %r13d
jmp 0x4d263
movl $0x10, %r14d
movl $0x10, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movl $0x6e776f6e, 0x3(%rax)  # imm = 0x6E776F6E
movl $0x6e6b6e75, (%rax)     # imm = 0x6E6B6E75
addq $0x7, %rax
movl $0x10, %r14d
movl $0x7, %r13d
jmp 0x4d263
movl $0x8, %r14d
movl $0x8, %edi
callq 0x69d0
testq %rax, %rax
je 0x4d268
movq %rax, %r15
movb $0x46, 0x2(%rax)
movw $0x4342, (%rax)         # imm = 0x4342
movq %r15, %rax
addq $0x3, %rax
movl $0x8, %r14d
movl $0x3, %r13d
movb $0x0, (%rax)
jmp 0x4d26e
xorl %r13d, %r13d
xorl %r15d, %r15d
cmpw $0x0, 0x8(%rbx)
js 0x4d4f6
leaq 0xa(%r13), %rax
cmpq %r14, %rax
jae 0x4d287
movq %r15, %rax
jmp 0x4d2b3
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 0x4d2d0
movabsq $0x6e6f697372657620, %rcx # imm = 0x6E6F697372657620
movq %rcx, (%rax,%r13)
movw $0x20, 0x8(%rax,%r13)
addq $0x9, %r13
movq %rax, %r15
movzwl 0x8(%rbx), %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 0x4d2e7
testw %ax, %ax
jns 0x4d31c
movl %ebp, %eax
incl %ebp
movb $0x2d, (%rsp,%rax)
movslq %ebp, %rax
addq %r13, %rax
incq %rax
cmpq %r14, %rax
jae 0x4d32f
movq %r15, %r12
jmp 0x4d37a
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 0x4d672
movl %ebp, %ecx
leal (%r13,%rbp), %eax
testl %ebp, %ebp
movl $0x1, %edx
cmovlel %ebp, %edx
subl %edx, %eax
incl %eax
movq %rsp, %rdx
addq %rdx, %rcx
decq %rcx
movb (%rcx), %dl
movb %dl, (%r12,%r13)
incq %r13
decq %rcx
cmpq %r13, %rax
jne 0x4d398
movb $0x0, (%r12,%r13)
cmpw $0x0, 0xa(%rbx)
js 0x4d3c3
leaq 0x1(%r13), %rbp
cmpq %r14, %rbp
jae 0x4d3cb
movq %r12, %rax
jmp 0x4d413
movq %r12, %r15
jmp 0x4d4f6
movq %rbp, %rax
shrq %rax
orq %rbp, %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 0x4d8fc
movw $0x2e, (%rax,%r13)
movq %rax, %r12
movzwl 0xa(%rbx), %eax
movl %eax, %ecx
negw %cx
cmovsw %ax, %cx
movzwl %cx, %ecx
xorl %r13d, %r13d
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,%r13)
incq %r13
cmpl $0x9, %ecx
movl %esi, %ecx
ja 0x4d435
testw %ax, %ax
jns 0x4d46c
movl %r13d, %eax
incl %r13d
movb $0x2d, (%rsp,%rax)
movslq %r13d, %rax
addq %rbp, %rax
incq %rax
cmpq %r14, %rax
jae 0x4d47f
movq %r12, %r15
jmp 0x4d4ca
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 0x4d904
movl %r13d, %eax
incl %r13d
movq %rsp, %rcx
addq %rcx, %rax
decq %rax
movb (%rax), %cl
movb %cl, (%r15,%rbp)
incq %rbp
decl %r13d
decq %rax
cmpl $0x1, %r13d
jg 0x4d4d9
movb $0x0, (%r15,%rbp)
movq %rbp, %r13
movl 0xc(%rbx), %eax
cmpl $0x1, %eax
je 0x4d535
cmpl $0x2, %eax
je 0x4d50d
cmpl $0x3, %eax
je 0x4d527
jmp 0x4d608
movl 0x4(%rbx), %eax
cmpl $0xc, %eax
ja 0x4d90c
movl $0x1610, %ecx           # imm = 0x1610
btl %eax, %ecx
jae 0x4d90c
leaq 0xc(%r13), %rax
cmpq %r14, %rax
jae 0x4d546
movq %r15, %rax
jmp 0x4d58a
leaq 0x11(%r13), %rax
cmpq %r14, %rax
jae 0x4d5a8
movq %r15, %rax
jmp 0x4d5ec
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 0x4d608
movabsq $0x736572706d6f6320, %rcx # imm = 0x736572706D6F6320
movq %rcx, (%rax,%r13)
movl $0x64657373, 0x7(%rax,%r13) # imm = 0x64657373
movl $0xb, %ecx
jmp 0x4d5fd
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 0x4d608
movups 0x4adc4(%rip), %xmm0    # 0x983b7
movups %xmm0, (%rax,%r13)
movl $0x10, %ecx
movq %rax, %r15
addq %rcx, %r13
movb $0x0, (%rax,%r13)
movl (%rbx), %eax
decl %eax
cmpl $0x3, %eax
ja 0x4d80a
leaq 0x4ab4c(%rip), %rcx     # 0x98168
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xa(%r13), %rax
cmpq %r14, %rax
jae 0x4d74b
movq %r15, %rax
jmp 0x4d78f
leaq 0x7(%r13), %rax
cmpq %r14, %rax
jae 0x4d67a
movq %r15, %rax
jmp 0x4d6c2
leaq 0x10(%r13), %rax
cmpq %r14, %rax
jae 0x4d6dc
movq %r15, %rax
jmp 0x4d724
leaq 0x11(%r13), %rax
cmpq %r14, %rax
jae 0x4d7aa
movq %r15, %rax
jmp 0x4d7ee
movq %r15, %r12
jmp 0x4d3ae
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 0x4d80a
movw $0x7865, 0x4(%rax,%r13) # imm = 0x7865
movl $0x646e6920, (%rax,%r13) # imm = 0x646E6920
movl $0x6, %ecx
jmp 0x4d7ff
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 0x4d80a
movabsq $0x6e6f696765722063, %rcx # imm = 0x6E6F696765722063
movq %rcx, 0x7(%rax,%r13)
movabsq $0x63696d6f6e656720, %rcx # imm = 0x63696D6F6E656720
movq %rcx, (%rax,%r13)
movl $0xf, %ecx
jmp 0x4d7ff
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 0x4d80a
movabsq $0x636e657571657320, %rcx # imm = 0x636E657571657320
movq %rcx, (%rax,%r13)
movb $0x65, 0x8(%rax,%r13)
movl $0x9, %ecx
jmp 0x4d7ff
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 0x4d80a
movups 0x4abee(%rip), %xmm0    # 0x983e3
movups %xmm0, (%rax,%r13)
movl $0x10, %ecx
movq %rax, %r15
addq %rcx, %r13
movb $0x0, (%rax,%r13)
cmpl $0x0, 0xc(%rbx)
je 0x4d81e
leaq 0x6(%r13), %rax
cmpq %r14, %rax
jae 0x4d841
movq %r15, %rax
jmp 0x4d882
movl 0x4(%rbx), %eax
cmpl $0xd, %eax
ja 0x4d810
movl $0x2188, %ecx           # imm = 0x2188
btl %eax, %ecx
jae 0x4d810
leaq 0x6(%r13), %rax
cmpq %r14, %rax
jae 0x4d892
movq %r15, %rax
jmp 0x4d8d3
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 0x4d8ea
movb $0x61, 0x4(%rax,%r13)
movl $0x74616420, (%rax,%r13) # imm = 0x74616420
jmp 0x4d8e1
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 0x4d8ea
movb $0x74, 0x4(%rax,%r13)
movl $0x78657420, (%rax,%r13) # imm = 0x78657420
movq %rax, %r15
movb $0x0, 0x5(%r13,%rax)
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rbp
jmp 0x4d41d
movq %r12, %r15
jmp 0x4d4f3
leaq 0x11(%r13), %rax
cmpq %r14, %rax
jae 0x4d91a
movq %r15, %rax
jmp 0x4d962
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 0x4d608
movups 0x4aa5f(%rip), %xmm0    # 0x983c8
jmp 0x4d5f3