// File: /workspace/github_c_makefile_star2_O1/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 0xf24d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
js 0x121e1
movdqa 0x86d7e(%rip), %xmm0    # 0x986e0
movdqu %xmm0, (%r13)
movw $0xffff, 0x10(%r13)     # imm = 0xFFFF
movq $0x0, 0x18(%r13)
cmpq $0x2, %rax
jl 0x119da
cmpb $0x1f, 0xa0(%rsp)
jne 0x119da
cmpb $-0x75, 0xa1(%rsp)
jne 0x119da
movl $0x1, 0xc(%r13)
cmpq $0x12, %rax
jl 0x11b86
testb $0x4, 0xa3(%rsp)
je 0x11b86
movl 0xac(%rsp), %ecx
cmpl $0x24342, %ecx          # imm = 0x24342
je 0x11b7d
cmpl $0x465a4152, %ecx       # imm = 0x465A4152
jne 0x11b86
movl $0x5, %ecx
jmp 0x11b82
cmpq $0xa, %rax
jl 0x119fc
movl $0x5a42, %ecx           # imm = 0x5A42
xorl 0xa0(%rsp), %ecx
movzbl 0xa2(%rsp), %edx
xorl $0x68, %edx
orw %cx, %dx
je 0x11a5e
cmpq $0x6, %rax
jl 0x11a21
movl $0x587a37fd, %ecx       # imm = 0x587A37FD
xorl 0xa0(%rsp), %ecx
movzwl 0xa4(%rsp), %edx
xorl $0x5a, %edx
orl %ecx, %edx
je 0x11acc
cmpq $0x4, %rax
jl 0x11a41
cmpl $0xfd2fb528, 0xa0(%rsp) # imm = 0xFD2FB528
jne 0x11a41
movl $0x7, 0xc(%r13)
jmp 0x121df
leaq 0xa0(%rsp), %rsi
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
callq 0xf24d
movq %rax, %r14
jmp 0x11c8d
movl $0x26594131, %ecx       # imm = 0x26594131
xorl 0xa4(%rsp), %ecx
movzwl 0xa8(%rsp), %edx
xorl $0x5953, %edx           # imm = 0x5953
orl %ecx, %edx
je 0x11a9e
movl $0x38457217, %ecx       # imm = 0x38457217
xorl 0xa4(%rsp), %ecx
movzwl 0xa8(%rsp), %edx
xorl $0x9050, %edx           # imm = 0x9050
orl %ecx, %edx
jne 0x119fc
movl $0x4, 0xc(%r13)
movzbl 0xa3(%rsp), %eax
addl $-0x30, %eax
movw %ax, 0x10(%r13)
xorl %r14d, %r14d
cmpb $0x31, 0xa4(%rsp)
jne 0x11c8d
jmp 0x121df
movq %r13, %rbx
movl $0x6, 0xc(%r13)
leaq 0x4a0(%rsp), %rsi
movl $0x800, %edx            # imm = 0x800
movq %r14, %rdi
callq 0xf24d
testq %rax, %rax
js 0x11c83
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 0x11c8a
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 0x11b70
movq 0x40(%rsp), %r14
movq %r13, %rdi
callq 0x4730
jmp 0x11c8a
movl $0x2, %ecx
movl %ecx, 0xc(%r13)
cmpq $0x9, %rax
jl 0x11bb7
cmpb $0x8, 0xa2(%rsp)
jne 0x11bb7
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 0xf24d
movq $-0x1, %r14
testq %rax, %rax
js 0x11c8d
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 0x85d73(%rip), %rdx     # 0x97980
movl $0x1f, %esi
movl $0x70, %ecx
callq 0x43e0
testl %eax, %eax
jne 0x11c8d
movq %r13, 0x8(%rsp)
cmpl $0x0, 0x38(%rsp)
je 0x11c63
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movl $0x2, %esi
callq 0x4380
testl %eax, %eax
je 0x11c5c
cmpl $0x1, %eax
jne 0x11c63
movq 0x18(%rsp), %r13
cmpq %r13, %rbx
je 0x11c63
movq %r14, %rdi
callq 0x46e0
movq %r13, %rbx
cmpl $0x0, 0x38(%rsp)
jne 0x11c31
leaq 0x18(%rsp), %rdi
movq 0x18(%rdi), %r14
leaq 0xa0(%rsp), %rax
subq %rax, %r14
callq 0x44e0
movq 0x8(%rsp), %r13
jmp 0x11c8d
movq $-0x1, %r14
movq %rbx, %r13
testq %r14, %r14
js 0x121e1
je 0x11cfe
testq %r12, %r12
je 0x11cf4
leaq 0x89220(%rip), %rsi     # 0x9aec4
movq %r12, %rdi
callq 0x46c0
testl %eax, %eax
je 0x11cf4
movq %r13, %rbx
leaq 0x87186(%rip), %rsi     # 0x98e40
movq %r12, %rdi
callq 0x40e0
movq %rax, %r13
testq %rax, %rax
jne 0x11cd8
movq %r12, %rdi
callq 0x41d0
movq %rax, %r13
addq %r12, %r13
movq %r13, %rsi
cmpq %r12, %r13
setbe %al
jbe 0x11d2c
movb (%r13), %al
andb $-0x2, %al
cmpb $0x2e, %al
jne 0x11d0b
xorl %eax, %eax
movq %r13, %rsi
jmp 0x11d2c
movb $0x0, 0x18(%rsp)
jmp 0x11de6
movl $0xf, 0x4(%r13)
jmp 0x121df
leaq -0x1(%r13), %rsi
cmpq %r12, %rsi
setbe %al
jbe 0x11d29
movb (%rsi), %cl
andb $-0x2, %cl
decq %rsi
cmpb $0x2e, %cl
jne 0x11d0f
incq %rsi
jmp 0x11d2c
movq %r12, %rsi
testb %al, %al
jne 0x11d87
cmpb $0x2e, (%rsi)
jne 0x11d87
movq %r13, %rax
subq %rsi, %rax
cmpq $0x4, %rax
je 0x11d59
cmpq $0x3, %rax
jne 0x11d87
cmpb $0x67, 0x1(%rsi)
jne 0x11d53
cmpb $0x7a, 0x2(%rsi)
je 0x11d6b
cmpq $0x4, %rax
jne 0x11d87
cmpb $0x62, 0x1(%rsi)
jne 0x11d87
cmpb $0x67, 0x2(%rsi)
jne 0x11d87
cmpb $0x7a, 0x3(%rsi)
jne 0x11d87
decq %rsi
movq %rsi, %rax
movq %rax, %rsi
cmpq %r12, %rax
jbe 0x11d87
movb (%rsi), %cl
andb $-0x2, %cl
leaq -0x1(%rsi), %rax
cmpb $0x2e, %cl
jne 0x11d71
cmpb $0x2e, (%rsi)
jne 0x11d99
subq %rsi, %r13
leaq -0xa(%r13), %rax
cmpq $-0x7, %rax
jae 0x11da0
movb $0x0, 0x18(%rsp)
jmp 0x11db7
incq %rsi
leaq -0x1(%r13), %rdx
leaq 0x18(%rsp), %rdi
callq 0x43c0
movb $0x0, 0x17(%rsp,%r13)
movq %rbx, %r13
movb 0x18(%rsp), %bpl
testb %bpl, %bpl
je 0x11de6
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 0x11dce
cmpq $0x6, %r14
jl 0x11e50
cmpl $0x4d415243, 0xa0(%rsp) # imm = 0x4D415243
sete %dl
movb 0xa4(%rsp), %al
leal -0x1(%rax), %ecx
cmpb $0x7, %cl
setb %sil
movb 0xa5(%rsp), %cl
cmpb $0x8, %cl
setb %dil
andb %dl, %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x11e50
movzbl %al, %eax
movzbl %cl, %ecx
movabsq $0x600000001, %rdx      # imm = 0x600000001
movq %rdx, (%r13)
movw %ax, 0x8(%r13)
movw %cx, 0xa(%r13)
movl $0x3, 0xc(%r13)
jmp 0x121df
cmpq $0x4, %r14
setge %al
movb 0xa3(%rsp), %cl
cmpb $0x5, %cl
setb %dl
andb %al, %dl
cmpb $0x1, %dl
jne 0x11ead
movl 0xa0(%rsp), %eax
cmpl $0x14d4141, %eax        # imm = 0x14D4141
jg 0x11f23
cmpl $0x1494142, %eax        # imm = 0x1494142
je 0x120af
cmpl $0x1494254, %eax        # imm = 0x1494254
je 0x12130
cmpl $0x1495343, %eax        # imm = 0x1495343
jne 0x120e5
movabsq $0xa00000003, %rax      # imm = 0xA00000003
jmp 0x120d4
cmpq $0x10, %r14
jl 0x11ed3
movdqa 0xa0(%rsp), %xmm0
pcmpeqb 0x8682c(%rip), %xmm0    # 0x986f0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x11f53
cmpq $0x4, %r14
jl 0x12001
cmpb $0x40, 0xa0(%rsp)
jne 0x12001
movl 0xa0(%rsp), %eax
cmpl $0x947523f, %eax        # imm = 0x947523F
jle 0x11f9b
cmpl $0x9475240, %eax        # imm = 0x9475240
je 0x11fa9
cmpl $0x9515340, %eax        # imm = 0x9515340
je 0x11fa9
cmpl $0x94f4340, %eax        # imm = 0x94F4340
je 0x11fa9
jmp 0x12001
cmpl $0x4464342, %eax        # imm = 0x4464342
je 0x120ca
cmpl $0x2464342, %eax        # imm = 0x2464342
je 0x1213f
cmpl $0x14d4142, %eax        # imm = 0x14D4142
jne 0x120e5
movabsq $0x400000001, %rax      # imm = 0x400000001
jmp 0x120d4
movabsq $0x800000002, %rax      # imm = 0x800000002
movq %rax, (%r13)
xorl %ebp, %ebp
cmpq $0x15, %r14
jl 0x121e1
cmpb $0x76, 0xb0(%rsp)
jne 0x121e1
leaq 0xb1(%rsp), %rsi
leaq (%rsp,%r14), %rdx
addq $0xa0, %rdx
movq %r13, %rdi
callq 0x1240b
jmp 0x121e1
cmpl $0x9444840, %eax        # imm = 0x9444840
je 0x11fa9
cmpl $0x9475040, %eax        # imm = 0x9475040
jne 0x12001
movabsq $0x300000001, %rax      # imm = 0x300000001
movq %rax, (%r13)
cmpq $0x9, %r14
jl 0x120d8
movl $0x9444840, %eax        # imm = 0x9444840
xorl 0xa0(%rsp), %eax
movl $0x3a4e5609, %ecx       # imm = 0x3A4E5609
xorl 0xa3(%rsp), %ecx
orl %eax, %ecx
jne 0x120d8
leaq 0xa7(%rsp), %rsi
leaq (%rsp,%r14), %rdx
addq $0xa0, %rdx
movq %r13, %rdi
callq 0x1240b
jmp 0x121df
cmpq $0x8, %r14
jl 0x12023
cmpl $0xdddd3464, 0xa0(%rsp) # imm = 0xDDDD3464
jne 0x12023
movabsq $0x1500000004, %rax     # imm = 0x1500000004
jmp 0x121db
movq %r13, 0x8(%rsp)
leaq (%rsp,%r14), %rbx
addq $0xa0, %rbx
leaq 0x86cb7(%rip), %r13     # 0x98cf1
movb $0x7b, %bpl
cmpq %rbx, %r15
jae 0x12076
movzbl (%r15), %r12d
callq 0x4510
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r12,2)
jne 0x1205e
cmpb %bpl, %r12b
jne 0x12076
incq %r13
incq %r15
movb (%r13), %bpl
testb %bpl, %bpl
jne 0x1203d
movabsq $0xe00000000, %rax      # imm = 0xE00000000
jmp 0x120a2
cmpq $0x9, %r14
jl 0x12174
movabsq $0x6867347470797263, %rax # imm = 0x6867347470797263
cmpq %rax, 0xa0(%rsp)
jne 0x12174
movabsq $0x1400000000, %rax     # imm = 0x1400000000
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x121df
movabsq $0x500000003, %rax      # imm = 0x500000003
movq %rax, (%r13)
movl $0xffffffff, 0x8(%r13)  # imm = 0xFFFFFFFF
jmp 0x121df
movabsq $0x900000002, %rax      # imm = 0x900000002
movq %rax, (%r13)
movl $0xffff0001, 0x8(%r13)  # imm = 0xFFFF0001
jmp 0x121df
cmpl $0x697a67, 0x18(%rsp)   # imm = 0x697A67
je 0x121ab
xorl %eax, %eax
movl $0x2600, %ecx           # imm = 0x2600
movb 0xa0(%rsp,%rax), %dl
cmpb $0x1f, %dl
ja 0x1211b
cmpb $0xd, %dl
ja 0x121df
movzbl %dl, %edx
btl %edx, %ecx
jae 0x121df
incq %rax
cmpq %rax, %r14
jne 0x120fa
movl $0x2, 0x4(%r13)
jmp 0x121df
movabsq $0xc00000003, %rax      # imm = 0xC00000003
jmp 0x121db
movzbl %cl, %eax
movabsq $0x900000002, %rcx      # imm = 0x900000002
movq %rcx, (%r13)
movw %ax, 0x8(%r13)
movzbl 0xa4(%rsp), %eax
xorl %ebp, %ebp
cmpw $0x3, %ax
cmovael %ebp, %eax
cmpq $0x5, %r14
cmovll %ebp, %eax
movw %ax, 0xa(%r13)
jmp 0x121e1
movzbl 0xa0(%rsp), %ebp
cmpl $0x40, %ebp
movq 0x8(%rsp), %r13
je 0x121bd
cmpl $0x3e, %ebp
jne 0x121f5
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x1249d
testl %eax, %eax
je 0x121b7
movabsq $0x1000000001, %rax     # imm = 0x1000000001
jmp 0x121db
movabsq $0xb00000003, %rax      # imm = 0xB00000003
jmp 0x121db
cmpb $0x40, %bpl
jne 0x121f5
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x1249d
testl %eax, %eax
je 0x121f5
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 0x12561
testl %eax, %eax
jle 0x120f3
movb 0x4a0(%rsp), %bpl
testb %bpl, %bpl
je 0x1225f
xorl %eax, %eax
leaq 0x86acc(%rip), %rcx     # 0x98cfc
movl %ebp, %edx
cmpq $0x1f, %rax
je 0x12263
movb (%rax,%rcx), %sil
cmpb %sil, %dl
setne %dl
cmpb $0x5a, %sil
setne %sil
testb %sil, %dl
jne 0x1225f
movb 0x4a1(%rsp,%rax), %dl
incq %rax
testb %dl, %dl
jne 0x12232
jmp 0x12268
xorl %eax, %eax
jmp 0x12268
movl $0x1f, %eax
movl 0x14(%rsp), %ecx
leal 0x9(,%rcx,2), %ecx
cmpl %ecx, %eax
jge 0x122bb
cmpl $0x1, 0xc(%r13)
jne 0x122e0
testb %bpl, %bpl
je 0x122ca
xorl %eax, %eax
leaq 0x86a91(%rip), %rcx     # 0x98d1d
movl %ebp, %edx
movb (%rax,%rcx), %sil
cmpb $0x2b, %sil
je 0x122cc
cmpb %sil, %dl
setne %dl
cmpb $0x5a, %sil
setne %sil
testb %sil, %dl
jne 0x122ca
movb 0x4a1(%rsp,%rax), %dl
incq %rax
testb %dl, %dl
jne 0x1228e
jmp 0x122cc
movabsq $0x300000001, %rax      # imm = 0x300000001
jmp 0x120d4
xorl %eax, %eax
cmpl $0x6, %eax
jne 0x122e0
movabsq $0x700000003, %rax      # imm = 0x700000003
jmp 0x121db
leaq 0x86a3d(%rip), %rsi     # 0x98d24
leaq 0x18(%rsp), %rdi
callq 0x40e0
testq %rax, %rax
je 0x12349
testb %bpl, %bpl
je 0x12333
xorl %eax, %eax
leaq 0x86a24(%rip), %rcx     # 0x98d28
movl %ebp, %edx
movb (%rax,%rcx), %sil
cmpb $0x2b, %sil
je 0x12335
cmpb %sil, %dl
setne %dl
cmpb $0x5a, %sil
setne %sil
testb %sil, %dl
jne 0x12333
movb 0x4a1(%rsp,%rax), %dl
incq %rax
testb %dl, %dl
jne 0x12306
jmp 0x12335
xorl %eax, %eax
cmpl $0x6, %eax
jne 0x12349
movabsq $0x1300000003, %rax     # imm = 0x1300000003
jmp 0x121db
leaq 0x8c076(%rip), %rsi     # 0x9e3c6
leaq 0x18(%rsp), %rdi
callq 0x40e0
testq %rax, %rax
je 0x123b2
testb %bpl, %bpl
je 0x1239c
xorl %eax, %eax
leaq 0x869c2(%rip), %rcx     # 0x98d2f
movl %ebp, %edx
movb (%rax,%rcx), %sil
cmpb $0x2b, %sil
je 0x1239e
cmpb %sil, %dl
setne %dl
cmpb $0x5a, %sil
setne %sil
testb %sil, %dl
jne 0x1239c
movb 0x4a1(%rsp,%rax), %dl
incq %rax
testb %dl, %dl
jne 0x1236f
jmp 0x1239e
xorl %eax, %eax
cmpl $0x5, %eax
jne 0x123b2
movabsq $0x1200000003, %rax     # imm = 0x1200000003
jmp 0x121db
testb %bpl, %bpl
je 0x120f3
xorl %eax, %eax
leaq 0x86971(%rip), %rcx     # 0x98d35
cmpq $0x3, %rax
je 0x123fc
movb (%rax,%rcx), %dl
cmpb %dl, %bpl
setne %sil
cmpb $0x5a, %dl
setne %dl
testb %dl, %sil
jne 0x123f1
movb 0x4a1(%rsp,%rax), %bpl
incq %rax
testb %bpl, %bpl
jne 0x123c4
jmp 0x123f3
xorl %eax, %eax
cmpl $0x3, %eax
jl 0x120f3
movabsq $0xd00000004, %rax      # imm = 0xD00000004
jmp 0x121db