// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/test/sam.c
// Function: test_bam_set1_with_seq_but_no_qual
static void test_bam_set1_with_seq_but_no_qual(void)
{
    const char *seq = "TGGACTACGA";

    int r, i;
    bam1_t *bam = NULL;
    bam = bam_init1();
    VERIFY(bam != NULL, "failed to initialize BAM struct.");

    r = bam_set1(bam, 0, NULL,
                 BAM_FUNMAP, 0, 0, 0,
                 0, NULL, 0, 0, 0,
                 strlen(seq), seq, NULL, 0);
    VERIFY(r >= 0, "call to bam_set1() failed.");
    VERIFY(bam->core.l_qseq == strlen(seq), "l_seq not set correctly.");
    for (i = 0; i < strlen(seq); i++) {
        VERIFY(bam_seqi(bam_get_seq(bam), i) == seq_nt16_table[(uint8_t)seq[i]], "seq not set correctly.");
        VERIFY(bam_get_qual(bam)[i] == 0xff, "qual not set correctly");
    }

cleanup:
    if (bam != NULL) bam_destroy1(bam);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
leaq 0xe72e9(%rip), %rax     # 0xf2cfb
movq %rax, -0x8(%rbp)
movq $0x0, -0x18(%rbp)
callq 0x37e90
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xba4f
leaq 0xe8182(%rip), %rdi     # 0xf3bb7
leaq 0xe7374(%rip), %rsi     # 0xf2db0
leaq 0xe70db(%rip), %rdx     # 0xf2b1e
movb $0x0, %al
callq 0x5b50
jmp 0xbc59
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
callq 0x41a0
movq -0x20(%rbp), %rdi
movq %rax, %r10
movq -0x8(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %r9d
movl $0x4, %ecx
xorl %r8d, %r8d
movq %r9, %rsi
movq %r9, %rdx
movl $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movq %r10, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
callq 0x382b0
movl %eax, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
jge 0xbafc
leaq 0xe80d5(%rip), %rdi     # 0xf3bb7
leaq 0xe72c7(%rip), %rsi     # 0xf2db0
leaq 0xe72a5(%rip), %rdx     # 0xf2d95
movb $0x0, %al
callq 0x5b50
jmp 0xbc59
movq -0x18(%rbp), %rax
movslq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
callq 0x41a0
movq %rax, %rcx
movq -0x28(%rbp), %rax
cmpq %rcx, %rax
je 0xbb3e
leaq 0xe8093(%rip), %rdi     # 0xf3bb7
leaq 0xe7285(%rip), %rsi     # 0xf2db0
leaq 0xe718c(%rip), %rdx     # 0xf2cbe
movb $0x0, %al
callq 0x5b50
jmp 0xbc59
movl $0x0, -0x10(%rbp)
movslq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x41a0
movq %rax, %rcx
movq -0x30(%rbp), %rax
cmpq %rcx, %rax
jae 0xbc57
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x18(%rbp), %rcx
movl 0x14(%rcx), %ecx
shll $0x2, %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movl -0x10(%rbp), %ecx
sarl %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
movl -0x10(%rbp), %ecx
xorl $-0x1, %ecx
andl $0x1, %ecx
shll $0x2, %ecx
sarl %cl, %eax
andl $0xf, %eax
movq -0x8(%rbp), %rcx
movslq -0x10(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl %ecx, %edx
leaq 0xe9123(%rip), %rcx     # 0xf4ce0
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0xbbe3
leaq 0xe7feb(%rip), %rdi     # 0xf3bb7
leaq 0xe71dd(%rip), %rsi     # 0xf2db0
leaq 0xe70e6(%rip), %rdx     # 0xf2cc0
movb $0x0, %al
callq 0x5b50
jmp 0xbc59
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x18(%rbp), %rcx
movl 0x14(%rcx), %ecx
shll $0x2, %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movl 0x18(%rcx), %ecx
addl $0x1, %ecx
sarl %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0xff, %eax
je 0xbc47
leaq 0xe7f87(%rip), %rdi     # 0xf3bb7
leaq 0xe7179(%rip), %rsi     # 0xf2db0
leaq 0xe7195(%rip), %rdx     # 0xf2dd3
movb $0x0, %al
callq 0x5b50
jmp 0xbc59
jmp 0xbc49
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xbb45
jmp 0xbc59
cmpq $0x0, -0x18(%rbp)
je 0xbc69
movq -0x18(%rbp), %rdi
callq 0x380d0
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)