// File: /workspace/github_c_makefile_star2_O2/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 $0xcb8, %rsp            # imm = 0xCB8
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0xb0(%rsp), %rsi
pushq $0x12
popq %rdx
callq 0xd4e0
pushq $-0x1
popq %rbp
testq %rax, %rax
js 0xff90
movq %rax, %r13
movdqa 0x67ef2(%rip), %xmm0    # 0x776d0
movdqu %xmm0, (%r15)
orw $-0x1, 0x10(%r15)
andq $0x0, 0x18(%r15)
cmpq $0x2, %rax
jb 0xf84c
cmpb $0x1f, 0xb0(%rsp)
jne 0xf84c
cmpb $-0x75, 0xb1(%rsp)
jne 0xf84c
movl $0x1, 0xc(%r15)
cmpq $0x12, %r13
jb 0xf995
testb $0x4, 0xb3(%rsp)
je 0xf995
movl 0xbc(%rsp), %eax
cmpl $0x24342, %eax          # imm = 0x24342
je 0xf98e
cmpl $0x465a4152, %eax       # imm = 0x465A4152
jne 0xf995
pushq $0x5
jmp 0xf990
cmpq $0xa, %r13
jb 0xf8ce
leaq 0x684e2(%rip), %rsi     # 0x77d3b
leaq 0xb0(%rsp), %rdi
pushq $0x3
popq %rdx
callq 0x44d0
testl %eax, %eax
jne 0xf8d4
leaq 0xb4(%rsp), %rbx
leaq 0x684c3(%rip), %rsi     # 0x77d3f
pushq $0x6
popq %rdx
movq %rbx, %rdi
callq 0x44d0
testl %eax, %eax
je 0xf8a1
leaq 0x684b4(%rip), %rsi     # 0x77d46
pushq $0x6
popq %rdx
movq %rbx, %rdi
callq 0x44d0
testl %eax, %eax
jne 0xf8d4
movl $0x4, 0xc(%r15)
movzbl 0xb3(%rsp), %eax
addl $-0x30, %eax
movw %ax, 0x10(%r15)
xorl %ebp, %ebp
cmpb $0x31, 0xb4(%rsp)
je 0xff90
jmp 0xfaeb
cmpq $0x6, %r13
jb 0xf8ef
leaq 0x68195(%rip), %rsi     # 0x77a70
leaq 0xb0(%rsp), %rdi
pushq $0x6
popq %rdx
callq 0x44d0
testl %eax, %eax
je 0xf92c
cmpq $0x4, %r13
jb 0xf90f
cmpl $0xfd2fb528, 0xb0(%rsp) # imm = 0xFD2FB528
jne 0xf90f
movl $0x7, 0xc(%r15)
jmp 0xff8e
leaq 0xb0(%rsp), %rsi
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
callq 0xd4e0
movq %rax, %r14
jmp 0xfa82
movl $0x6, 0xc(%r15)
leaq 0x4b0(%rsp), %r13
movl $0x800, %edx            # imm = 0x800
movq %r14, %rdi
movq %r13, %rsi
callq 0xd4e0
testq %rax, %rax
js 0xf985
movq %rax, %rbx
leaq 0x28(%rsp), %r14
movl $0x88, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4260
pushq $0x9
popq %rdi
callq 0x4980
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x4110
testl %eax, %eax
je 0xfd05
pushq $-0x1
popq %r14
jmp 0xfa82
pushq $0x2
popq %rax
movl %eax, 0xc(%r15)
cmpq $0x9, %r13
jb 0xf9c4
cmpb $0x8, 0xb2(%rsp)
jne 0xf9c4
movb 0xb8(%rsp), %al
xorl %ecx, %ecx
cmpb $0x4, %al
sete %cl
cmpb $0x2, %al
leal -0x1(%rcx,%rcx), %eax
pushq $0x9
popq %rcx
cmovnel %eax, %ecx
movw %cx, 0x10(%r15)
leaq 0x4b0(%rsp), %r13
movl $0x800, %edx            # imm = 0x800
movq %r14, %rdi
movq %r13, %rsi
callq 0xd4e0
pushq $-0x1
popq %r14
testq %rax, %rax
js 0xfa82
pxor %xmm0, %xmm0
leaq 0x28(%rsp), %rdi
movdqu %xmm0, 0x40(%rdi)
movq %r13, (%rdi)
movl %eax, 0x8(%rdi)
leaq 0xb0(%rsp), %rax
movq %rax, 0x18(%rdi)
movl $0x400, 0x20(%rdi)      # imm = 0x400
leaq 0x66f59(%rip), %rdx     # 0x76970
pushq $0x1f
popq %rsi
pushq $0x70
popq %rcx
callq 0x43e0
testl %eax, %eax
jne 0xfa82
movq %r15, 0x8(%rsp)
leaq 0x28(%rsp), %r14
pushq $0x2
popq %rbx
cmpl $0x0, 0x48(%rsp)
je 0xfa64
movq %r14, %rdi
movl %ebx, %esi
callq 0x4380
testl %eax, %eax
je 0xfa33
cmpl $0x1, %eax
jne 0xfa64
movq 0x28(%rsp), %r15
cmpq %r15, %r13
je 0xfa64
movq %r14, %rdi
callq 0x46e0
movq %r15, %r13
jmp 0xfa33
leaq 0x28(%rsp), %rdi
movq 0x18(%rdi), %r14
leaq 0xb0(%rsp), %rax
subq %rax, %r14
callq 0x44e0
movq 0x8(%rsp), %r15
testq %r14, %r14
js 0xff90
je 0xfaeb
testq %r12, %r12
je 0xfaf8
cmpb $0x2d, (%r12)
jne 0xfaa1
cmpb $0x0, 0x1(%r12)
je 0xfaf8
leaq 0x68429(%rip), %rsi     # 0x77ed1
movq %r12, %rdi
callq 0x40e0
testq %rax, %rax
jne 0xfac0
movq %r12, %rdi
callq 0x41d0
addq %r12, %rax
pushq $0x3
popq %rbx
xorl %ecx, %ecx
movq %rax, %rsi
movb (%rsi), %dl
cmpq %r12, %rsi
jbe 0xff2e
movl %edx, %edi
andb $-0x2, %dil
cmpb $0x2e, %dil
je 0xfc9e
decq %rsi
incq %rcx
jmp 0xfac8
movl $0xf, 0x4(%r15)
jmp 0xff8e
movb $0x0, 0x28(%rsp)
cmpq $0x5, %r14
jle 0xfb68
movl 0xb0(%rsp), %eax
cmpl $0x4d415243, %eax       # imm = 0x4D415243
sete %sil
movb 0xb4(%rsp), %cl
leal -0x1(%rcx), %edx
cmpb $0x7, %dl
setb %dil
movb 0xb5(%rsp), %dl
cmpb $0x8, %dl
setb %r8b
andb %sil, %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
jne 0xfb71
movzbl %cl, %eax
movzbl %dl, %ecx
movabsq $0x600000001, %rdx      # imm = 0x600000001
movq %rdx, (%r15)
movw %ax, 0x8(%r15)
movw %cx, 0xa(%r15)
movl $0x3, 0xc(%r15)
jmp 0xff8e
movb 0xb3(%rsp), %al
jmp 0xfb74
shrl $0x18, %eax
cmpq $0x4, %r14
jl 0xfbdc
cmpb $0x4, %al
ja 0xfbdc
movl 0xb0(%rsp), %ecx
cmpl $0x1494142, %ecx        # imm = 0x1494142
je 0xfea4
cmpl $0x1494254, %ecx        # imm = 0x1494254
je 0xfe95
cmpl $0x1495343, %ecx        # imm = 0x1495343
je 0xfdf2
cmpl $0x4464342, %ecx        # imm = 0x4464342
je 0xfe35
cmpl $0x2464342, %ecx        # imm = 0x2464342
je 0xfdfe
cmpl $0x14d4142, %ecx        # imm = 0x14D4142
jne 0xfe4f
movabsq $0x400000001, %rax      # imm = 0x400000001
jmp 0xfe3f
cmpq $0x10, %r14
jl 0xfc02
movdqa 0xb0(%rsp), %xmm0
pcmpeqb 0x67aed(%rip), %xmm0    # 0x776e0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0xfdab
movl 0xb0(%rsp), %eax
cmpq $0x4, %r14
jl 0xfce1
cmpb $0x40, 0xb0(%rsp)
jne 0xfce1
cmpl $0x9444840, %eax        # imm = 0x9444840
je 0xfc48
cmpl $0x9475040, %eax        # imm = 0x9475040
je 0xfc48
cmpl $0x9475240, %eax        # imm = 0x9475240
je 0xfc48
cmpl $0x9515340, %eax        # imm = 0x9515340
je 0xfc48
cmpl $0x94f4340, %eax        # imm = 0x94F4340
jne 0xfce1
movabsq $0x300000001, %rax      # imm = 0x300000001
movq %rax, (%r15)
cmpq $0x9, %r14
jb 0xfe42
leaq 0x6810c(%rip), %rsi     # 0x77d72
leaq 0xb0(%rsp), %rdi
pushq $0x7
popq %rdx
callq 0x44d0
testl %eax, %eax
jne 0xfe42
leaq 0xb7(%rsp), %rsi
leaq (%rsp,%r14), %rdx
addq $0xb0, %rdx
movq %r15, %rdi
callq 0x102aa
jmp 0xff8e
cmpb $0x2e, %dl
jne 0xff46
cmpq $0x3, %rcx
je 0xff05
cmpq $0x4, %rcx
jne 0xff39
pushq $0x4
popq %rbx
cmpb $0x62, 0x1(%rsi)
jne 0xff4d
cmpb $0x67, 0x2(%rsi)
jne 0xff4d
cmpb $0x7a, 0x3(%rsi)
je 0xff11
jmp 0xff4d
cmpq $0x8, %r14
setge %cl
cmpl $0xdddd3464, %eax       # imm = 0xDDDD3464
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0xfd45
movabsq $0x1500000004, %rax     # imm = 0x1500000004
jmp 0xff8b
leaq 0x28(%rsp), %rax
movq %r13, (%rax)
movq %rbx, 0x8(%rax)
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq %rax, 0x18(%rbx)
movq $0x400, 0x20(%rbx)      # imm = 0x400
movq %rbx, %rdi
xorl %esi, %esi
callq 0x41b0
cmpl $0x2, %eax
jae 0xfef4
movq 0x50(%rsp), %r14
jmp 0xfef8
pushq $0x9
popq %rax
movl %eax, 0x14(%rsp)
leaq 0xb0(%rsp,%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x6801a(%rip), %rbx     # 0x77d7a
leaq 0xb0(%rsp), %rax
movb (%rbx), %bpl
testb %bpl, %bpl
je 0xff81
cmpq 0x20(%rsp), %rax
jae 0xfebb
movq %rax, %r12
movb (%rax), %r13b
movsbl %r13b, %edi
callq 0x15ecb
testl %eax, %eax
je 0xfd97
movq %r12, %rax
jmp 0xfda6
cmpb %bpl, %r13b
jne 0xfebb
movq %r12, %rax
incq %rbx
incq %rax
jmp 0xfd68
movabsq $0x800000002, %rax      # imm = 0x800000002
movq %rax, (%r15)
xorl %ebp, %ebp
cmpq $0x15, %r14
jb 0xff90
cmpb $0x76, 0xc0(%rsp)
jne 0xff90
leaq 0xc1(%rsp), %rsi
leaq (%rsp,%r14), %rdx
addq $0xb0, %rdx
movq %r15, %rdi
callq 0x102aa
jmp 0xff90
movabsq $0xa00000003, %rax      # imm = 0xA00000003
jmp 0xfe3f
movabsq $0x900000002, %rcx      # imm = 0x900000002
movq %rcx, (%r15)
movzbl %al, %eax
movw %ax, 0x8(%r15)
movzbl 0xb4(%rsp), %eax
xorl %ebp, %ebp
cmpw $0x3, %ax
cmovael %ebp, %eax
cmpq $0x5, %r14
cmovbl %ebp, %eax
movw %ax, 0xa(%r15)
jmp 0xff90
movabsq $0x900000002, %rax      # imm = 0x900000002
movq %rax, (%r15)
movl $0xffff0001, 0x8(%r15)  # imm = 0xFFFF0001
jmp 0xff8e
movq %r15, 0x8(%rsp)
cmpl $0x697a67, 0x28(%rsp)   # imm = 0x697A67
je 0xffd2
leaq (%rsp,%r14), %rsi
addq $0xb0, %rsi
leaq 0xb0(%rsp), %rdi
callq 0x103f8
xorl %ebp, %ebp
testl %eax, %eax
je 0xff90
movq 0x8(%rsp), %rax
movl $0x2, 0x4(%rax)
jmp 0xff90
movabsq $0xc00000003, %rax      # imm = 0xC00000003
jmp 0xff8b
movabsq $0x500000003, %rax      # imm = 0x500000003
movq %rax, (%r15)
orl $-0x1, 0x8(%r15)
jmp 0xff8e
cmpq $0x9, %r14
setge %cl
movq 0xb0(%rsp), %rax
movabsq $0x6867347470797263, %rdx # imm = 0x6867347470797263
cmpq %rdx, %rax
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xffa4
movabsq $0x1400000000, %rax     # imm = 0x1400000000
jmp 0xff8b
pushq $-0x1
popq %r14
movq %rbx, %rdi
callq 0x4730
jmp 0xfa82
cmpb $0x67, 0x1(%rsi)
jne 0xff4d
cmpb $0x7a, 0x2(%rsi)
jne 0xff4d
decq %rsi
movq %rsi, %rcx
movb (%rsi), %dl
decq %rsi
cmpq %r12, %rcx
jbe 0xff2b
movl %edx, %ecx
andb $-0x2, %cl
cmpb $0x2e, %cl
jne 0xff14
incq %rsi
cmpb $0x2e, %dl
jne 0xff46
subq %rsi, %rax
movq %rax, %rcx
leaq -0xa(%rcx), %rax
movq %rcx, %rbx
cmpq $-0x7, %rax
jae 0xff4d
movb $0x0, 0x28(%rsp)
jmp 0xff63
incq %rsi
leaq -0x1(%rbx), %rdx
leaq 0x28(%rsp), %rdi
callq 0x43c0
movb $0x0, 0x27(%rsp,%rbx)
leaq 0x28(%rsp), %rbx
movb (%rbx), %al
testb %al, %al
je 0xfafd
movsbl %al, %edi
callq 0x10297
movb %al, (%rbx)
incq %rbx
jmp 0xff68
movabsq $0xe00000000, %rax      # imm = 0xE00000000
movq %rax, (%r15)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0xcb8, %rsp            # imm = 0xCB8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x40, %al
je 0xffe6
movzbl %al, %eax
cmpl $0x3e, %eax
jne 0x10008
leaq 0xb0(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x10334
testl %eax, %eax
je 0x10008
movabsq $0x1000000001, %rax     # imm = 0x1000000001
jmp 0xff8b
movabsq $0xb00000003, %rax      # imm = 0xB00000003
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
jmp 0xff8e
leaq 0xb0(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x10334
testl %eax, %eax
je 0x10008
movabsq $0x1100000001, %rax     # imm = 0x1100000001
jmp 0xff8b
movq %r15, 0x8(%rsp)
xorl %r12d, %r12d
leaq 0xb0(%rsp), %rbx
movq %rbx, 0x18(%rsp)
movq %rbx, %r13
xorl %r15d, %r15d
cmpq 0x20(%rsp), %r13
jae 0x10171
movsbl (%r13), %ebp
cmpl $0x20, %ebp
jl 0x1004c
movl %ebp, %edi
callq 0x15ee4
testl %eax, %eax
je 0x100ba
orl $0x1, %r15d
jmp 0x1015c
cmpb $0xd, %bpl
ja 0xfe62
movzbl %bpl, %eax
movl $0x2600, %ecx           # imm = 0x2600
btl %eax, %ecx
jae 0xfe62
movl %r15d, %ecx
andl $-0x3, %ecx
movb $0x69, %al
cmpl $0x1, %ecx
je 0x10132
movb $0x43, %al
cmpl $0x5, %r15d
je 0x10132
movq %rbx, %rax
movq 0x18(%rsp), %rdx
subq %rdx, %rax
movq %rax, %rcx
decq %rcx
je 0x10116
cmpq $0x5, %rax
jb 0x100b6
movq 0x18(%rsp), %rax
cmpb $0x3a, 0x2(%rax)
jne 0x100b6
movb $0x4f, %al
movq 0x18(%rsp), %rcx
cmpb $0x3a, 0x4(%rcx)
je 0x10132
movb $0x5a, %al
jmp 0x10132
cmpb $0x2d, %bpl
je 0x100c9
movzbl %bpl, %eax
cmpl $0x2b, %eax
jne 0x100d0
cmpq 0x18(%rsp), %r13
je 0x10110
leaq 0x68940(%rip), %rdi     # 0x78a17
movl %ebp, %esi
pushq $0xb
popq %rdx
callq 0x4550
testq %rax, %rax
setne %al
cmpq 0x18(%rsp), %r13
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1010a
movsbl -0x1(%r13), %edi
callq 0x15ee4
testl %eax, %eax
je 0x1010a
orl $0x4, %r15d
jmp 0x1015c
orl $0x8, %r15d
jmp 0x1015c
orl $0x2, %r15d
jmp 0x1015c
movb (%rdx), %cl
addb $-0x2a, %cl
movb $0x5a, %al
cmpb $0x5, %cl
jae 0x10132
shlb $0x3, %cl
movabsq $0x73735a7343, %rax     # imm = 0x73735A7343
shrq %cl, %rax
leal 0x1(%r12), %ecx
movslq %r12d, %rdx
movb %al, 0x4b0(%rsp,%rdx)
cmpb $0x9, %bpl
jne 0x10167
cmpl $0x15, %r12d
jg 0x10167
leaq 0x1(%r13), %rax
movq %rax, 0x18(%rsp)
xorl %r15d, %r15d
movl %ecx, %r12d
incq %r13
incq %rbx
jmp 0x10023
pushq $0xb
popq %rax
movl %eax, 0x14(%rsp)
movl %ecx, %r12d
movslq %r12d, %rax
movb $0x0, 0x4b0(%rsp,%rax)
testl %eax, %eax
jle 0xfe62
leaq 0x67bfa(%rip), %rsi     # 0x77d85
leaq 0x4b0(%rsp), %rdi
callq 0x103d0
cmpl 0x14(%rsp), %eax
jge 0x101d1
movq 0x8(%rsp), %rbx
cmpl $0x1, 0xc(%rbx)
jne 0x101ef
leaq 0x67bf6(%rip), %rsi     # 0x77da6
leaq 0x4b0(%rsp), %rdi
callq 0x103d0
cmpl $0x6, %eax
jne 0x101ef
movabsq $0x700000003, %rax      # imm = 0x700000003
jmp 0x10263
movabsq $0x300000001, %rax      # imm = 0x300000001
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movl $0xffff0001, 0x8(%rcx)  # imm = 0xFFFF0001
jmp 0xff8e
leaq 0x67bb7(%rip), %rsi     # 0x77dad
leaq 0x28(%rsp), %rdi
callq 0x40e0
testq %rax, %rax
je 0x1022a
leaq 0x67ba5(%rip), %rsi     # 0x77db1
leaq 0x4b0(%rsp), %rdi
callq 0x103d0
cmpl $0x6, %eax
jne 0x1022a
movabsq $0x1300000003, %rax     # imm = 0x1300000003
jmp 0x10263
leaq 0x6d188(%rip), %rsi     # 0x7d3b9
leaq 0x28(%rsp), %rdi
callq 0x40e0
testq %rax, %rax
je 0x1026b
leaq 0x67b71(%rip), %rsi     # 0x77db8
leaq 0x4b0(%rsp), %rdi
callq 0x103d0
cmpl $0x5, %eax
jne 0x1026b
movabsq $0x1200000003, %rax     # imm = 0x1200000003
movq %rax, (%rbx)
jmp 0xff8e
leaq 0x67b4c(%rip), %rsi     # 0x77dbe
leaq 0x4b0(%rsp), %rdi
callq 0x103d0
cmpl $0x3, %eax
jl 0xfe62
movabsq $0xd00000004, %rax      # imm = 0xD00000004
jmp 0xffdc