// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/hts.c
// Function: hts_detect_format2
int hts_detect_format2(hFILE *hfile, const char *fname, htsFormat *fmt)
{
    char extension[HTS_MAX_EXT_LEN], columns[24];
    unsigned char s[1024];
    int complete = 0;
    ssize_t len = hpeek(hfile, s, 18);
    if (len < 0) return -1;

    fmt->category = unknown_category;
    fmt->format = unknown_format;
    fmt->version.major = fmt->version.minor = -1;
    fmt->compression = no_compression;
    fmt->compression_level = -1;
    fmt->specific = NULL;

    if (len >= 2 && s[0] == 0x1f && s[1] == 0x8b) {
        // The stream is either gzip-compressed or BGZF-compressed.
        // Determine which, and decompress the first few records or lines.
        fmt->compression = gzip;
        if (len >= 18 && (s[3] & 4)) {
            if (memcmp(&s[12], "BC\2\0", 4) == 0)
                fmt->compression = bgzf;
            else if (memcmp(&s[12], "RAZF", 4) == 0)
                fmt->compression = razf_compression;
        }
        if (len >= 9 && s[2] == 8)
            fmt->compression_level = (s[8] == 2)? 9 : (s[8] == 4)? 1 : -1;

        len = decompress_peek_gz(hfile, s, sizeof s);
    }
    else if (len >= 10 && memcmp(s, "BZh", 3) == 0 &&
             (memcmp(&s[4], "\x31\x41\x59\x26\x53\x59", 6) == 0 ||
              memcmp(&s[4], "\x17\x72\x45\x38\x50\x90", 6) == 0)) {
        fmt->compression = bzip2_compression;
        fmt->compression_level = s[3] - '0';
        // Decompressing via libbz2 produces no output until it has a whole
        // block (of size 100Kb x level), which is too large for peeking.
        // So unfortunately we can recognise bzip2 but not the contents,
        // except that \x1772... magic indicates the stream is empty.
        if (s[4] == '\x31') return 0;
        else len = 0;
    }
    else if (len >= 6 && memcmp(s, "\xfd""7zXZ\0", 6) == 0) {
        fmt->compression = xz_compression;
#ifdef HAVE_LIBLZMA
        len = decompress_peek_xz(hfile, s, sizeof s);
#else
        // Without liblzma, we can't recognise the decompressed contents.
        return 0;
#endif
    }
    else if (len >= 4 && memcmp(s, "\x28\xb5\x2f\xfd", 4) == 0) {
        fmt->compression = zstd_compression;
        return 0;
    }
    else {
        len = hpeek(hfile, s, sizeof s);
    }
    if (len < 0) return -1;

    if (len == 0) {
        fmt->format = empty_format;
        return 0;
    }

    // We avoid using filename extensions wherever possible (as filenames are
    // not always available), but in a few cases they must be considered:
    //  - FASTA/Q indexes are simply tab-separated text; files that match these
    //    patterns but not the fai/fqi extension are usually generic BED files
    //  - GZI indexes have no magic numbers so can only be detected by filename
    if (fname && strcmp(fname, "-") != 0) {
        char *s;
        if (find_file_extension(fname, extension) < 0) extension[0] = '\0';
        for (s = extension; *s; s++) *s = tolower_c(*s);
    }
    else extension[0] = '\0';

    if (len >= 6 && memcmp(s,"CRAM",4) == 0 && s[4]>=1 && s[4]<=7 && s[5]<=7) {
        fmt->category = sequence_data;
        fmt->format = cram;
        fmt->version.major = s[4], fmt->version.minor = s[5];
        fmt->compression = custom;
        return 0;
    }
    else if (len >= 4 && s[3] <= '\4') {
        if (memcmp(s, "BAM\1", 4) == 0) {
            fmt->category = sequence_data;
            fmt->format = bam;
            // TODO Decompress enough to pick version from @HD-VN header
            fmt->version.major = 1, fmt->version.minor = -1;
            return 0;
        }
        else if (memcmp(s, "BAI\1", 4) == 0) {
            fmt->category = index_file;
            fmt->format = bai;
            fmt->version.major = -1, fmt->version.minor = -1;
            return 0;
        }
        else if (memcmp(s, "BCF\4", 4) == 0) {
            fmt->category = variant_data;
            fmt->format = bcf;
            fmt->version.major = 1, fmt->version.minor = -1;
            return 0;
        }
        else if (memcmp(s, "BCF\2", 4) == 0) {
            fmt->category = variant_data;
            fmt->format = bcf;
            fmt->version.major = s[3];
            fmt->version.minor = (len >= 5 && s[4] <= 2)? s[4] : 0;
            return 0;
        }
        else if (memcmp(s, "CSI\1", 4) == 0) {
            fmt->category = index_file;
            fmt->format = csi;
            fmt->version.major = 1, fmt->version.minor = -1;
            return 0;
        }
        else if (memcmp(s, "TBI\1", 4) == 0) {
            fmt->category = index_file;
            fmt->format = tbi;
            return 0;
        }
        // GZI indexes have no magic numbers, so must be recognised solely by
        // filename extension.
        else if (strcmp(extension, "gzi") == 0) {
            fmt->category = index_file;
            fmt->format = gzi;
            return 0;
        }
    }
    else if (len >= 16 && memcmp(s, "##fileformat=VCF", 16) == 0) {
        fmt->category = variant_data;
        fmt->format = vcf;
        if (len >= 21 && s[16] == 'v')
            parse_version(fmt, &s[17], &s[len]);
        return 0;
    }
    else if (len >= 4 && s[0] == '@' &&
             (memcmp(s, "@HD\t", 4) == 0 || memcmp(s, "@SQ\t", 4) == 0 ||
              memcmp(s, "@RG\t", 4) == 0 || memcmp(s, "@PG\t", 4) == 0 ||
              memcmp(s, "@CO\t", 4) == 0)) {
        fmt->category = sequence_data;
        fmt->format = sam;
        // @HD-VN is not guaranteed to be the first tag, but then @HD is
        // not guaranteed to be present at all...
        if (len >= 9 && memcmp(s, "@HD\tVN:", 7) == 0)
            parse_version(fmt, &s[7], &s[len]);
        else
            fmt->version.major = 1, fmt->version.minor = -1;
        return 0;
    }
    else if (len >= 8 && memcmp(s, "d4\xdd\xdd", 4) == 0) {
        fmt->category = region_list;
        fmt->format = d4_format;
        // How to decode the D4 Format Version bytes is not yet specified
        // so we don't try to set fmt->version.{major,minor}.
        return 0;
    }
    else if (cmp_nonblank("{\"htsget\":", s, &s[len]) == 0) {
        fmt->category = unknown_category;
        fmt->format = htsget;
        return 0;
    }
    else if (len > 8 && memcmp(s, "crypt4gh", 8) == 0) {
        fmt->category = unknown_category;
        fmt->format = hts_crypt4gh_format;
        return 0;
    }
    else if (len >= 1 && s[0] == '>' && is_fastaq(s, &s[len])) {
        fmt->category = sequence_data;
        fmt->format = fasta_format;
        return 0;
    }
    else if (len >= 1 && s[0] == '@' && is_fastaq(s, &s[len])) {
        fmt->category = sequence_data;
        fmt->format = fastq_format;
        return 0;
    }
    else if (parse_tabbed_text(columns, sizeof columns, s,
                               &s[len], &complete) > 0) {
        // A complete SAM line is at least 11 columns.  On unmapped long reads may
        // be missing two.  (On mapped long reads we must have an @ header so long
        // CIGAR is irrelevant.)
        if (colmatch(columns, "ZiZiiCZiiZZOOOOOOOOOOOOOOOOOOOO+")
            >= 9 + 2*complete) {
            fmt->category = sequence_data;
            fmt->format = sam;
            fmt->version.major = 1, fmt->version.minor = -1;
            return 0;
        }
        else if (fmt->compression == gzip && colmatch(columns, "iiiiii") == 6) {
            fmt->category = index_file;
            fmt->format = crai;
            return 0;
        }
        else if (strstr(extension, "fqi") && colmatch(columns, "Ziiiii") == 6) {
            fmt->category = index_file;
            fmt->format = fqi_format;
            return 0;
        }
        else if (strstr(extension, "fai") && colmatch(columns, "Ziiii") == 5) {
            fmt->category = index_file;
            fmt->format = fai_format;
            return 0;
        }
        else if (colmatch(columns, "Zii+") >= 3) {
            fmt->category = region_list;
            fmt->format = bed;
            return 0;
        }
    }

    // Arbitrary text files can be read using hts_getline().
    if (is_text_only(s, &s[len])) fmt->format = text_format;

    // Nothing recognised: leave unset fmt-> fields as unknown.
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xca8, %rsp            # imm = 0xCA8
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r14
movl $0x0, 0x14(%rsp)
leaq 0xa0(%rsp), %r15
movl $0x12, %edx
movq %r15, %rsi
callq 0xf0a9
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
js 0x11f94
movdqa 0x84028(%rip), %xmm0    # 0x95720
movdqu %xmm0, (%r13)
movw $0xffff, 0x10(%r13)     # imm = 0xFFFF
movq $0x0, 0x18(%r13)
cmpq $0x2, %rax
jb 0x11770
cmpb $0x1f, 0xa0(%rsp)
jne 0x11770
cmpb $-0x75, 0xa1(%rsp)
jne 0x11770
movl $0x1, 0xc(%r13)
cmpq $0x12, %rax
jb 0x1191f
testb $0x4, 0xa3(%rsp)
je 0x1191f
movl 0xac(%rsp), %ecx
cmpl $0x24342, %ecx          # imm = 0x24342
je 0x11916
cmpl $0x465a4152, %ecx       # imm = 0x465A4152
jne 0x1191f
movl $0x5, %ecx
jmp 0x1191b
cmpq $0xa, %rax
jb 0x117ff
movl $0x5a42, %ecx           # imm = 0x5A42
xorl 0xa0(%rsp), %ecx
movzbl 0xa2(%rsp), %edx
xorl $0x68, %edx
orw %cx, %dx
jne 0x11805
movl $0x26594131, %ecx       # imm = 0x26594131
xorl 0xa4(%rsp), %ecx
movzwl 0xa8(%rsp), %edx
xorl $0x5953, %edx           # imm = 0x5953
orl %ecx, %edx
je 0x117d2
movl $0x38457217, %ecx       # imm = 0x38457217
xorl 0xa4(%rsp), %ecx
movzwl 0xa8(%rsp), %edx
xorl $0x9050, %edx           # imm = 0x9050
orl %ecx, %edx
jne 0x11805
movl $0x4, 0xc(%r13)
movzbl 0xa3(%rsp), %eax
addl $-0x30, %eax
movw %ax, 0x10(%r13)
xorl %ebp, %ebp
cmpb $0x31, 0xa4(%rsp)
jne 0x11afd
jmp 0x11f94
cmpq $0x6, %rax
jb 0x11820
movl $0x587a37fd, %ecx       # imm = 0x587A37FD
xorl 0xa0(%rsp), %ecx
movzwl 0xa4(%rsp), %edx
xorl $0x5a, %edx
orl %ecx, %edx
je 0x1185d
cmpq $0x4, %rax
jb 0x11840
cmpl $0xfd2fb528, 0xa0(%rsp) # imm = 0xFD2FB528
jne 0x11840
movl $0x7, 0xc(%r13)
jmp 0x11f92
leaq 0xa0(%rsp), %rsi
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
callq 0xf0a9
movq %rax, %r14
jmp 0x11a1a
movq %r13, %rbx
movl $0x6, 0xc(%r13)
leaq 0x4a0(%rsp), %rsi
movl $0x800, %edx            # imm = 0x800
movq %r14, %rdi
callq 0xf0a9
testq %rax, %rax
js 0x11907
movq %rax, %r13
leaq 0x18(%rsp), %r14
movl $0x88, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4260
movl $0x9, %edi
callq 0x4980
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x4110
movq $-0x1, %r14
testl %eax, %eax
jne 0x1190e
leaq 0x18(%rsp), %rcx
leaq 0x4a0(%rsp), %rax
movq %rax, (%rcx)
movq %r13, 0x8(%rcx)
movq %rcx, %r13
movq %r15, 0x18(%rcx)
movq $0x400, 0x20(%rcx)      # imm = 0x400
movq %rcx, %rdi
xorl %esi, %esi
callq 0x41b0
movq $-0x1, %r14
cmpl $0x2, %eax
jae 0x118fd
movq 0x40(%rsp), %r14
movq %r13, %rdi
callq 0x4730
jmp 0x1190e
movq $-0x1, %r14
movq %rbx, %r13
jmp 0x11a1a
movl $0x2, %ecx
movl %ecx, 0xc(%r13)
cmpq $0x9, %rax
jb 0x11950
cmpb $0x8, 0xa2(%rsp)
jne 0x11950
movb 0xa8(%rsp), %al
xorl %ecx, %ecx
cmpb $0x4, %al
sete %cl
cmpb $0x2, %al
leal -0x1(%rcx,%rcx), %eax
movl $0x9, %ecx
cmovnel %eax, %ecx
movw %cx, 0x10(%r13)
leaq 0x4a0(%rsp), %rbx
movl $0x800, %edx            # imm = 0x800
movq %r14, %rdi
movq %rbx, %rsi
callq 0xf0a9
movq $-0x1, %r14
testq %rax, %rax
js 0x11a1a
pxor %xmm0, %xmm0
leaq 0x18(%rsp), %rdi
movdqu %xmm0, 0x40(%rdi)
movq %rbx, (%rdi)
movl %eax, 0x8(%rdi)
leaq 0xa0(%rsp), %rax
movq %rax, 0x18(%rdi)
movl $0x400, 0x20(%rdi)      # imm = 0x400
leaq 0x8301a(%rip), %rdx     # 0x949c0
movl $0x1f, %esi
movl $0x70, %ecx
callq 0x43e0
testl %eax, %eax
jne 0x11a1a
movq %r13, 0x8(%rsp)
cmpl $0x0, 0x38(%rsp)
je 0x119fc
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movl $0x2, %esi
callq 0x4380
testl %eax, %eax
je 0x119f5
cmpl $0x1, %eax
jne 0x119fc
movq 0x18(%rsp), %r13
cmpq %r13, %rbx
je 0x119fc
movq %r14, %rdi
callq 0x46e0
movq %r13, %rbx
cmpl $0x0, 0x38(%rsp)
jne 0x119ca
leaq 0x18(%rsp), %rdi
movq 0x18(%rdi), %r14
leaq 0xa0(%rsp), %rax
subq %rax, %r14
callq 0x44e0
movq 0x8(%rsp), %r13
testq %r14, %r14
js 0x11f94
je 0x11afd
testq %r12, %r12
je 0x11b0a
cmpb $0x2d, (%r12)
jne 0x11a45
cmpb $0x0, 0x1(%r12)
je 0x11b0a
movq %r13, %rbx
leaq 0x84491(%rip), %rsi     # 0x95ee0
movq %r12, %rdi
callq 0x40e0
movq %rax, %r13
testq %rax, %rax
jne 0x11a6d
movq %r12, %rdi
callq 0x41d0
movq %rax, %r13
addq %r12, %r13
movq %r13, %rsi
cmpq %r12, %r13
jbe 0x11a98
xorl %eax, %eax
movq %r13, %rsi
movb (%rsi), %cl
movl %ecx, %edx
andb $-0x2, %dl
cmpb $0x2e, %dl
je 0x11b11
decq %rsi
incq %rax
cmpq %r12, %rsi
ja 0x11a7a
movq %r12, %rsi
movb (%rsi), %al
cmpb $0x2e, %al
jne 0x11b4d
subq %rsi, %r13
leaq -0xa(%r13), %rax
cmpq $-0x8, %rax
jbe 0x11b4d
incq %rsi
leaq -0x1(%r13), %rdx
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x43c0
movb $0x0, 0x17(%rsp,%r13)
movb (%r12), %bpl
testb %bpl, %bpl
movq %rbx, %r13
je 0x11b55
callq 0x40c0
leaq 0x19(%rsp), %rcx
movq (%rax), %rdx
movzbl %bpl, %esi
movb (%rdx,%rsi,4), %dl
movb %dl, -0x1(%rcx)
movb (%rcx), %bpl
incq %rcx
testb %bpl, %bpl
jne 0x11ae3
jmp 0x11b55
movl $0xf, 0x4(%r13)
jmp 0x11f92
movb $0x0, 0x18(%rsp)
jmp 0x11b55
cmpb $0x2e, %cl
jne 0x11b4d
cmpq $0x3, %rax
je 0x11f2d
cmpq $0x4, %rax
jne 0x11a98
cmpb $0x62, 0x1(%rsi)
jne 0x11a98
cmpb $0x67, 0x2(%rsi)
jne 0x11a98
cmpb $0x7a, 0x3(%rsi)
jne 0x11a98
jmp 0x11f41
movb $0x0, 0x18(%rsp)
movq %rbx, %r13
cmpq $0x5, %r14
jle 0x11bc1
movl 0xa0(%rsp), %eax
cmpl $0x4d415243, %eax       # imm = 0x4D415243
sete %sil
movb 0xa4(%rsp), %cl
leal -0x1(%rcx), %edx
cmpb $0x7, %dl
setb %dil
movb 0xa5(%rsp), %dl
cmpb $0x8, %dl
setb %r8b
andb %sil, %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
jne 0x11bca
movzbl %cl, %eax
movzbl %dl, %ecx
movabsq $0x600000001, %rdx      # imm = 0x600000001
movq %rdx, (%r13)
movw %ax, 0x8(%r13)
movw %cx, 0xa(%r13)
movl $0x3, 0xc(%r13)
jmp 0x11f92
movb 0xa3(%rsp), %al
jmp 0x11bcd
shrl $0x18, %eax
cmpq $0x4, %r14
jl 0x11c1d
cmpb $0x4, %al
ja 0x11c1d
movl 0xa0(%rsp), %ecx
cmpl $0x14d4141, %ecx        # imm = 0x14D4141
jg 0x11c93
cmpl $0x1494142, %ecx        # imm = 0x1494142
je 0x11e2c
cmpl $0x1494254, %ecx        # imm = 0x1494254
je 0x11ead
cmpl $0x1495343, %ecx        # imm = 0x1495343
jne 0x11e62
movabsq $0xa00000003, %rax      # imm = 0xA00000003
jmp 0x11e51
cmpq $0x10, %r14
jl 0x11c43
movdqa 0xa0(%rsp), %xmm0
pcmpeqb 0x83afc(%rip), %xmm0    # 0x95730
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x11cc6
movl 0xa0(%rsp), %eax
cmpq $0x4, %r14
jl 0x11d74
cmpb $0x40, 0xa0(%rsp)
jne 0x11d74
cmpl $0x947523f, %eax        # imm = 0x947523F
jle 0x11d0e
cmpl $0x9475240, %eax        # imm = 0x9475240
je 0x11d1c
cmpl $0x9515340, %eax        # imm = 0x9515340
je 0x11d1c
cmpl $0x94f4340, %eax        # imm = 0x94F4340
je 0x11d1c
jmp 0x11d74
cmpl $0x4464342, %ecx        # imm = 0x4464342
je 0x11e47
cmpl $0x2464342, %ecx        # imm = 0x2464342
je 0x11ebc
cmpl $0x14d4142, %ecx        # imm = 0x14D4142
jne 0x11e62
movabsq $0x400000001, %rax      # imm = 0x400000001
jmp 0x11e51
movabsq $0x800000002, %rax      # imm = 0x800000002
movq %rax, (%r13)
xorl %ebp, %ebp
cmpq $0x15, %r14
jb 0x11f94
cmpb $0x76, 0xb0(%rsp)
jne 0x11f94
leaq 0xb1(%rsp), %rsi
leaq (%rsp,%r14), %rdx
addq $0xa0, %rdx
movq %r13, %rdi
callq 0x121be
jmp 0x11f94
cmpl $0x9444840, %eax        # imm = 0x9444840
je 0x11d1c
cmpl $0x9475040, %eax        # imm = 0x9475040
jne 0x11d74
movabsq $0x300000001, %rax      # imm = 0x300000001
movq %rax, (%r13)
cmpq $0x9, %r14
jb 0x11e55
movl $0x9444840, %eax        # imm = 0x9444840
xorl 0xa0(%rsp), %eax
movl $0x3a4e5609, %ecx       # imm = 0x3A4E5609
xorl 0xa3(%rsp), %ecx
orl %eax, %ecx
jne 0x11e55
leaq 0xa7(%rsp), %rsi
leaq (%rsp,%r14), %rdx
addq $0xa0, %rdx
movq %r13, %rdi
callq 0x121be
jmp 0x11f92
cmpq $0x8, %r14
setge %cl
cmpl $0xdddd3464, %eax       # imm = 0xDDDD3464
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x11d98
movabsq $0x1500000004, %rax     # imm = 0x1500000004
jmp 0x11f8e
movq %r13, 0x8(%rsp)
leaq (%rsp,%r14), %rbx
addq $0xa0, %rbx
leaq 0x83fe2(%rip), %r13     # 0x95d91
movb $0x7b, %bpl
cmpq %rbx, %r15
jae 0x11deb
movzbl (%r15), %r12d
callq 0x4510
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r12,2)
jne 0x11dd3
cmpb %bpl, %r12b
jne 0x11deb
incq %r13
incq %r15
movb (%r13), %bpl
testb %bpl, %bpl
jne 0x11db2
movabsq $0xe00000000, %rax      # imm = 0xE00000000
jmp 0x11e1f
cmpq $0x9, %r14
setge %cl
movq 0xa0(%rsp), %rax
movabsq $0x6867347470797263, %rdx # imm = 0x6867347470797263
cmpq %rdx, %rax
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x11ef4
movabsq $0x1400000000, %rax     # imm = 0x1400000000
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x11f92
movabsq $0x500000003, %rax      # imm = 0x500000003
movq %rax, (%r13)
movl $0xffffffff, 0x8(%r13)  # imm = 0xFFFFFFFF
jmp 0x11f92
movabsq $0x900000002, %rax      # imm = 0x900000002
movq %rax, (%r13)
movl $0xffff0001, 0x8(%r13)  # imm = 0xFFFF0001
jmp 0x11f92
cmpl $0x697a67, 0x18(%rsp)   # imm = 0x697A67
je 0x11f64
xorl %eax, %eax
movl $0x2600, %ecx           # imm = 0x2600
movb 0xa0(%rsp,%rax), %dl
cmpb $0x1f, %dl
ja 0x11e98
cmpb $0xd, %dl
ja 0x11f92
movzbl %dl, %edx
btl %edx, %ecx
jae 0x11f92
incq %rax
cmpq %rax, %r14
jne 0x11e77
movl $0x2, 0x4(%r13)
jmp 0x11f92
movabsq $0xc00000003, %rax      # imm = 0xC00000003
jmp 0x11f8e
movabsq $0x900000002, %rcx      # imm = 0x900000002
movq %rcx, (%r13)
movzbl %al, %eax
movw %ax, 0x8(%r13)
movzbl 0xa4(%rsp), %eax
xorl %ebp, %ebp
cmpw $0x3, %ax
cmovael %ebp, %eax
cmpq $0x5, %r14
cmovbl %ebp, %eax
movw %ax, 0xa(%r13)
jmp 0x11f94
cmpb $0x40, %al
movq 0x8(%rsp), %r13
je 0x11f70
movzbl %al, %eax
cmpl $0x3e, %eax
jne 0x11fa8
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x12250
testl %eax, %eax
je 0x11fa8
movabsq $0x1000000001, %rax     # imm = 0x1000000001
jmp 0x11f8e
cmpb $0x67, 0x1(%rsi)
jne 0x11a98
cmpb $0x7a, 0x2(%rsi)
jne 0x11a98
decq %rsi
cmpq %r12, %rsi
jbe 0x11a98
movb (%rsi), %al
movl %eax, %ecx
andb $-0x2, %cl
decq %rsi
cmpb $0x2e, %cl
jne 0x11f44
incq %rsi
jmp 0x11a9a
movabsq $0xb00000003, %rax      # imm = 0xB00000003
jmp 0x11f8e
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x12250
testl %eax, %eax
je 0x11fa8
movabsq $0x1100000001, %rax     # imm = 0x1100000001
movq %rax, (%r13)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0xca8, %rsp            # imm = 0xCA8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4a0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x14(%rsp), %rcx
movq %rbx, %rdx
callq 0x122fe
testl %eax, %eax
jle 0x11e70
movb 0x4a0(%rsp), %bpl
testb %bpl, %bpl
je 0x12012
xorl %eax, %eax
leaq 0x83db9(%rip), %rcx     # 0x95d9c
movl %ebp, %edx
cmpq $0x1f, %rax
je 0x12016
movb (%rax,%rcx), %sil
cmpb %sil, %dl
setne %dl
cmpb $0x5a, %sil
setne %sil
testb %sil, %dl
jne 0x12012
movb 0x4a1(%rsp,%rax), %dl
incq %rax
testb %dl, %dl
jne 0x11fe5
jmp 0x1201b
xorl %eax, %eax
jmp 0x1201b
movl $0x1f, %eax
movl 0x14(%rsp), %ecx
leal 0x9(,%rcx,2), %ecx
cmpl %ecx, %eax
jge 0x12084
cmpl $0x1, 0xc(%r13)
jne 0x12093
testb %bpl, %bpl
je 0x11e70
xorl %eax, %eax
leaq 0x83d7a(%rip), %rcx     # 0x95dbd
movl %ebp, %edx
movb (%rax,%rcx), %sil
cmpb $0x2b, %sil
je 0x12070
cmpb %sil, %dl
setne %dl
cmpb $0x5a, %sil
setne %sil
testb %sil, %dl
jne 0x12093
movb 0x4a1(%rsp,%rax), %dl
incq %rax
testb %dl, %dl
jne 0x12045
cmpl $0x6, %eax
jne 0x12093
movabsq $0x700000003, %rax      # imm = 0x700000003
jmp 0x11f8e
movabsq $0x300000001, %rax      # imm = 0x300000001
jmp 0x11e51
leaq 0x83d2a(%rip), %rsi     # 0x95dc4
leaq 0x18(%rsp), %rdi
callq 0x40e0
testb %bpl, %bpl
je 0x120f8
testq %rax, %rax
je 0x120f8
xorl %eax, %eax
leaq 0x83d11(%rip), %rcx     # 0x95dc8
movl %ebp, %edx
movb (%rax,%rcx), %sil
cmpb $0x2b, %sil
je 0x120e4
cmpb %sil, %dl
setne %dl
cmpb $0x5a, %sil
setne %sil
testb %sil, %dl
jne 0x120f8
movb 0x4a1(%rsp,%rax), %dl
incq %rax
testb %dl, %dl
jne 0x120b9
cmpl $0x6, %eax
jne 0x120f8
movabsq $0x1300000003, %rax     # imm = 0x1300000003
jmp 0x11f8e
leaq 0x894bf(%rip), %rsi     # 0x9b5be
leaq 0x18(%rsp), %rdi
callq 0x40e0
testq %rax, %rax
je 0x12161
testb %bpl, %bpl
je 0x11e70
xorl %eax, %eax
leaq 0x83caf(%rip), %rcx     # 0x95dcf
movl %ebp, %edx
movb (%rax,%rcx), %sil
cmpb $0x2b, %sil
je 0x1214d
cmpb %sil, %dl
setne %dl
cmpb $0x5a, %sil
setne %sil
testb %sil, %dl
jne 0x12161
movb 0x4a1(%rsp,%rax), %dl
incq %rax
testb %dl, %dl
jne 0x12122
cmpl $0x5, %eax
jne 0x12161
movabsq $0x1200000003, %rax     # imm = 0x1200000003
jmp 0x11f8e
testb %bpl, %bpl
je 0x11e70
xorl %edx, %edx
leaq 0x83c62(%rip), %rax     # 0x95dd5
cmpq $0x3, %rdx
je 0x121af
movq %rdx, %rcx
movb (%rdx,%rax), %dl
cmpb %dl, %bpl
setne %sil
cmpb $0x5a, %dl
setne %dl
testb %dl, %sil
jne 0x11e70
leaq 0x1(%rcx), %rdx
movb 0x4a1(%rsp,%rcx), %bpl
testb %bpl, %bpl
jne 0x12173
cmpl $0x2, %ecx
jb 0x11e70
movabsq $0xd00000004, %rax      # imm = 0xD00000004
jmp 0x11f8e