// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/htslib/sam.c
// Function: sam_parse1
int sam_parse1(kstring_t *s, bam_hdr_t *h, bam1_t *b)
{
#define _read_token(_p) (_p); for (; *(_p) && *(_p) != '\t'; ++(_p)); if (*(_p) != '\t') goto err_ret; *(_p)++ = 0
#define _read_token_aux(_p) (_p); for (; *(_p) && *(_p) != '\t'; ++(_p)); *(_p)++ = 0 // this is different in that it does not test *(_p)=='\t'
#define _get_mem(type_t, _x, _s, _l) ks_resize((_s), (_s)->l + (_l)); *(_x) = (type_t*)((_s)->s + (_s)->l); (_s)->l += (_l)
#define _parse_err(cond, msg) do { if ((cond) && hts_verbose >= 1) { fprintf(stderr, "[E::%s] " msg "\n", __func__); goto err_ret; } } while (0)
#define _parse_warn(cond, msg) if ((cond) && hts_verbose >= 2) fprintf(stderr, "[W::%s] " msg "\n", __func__)

    uint8_t *t;
    char *p = s->s, *q;
    int i;
    kstring_t str;
    bam1_core_t *c = &b->core;

    str.l = b->l_data = 0;
    str.s = (char*)b->data; str.m = b->m_data;
    memset(c, 0, 32);
    if (h->cigar_tab == 0) {
        h->cigar_tab = (int8_t*) malloc(128);
        for (i = 0; i < 128; ++i)
            h->cigar_tab[i] = -1;
        for (i = 0; BAM_CIGAR_STR[i]; ++i)
            h->cigar_tab[(int)BAM_CIGAR_STR[i]] = i;
    }
    // qname
    q = _read_token(p);
    _parse_warn(p - q <= 1, "empty query name");
    _parse_err(p - q > 255, "query name too long");
    kputsn_(q, p - q, &str);
    c->l_qname = p - q;
    // flag
    c->flag = strtol(p, &p, 0);
    if (*p++ != '\t') goto err_ret; // malformated flag
    // chr
    q = _read_token(p);
    if (strcmp(q, "*")) {
        _parse_err(h->n_targets == 0, "missing SAM header");
        c->tid = bam_name2id(h, q);
        _parse_warn(c->tid < 0, "urecognized reference name; treated as unmapped");
    } else c->tid = -1;
    // pos
    c->pos = strtol(p, &p, 10) - 1;
    if (*p++ != '\t') goto err_ret;
    if (c->pos < 0 && c->tid >= 0) {
        _parse_warn(1, "mapped query cannot have zero coordinate; treated as unmapped");
        c->tid = -1;
    }
    if (c->tid < 0) c->flag |= BAM_FUNMAP;
    // mapq
    c->qual = strtol(p, &p, 10);
    if (*p++ != '\t') goto err_ret;
    // cigar
    if (*p != '*') {
        uint32_t *cigar;
        size_t n_cigar = 0;
        for (q = p; *p && *p != '\t'; ++p)
            if (!isdigit(*p)) ++n_cigar;
        if (*p++ != '\t') goto err_ret;
        _parse_err(n_cigar == 0, "no CIGAR operations");
        _parse_err(n_cigar >= 65536, "too many CIGAR operations");
        c->n_cigar = n_cigar;
        _get_mem(uint32_t, &cigar, &str, c->n_cigar * sizeof(uint32_t));
        for (i = 0; i < c->n_cigar; ++i, ++q) {
            int op;
            cigar[i] = strtol(q, &q, 10)<<BAM_CIGAR_SHIFT;
            op = (uint8_t)*q >= 128? -1 : h->cigar_tab[(int)*q];
            _parse_err(op < 0, "unrecognized CIGAR operator");
            cigar[i] |= op;
        }
        // can't use bam_endpos() directly as some fields not yet set up
        i = (!(c->flag&BAM_FUNMAP))? bam_cigar2rlen(c->n_cigar, cigar) : 1;
    } else {
        _parse_warn(!(c->flag&BAM_FUNMAP), "mapped query must have a CIGAR; treated as unmapped");
        c->flag |= BAM_FUNMAP;
        q = _read_token(p);
        i = 1;
    }
    c->bin = hts_reg2bin(c->pos, c->pos + i, 14, 5);
    // mate chr
    q = _read_token(p);
    if (strcmp(q, "=") == 0) c->mtid = c->tid;
    else if (strcmp(q, "*") == 0) c->mtid = -1;
    else c->mtid = bam_name2id(h, q);
    // mpos
    c->mpos = strtol(p, &p, 10) - 1;
    if (*p++ != '\t') goto err_ret;
    if (c->mpos < 0 && c->mtid >= 0) {
        _parse_warn(1, "mapped mate cannot have zero coordinate; treated as unmapped");
        c->mtid = -1;
    }
    // tlen
    c->isize = strtol(p, &p, 10);
    if (*p++ != '\t') goto err_ret;
    // seq
    q = _read_token(p);
    if (strcmp(q, "*")) {
        c->l_qseq = p - q - 1;
        i = bam_cigar2qlen(c->n_cigar, (uint32_t*)(str.s + c->l_qname));
        _parse_err(c->n_cigar && i != c->l_qseq, "CIGAR and query sequence are of different length");
        i = (c->l_qseq + 1) >> 1;
        _get_mem(uint8_t, &t, &str, i);
        memset(t, 0, i);
        for (i = 0; i < c->l_qseq; ++i)
            t[i>>1] |= seq_nt16_table[(int)q[i]] << ((~i&1)<<2);
    } else c->l_qseq = 0;
    // qual
    q = _read_token_aux(p);
    _get_mem(uint8_t, &t, &str, c->l_qseq);
    if (strcmp(q, "*")) {
        _parse_err(p - q - 1 != c->l_qseq, "SEQ and QUAL are of different length");
        for (i = 0; i < c->l_qseq; ++i) t[i] = q[i] - 33;
    } else memset(t, 0xff, c->l_qseq);
    // aux
    // Note that (like the bam1_core_t fields) this aux data in b->data is
    // stored in host endianness; so there is no byte swapping needed here.
    while (p < s->s + s->l) {
        uint8_t type;
        q = _read_token_aux(p); // FIXME: can be accelerated for long 'B' arrays
        _parse_err(p - q - 1 < 6, "incomplete aux field");
        kputsn_(q, 2, &str);
        q += 3; type = *q++; ++q; // q points to value
        if (type == 'A' || type == 'a' || type == 'c' || type == 'C') {
            kputc_('A', &str);
            kputc_(*q, &str);
        } else if (type == 'i' || type == 'I') {
            if (*q == '-') {
                long x = strtol(q, &q, 10);
                if (x >= INT8_MIN) {
                    kputc_('c', &str); kputc_(x, &str);
                } else if (x >= INT16_MIN) {
                    int16_t y = x;
                    kputc_('s', &str); kputsn_((char*)&y, 2, &str);
                } else {
                    int32_t y = x;
                    kputc_('i', &str); kputsn_(&y, 4, &str);
                }
            } else {
                unsigned long x = strtoul(q, &q, 10);
                if (x <= UINT8_MAX) {
                    kputc_('C', &str); kputc_(x, &str);
                } else if (x <= UINT16_MAX) {
                    uint16_t y = x;
                    kputc_('S', &str); kputsn_(&y, 2, &str);
                } else {
                    uint32_t y = x;
                    kputc_('I', &str); kputsn_(&y, 4, &str);
                }
            }
        } else if (type == 'f') {
            float x;
            x = strtod(q, &q);
            kputc_('f', &str); kputsn_(&x, 4, &str);
        } else if (type == 'd') {
            double x;
            x = strtod(q, &q);
            kputc_('d', &str); kputsn_(&x, 8, &str);
        } else if (type == 'Z' || type == 'H') {
            kputc_(type, &str);kputsn_(q, p - q, &str); // note that this include the trailing NULL
        } else if (type == 'B') {
            int32_t n;
            char *r;
            _parse_err(p - q - 1 < 3, "incomplete B-typed aux field");
            type = *q++; // q points to the first ',' following the typing byte
            for (r = q, n = 0; *r; ++r)
                if (*r == ',') ++n;
            kputc_('B', &str); kputc_(type, &str); kputsn_(&n, 4, &str);
            // FIXME: to evaluate which is faster: a) aligned array and then memmove(); b) unaligned array; c) kputsn_()
            if (type == 'c')      while (q + 1 < p) { int8_t   x = strtol(q + 1, &q, 0); kputc_(x, &str); }
            else if (type == 'C') while (q + 1 < p) { uint8_t  x = strtoul(q + 1, &q, 0); kputc_(x, &str); }
            else if (type == 's') while (q + 1 < p) { int16_t  x = strtol(q + 1, &q, 0); kputsn_(&x, 2, &str); }
            else if (type == 'S') while (q + 1 < p) { uint16_t x = strtoul(q + 1, &q, 0); kputsn_(&x, 2, &str); }
            else if (type == 'i') while (q + 1 < p) { int32_t  x = strtol(q + 1, &q, 0); kputsn_(&x, 4, &str); }
            else if (type == 'I') while (q + 1 < p) { uint32_t x = strtoul(q + 1, &q, 0); kputsn_(&x, 4, &str); }
            else if (type == 'f') while (q + 1 < p) { float    x = strtod(q + 1, &q);    kputsn_(&x, 4, &str); }
            else _parse_err(1, "unrecognized type");
        } else _parse_err(1, "unrecognized type");
    }
    b->data = (uint8_t*)str.s; b->l_data = str.l; b->m_data = str.m;
    return 0;

#undef _parse_warn
#undef _parse_err
#undef _get_mem
#undef _read_token_aux
#undef _read_token
err_ret:
    b->data = (uint8_t*)str.s; b->l_data = str.l; b->m_data = str.m;
    return -2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movl $0x0, 0x20(%rax)
movq $0x0, -0x58(%rbp)
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movslq 0x24(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x63a0
movq -0x18(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0xa841c
movl $0x80, %edi
callq 0x69c0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x3c(%rbp)
cmpl $0x80, -0x3c(%rbp)
jge 0xa83d5
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x3c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xa83b1
movl $0x0, -0x3c(%rbp)
movslq -0x3c(%rbp), %rcx
leaq 0x3c054(%rip), %rax     # 0xe443b
cmpb $0x0, (%rax,%rcx)
je 0xa841a
movl -0x3c(%rbp), %eax
movb %al, %dl
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x3c(%rbp), %rsi
leaq 0x3c036(%rip), %rcx     # 0xe443b
movsbl (%rcx,%rsi), %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xa83dc
jmp 0xa841c
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xcd(%rbp)
je 0xa844b
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xcd(%rbp)
movb -0xcd(%rbp), %al
testb $0x1, %al
jne 0xa8457
jmp 0xa8467
jmp 0xa8459
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa8424
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa8478
jmp 0xa980b
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
cmpq $0x1, %rax
jg 0xa84c6
leaq 0x5eb3e(%rip), %rax     # 0x106fe0
cmpl $0x2, (%rax)
jl 0xa84c6
movq 0x5cb22(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3bf8e(%rip), %rsi     # 0xe4446
leaq 0x3bfa1(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa84c8
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
cmpq $0xff, %rax
jle 0xa850b
leaq 0x5eafe(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa850b
movq 0x5cae2(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3bf73(%rip), %rsi     # 0xe446b
leaq 0x3bf61(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa850d
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movl %eax, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
movl %ecx, %edx
movq 0x8(%rax), %rcx
andq $0xff, %rdx
shlq $0x18, %rdx
movabsq $-0xff000001, %rsi      # imm = 0xFFFFFFFF00FFFFFF
andq %rsi, %rcx
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rdi
leaq -0x30(%rbp), %rsi
xorl %edx, %edx
callq 0x6a50
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
movl %ecx, %edx
movq 0x8(%rax), %rcx
andq $0xffff, %rdx           # imm = 0xFFFF
shlq $0x20, %rdx
movabsq $-0xffff00000001, %rsi  # imm = 0xFFFF0000FFFFFFFF
andq %rsi, %rcx
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa85b7
jmp 0xa980b
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xce(%rbp)
je 0xa85e6
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xce(%rbp)
movb -0xce(%rbp), %al
testb $0x1, %al
jne 0xa85f2
jmp 0xa8602
jmp 0xa85f4
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa85bf
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa8613
jmp 0xa980b
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x38(%rbp), %rdi
leaq 0x3c0e8(%rip), %rsi     # 0xe4718
callq 0x6a40
cmpl $0x0, %eax
je 0xa86c6
jmp 0xa8640
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0xa8679
leaq 0x5e990(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa8679
movq 0x5c974(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3be22(%rip), %rsi     # 0xe4488
leaq 0x3bdf3(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa867b
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0xa5d80
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
movq -0x60(%rbp), %rax
cmpl $0x0, (%rax)
jge 0xa86c4
leaq 0x5e940(%rip), %rax     # 0x106fe0
cmpl $0x2, (%rax)
jl 0xa86c4
movq 0x5c924(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3bdee(%rip), %rsi     # 0xe44a4
leaq 0x3bda3(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa86d0
movq -0x60(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x30(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x6a50
subq $0x1, %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa870b
jmp 0xa980b
movq -0x60(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jge 0xa8753
movq -0x60(%rbp), %rax
cmpl $0x0, (%rax)
jl 0xa8753
leaq 0x5e8bb(%rip), %rax     # 0x106fe0
cmpl $0x2, (%rax)
jl 0xa8749
movq 0x5c89f(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3bda2(%rip), %rsi     # 0xe44dd
leaq 0x3bd1e(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
movq -0x60(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x60(%rbp), %rax
cmpl $0x0, (%rax)
jge 0xa8799
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x20, %rcx
andq $0xffff, %rcx           # imm = 0xFFFF
orl $0x4, %ecx
movl %ecx, %ecx
movl %ecx, %edx
movq 0x8(%rax), %rcx
andq $0xffff, %rdx           # imm = 0xFFFF
shlq $0x20, %rdx
movabsq $-0xffff00000001, %rsi  # imm = 0xFFFF0000FFFFFFFF
andq %rsi, %rcx
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x6a50
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
movl %ecx, %edx
movq 0x8(%rax), %rcx
andq $0xff, %rdx
shlq $0x10, %rdx
andq $-0xff0001, %rcx        # imm = 0xFF00FFFF
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa87ee
jmp 0xa980b
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2a, %eax
je 0xa8ac3
movq $0x0, -0x70(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xcf(%rbp)
je 0xa8835
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xcf(%rbp)
movb -0xcf(%rbp), %al
testb $0x1, %al
jne 0xa8841
jmp 0xa887d
callq 0x6780
movq (%rax), %rax
movq -0x30(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
jne 0xa886d
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0xa886f
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa880e
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa8899
jmp 0xa980b
jmp 0xa889b
cmpq $0x0, -0x70(%rbp)
jne 0xa88d2
leaq 0x5e737(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa88d2
movq 0x5c71b(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3bc65(%rip), %rsi     # 0xe4524
leaq 0x3bb9a(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa88d4
jmp 0xa88d6
cmpq $0x10000, -0x70(%rbp)   # imm = 0x10000
jb 0xa8910
leaq 0x5e6f9(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa8910
movq 0x5c6dd(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3bc44(%rip), %rsi     # 0xe4541
leaq 0x3bb5c(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa8912
movq -0x70(%rbp), %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
movl %ecx, %edx
movq 0x8(%rax), %rcx
andq $0xffff, %rdx           # imm = 0xFFFF
shlq $0x30, %rdx
movabsq $0xffffffffffff, %rsi   # imm = 0xFFFFFFFFFFFF
andq %rsi, %rcx
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x30, %rax
movl %eax, %eax
shlq $0x2, %rax
addq %rax, %rsi
leaq -0x58(%rbp), %rdi
callq 0xa99a0
movq -0x48(%rbp), %rax
addq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x30, %rax
movl %eax, %eax
shlq $0x2, %rax
addq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x60(%rbp), %rcx
movq 0x8(%rcx), %rcx
shrq $0x30, %rcx
cmpl %ecx, %eax
jge 0xa8a6f
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x6a50
shlq $0x4, %rax
movl %eax, %edx
movq -0x68(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x38(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x80, %eax
jl 0xa89e7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0xd4(%rbp)
jmp 0xa8a03
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x38(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -0xd4(%rbp)
movl -0xd4(%rbp), %eax
movl %eax, -0x74(%rbp)
cmpl $0x0, -0x74(%rbp)
jge 0xa8a42
leaq 0x5e5c7(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa8a42
movq 0x5c5ab(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3bb35(%rip), %rsi     # 0xe4564
leaq 0x3ba2a(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa8a44
movl -0x74(%rbp), %edx
movq -0x68(%rbp), %rax
movslq -0x3c(%rbp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0xa8992
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x20, %rax
andq $0xffff, %rax           # imm = 0xFFFF
andl $0x4, %eax
cmpl $0x0, %eax
jne 0xa8aa8
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x30, %rax
movl %eax, %edi
movq -0x68(%rbp), %rsi
callq 0xa6080
movl %eax, -0xd8(%rbp)
jmp 0xa8ab5
movl $0x1, %eax
movl %eax, -0xd8(%rbp)
jmp 0xa8ab5
movl -0xd8(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xa8bba
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x20, %rax
andq $0xffff, %rax           # imm = 0xFFFF
andl $0x4, %eax
cmpl $0x0, %eax
jne 0xa8b08
leaq 0x5e4fc(%rip), %rax     # 0x106fe0
cmpl $0x2, (%rax)
jl 0xa8b08
movq 0x5c4e0(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3ba8f(%rip), %rsi     # 0xe4589
leaq 0x3b95f(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x20, %rcx
andq $0xffff, %rcx           # imm = 0xFFFF
orl $0x4, %ecx
movl %ecx, %ecx
movl %ecx, %edx
movq 0x8(%rax), %rcx
andq $0xffff, %rdx           # imm = 0xFFFF
shlq $0x20, %rdx
movabsq $-0xffff00000001, %rsi  # imm = 0xFFFF0000FFFFFFFF
andq %rsi, %rcx
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xd9(%rbp)
je 0xa8b74
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xd9(%rbp)
movb -0xd9(%rbp), %al
testb $0x1, %al
jne 0xa8b80
jmp 0xa8b90
jmp 0xa8b82
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa8b4d
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa8ba1
jmp 0xa980b
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movl $0x1, -0x3c(%rbp)
movq -0x60(%rbp), %rax
movslq 0x4(%rax), %rdi
movq -0x60(%rbp), %rax
movl 0x4(%rax), %eax
addl -0x3c(%rbp), %eax
movslq %eax, %rsi
movl $0xe, %edx
movl $0x5, %ecx
callq 0xa9ab0
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, %ecx
movl %ecx, %edx
movq 0x8(%rax), %rcx
andq $0xffff, %rdx           # imm = 0xFFFF
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xda(%rbp)
je 0xa8c30
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xda(%rbp)
movb -0xda(%rbp), %al
testb $0x1, %al
jne 0xa8c3c
jmp 0xa8c4c
jmp 0xa8c3e
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa8c09
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa8c5d
jmp 0xa980b
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x38(%rbp), %rdi
leaq 0x311c5(%rip), %rsi     # 0xd9e3f
callq 0x6a40
cmpl $0x0, %eax
jne 0xa8c93
movq -0x60(%rbp), %rax
movl (%rax), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x14(%rax)
jmp 0xa8ccd
movq -0x38(%rbp), %rdi
leaq 0x3ba7a(%rip), %rsi     # 0xe4718
callq 0x6a40
cmpl $0x0, %eax
jne 0xa8cb5
movq -0x60(%rbp), %rax
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
jmp 0xa8ccb
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0xa5d80
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x14(%rax)
jmp 0xa8ccd
movq -0x30(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x6a50
subq $0x1, %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa8d08
jmp 0xa980b
movq -0x60(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jge 0xa8d52
movq -0x60(%rbp), %rax
cmpl $0x0, 0x14(%rax)
jl 0xa8d52
leaq 0x5e2bd(%rip), %rax     # 0x106fe0
cmpl $0x2, (%rax)
jl 0xa8d47
movq 0x5c2a1(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3b88d(%rip), %rsi     # 0xe45c6
leaq 0x3b720(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
movq -0x60(%rbp), %rax
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
movq -0x30(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x6a50
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa8d89
jmp 0xa980b
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xdb(%rbp)
je 0xa8db8
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xdb(%rbp)
movb -0xdb(%rbp), %al
testb $0x1, %al
jne 0xa8dc4
jmp 0xa8dd4
jmp 0xa8dc6
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa8d91
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0xa8de5
jmp 0xa980b
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x38(%rbp), %rdi
leaq 0x3b916(%rip), %rsi     # 0xe4718
callq 0x6a40
cmpl $0x0, %eax
je 0xa8f4f
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x30, %rax
movl %eax, %edi
movq -0x48(%rbp), %rsi
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x18, %rax
andq $0xff, %rax
cltq
addq %rax, %rsi
callq 0xa6010
movl %eax, -0x3c(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x30, %rax
cmpl $0x0, %eax
je 0xa8ea6
movl -0x3c(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpl 0x10(%rcx), %eax
je 0xa8ea6
leaq 0x5e163(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa8ea6
movq 0x5c147(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3b779(%rip), %rsi     # 0xe460c
leaq 0x3b5c6(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa8ea8
movq -0x60(%rbp), %rax
movl 0x10(%rax), %eax
addl $0x1, %eax
sarl %eax
movl %eax, -0x3c(%rbp)
movq -0x58(%rbp), %rsi
movslq -0x3c(%rbp), %rax
addq %rax, %rsi
leaq -0x58(%rbp), %rdi
callq 0xa99a0
movq -0x48(%rbp), %rax
addq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
movslq -0x3c(%rbp), %rax
addq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x3c(%rbp), %rdx
xorl %esi, %esi
callq 0x63a0
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0xa8f4d
movq -0x38(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movslq %eax, %rcx
leaq 0x391d5(%rip), %rax     # 0xe20f0
movzbl (%rax,%rcx), %esi
movl -0x3c(%rbp), %ecx
xorl $-0x1, %ecx
andl $0x1, %ecx
shll $0x2, %ecx
shll %cl, %esi
movq -0x28(%rbp), %rax
movl -0x3c(%rbp), %ecx
sarl %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edx
orl %esi, %edx
movb %dl, (%rax,%rcx)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xa8ef9
jmp 0xa8f5a
movq -0x60(%rbp), %rax
movl $0x0, 0x10(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xdc(%rbp)
je 0xa8f89
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xdc(%rbp)
movb -0xdc(%rbp), %al
testb $0x1, %al
jne 0xa8f95
jmp 0xa8fa5
jmp 0xa8f97
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa8f62
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rax
movslq 0x10(%rax), %rax
addq %rax, %rsi
leaq -0x58(%rbp), %rdi
callq 0xa99a0
movq -0x48(%rbp), %rax
addq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x60(%rbp), %rax
movslq 0x10(%rax), %rax
addq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rdi
leaq 0x3b722(%rip), %rsi     # 0xe4718
callq 0x6a40
cmpl $0x0, %eax
je 0xa9090
jmp 0xa9006
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movq -0x60(%rbp), %rcx
movslq 0x10(%rcx), %rcx
cmpq %rcx, %rax
je 0xa9052
leaq 0x5dfb7(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa9052
movq 0x5bf9b(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3b607(%rip), %rsi     # 0xe4646
leaq 0x3b41a(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa9054
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0xa908e
movq -0x38(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
subl $0x21, %eax
movb %al, %dl
movq -0x28(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xa905b
jmp 0xa90a6
movq -0x28(%rbp), %rdi
movq -0x60(%rbp), %rax
movslq 0x10(%rax), %rdx
movl $0xff, %esi
callq 0x63a0
jmp 0xa90a8
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x10(%rbp), %rdx
addq (%rdx), %rcx
cmpq %rcx, %rax
jae 0xa97dc
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xdd(%rbp)
je 0xa90f3
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xdd(%rbp)
movb -0xdd(%rbp), %al
testb $0x1, %al
jne 0xa90ff
jmp 0xa910f
jmp 0xa9101
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa90cc
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
cmpq $0x6, %rax
jge 0xa9166
leaq 0x5dea3(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa9166
movq 0x5be87(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3b521(%rip), %rsi     # 0xe4674
leaq 0x3b306(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa9168
movq -0x38(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
movq -0x38(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x38(%rbp)
movb (%rax), %al
movb %al, -0x75(%rbp)
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movzbl -0x75(%rbp), %eax
cmpl $0x41, %eax
je 0xa91ca
movzbl -0x75(%rbp), %eax
cmpl $0x61, %eax
je 0xa91ca
movzbl -0x75(%rbp), %eax
cmpl $0x63, %eax
je 0xa91ca
movzbl -0x75(%rbp), %eax
cmpl $0x43, %eax
jne 0xa91ed
movl $0x41, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
movq -0x38(%rbp), %rax
movsbl (%rax), %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
jmp 0xa97d7
movzbl -0x75(%rbp), %eax
cmpl $0x69, %eax
je 0xa9203
movzbl -0x75(%rbp), %eax
cmpl $0x49, %eax
jne 0xa937e
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0xa92bd
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x6a50
movq %rax, -0x80(%rbp)
cmpq $-0x80, -0x80(%rbp)
jl 0xa924f
movl $0x63, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
movq -0x80(%rbp), %rax
movl %eax, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
jmp 0xa92b8
cmpq $-0x8000, -0x80(%rbp)   # imm = 0x8000
jl 0xa9289
movq -0x80(%rbp), %rax
movw %ax, -0x82(%rbp)
movl $0x73, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
leaq -0x82(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa92b6
movq -0x80(%rbp), %rax
movl %eax, -0x88(%rbp)
movl $0x69, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
leaq -0x88(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa92b8
jmp 0xa9379
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x61f0
movq %rax, -0x90(%rbp)
cmpq $0xff, -0x90(%rbp)
ja 0xa9305
movl $0x43, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
movq -0x90(%rbp), %rax
movl %eax, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
jmp 0xa9377
cmpq $0xffff, -0x90(%rbp) # imm = 0xFFFF
ja 0xa9345
movq -0x90(%rbp), %rax
movw %ax, -0x92(%rbp)
movl $0x53, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
leaq -0x92(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa9375
movq -0x90(%rbp), %rax
movl %eax, -0x98(%rbp)
movl $0x49, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
leaq -0x98(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa9377
jmp 0xa9379
jmp 0xa97d5
movzbl -0x75(%rbp), %eax
cmpl $0x66, %eax
jne 0xa93c8
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x6500
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x9c(%rbp)
movl $0x66, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
leaq -0x9c(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa97d3
movzbl -0x75(%rbp), %eax
cmpl $0x64, %eax
jne 0xa940e
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x6500
movsd %xmm0, -0xa8(%rbp)
movl $0x64, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
leaq -0xa8(%rbp), %rdi
movl $0x8, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa97d1
movzbl -0x75(%rbp), %eax
cmpl $0x5a, %eax
je 0xa9420
movzbl -0x75(%rbp), %eax
cmpl $0x48, %eax
jne 0xa944c
movzbl -0x75(%rbp), %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movl %eax, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa97cf
movzbl -0x75(%rbp), %eax
cmpl $0x42, %eax
jne 0xa979a
jmp 0xa945b
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
cmpq $0x3, %rax
jge 0xa94a0
leaq 0x5db69(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa94a0
movq 0x5bb4d(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3b205(%rip), %rsi     # 0xe4692
leaq 0x3afcc(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa94a2
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x38(%rbp)
movb (%rax), %al
movb %al, -0x75(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xb8(%rbp)
movl $0x0, -0xac(%rbp)
movq -0xb8(%rbp), %rax
cmpb $0x0, (%rax)
je 0xa950b
movq -0xb8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2c, %eax
jne 0xa94f5
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0xa94f7
movq -0xb8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xb8(%rbp)
jmp 0xa94cb
movl $0x42, %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
movzbl -0x75(%rbp), %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
leaq -0xac(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
movzbl -0x75(%rbp), %eax
cmpl $0x63, %eax
jne 0xa9584
jmp 0xa9546
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0xa957f
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x6a50
movb %al, -0xb9(%rbp)
movsbl -0xb9(%rbp), %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
jmp 0xa9546
jmp 0xa9798
movzbl -0x75(%rbp), %eax
cmpl $0x43, %eax
jne 0xa95cd
jmp 0xa958f
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0xa95c8
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x61f0
movb %al, -0xba(%rbp)
movzbl -0xba(%rbp), %edi
leaq -0x58(%rbp), %rsi
callq 0xa9b70
jmp 0xa958f
jmp 0xa9796
movzbl -0x75(%rbp), %eax
cmpl $0x73, %eax
jne 0xa961c
jmp 0xa95d8
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0xa9617
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x6a50
movw %ax, -0xbc(%rbp)
leaq -0xbc(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa95d8
jmp 0xa9794
movzbl -0x75(%rbp), %eax
cmpl $0x53, %eax
jne 0xa966b
jmp 0xa9627
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0xa9666
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x61f0
movw %ax, -0xbe(%rbp)
leaq -0xbe(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa9627
jmp 0xa9792
movzbl -0x75(%rbp), %eax
cmpl $0x69, %eax
jne 0xa96b9
jmp 0xa9676
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0xa96b4
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x6a50
movl %eax, -0xc4(%rbp)
leaq -0xc4(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa9676
jmp 0xa9790
movzbl -0x75(%rbp), %eax
cmpl $0x49, %eax
jne 0xa9707
jmp 0xa96c4
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0xa9702
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x61f0
movl %eax, -0xc8(%rbp)
leaq -0xc8(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa96c4
jmp 0xa978e
movzbl -0x75(%rbp), %eax
cmpl $0x66, %eax
jne 0xa9756
jmp 0xa9712
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0xa9754
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
callq 0x6500
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0xcc(%rbp)
leaq -0xcc(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0xa9850
jmp 0xa9712
jmp 0xa978c
jmp 0xa9758
leaq 0x5d881(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa9788
movq 0x5b865(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3af43(%rip), %rsi     # 0xe46b8
leaq 0x3ace4(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa978a
jmp 0xa978c
jmp 0xa978e
jmp 0xa9790
jmp 0xa9792
jmp 0xa9794
jmp 0xa9796
jmp 0xa9798
jmp 0xa97cd
jmp 0xa979c
leaq 0x5d83d(%rip), %rax     # 0x106fe0
cmpl $0x1, (%rax)
jl 0xa97c9
movq 0x5b821(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
leaq 0x3aeff(%rip), %rsi     # 0xe46b8
leaq 0x3aca0(%rip), %rdx     # 0xe4460
movb $0x0, %al
callq 0x6a80
jmp 0xa980b
jmp 0xa97cb
jmp 0xa97cd
jmp 0xa97cf
jmp 0xa97d1
jmp 0xa97d3
jmp 0xa97d5
jmp 0xa97d7
jmp 0xa90a8
movq -0x48(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x58(%rbp), %rax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x50(%rbp), %rax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x24(%rax)
movl $0x0, -0x4(%rbp)
jmp 0xa9838
movq -0x48(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x58(%rbp), %rax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x50(%rbp), %rax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x24(%rax)
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
movl -0x4(%rbp), %eax
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)