// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/sam.c
// Function: bam_flag2str
char *bam_flag2str(int flag)
{
    kstring_t str = {0,0,0};
    if ( flag&BAM_FPAIRED ) ksprintf(&str,"%s%s", str.l?",":"","PAIRED");
    if ( flag&BAM_FPROPER_PAIR ) ksprintf(&str,"%s%s", str.l?",":"","PROPER_PAIR");
    if ( flag&BAM_FUNMAP ) ksprintf(&str,"%s%s", str.l?",":"","UNMAP");
    if ( flag&BAM_FMUNMAP ) ksprintf(&str,"%s%s", str.l?",":"","MUNMAP");
    if ( flag&BAM_FREVERSE ) ksprintf(&str,"%s%s", str.l?",":"","REVERSE");
    if ( flag&BAM_FMREVERSE ) ksprintf(&str,"%s%s", str.l?",":"","MREVERSE");
    if ( flag&BAM_FREAD1 ) ksprintf(&str,"%s%s", str.l?",":"","READ1");
    if ( flag&BAM_FREAD2 ) ksprintf(&str,"%s%s", str.l?",":"","READ2");
    if ( flag&BAM_FSECONDARY ) ksprintf(&str,"%s%s", str.l?",":"","SECONDARY");
    if ( flag&BAM_FQCFAIL ) ksprintf(&str,"%s%s", str.l?",":"","QCFAIL");
    if ( flag&BAM_FDUP ) ksprintf(&str,"%s%s", str.l?",":"","DUP");
    if ( flag&BAM_FSUPPLEMENTARY ) ksprintf(&str,"%s%s", str.l?",":"","SUPPLEMENTARY");
    if ( str.l == 0 ) kputsn("", 0, &str);
    return str.s;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edi, %ebx
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
testb $0x1, %bl
jne 0x26a4b
xorl %eax, %eax
jmp 0x26a70
leaq 0x514af(%rip), %rsi     # 0x77f01
leaq 0x512fd(%rip), %rdx     # 0x77d56
leaq 0x53374(%rip), %rcx     # 0x79dd4
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
testb $0x2, %bl
je 0x26aa8
testq %rax, %rax
leaq 0x512d7(%rip), %rax     # 0x77d56
leaq 0x533a0(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x51470(%rip), %rsi     # 0x77f01
leaq 0x53343(%rip), %rcx     # 0x79ddb
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
testb $0x4, %bl
je 0x26ae0
testq %rax, %rax
leaq 0x5129f(%rip), %rax     # 0x77d56
leaq 0x53368(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x51438(%rip), %rsi     # 0x77f01
leaq 0x53318(%rip), %rcx     # 0x79de8
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
testb $0x8, %bl
je 0x26b18
testq %rax, %rax
leaq 0x51267(%rip), %rax     # 0x77d56
leaq 0x53330(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x51400(%rip), %rsi     # 0x77f01
leaq 0x532df(%rip), %rcx     # 0x79de7
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
testb $0x10, %bl
je 0x26b50
testq %rax, %rax
leaq 0x5122f(%rip), %rax     # 0x77d56
leaq 0x532f8(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x513c8(%rip), %rsi     # 0x77f01
leaq 0x532af(%rip), %rcx     # 0x79def
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
testb $0x20, %bl
je 0x26b88
testq %rax, %rax
leaq 0x511f7(%rip), %rax     # 0x77d56
leaq 0x532c0(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x51390(%rip), %rsi     # 0x77f01
leaq 0x53276(%rip), %rcx     # 0x79dee
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
testb $0x40, %bl
je 0x26bc0
testq %rax, %rax
leaq 0x511bf(%rip), %rax     # 0x77d56
leaq 0x53288(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x51358(%rip), %rsi     # 0x77f01
leaq 0x53247(%rip), %rcx     # 0x79df7
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
testb %bl, %bl
jns 0x26bf7
testq %rax, %rax
leaq 0x51188(%rip), %rax     # 0x77d56
leaq 0x53251(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x51321(%rip), %rsi     # 0x77f01
leaq 0x53216(%rip), %rcx     # 0x79dfd
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
btl $0x8, %ebx
jae 0x26c30
testq %rax, %rax
leaq 0x5114f(%rip), %rax     # 0x77d56
leaq 0x53218(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x512e8(%rip), %rsi     # 0x77f01
leaq 0x531e3(%rip), %rcx     # 0x79e03
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
btl $0x9, %ebx
jae 0x26c69
testq %rax, %rax
leaq 0x51116(%rip), %rax     # 0x77d56
leaq 0x531df(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x512af(%rip), %rsi     # 0x77f01
leaq 0x531b4(%rip), %rcx     # 0x79e0d
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
btl $0xa, %ebx
jae 0x26ca2
testq %rax, %rax
leaq 0x510dd(%rip), %rax     # 0x77d56
leaq 0x531a6(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x51276(%rip), %rsi     # 0x77f01
leaq 0x53182(%rip), %rcx     # 0x79e14
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%r14), %rax
btl $0xb, %ebx
jae 0x26cdb
testq %rax, %rax
leaq 0x510a4(%rip), %rax     # 0x77d56
leaq 0x5316d(%rip), %rdx     # 0x79e26
cmoveq %rax, %rdx
leaq 0x5123d(%rip), %rsi     # 0x77f01
leaq 0x5314d(%rip), %rcx     # 0x79e18
movq %rsp, %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x8c78
movq (%rbx), %rax
testq %rax, %rax
jne 0x26cf1
leaq 0x5106f(%rip), %rdi     # 0x77d56
movq %rsp, %rdx
xorl %esi, %esi
callq 0x21461
movq 0x10(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq