// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/sam.c
// Function: sam_format1_append
static int sam_format1_append(const bam_hdr_t *h, const bam1_t *b, kstring_t *str)
{
    int i, r = 0;
    uint8_t *s, *end;
    const bam1_core_t *c = &b->core;

    if (c->l_qname == 0)
        return -1;
    r |= kputsn_(bam_get_qname(b), c->l_qname-1-c->l_extranul, str);
    r |= kputc_('\t', str); // query name
    r |= kputw(c->flag, str); r |= kputc_('\t', str); // flag
    if (c->tid >= 0) { // chr
        r |= kputs(h->target_name[c->tid] , str);
        r |= kputc_('\t', str);
    } else r |= kputsn_("*\t", 2, str);
    r |= kputll(c->pos + 1, str); r |= kputc_('\t', str); // pos
    r |= kputw(c->qual, str); r |= kputc_('\t', str); // qual
    if (c->n_cigar) { // cigar
        uint32_t *cigar = bam_get_cigar(b);
        for (i = 0; i < c->n_cigar; ++i) {
            r |= kputw(bam_cigar_oplen(cigar[i]), str);
            r |= kputc_(bam_cigar_opchr(cigar[i]), str);
        }
    } else r |= kputc_('*', str);
    r |= kputc_('\t', str);
    if (c->mtid < 0) r |= kputsn_("*\t", 2, str); // mate chr
    else if (c->mtid == c->tid) r |= kputsn_("=\t", 2, str);
    else {
        r |= kputs(h->target_name[c->mtid], str);
        r |= kputc_('\t', str);
    }
    r |= kputll(c->mpos + 1, str); r |= kputc_('\t', str); // mate pos
    r |= kputll(c->isize, str); r |= kputc_('\t', str); // template len
    if (c->l_qseq) { // seq and qual
        uint8_t *s = bam_get_seq(b);
        if (ks_resize(str, str->l+2+2*c->l_qseq) < 0) goto mem_err;
        char *cp = str->s + str->l;

        // Sequence, 2 bases at a time
        nibble2base(s, cp, c->l_qseq);
        cp[c->l_qseq] = '\t';
        cp += c->l_qseq+1;

        // Quality
        s = bam_get_qual(b);
        i = 0;
        if (s[0] == 0xff) {
            cp[i++] = '*';
        } else {
            add33((uint8_t *)cp, s, c->l_qseq); // cp[i] = s[i]+33;
            i = c->l_qseq;
        }
        cp[i] = 0;
        cp += i;
        str->l = cp - str->s;
    } else r |= kputsn_("*\t*", 3, str);

    s = bam_get_aux(b); // aux
    end = b->data + b->l_data;

    while (end - s >= 4) {
        r |= kputc_('\t', str);
        if ((s = (uint8_t *)sam_format_aux1(s, s[2], s+3, end, str)) == NULL)
            goto bad_aux;
    }
    r |= kputsn("", 0, str); // nul terminate
    if (r < 0) goto mem_err;

    return str->l;

 bad_aux:
    hts_log_error("Corrupted aux data for read %.*s flag %d",
                  b->core.l_qname, bam_get_qname(b), b->core.flag);
    errno = EINVAL;
    return -1;

 mem_err:
    hts_log_error("Out of memory");
    errno = ENOMEM;
    return -1;
}

// Assembly:
movzwl 0x12(%rsi), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rcx, %rcx
je 0x2b366
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r12
movq %rdi, %r15
movzbl 0xf(%rsi), %r13d
notq %r13
addq %rcx, %r13
movq (%rdx), %rbp
movq %r13, %rax
addq %rbp, %rax
movq %rdx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
jae 0x2a2ab
callq 0x4050
movq 0x8(%rsp), %rdx
movl $0x4b, (%rax)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x2a331
movq 0x38(%r12), %rbx
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x8(%rdx)
jae 0x2a30d
movq %rcx, %rsi
shrq %rsi
xorl %r12d, %r12d
movabsq $0x3fffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdi, %rax
cmovbeq %rsi, %r12
addq %rcx, %r12
movq 0x10(%rdx), %rdi
movq %r12, %rsi
callq 0x4840
movq 0x8(%rsp), %rdx
movq (%rdx), %rbp
testq %rax, %rax
je 0x2abb0
movq %rax, 0x10(%rdx)
movq %r12, 0x8(%rdx)
movq %rdx, %r14
movq 0x10(%rsp), %r12
jmp 0x2a314
movq 0x10(%rdx), %rax
movq %rdx, %r14
addq %rax, %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x43c0
movq (%r14), %rbp
addq %r13, %rbp
movq %rbp, (%r14)
movq %r14, %rdx
leaq 0x1(%rbp), %rcx
cmpq %rcx, 0x8(%rdx)
jae 0x2a383
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rsi # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rsi, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%rdx), %rdi
movq %rbx, %rsi
movq %rdx, %r14
callq 0x4840
testq %rax, %rax
je 0x2a501
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rbp
leaq 0x1(%rbp), %rcx
movq %r14, %rdx
jmp 0x2a387
movq 0x10(%rdx), %rax
movq %rcx, (%rdx)
movb $0x9, (%rax,%rbp)
movl $0x1, %ebx
orl %r13d, %ebx
movzwl 0x10(%r12), %edi
movq %rdx, %rsi
callq 0x31b51
movq 0x8(%rsp), %r11
movl %eax, %ebp
orl %ebx, %ebp
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2a402
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2a50e
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
jmp 0x2a406
movq 0x10(%r11), %rax
movq %rcx, (%r11)
movb $0x9, (%rax,%rdx)
movl $0x1, %eax
orl %eax, %ebp
movslq 0x8(%r12), %rax
testq %rax, %rax
js 0x2a4a7
movq 0x20(%r15), %rcx
movq (%rcx,%rax,8), %rbx
testq %rbx, %rbx
je 0x2a4cb
movq %rbx, %rdi
callq 0x41d0
movq %rax, %r13
movq 0x8(%rsp), %r14
movq (%r14), %rdi
addq %rdi, %rax
addq $0x2, %rax
cmpq %rdi, %rax
jbe 0x2a4e6
cmpq %rax, 0x8(%r14)
jae 0x2a570
movq %rax, %rcx
shrq %rcx
xorl %r12d, %r12d
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%r14), %rdi
movq %r12, %rsi
callq 0x4840
testq %rax, %rax
je 0x2b380
movq %rax, 0x10(%r14)
movq %r12, 0x8(%r14)
movq (%r14), %rdi
movq 0x10(%rsp), %r12
jmp 0x2a574
movq (%r11), %rcx
cmpq $-0x2, %rcx
jb 0x2a51b
callq 0x4050
movq 0x8(%rsp), %r11
movl $0x4b, (%rax)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x2a5fe
callq 0x4050
movl $0xe, (%rax)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq 0x8(%rsp), %r11
jmp 0x2a596
callq 0x4050
movq 0x8(%rsp), %r11
movl $0x4b, (%rax)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x2a596
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r14, %rdx
jmp 0x2a393
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2a412
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%r11)
jae 0x2abc0
movq %rax, %rcx
shrq %rcx
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2b393
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rcx
movq %r14, %r11
jmp 0x2abc4
movq 0x10(%r14), %rax
addq %rax, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x43c0
movq (%r14), %rax
addq %r13, %rax
movq %rax, (%r14)
movq 0x10(%r14), %rcx
movb $0x0, (%rcx,%rax)
movq %r14, %r11
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2a5eb
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2ab6d
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
jmp 0x2a5ef
movq 0x10(%r11), %rax
movq %rcx, (%r11)
movb $0x9, (%rax,%rdx)
movl $0x1, %eax
orl %eax, %r13d
orl %ebp, %r13d
movq (%r12), %rbp
movq (%r11), %rax
addq $0x17, %rax
cmpq %rax, 0x8(%r11)
jae 0x2a651
movq %rax, %rcx
shrq %rcx
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2a718
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq %r14, %r11
cmpq $-0x2, %rbp
jg 0x2a66e
notq %rbp
movq (%r11), %rax
movq 0x10(%r11), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r11)
movb $0x2d, (%rcx,%rax)
jmp 0x2a671
incq %rbp
movq %rbp, %rax
shrq $0x20, %rax
jne 0x2a690
movl %ebp, %edi
movq %r11, %rsi
callq 0x31b51
movq 0x8(%rsp), %r11
movl %eax, %ebx
jmp 0x2a720
movl $0x1, %eax
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
addq %rax, %rax
leaq (%rax,%rax,4), %rax
incl %ecx
cmpq %rax, %rbp
jae 0x2a69a
movq 0x10(%r11), %rsi
addq (%r11), %rsi
leal 0x2(%rcx), %edi
leaq 0x6a0d7(%rip), %r8      # 0x94790
movabsq $0x28f5c28f5c28f5c3, %r9 # imm = 0x28F5C28F5C28F5C3
movq %rbp, %r10
movq %rbp, %rax
shrq $0x2, %rax
mulq %r9
movq %rdx, %rbp
shrq $0x2, %rbp
imulq $0x64, %rbp, %rax
movq %r10, %rdx
subq %rax, %rdx
movl %ecx, %eax
movzwl (%r8,%rdx,2), %edx
movw %dx, (%rsi,%rax)
addl $-0x2, %ecx
cmpq $0x3e7, %r10            # imm = 0x3E7
ja 0x2a6c3
cmpl $-0x1, %ecx
jne 0x2a704
orb $0x30, %bpl
movb %bpl, (%rsi)
movl %edi, %eax
addq (%r11), %rax
movq %rax, (%r11)
movq 0x10(%r11), %rcx
movb $0x0, (%rcx,%rax)
xorl %ebx, %ebx
jmp 0x2a720
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r14, %r11
orl %r13d, %ebx
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2a77e
movq %rcx, %rax
shrq %rax
xorl %r12d, %r12d
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %r12
addq %rcx, %r12
movq 0x10(%r11), %rdi
movq %r12, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2a94f
movq %rax, 0x10(%r14)
movq %r12, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
movq 0x10(%rsp), %r12
jmp 0x2a782
movq 0x10(%r11), %rax
movq %rcx, (%r11)
movb $0x9, (%rax,%rdx)
movl $0x1, %eax
orl %eax, %ebx
movzbl 0xe(%r12), %edi
movq %r11, %rsi
callq 0x31b51
movq 0x8(%rsp), %r11
movl %eax, %ebp
orl %ebx, %ebp
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2a7fc
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2a961
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
jmp 0x2a800
movq 0x10(%r11), %rax
movq %rcx, (%r11)
movb $0x9, (%rax,%rdx)
movl $0x1, %eax
orl %eax, %ebp
cmpl $0x0, 0x14(%r12)
movq %r15, 0x18(%rsp)
je 0x2a8fa
movzwl 0x12(%r12), %r13d
addq 0x38(%r12), %r13
xorl %r15d, %r15d
movq %r13, 0x20(%rsp)
movl (%r13,%r15,4), %edi
shrl $0x4, %edi
movq %r11, %rsi
callq 0x31b51
movq 0x8(%rsp), %r11
movl %eax, %ebx
movl (%r13,%r15,4), %eax
andl $0xf, %eax
leaq 0x6d798(%rip), %rcx     # 0x97ff0
movb (%rax,%rcx), %r14b
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2a8bc
movq %rcx, %rax
shrq %rax
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
movl $0x0, %r12d
cmovbeq %rax, %r12
addq %rcx, %r12
movq 0x10(%r11), %rdi
movq %r12, %rsi
movq %r11, %r13
callq 0x4840
testq %rax, %rax
je 0x2a8e6
movq %rax, 0x10(%r13)
movq %r12, 0x8(%r13)
movq (%r13), %rdx
leaq 0x1(%rdx), %rcx
movq %r13, %r11
movq 0x10(%rsp), %r12
movq 0x20(%rsp), %r13
jmp 0x2a8c0
movq 0x10(%r11), %rax
movq %rcx, (%r11)
movb %r14b, (%rax,%rdx)
movl $0x1, %eax
orl %ebx, %ebp
orl %eax, %ebp
incq %r15
movl 0x14(%r12), %eax
cmpq %rax, %r15
jb 0x2a832
jmp 0x2a980
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r13, %r11
movq 0x10(%rsp), %r12
movq 0x20(%rsp), %r13
jmp 0x2a8cc
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2a96e
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2abfe
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
jmp 0x2a972
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
movq 0x10(%rsp), %r12
jmp 0x2a78e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2a80c
movq 0x10(%r11), %rax
movq %rcx, (%r11)
movb $0x2a, (%rax,%rdx)
movl $0x1, %eax
orl %eax, %ebp
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2a9da
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
movq 0x18(%rsp), %rsi
je 0x2ab0d
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
jmp 0x2a9e3
movq 0x10(%r11), %rax
movq 0x18(%rsp), %rsi
movq %rcx, (%r11)
movb $0x9, (%rax,%rdx)
movl $0x1, %r13d
orl %ebp, %r13d
movslq 0x1c(%r12), %rax
testq %rax, %rax
js 0x2aa66
cmpl 0x8(%r12), %eax
jne 0x2aa8e
movq (%r11), %rcx
cmpq $-0x2, %rcx
jae 0x2aa73
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%r11)
jae 0x2abe5
movq %rax, %rcx
shrq %rcx
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2ac0b
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rcx
movq %r14, %r11
jmp 0x2abe9
movq (%r11), %rcx
cmpq $-0x2, %rcx
jb 0x2ab1b
callq 0x4050
movq 0x8(%rsp), %r11
movl $0x4b, (%rax)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x2aca7
movq 0x20(%rsi), %rcx
movq (%rcx,%rax,8), %rbx
testq %rbx, %rbx
je 0x2ab7a
movq %rbx, %rdi
callq 0x41d0
movq %rax, %r12
movq 0x8(%rsp), %r14
movq (%r14), %rdi
addq %rdi, %rax
addq $0x2, %rax
cmpq %rdi, %rax
jbe 0x2ab95
cmpq %rax, 0x8(%r14)
jae 0x2ac19
movq %rax, %rcx
shrq %rcx
xorl %ebp, %ebp
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %rbp
addq %rax, %rbp
movq 0x10(%r14), %rdi
movq %rbp, %rsi
callq 0x4840
testq %rax, %rax
je 0x2b3ae
movq %rax, 0x10(%r14)
movq %rbp, 0x8(%r14)
movq (%r14), %rdi
jmp 0x2ac1d
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2a9f0
leaq 0x2(%rcx), %rax
cmpq %rax, 0x8(%r11)
jae 0x2abd9
movq %rax, %rcx
shrq %rcx
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2ac0b
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rcx
movq %r14, %r11
jmp 0x2abdd
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2a5fb
callq 0x4050
movl $0xe, (%rax)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq 0x8(%rsp), %r11
jmp 0x2ac3f
callq 0x4050
movq 0x8(%rsp), %r11
movl $0x4b, (%rax)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x2ac3f
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq 0x10(%rsp), %r12
jmp 0x2a331
movq 0x10(%r11), %rax
movw $0x92a, (%rax,%rcx)     # imm = 0x92A
addq $0x2, (%r11)
movl $0x2, %r13d
jmp 0x2a5fe
movq 0x10(%r11), %rax
movw $0x92a, (%rax,%rcx)     # imm = 0x92A
jmp 0x2abef
movq 0x10(%r11), %rax
movw $0x93d, (%rax,%rcx)     # imm = 0x93D
addq $0x2, (%r11)
movl $0x2, %r12d
jmp 0x2aca7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2a97e
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2aca7
movq 0x10(%r14), %rax
addq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x43c0
movq (%r14), %rax
addq %r12, %rax
movq %rax, (%r14)
movq 0x10(%r14), %rcx
movb $0x0, (%rcx,%rax)
movq %r14, %r11
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2ac94
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2b367
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
jmp 0x2ac98
movq 0x10(%r11), %rax
movq %rcx, (%r11)
movb $0x9, (%rax,%rdx)
movl $0x1, %eax
orl %eax, %r12d
orl %r13d, %r12d
movq 0x10(%rsp), %rax
movq 0x20(%rax), %r13
movq (%r11), %rax
addq $0x17, %rax
cmpq %rax, 0x8(%r11)
jae 0x2acff
movq %rax, %rcx
shrq %rcx
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2adc7
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq %r14, %r11
cmpq $-0x2, %r13
jg 0x2ad1c
notq %r13
movq (%r11), %rax
movq 0x10(%r11), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r11)
movb $0x2d, (%rcx,%rax)
jmp 0x2ad1f
incq %r13
movq %r13, %rax
shrq $0x20, %rax
jne 0x2ad3f
movl %r13d, %edi
movq %r11, %rsi
callq 0x31b51
movq 0x8(%rsp), %r11
movl %eax, %ebp
jmp 0x2adcf
movl $0x1, %eax
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
addq %rax, %rax
leaq (%rax,%rax,4), %rax
incl %ecx
cmpq %rax, %r13
jae 0x2ad49
movq 0x10(%r11), %rsi
addq (%r11), %rsi
leal 0x2(%rcx), %edi
leaq 0x69a28(%rip), %r8      # 0x94790
movabsq $0x28f5c28f5c28f5c3, %r9 # imm = 0x28F5C28F5C28F5C3
movq %r13, %r10
movq %r13, %rax
shrq $0x2, %rax
mulq %r9
movq %rdx, %r13
shrq $0x2, %r13
imulq $0x64, %r13, %rax
movq %r10, %rdx
subq %rax, %rdx
movl %ecx, %eax
movzwl (%r8,%rdx,2), %edx
movw %dx, (%rsi,%rax)
addl $-0x2, %ecx
cmpq $0x3e7, %r10            # imm = 0x3E7
ja 0x2ad72
cmpl $-0x1, %ecx
jne 0x2adb3
orb $0x30, %r13b
movb %r13b, (%rsi)
movl %edi, %eax
addq (%r11), %rax
movq %rax, (%r11)
movq 0x10(%r11), %rcx
movb $0x0, (%rcx,%rax)
xorl %ebp, %ebp
jmp 0x2adcf
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %r14, %r11
orl %r12d, %ebp
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
jae 0x2ae2c
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
movq 0x10(%rsp), %rsi
je 0x2af53
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
jmp 0x2ae35
movq 0x10(%r11), %rax
movq 0x10(%rsp), %rsi
movq %rcx, (%r11)
movb $0x9, (%rax,%rdx)
movl $0x1, %eax
orl %eax, %ebp
movq 0x28(%rsi), %r12
movq (%r11), %rax
addq $0x17, %rax
cmpq %rax, 0x8(%r11)
jae 0x2ae93
movq %rax, %rcx
shrq %rcx
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2af60
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq %r14, %r11
testq %r12, %r12
jns 0x2aead
negq %r12
movq (%r11), %rax
movq 0x10(%r11), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r11)
movb $0x2d, (%rcx,%rax)
movq %r12, %rax
shrq $0x20, %rax
jne 0x2aecb
movl %r12d, %edi
movq %r11, %rsi
callq 0x31b51
movq 0x8(%rsp), %r11
jmp 0x2af68
movl $0x1, %eax
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
addq %rax, %rax
leaq (%rax,%rax,4), %rax
incl %ecx
cmpq %rax, %r12
jae 0x2aed5
movq 0x10(%r11), %rsi
addq (%r11), %rsi
leal 0x2(%rcx), %edi
leaq 0x6989c(%rip), %r8      # 0x94790
movabsq $0x28f5c28f5c28f5c3, %r9 # imm = 0x28F5C28F5C28F5C3
movq %r12, %r10
movq %r12, %rax
shrq $0x2, %rax
mulq %r9
movq %rdx, %r12
shrq $0x2, %r12
imulq $0x64, %r12, %rax
movq %r10, %rdx
subq %rax, %rdx
movl %ecx, %eax
movzwl (%r8,%rdx,2), %edx
movw %dx, (%rsi,%rax)
addl $-0x2, %ecx
cmpq $0x3e7, %r10            # imm = 0x3E7
ja 0x2aefe
cmpl $-0x1, %ecx
jne 0x2af3f
orb $0x30, %r12b
movb %r12b, (%rsi)
movl %edi, %eax
addq (%r11), %rax
movq %rax, (%r11)
movq 0x10(%r11), %rcx
movb $0x0, (%rcx,%rax)
xorl %eax, %eax
jmp 0x2af68
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2ae41
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
orl %eax, %ebp
movq (%r11), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rcx, 0x8(%r11)
movq 0x10(%rsp), %r12
jae 0x2afc4
movq %rcx, %rax
shrq %rax
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
cmovbeq %rax, %rbx
addq %rcx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2b111
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %r14, %r11
jmp 0x2afc8
movq 0x10(%r11), %rax
movq %rcx, (%r11)
movb $0x9, (%rax,%rdx)
movl $0x1, %eax
orl %eax, %ebp
movslq 0x18(%r12), %rdx
testq %rdx, %rdx
je 0x2b04e
movq 0x38(%r12), %r15
movl 0x14(%r12), %ebx
movzwl 0x12(%r12), %r13d
movq (%r11), %r12
leaq (%r12,%rdx,2), %rax
addq $0x2, %rax
cmpq %rax, 0x8(%r11)
jae 0x2b075
movq %rax, %rcx
shrq %rcx
xorl %r12d, %r12d
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %r12
addq %rax, %r12
movq 0x10(%r11), %rdi
movq %r12, %rsi
callq 0x4840
movq 0x8(%rsp), %rcx
testq %rax, %rax
je 0x2b32e
movq %rax, 0x10(%rcx)
movq %r12, 0x8(%rcx)
movq (%rcx), %r12
movq 0x10(%rsp), %r14
movl 0x18(%r14), %edx
jmp 0x2b07e
movq (%r11), %rcx
cmpq $-0x3, %rcx
jb 0x2b11e
callq 0x4050
movq 0x8(%rsp), %r11
movl $0x4b, (%rax)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x2b197
movq 0x10(%r11), %rax
movq 0x10(%rsp), %r14
addq %r13, %r15
shll $0x2, %ebx
addq %r15, %rbx
addq %rax, %r12
leaq 0x8b6f7(%rip), %rax     # 0xb6788
movq %rbx, %rdi
movq %r12, %rsi
callq *(%rax)
movslq 0x18(%r14), %rax
movb $0x9, (%rax,%r12)
movslq 0x18(%r14), %rdx
leaq 0x1(%rdx), %rsi
leaq (%rdx,%r12), %rax
incq %rax
movl 0x14(%r14), %edi
shll $0x2, %edi
addq 0x38(%r14), %rdi
movzwl 0x12(%r14), %ecx
addq %rdi, %rcx
sarl %esi
movslq %esi, %rsi
cmpb $-0x1, (%rsi,%rcx)
movq %r14, %r12
je 0x2b102
movl %edx, %edx
testq %rdx, %rdx
movq 0x8(%rsp), %r11
je 0x2b16c
addq %rsi, %rcx
xorl %esi, %esi
movb (%rcx,%rsi), %dil
addb $0x21, %dil
movb %dil, (%rax,%rsi)
incq %rsi
cmpq %rsi, %rdx
jne 0x2b0e7
movslq 0x18(%r12), %rcx
jmp 0x2b16e
movb $0x2a, (%rax)
movl $0x1, %ecx
movq 0x8(%rsp), %r11
jmp 0x2b16e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2afd4
leaq 0x3(%rcx), %rax
cmpq %rax, 0x8(%r11)
jae 0x2b17f
movq %rax, %rcx
shrq %rcx
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2b3a1
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rcx
movq %r14, %r11
jmp 0x2b183
xorl %ecx, %ecx
leaq (%rax,%rcx), %rdx
movb $0x0, (%rax,%rcx)
subq 0x10(%r11), %rdx
movq %rdx, (%r11)
jmp 0x2b199
movq 0x10(%r11), %rax
movb $0x2a, 0x2(%rax,%rcx)
movw $0x92a, (%rax,%rcx)     # imm = 0x92A
addq $0x3, (%r11)
movl $0x3, %eax
orl %eax, %ebp
movq 0x38(%r12), %rax
movl 0x14(%r12), %ecx
shll $0x2, %ecx
movq %r12, %rsi
movzwl 0x12(%r12), %r12d
addq %rax, %r12
addq %rcx, %r12
movslq 0x18(%rsi), %rcx
leal 0x1(%rcx), %edx
sarl %edx
movslq %edx, %rdx
addq %rcx, %r12
addq %rdx, %r12
movslq 0x40(%rsi), %r13
addq %rax, %r13
xorl %r15d, %r15d
movq %r13, %rax
subq %r12, %rax
movq (%r11), %rcx
cmpq $0x4, %rax
jl 0x2b278
leaq 0x1(%rcx), %rdx
cmpq %rdx, 0x8(%r11)
jae 0x2b230
movq %rdx, %rbx
shrq %rbx
movabsq $0x3fffffffffffffff, %rax # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rax, %rdx
cmovaq %r15, %rbx
addq %rdx, %rbx
movq 0x10(%r11), %rdi
movq %rbx, %rsi
movq %r11, %r14
callq 0x4840
testq %rax, %rax
je 0x2b26e
movq %rax, 0x10(%r14)
movq %rbx, 0x8(%r14)
movq (%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %r14, %r11
jmp 0x2b234
movq 0x10(%r11), %rax
movq %rdx, (%r11)
movb $0x9, (%rax,%rcx)
movl $0x1, %eax
orl %eax, %ebp
movzbl 0x2(%r12), %esi
leaq 0x3(%r12), %rdx
movq %r12, %rdi
movq %r13, %rcx
movq %r11, %r8
callq 0x2bf5c
movq 0x8(%rsp), %r11
movq %rax, %r12
testq %rax, %rax
jne 0x2b1d1
jmp 0x2b2d7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2b240
movq %rcx, %rdx
subq $-0x2, %rdx
jae 0x2b310
movq 0x10(%r11), %rax
cmpq %rdx, 0x8(%r11)
jae 0x2b2cf
movq %rdx, %rcx
shrq %rcx
xorl %ebx, %ebx
movabsq $0x3fffffffffffffff, %rsi # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rsi, %rdx
cmovbeq %rcx, %rbx
addq %rdx, %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4840
testq %rax, %rax
je 0x2b374
movq 0x8(%rsp), %r11
movq %rax, 0x10(%r11)
movq %rbx, 0x8(%r11)
movq (%r11), %rcx
movb $0x0, (%rax,%rcx)
xorl %eax, %eax
jmp 0x2b325
movq 0x10(%rsp), %rax
movzwl 0x12(%rax), %ecx
movq 0x38(%rax), %r8
movzwl 0x10(%rax), %r9d
leaq 0x6d4a9(%rip), %rsi     # 0x98799
leaq 0x6d4b5(%rip), %rdx     # 0x987ac
movl $0x1, %edi
xorl %eax, %eax
callq 0x13de5
callq 0x4050
movl $0x16, (%rax)
jmp 0x2b353
callq 0x4050
movq 0x8(%rsp), %r11
movl $0x4b, (%rax)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
orl %ebp, %eax
js 0x2b32e
movl (%r11), %eax
jmp 0x2b358
leaq 0x6d464(%rip), %rsi     # 0x98799
leaq 0x6c359(%rip), %rdx     # 0x97695
movl $0x1, %edi
xorl %eax, %eax
callq 0x13de5
callq 0x4050
movl $0xc, (%rax)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2aca4
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq 0x8(%rsp), %r11
jmp 0x2b325
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %r14, %r11
movq 0x10(%rsp), %r12
jmp 0x2a596
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2a5fe
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %r11
jmp 0x2b197
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x2ac3c