// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%rbp)
movq $0x0, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
addl $-0x3, %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x9, %eax
ja 0x70875
movq -0x28(%rbp), %rax
leaq 0x718d1(%rip), %rcx     # 0xe2070
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x71f90(%rip), %rdi     # 0xe273f
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
leaq 0x71af4(%rip), %rdi     # 0xe22b8
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
leaq 0x71a8f(%rip), %rdi     # 0xe2268
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
leaq 0x71aaa(%rip), %rdi     # 0xe2298
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %eax
cmpl $0x1, %eax
jne 0x7081b
leaq 0x71aac(%rip), %rdi     # 0xe22bc
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x7082b
leaq 0x71aa1(%rip), %rdi     # 0xe22c3
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
leaq 0x71a93(%rip), %rdi     # 0xe22c7
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
leaq 0x71a85(%rip), %rdi     # 0xe22cb
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
leaq 0x71a78(%rip), %rdi     # 0xe22d0
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
leaq 0x71a6a(%rip), %rdi     # 0xe22d4
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70885
leaq 0x6ca08(%rip), %rdi     # 0xdd284
leaq -0x20(%rbp), %rsi
callq 0x70a60
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %eax
cmpl $0x0, %eax
jl 0x708e1
leaq 0x71a41(%rip), %rdi     # 0xe22da
leaq -0x20(%rbp), %rsi
callq 0x70a60
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %edi
leaq -0x20(%rbp), %rsi
callq 0x70aa0
movq -0x8(%rbp), %rax
movswl 0xa(%rax), %eax
cmpl $0x0, %eax
jl 0x708df
movl $0x2e, %edi
leaq -0x20(%rbp), %rsi
callq 0x70c90
movq -0x8(%rbp), %rax
movswl 0xa(%rax), %edi
leaq -0x20(%rbp), %rsi
callq 0x70aa0
jmp 0x708e1
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x2c(%rbp)
subl $0x1, %eax
je 0x70918
jmp 0x708f2
movl -0x2c(%rbp), %eax
subl $0x2, %eax
je 0x7092a
jmp 0x708fc
movl -0x2c(%rbp), %eax
subl $0x3, %eax
jne 0x70976
jmp 0x70906
leaq 0x719d7(%rip), %rdi     # 0xe22e4
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70978
leaq 0x719d1(%rip), %rdi     # 0xe22f0
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70978
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x30(%rbp)
subl $0x4, %eax
je 0x70952
jmp 0x7093b
movl -0x30(%rbp), %eax
addl $-0x9, %eax
subl $0x2, %eax
jb 0x70952
jmp 0x70948
movl -0x30(%rbp), %eax
subl $0xc, %eax
jne 0x70964
jmp 0x70952
leaq 0x7198b(%rip), %rdi     # 0xe22e4
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70974
leaq 0x71996(%rip), %rdi     # 0xe2301
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70978
jmp 0x70978
movq -0x8(%rbp), %rax
movl (%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x3, %eax
ja 0x709e7
movq -0x38(%rbp), %rax
leaq 0x71702(%rip), %rcx     # 0xe2098
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x7196c(%rip), %rdi     # 0xe2312
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x709e9
leaq 0x71964(%rip), %rdi     # 0xe231c
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x709e9
leaq 0x6719c(%rip), %rdi     # 0xd7b66
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x709e9
leaq 0x71951(%rip), %rdi     # 0xe232d
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x709e9
jmp 0x709e9
movq -0x8(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0x70a3f
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x3c(%rbp)
subl $0x3, %eax
je 0x70a1b
jmp 0x70a04
movl -0x3c(%rbp), %eax
addl $-0x7, %eax
subl $0x2, %eax
jb 0x70a1b
jmp 0x70a11
movl -0x3c(%rbp), %eax
subl $0xd, %eax
jne 0x70a2d
jmp 0x70a1b
leaq 0x7191b(%rip), %rdi     # 0xe233d
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70a3d
leaq 0x7190f(%rip), %rdi     # 0xe2343
leaq -0x20(%rbp), %rsi
callq 0x70a60
jmp 0x70a4f
leaq 0x718fd(%rip), %rdi     # 0xe2343
leaq -0x20(%rbp), %rsi
callq 0x70a60
leaq -0x20(%rbp), %rdi
callq 0x70de0
addq $0x40, %rsp
popq %rbp
retq
nop