// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/htslib/sam.c
// Function: sam_format1
int sam_format1(const bam_hdr_t *h, const bam1_t *b, kstring_t *str)
{
    int i;
    uint8_t *s;
    const bam1_core_t *c = &b->core;

    str->l = 0;
    kputsn(bam_get_qname(b), c->l_qname-1, str); kputc('\t', str); // query name
    kputw(c->flag, str); kputc('\t', str); // flag
    if (c->tid >= 0) { // chr
        kputs(h->target_name[c->tid] , str);
        kputc('\t', str);
    } else kputsn("*\t", 2, str);
    kputw(c->pos + 1, str); kputc('\t', str); // pos
    kputw(c->qual, str); kputc('\t', str); // qual
    if (c->n_cigar) { // cigar
        uint32_t *cigar = bam_get_cigar(b);
        for (i = 0; i < c->n_cigar; ++i) {
            kputw(bam_cigar_oplen(cigar[i]), str);
            kputc(bam_cigar_opchr(cigar[i]), str);
        }
    } else kputc('*', str);
    kputc('\t', str);
    if (c->mtid < 0) kputsn("*\t", 2, str); // mate chr
    else if (c->mtid == c->tid) kputsn("=\t", 2, str);
    else {
        kputs(h->target_name[c->mtid], str);
        kputc('\t', str);
    }
    kputw(c->mpos + 1, str); kputc('\t', str); // mate pos
    kputw(c->isize, str); kputc('\t', str); // template len
    if (c->l_qseq) { // seq and qual
        uint8_t *s = bam_get_seq(b);
        for (i = 0; i < c->l_qseq; ++i) kputc("=ACMGRSVTWYHKDBN"[bam_seqi(s, i)], str);
        kputc('\t', str);
        s = bam_get_qual(b);
        if (s[0] == 0xff) kputc('*', str);
        else for (i = 0; i < c->l_qseq; ++i) kputc(s[i] + 33, str);
    } else kputsn("*\t*", 3, str);

    // FIXME change "s+N <= b->data+b->l_data" to "b->data+b->l_data - s >= N"
    // (or equivalent) everywhere to avoid looking past the end of the array
    s = bam_get_aux(b); // aux
    while (s+4 <= b->data + b->l_data) {
        uint8_t type, key[2];
        key[0] = s[0]; key[1] = s[1];
        s += 2; type = *s++;
        kputc('\t', str); kputsn((char*)key, 2, str); kputc(':', str);
        if (type == 'A') {
            kputsn("A:", 2, str);
            kputc(*s, str);
            ++s;
        } else if (type == 'C') {
            kputsn("i:", 2, str);
            kputw(*s, str);
            ++s;
        } else if (type == 'c') {
            kputsn("i:", 2, str);
            kputw(*(int8_t*)s, str);
            ++s;
        } else if (type == 'S') {
            if (s+2 <= b->data + b->l_data) {
                kputsn("i:", 2, str);
                kputw(*(uint16_t*)s, str);
                s += 2;
            } else return -1;
        } else if (type == 's') {
            if (s+2 <= b->data + b->l_data) {
                kputsn("i:", 2, str);
                kputw(*(int16_t*)s, str);
                s += 2;
            } else return -1;
        } else if (type == 'I') {
            if (s+4 <= b->data + b->l_data) {
                kputsn("i:", 2, str);
                kputuw(*(uint32_t*)s, str);
                s += 4;
            } else return -1;
        } else if (type == 'i') {
            if (s+4 <= b->data + b->l_data) {
                kputsn("i:", 2, str);
                kputw(*(int32_t*)s, str);
                s += 4;
            } else return -1;
        } else if (type == 'f') {
            if (s+4 <= b->data + b->l_data) {
                ksprintf(str, "f:%g", *(float*)s);
                s += 4;
            } else return -1;

        } else if (type == 'd') {
            if (s+8 <= b->data + b->l_data) {
                ksprintf(str, "d:%g", *(double*)s);
                s += 8;
            } else return -1;
        } else if (type == 'Z' || type == 'H') {
            kputc(type, str); kputc(':', str);
            while (s < b->data + b->l_data && *s) kputc(*s++, str);
            if (s >= b->data + b->l_data)
                return -1;
            ++s;
        } else if (type == 'B') {
            uint8_t sub_type = *(s++);
            int sub_type_size = aux_type2size(sub_type);
            uint32_t n;
            if (sub_type_size == 0 || b->data + b->l_data - s < 4)
                return -1;
            memcpy(&n, s, 4);
            s += 4; // now points to the start of the array
            if ((b->data + b->l_data - s) / sub_type_size < n)
                return -1;
            kputsn("B:", 2, str); kputc(sub_type, str); // write the typing
            for (i = 0; i < n; ++i) { // FIXME: for better performance, put the loop after "if"
                kputc(',', str);
                if ('c' == sub_type)      { kputw(*(int8_t*)s, str); ++s; }
                else if ('C' == sub_type) { kputw(*(uint8_t*)s, str); ++s; }
                else if ('s' == sub_type) { kputw(*(int16_t*)s, str); s += 2; }
                else if ('S' == sub_type) { kputw(*(uint16_t*)s, str); s += 2; }
                else if ('i' == sub_type) { kputw(*(int32_t*)s, str); s += 4; }
                else if ('I' == sub_type) { kputuw(*(uint32_t*)s, str); s += 4; }
                else if ('f' == sub_type) { ksprintf(str, "%g", *(float*)s); s += 4; }
                else return -1;
            }
        }
    }
    return str->l;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x18, %rax
andq $0xff, %rax
movl %eax, %esi
subl $0x1, %esi
movq -0x20(%rbp), %rdx
callq 0xa7a90
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x20, %rax
andq $0xffff, %rax           # imm = 0xFFFF
movl %eax, %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
jl 0xa9f1d
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x38(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x20(%rbp), %rsi
callq 0xa8050
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
jmp 0xa9f32
movq -0x20(%rbp), %rdx
leaq 0x3a7d7(%rip), %rdi     # 0xe46ff
movl $0x2, %esi
callq 0xa7a90
movq -0x38(%rbp), %rax
movl 0x4(%rax), %edi
addl $0x1, %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x10, %rax
andq $0xff, %rax
movl %eax, %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x30, %rax
cmpl $0x0, %eax
je 0xaa01c
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x18, %rcx
andq $0xff, %rcx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x30, %rcx
cmpl %ecx, %eax
jge 0xaa01a
movq -0x40(%rbp), %rax
movslq -0x24(%rbp), %rcx
movl (%rax,%rcx,4), %edi
shrl $0x4, %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x40(%rbp), %rax
movslq -0x24(%rbp), %rcx
movl (%rax,%rcx,4), %eax
andl $0xf, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x3a439(%rip), %rax     # 0xe443b
movsbl (%rax,%rcx), %edi
movq -0x20(%rbp), %rsi
callq 0xa7c00
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xa9fbf
jmp 0xaa02a
movq -0x20(%rbp), %rsi
movl $0x2a, %edi
callq 0xa7c00
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
movq -0x38(%rbp), %rax
cmpl $0x0, 0x14(%rax)
jge 0xaa059
movq -0x20(%rbp), %rdx
leaq 0x3a6b2(%rip), %rdi     # 0xe46ff
movl $0x2, %esi
callq 0xa7a90
jmp 0xaa0ac
movq -0x38(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x38(%rbp), %rcx
cmpl (%rcx), %eax
jne 0xaa07f
movq -0x20(%rbp), %rdx
leaq 0x3a68f(%rip), %rdi     # 0xe4702
movl $0x2, %esi
callq 0xa7a90
jmp 0xaa0aa
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x38(%rbp), %rcx
movslq 0x14(%rcx), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x20(%rbp), %rsi
callq 0xa8050
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
jmp 0xaa0ac
movq -0x38(%rbp), %rax
movl 0x18(%rax), %edi
addl $0x1, %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
movq -0x38(%rbp), %rax
movl 0x1c(%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
movq -0x38(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0xaa23b
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x30, %rcx
shll $0x2, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x18, %rcx
andq $0xff, %rcx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0xaa189
movq -0x48(%rbp), %rax
movl -0x24(%rbp), %ecx
sarl %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
movl -0x24(%rbp), %ecx
xorl $-0x1, %ecx
andl $0x1, %ecx
shll $0x2, %ecx
sarl %cl, %eax
andl $0xf, %eax
movslq %eax, %rcx
leaq 0x3a594(%rip), %rax     # 0xe4705
movsbl (%rax,%rcx), %edi
movq -0x20(%rbp), %rsi
callq 0xa7c00
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xaa13a
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x30, %rcx
shll $0x2, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x18, %rcx
andq $0xff, %rcx
movslq %ecx, %rcx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movl 0x10(%rcx), %ecx
addl $0x1, %ecx
sarl %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
jne 0xaa201
movq -0x20(%rbp), %rsi
movl $0x2a, %edi
callq 0xa7c00
jmp 0xaa239
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0xaa237
movq -0x48(%rbp), %rax
movslq -0x24(%rbp), %rcx
movzbl (%rax,%rcx), %edi
addl $0x21, %edi
movq -0x20(%rbp), %rsi
callq 0xa7c00
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xaa208
jmp 0xaa239
jmp 0xaa250
movq -0x20(%rbp), %rdx
leaq 0x3a4d0(%rip), %rdi     # 0xe4716
movl $0x3, %esi
callq 0xa7a90
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x30, %rcx
shll $0x2, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x18, %rcx
andq $0xff, %rcx
movslq %ecx, %rcx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movl 0x10(%rcx), %ecx
addl $0x1, %ecx
sarl %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movslq 0x10(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movslq 0x20(%rdx), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
ja 0xaa997
movq -0x30(%rbp), %rax
movb (%rax), %al
movb %al, -0x4b(%rbp)
movq -0x30(%rbp), %rax
movb 0x1(%rax), %al
movb %al, -0x4a(%rbp)
movq -0x30(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %al
movb %al, -0x49(%rbp)
movq -0x20(%rbp), %rsi
movl $0x9, %edi
callq 0xa7c00
leaq -0x4b(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl $0x2, %esi
callq 0xa7a90
movq -0x20(%rbp), %rsi
movl $0x3a, %edi
callq 0xa7c00
movzbl -0x49(%rbp), %eax
cmpl $0x41, %eax
jne 0xaa36b
movq -0x20(%rbp), %rdx
leaq 0x3a3da(%rip), %rdi     # 0xe471a
movl $0x2, %esi
callq 0xa7a90
movq -0x30(%rbp), %rax
movzbl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa7c00
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa992
movzbl -0x49(%rbp), %eax
cmpl $0x43, %eax
jne 0xaa3aa
movq -0x20(%rbp), %rdx
leaq 0x3a39e(%rip), %rdi     # 0xe471d
movl $0x2, %esi
callq 0xa7a90
movq -0x30(%rbp), %rax
movzbl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa990
movzbl -0x49(%rbp), %eax
cmpl $0x63, %eax
jne 0xaa3e9
movq -0x20(%rbp), %rdx
leaq 0x3a35f(%rip), %rdi     # 0xe471d
movl $0x2, %esi
callq 0xa7a90
movq -0x30(%rbp), %rax
movsbl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa98e
movzbl -0x49(%rbp), %eax
cmpl $0x53, %eax
jne 0xaa456
movq -0x30(%rbp), %rax
addq $0x2, %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movslq 0x20(%rdx), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
ja 0xaa445
movq -0x20(%rbp), %rdx
leaq 0x3a300(%rip), %rdi     # 0xe471d
movl $0x2, %esi
callq 0xa7a90
movq -0x30(%rbp), %rax
movzwl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa451
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
jmp 0xaa98c
movzbl -0x49(%rbp), %eax
cmpl $0x73, %eax
jne 0xaa4c3
movq -0x30(%rbp), %rax
addq $0x2, %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movslq 0x20(%rdx), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
ja 0xaa4b2
movq -0x20(%rbp), %rdx
leaq 0x3a293(%rip), %rdi     # 0xe471d
movl $0x2, %esi
callq 0xa7a90
movq -0x30(%rbp), %rax
movswl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa4be
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
jmp 0xaa98a
movzbl -0x49(%rbp), %eax
cmpl $0x49, %eax
jne 0xaa52f
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movslq 0x20(%rdx), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
ja 0xaa51e
movq -0x20(%rbp), %rdx
leaq 0x3a226(%rip), %rdi     # 0xe471d
movl $0x2, %esi
callq 0xa7a90
movq -0x30(%rbp), %rax
movl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xaa9b0
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa52a
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
jmp 0xaa988
movzbl -0x49(%rbp), %eax
cmpl $0x69, %eax
jne 0xaa59b
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movslq 0x20(%rdx), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
ja 0xaa58a
movq -0x20(%rbp), %rdx
leaq 0x3a1ba(%rip), %rdi     # 0xe471d
movl $0x2, %esi
callq 0xa7a90
movq -0x30(%rbp), %rax
movl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa596
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
jmp 0xaa986
movzbl -0x49(%rbp), %eax
cmpl $0x66, %eax
jne 0xaa601
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movslq 0x20(%rdx), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
ja 0xaa5f0
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rax
movss (%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x3a145(%rip), %rsi     # 0xe4720
movb $0x1, %al
callq 0x9a250
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa5fc
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
jmp 0xaa984
movzbl -0x49(%rbp), %eax
cmpl $0x64, %eax
jne 0xaa663
movq -0x30(%rbp), %rax
addq $0x8, %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movslq 0x20(%rdx), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
ja 0xaa652
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rax
movsd (%rax), %xmm0
leaq 0x3a0e8(%rip), %rsi     # 0xe4725
movb $0x1, %al
callq 0x9a250
movq -0x30(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa65e
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
jmp 0xaa982
movzbl -0x49(%rbp), %eax
cmpl $0x5a, %eax
je 0xaa679
movzbl -0x49(%rbp), %eax
cmpl $0x48, %eax
jne 0xaa724
movzbl -0x49(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0xa7c00
movq -0x20(%rbp), %rsi
movl $0x3a, %edi
callq 0xa7c00
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rdx
movq -0x18(%rbp), %rax
movslq 0x20(%rax), %rax
addq %rax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x55(%rbp)
jae 0xaa6c5
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x55(%rbp)
movb -0x55(%rbp), %al
testb $0x1, %al
jne 0xaa6ce
jmp 0xaa6eb
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movzbl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa7c00
jmp 0xaa694
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movslq 0x20(%rdx), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jb 0xaa713
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa980
movzbl -0x49(%rbp), %eax
cmpl $0x42, %eax
jne 0xaa97e
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb (%rax), %al
movb %al, -0x4c(%rbp)
movzbl -0x4c(%rbp), %edi
callq 0xaab90
movl %eax, -0x50(%rbp)
cmpl $0x0, -0x50(%rbp)
je 0xaa777
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movslq 0x20(%rcx), %rcx
addq %rcx, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
cmpq $0x4, %rax
jge 0xaa783
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movslq 0x20(%rcx), %rcx
addq %rcx, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movslq -0x50(%rbp), %rcx
cqto
idivq %rcx
movl -0x54(%rbp), %ecx
cmpq %rcx, %rax
jge 0xaa7cf
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
movq -0x20(%rbp), %rdx
leaq 0x39f50(%rip), %rdi     # 0xe472a
movl $0x2, %esi
callq 0xa7a90
movzbl -0x4c(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0xa7c00
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x54(%rbp), %eax
jae 0xaa97c
movq -0x20(%rbp), %rsi
movl $0x2c, %edi
callq 0xa7c00
movzbl -0x4c(%rbp), %ecx
movl $0x63, %eax
cmpl %ecx, %eax
jne 0xaa840
movq -0x30(%rbp), %rax
movsbl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa96c
movzbl -0x4c(%rbp), %ecx
movl $0x43, %eax
cmpl %ecx, %eax
jne 0xaa86e
movq -0x30(%rbp), %rax
movzbl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa96a
movzbl -0x4c(%rbp), %ecx
movl $0x73, %eax
cmpl %ecx, %eax
jne 0xaa89c
movq -0x30(%rbp), %rax
movswl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa968
movzbl -0x4c(%rbp), %ecx
movl $0x53, %eax
cmpl %ecx, %eax
jne 0xaa8ca
movq -0x30(%rbp), %rax
movzwl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa966
movzbl -0x4c(%rbp), %ecx
movl $0x69, %eax
cmpl %ecx, %eax
jne 0xaa8f4
movq -0x30(%rbp), %rax
movl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xa8090
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa964
movzbl -0x4c(%rbp), %ecx
movl $0x49, %eax
cmpl %ecx, %eax
jne 0xaa91e
movq -0x30(%rbp), %rax
movl (%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xaa9b0
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa962
movzbl -0x4c(%rbp), %ecx
movl $0x66, %eax
cmpl %ecx, %eax
jne 0xaa957
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rax
movss (%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x39de5(%rip), %rsi     # 0xe4727
movb $0x1, %al
callq 0x9a250
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0xaa960
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xaa9a1
jmp 0xaa962
jmp 0xaa964
jmp 0xaa966
jmp 0xaa968
jmp 0xaa96a
jmp 0xaa96c
jmp 0xaa96e
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xaa7f8
jmp 0xaa97e
jmp 0xaa980
jmp 0xaa982
jmp 0xaa984
jmp 0xaa986
jmp 0xaa988
jmp 0xaa98a
jmp 0xaa98c
jmp 0xaa98e
jmp 0xaa990
jmp 0xaa992
jmp 0xaa2a7
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)