// File: karel-brinda[P]ococo/ext/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_c(*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);
        _parse_warn(c->mtid < 0, "urecognized mate reference name; treated as unmapped");
    }
    // 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 0x42d0
movq -0x18(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x1d93c
movl $0x80, %edi
callq 0x47a0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x3c(%rbp)
cmpl $0x80, -0x3c(%rbp)
jge 0x1d8f5
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 0x1d8d1
movl $0x0, -0x3c(%rbp)
movslq -0x3c(%rbp), %rcx
leaq 0x5db74(%rip), %rax     # 0x7b47b
cmpb $0x0, (%rax,%rcx)
je 0x1d93a
movl -0x3c(%rbp), %eax
movb %al, %dl
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x3c(%rbp), %rsi
leaq 0x5db56(%rip), %rcx     # 0x7b47b
movsbl (%rcx,%rsi), %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x1d8fc
jmp 0x1d93c
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 0x1d96b
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xcd(%rbp)
movb -0xcd(%rbp), %al
testb $0x1, %al
jne 0x1d977
jmp 0x1d987
jmp 0x1d979
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1d944
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0x1d998
jmp 0x1ed53
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 0x1d9e6
leaq 0x6cc1e(%rip), %rax     # 0x8a5e0
cmpl $0x2, (%rax)
jl 0x1d9e6
movq 0x6c602(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5daae(%rip), %rsi     # 0x7b486
leaq 0x5dac1(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1d9e8
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
cmpq $0xff, %rax
jle 0x1da2b
leaq 0x6cbde(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1da2b
movq 0x6c5c2(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5da93(%rip), %rsi     # 0x7b4ab
leaq 0x5da81(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1da2d
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movl %eax, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
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 0x4820
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 0x1dad7
jmp 0x1ed53
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 0x1db06
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xce(%rbp)
movb -0xce(%rbp), %al
testb $0x1, %al
jne 0x1db12
jmp 0x1db22
jmp 0x1db14
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1dadf
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0x1db33
jmp 0x1ed53
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x38(%rbp), %rdi
leaq 0x5dc46(%rip), %rsi     # 0x7b796
callq 0x4810
cmpl $0x0, %eax
je 0x1dbe6
jmp 0x1db60
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x1db99
leaq 0x6ca70(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1db99
movq 0x6c454(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d942(%rip), %rsi     # 0x7b4c8
leaq 0x5d913(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1db9b
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x1b510
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
movq -0x60(%rbp), %rax
cmpl $0x0, (%rax)
jge 0x1dbe4
leaq 0x6ca20(%rip), %rax     # 0x8a5e0
cmpl $0x2, (%rax)
jl 0x1dbe4
movq 0x6c404(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d90e(%rip), %rsi     # 0x7b4e4
leaq 0x5d8c3(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1dbf0
movq -0x60(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x30(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x4820
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 0x1dc2b
jmp 0x1ed53
movq -0x60(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jge 0x1dc73
movq -0x60(%rbp), %rax
cmpl $0x0, (%rax)
jl 0x1dc73
leaq 0x6c99b(%rip), %rax     # 0x8a5e0
cmpl $0x2, (%rax)
jl 0x1dc69
movq 0x6c37f(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d8c2(%rip), %rsi     # 0x7b51d
leaq 0x5d83e(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
movq -0x60(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x60(%rbp), %rax
cmpl $0x0, (%rax)
jge 0x1dcb9
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 0x4820
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 0x1dd0e
jmp 0x1ed53
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2a, %eax
je 0x1dfd4
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 0x1dd55
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xcf(%rbp)
movb -0xcf(%rbp), %al
testb $0x1, %al
jne 0x1dd61
jmp 0x1dd8e
movq -0x30(%rbp), %rax
movsbl (%rax), %edi
callq 0x1ee10
cmpl $0x0, %eax
jne 0x1dd7e
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x1dd80
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1dd2e
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0x1ddaa
jmp 0x1ed53
jmp 0x1ddac
cmpq $0x0, -0x70(%rbp)
jne 0x1dde3
leaq 0x6c826(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1dde3
movq 0x6c20a(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d794(%rip), %rsi     # 0x7b564
leaq 0x5d6c9(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1dde5
jmp 0x1dde7
cmpq $0x10000, -0x70(%rbp)   # imm = 0x10000
jb 0x1de21
leaq 0x6c7e8(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1de21
movq 0x6c1cc(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d773(%rip), %rsi     # 0x7b581
leaq 0x5d68b(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1de23
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 0x1ee40
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 0x1df80
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4820
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 0x1def8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0xd4(%rbp)
jmp 0x1df14
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 0x1df53
leaq 0x6c6b6(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1df53
movq 0x6c09a(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d664(%rip), %rsi     # 0x7b5a4
leaq 0x5d559(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1df55
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 0x1dea3
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x20, %rax
andq $0xffff, %rax           # imm = 0xFFFF
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x1dfb9
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x30, %rax
movl %eax, %edi
movq -0x68(%rbp), %rsi
callq 0x1b810
movl %eax, -0xd8(%rbp)
jmp 0x1dfc6
movl $0x1, %eax
movl %eax, -0xd8(%rbp)
jmp 0x1dfc6
movl -0xd8(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0x1e0cb
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x20, %rax
andq $0xffff, %rax           # imm = 0xFFFF
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x1e019
leaq 0x6c5eb(%rip), %rax     # 0x8a5e0
cmpl $0x2, (%rax)
jl 0x1e019
movq 0x6bfcf(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d5be(%rip), %rsi     # 0x7b5c9
leaq 0x5d48e(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
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 0x1e085
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xd9(%rbp)
movb -0xd9(%rbp), %al
testb $0x1, %al
jne 0x1e091
jmp 0x1e0a1
jmp 0x1e093
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1e05e
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0x1e0b2
jmp 0x1ed53
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 0x1ef30
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 0x1e141
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xda(%rbp)
movb -0xda(%rbp), %al
testb $0x1, %al
jne 0x1e14d
jmp 0x1e15d
jmp 0x1e14f
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1e11a
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0x1e16e
jmp 0x1ed53
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x38(%rbp), %rdi
leaq 0x5f8fb(%rip), %rsi     # 0x7da86
callq 0x4810
cmpl $0x0, %eax
jne 0x1e1a4
movq -0x60(%rbp), %rax
movl (%rax), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x14(%rax)
jmp 0x1e215
movq -0x38(%rbp), %rdi
leaq 0x5d5e7(%rip), %rsi     # 0x7b796
callq 0x4810
cmpl $0x0, %eax
jne 0x1e1c6
movq -0x60(%rbp), %rax
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
jmp 0x1e213
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x1b510
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x60(%rbp), %rax
cmpl $0x0, 0x14(%rax)
jge 0x1e211
leaq 0x6c3f3(%rip), %rax     # 0x8a5e0
cmpl $0x2, (%rax)
jl 0x1e211
movq 0x6bdd7(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d403(%rip), %rsi     # 0x7b606
leaq 0x5d296(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1e213
jmp 0x1e215
movq -0x30(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x4820
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 0x1e250
jmp 0x1ed53
movq -0x60(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jge 0x1e29a
movq -0x60(%rbp), %rax
cmpl $0x0, 0x14(%rax)
jl 0x1e29a
leaq 0x6c375(%rip), %rax     # 0x8a5e0
cmpl $0x2, (%rax)
jl 0x1e28f
movq 0x6bd59(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d3c3(%rip), %rsi     # 0x7b644
leaq 0x5d218(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
movq -0x60(%rbp), %rax
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
movq -0x30(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0xa, %edx
callq 0x4820
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 0x1e2d1
jmp 0x1ed53
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 0x1e300
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xdb(%rbp)
movb -0xdb(%rbp), %al
testb $0x1, %al
jne 0x1e30c
jmp 0x1e31c
jmp 0x1e30e
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1e2d9
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
je 0x1e32d
jmp 0x1ed53
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x0, (%rax)
movq -0x38(%rbp), %rdi
leaq 0x5d44c(%rip), %rsi     # 0x7b796
callq 0x4810
cmpl $0x0, %eax
je 0x1e497
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 0x1b7a0
movl %eax, -0x3c(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x30, %rax
cmpl $0x0, %eax
je 0x1e3ee
movl -0x3c(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpl 0x10(%rcx), %eax
je 0x1e3ee
leaq 0x6c21b(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1e3ee
movq 0x6bbff(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d2af(%rip), %rsi     # 0x7b68a
leaq 0x5d0be(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1e3f0
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 0x1ee40
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 0x42d0
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0x1e495
movq -0x38(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movslq %eax, %rcx
leaq 0x5c71d(%rip), %rax     # 0x7ab80
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 0x1e441
jmp 0x1e4a2
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 0x1e4d1
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xdc(%rbp)
movb -0xdc(%rbp), %al
testb $0x1, %al
jne 0x1e4dd
jmp 0x1e4ed
jmp 0x1e4df
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1e4aa
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 0x1ee40
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 0x5d258(%rip), %rsi     # 0x7b796
callq 0x4810
cmpl $0x0, %eax
je 0x1e5d8
jmp 0x1e54e
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 0x1e59a
leaq 0x6c06f(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1e59a
movq 0x6ba53(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d13d(%rip), %rsi     # 0x7b6c4
leaq 0x5cf12(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1e59c
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0x1e5d6
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 0x1e5a3
jmp 0x1e5ee
movq -0x28(%rbp), %rdi
movq -0x60(%rbp), %rax
movslq 0x10(%rax), %rdx
movl $0xff, %esi
callq 0x42d0
jmp 0x1e5f0
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x10(%rbp), %rdx
addq (%rdx), %rcx
cmpq %rcx, %rax
jae 0x1ed24
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 0x1e63b
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
setne %al
movb %al, -0xdd(%rbp)
movb -0xdd(%rbp), %al
testb $0x1, %al
jne 0x1e647
jmp 0x1e657
jmp 0x1e649
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1e614
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 0x1e6ae
leaq 0x6bf5b(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1e6ae
movq 0x6b93f(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5d057(%rip), %rsi     # 0x7b6f2
leaq 0x5cdfe(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1e6b0
movq -0x38(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
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 0x1e712
movzbl -0x75(%rbp), %eax
cmpl $0x61, %eax
je 0x1e712
movzbl -0x75(%rbp), %eax
cmpl $0x63, %eax
je 0x1e712
movzbl -0x75(%rbp), %eax
cmpl $0x43, %eax
jne 0x1e735
movl $0x41, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
movq -0x38(%rbp), %rax
movsbl (%rax), %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
jmp 0x1ed1f
movzbl -0x75(%rbp), %eax
cmpl $0x69, %eax
je 0x1e74b
movzbl -0x75(%rbp), %eax
cmpl $0x49, %eax
jne 0x1e8c6
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x1e805
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4820
movq %rax, -0x80(%rbp)
cmpq $-0x80, -0x80(%rbp)
jl 0x1e797
movl $0x63, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
movq -0x80(%rbp), %rax
movl %eax, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
jmp 0x1e800
cmpq $-0x8000, -0x80(%rbp)   # imm = 0x8000
jl 0x1e7d1
movq -0x80(%rbp), %rax
movw %ax, -0x82(%rbp)
movl $0x73, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
leaq -0x82(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1e7fe
movq -0x80(%rbp), %rax
movl %eax, -0x88(%rbp)
movl $0x69, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
leaq -0x88(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1e800
jmp 0x1e8c1
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4170
movq %rax, -0x90(%rbp)
cmpq $0xff, -0x90(%rbp)
ja 0x1e84d
movl $0x43, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
movq -0x90(%rbp), %rax
movl %eax, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
jmp 0x1e8bf
cmpq $0xffff, -0x90(%rbp) # imm = 0xFFFF
ja 0x1e88d
movq -0x90(%rbp), %rax
movw %ax, -0x92(%rbp)
movl $0x53, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
leaq -0x92(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1e8bd
movq -0x90(%rbp), %rax
movl %eax, -0x98(%rbp)
movl $0x49, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
leaq -0x98(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1e8bf
jmp 0x1e8c1
jmp 0x1ed1d
movzbl -0x75(%rbp), %eax
cmpl $0x66, %eax
jne 0x1e910
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x4430
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x9c(%rbp)
movl $0x66, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
leaq -0x9c(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1ed1b
movzbl -0x75(%rbp), %eax
cmpl $0x64, %eax
jne 0x1e956
movq -0x38(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x4430
movsd %xmm0, -0xa8(%rbp)
movl $0x64, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
leaq -0xa8(%rbp), %rdi
movl $0x8, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1ed19
movzbl -0x75(%rbp), %eax
cmpl $0x5a, %eax
je 0x1e968
movzbl -0x75(%rbp), %eax
cmpl $0x48, %eax
jne 0x1e994
movzbl -0x75(%rbp), %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movl %eax, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1ed17
movzbl -0x75(%rbp), %eax
cmpl $0x42, %eax
jne 0x1ece2
jmp 0x1e9a3
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
cmpq $0x3, %rax
jge 0x1e9e8
leaq 0x6bc21(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1e9e8
movq 0x6b605(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5cd3b(%rip), %rsi     # 0x7b710
leaq 0x5cac4(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1e9ea
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 0x1ea53
movq -0xb8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2c, %eax
jne 0x1ea3d
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x1ea3f
movq -0xb8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xb8(%rbp)
jmp 0x1ea13
movl $0x42, %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
movzbl -0x75(%rbp), %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
leaq -0xac(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
movzbl -0x75(%rbp), %eax
cmpl $0x63, %eax
jne 0x1eacc
jmp 0x1ea8e
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0x1eac7
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x4820
movb %al, -0xb9(%rbp)
movsbl -0xb9(%rbp), %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
jmp 0x1ea8e
jmp 0x1ece0
movzbl -0x75(%rbp), %eax
cmpl $0x43, %eax
jne 0x1eb15
jmp 0x1ead7
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0x1eb10
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x4170
movb %al, -0xba(%rbp)
movzbl -0xba(%rbp), %edi
leaq -0x58(%rbp), %rsi
callq 0x1eff0
jmp 0x1ead7
jmp 0x1ecde
movzbl -0x75(%rbp), %eax
cmpl $0x73, %eax
jne 0x1eb64
jmp 0x1eb20
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0x1eb5f
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x4820
movw %ax, -0xbc(%rbp)
leaq -0xbc(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1eb20
jmp 0x1ecdc
movzbl -0x75(%rbp), %eax
cmpl $0x53, %eax
jne 0x1ebb3
jmp 0x1eb6f
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0x1ebae
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x4170
movw %ax, -0xbe(%rbp)
leaq -0xbe(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1eb6f
jmp 0x1ecda
movzbl -0x75(%rbp), %eax
cmpl $0x69, %eax
jne 0x1ec01
jmp 0x1ebbe
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0x1ebfc
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x4820
movl %eax, -0xc4(%rbp)
leaq -0xc4(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1ebbe
jmp 0x1ecd8
movzbl -0x75(%rbp), %eax
cmpl $0x49, %eax
jne 0x1ec4f
jmp 0x1ec0c
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0x1ec4a
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x4170
movl %eax, -0xc8(%rbp)
leaq -0xc8(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1ec0c
jmp 0x1ecd6
movzbl -0x75(%rbp), %eax
cmpl $0x66, %eax
jne 0x1ec9e
jmp 0x1ec5a
movq -0x38(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
jae 0x1ec9c
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
leaq -0x38(%rbp), %rsi
callq 0x4430
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0xcc(%rbp)
leaq -0xcc(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0x1ed90
jmp 0x1ec5a
jmp 0x1ecd4
jmp 0x1eca0
leaq 0x6b939(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1ecd0
movq 0x6b31d(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5ca79(%rip), %rsi     # 0x7b736
leaq 0x5c7dc(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1ecd2
jmp 0x1ecd4
jmp 0x1ecd6
jmp 0x1ecd8
jmp 0x1ecda
jmp 0x1ecdc
jmp 0x1ecde
jmp 0x1ece0
jmp 0x1ed15
jmp 0x1ece4
leaq 0x6b8f5(%rip), %rax     # 0x8a5e0
cmpl $0x1, (%rax)
jl 0x1ed11
movq 0x6b2d9(%rip), %rax     # 0x89fd0
movq (%rax), %rdi
leaq 0x5ca35(%rip), %rsi     # 0x7b736
leaq 0x5c798(%rip), %rdx     # 0x7b4a0
movb $0x0, %al
callq 0x4830
jmp 0x1ed53
jmp 0x1ed13
jmp 0x1ed15
jmp 0x1ed17
jmp 0x1ed19
jmp 0x1ed1b
jmp 0x1ed1d
jmp 0x1ed1f
jmp 0x1e5f0
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 0x1ed80
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
nopl (%rax)