// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/path.c
// Function: asg_read
asg_t *asg_read(const char *fn)
{
    int dret, ret, is_fa, is_fq, is_gfa;
    gzFile fp;
    kstream_t *ks;
    asg_seg_t *fa_seg;
    uint64_t lineno;
    asg_t *g;
    kstring_t s = {0, 0, 0}, fa_seq = {0, 0, 0};

    fp = fn && strcmp(fn, "-")? gzopen(fn, "r") : gzdopen(0, "r");
    if (fp == 0) return 0;
    ks = ks_init(fp);
    g = asg_init();
    lineno = 0;
    fa_seg = 0;
    is_fa = is_fq = is_gfa = 0;
    
    while (ks_getuntil(ks, KS_SEP_LINE, &s, &dret) >= 0) {
        ++lineno;
        if (s.l == 0) // empty line
            continue;

        ret = 0;
        if (!is_gfa && s.s[0] == '>') { // FASTA header
            is_fa = 1;
            if (fa_seg) asg_update_seg_seq(fa_seg, fa_seq.l, fa_seq.s);
            // parse header
            asg_parse_fa_hdr(g, s.s, &fa_seg);
            fa_seq.l = 0;
        } else if (!is_gfa && s.s[0] == '@') { // FASTQ header
            is_fq = 1;
            // parse and write header
            asg_parse_fa_hdr(g, s.s, &fa_seg);
            // parse sequence
            if(ks_getuntil(ks, KS_SEP_LINE, &s, &dret) < 0)
                ret = PARSE_Q_ERR;
            else
                asg_update_seg_seq(fa_seg, s.l, s.s);
            ++lineno;
            // skip quality score lines
            if (ks_getuntil(ks, KS_SEP_LINE, &s, &dret) < 0 ||
                    ks_getuntil(ks, KS_SEP_LINE, &s, &dret) < 0)
                ret = PARSE_Q_ERR;
            lineno += 2;
        } else if (is_fa) { // FASTA sequence line
            // append sequence to seg
            kputsn(s.s, s.l, &fa_seq);
        } else {
            is_gfa = 1;
            if (s.s[0] == 'S')
                ret = gfa_parse_S(g, s.s);
            else if (s.s[0] == 'L')
                ret = gfa_parse_L(g, s.s);
        }

        if (ret < 0) {
            fprintf(stderr, "[E::%s] failed to parse %s file: %c-line at line %lu (error code %d)\n",
                    __func__, is_fa? "FASTA" : (is_fq? "FASTQ" : "GFA"), s.s[0], lineno, ret);
            exit(EXIT_FAILURE);
        }
    }
    if (is_fa && fa_seg) asg_update_seg_seq(fa_seg, fa_seq.l, fa_seq.s);

    free(fa_seq.s);
    free(s.s);
    ks_destroy(ks);
    gzclose(fp);

    // add vtx, fix symmetric arcs, sort and index etc
    asg_finalize_asmg(g);

    return g;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
xorpd %xmm0, %xmm0
movapd %xmm0, 0x90(%rsp)
movq $0x0, 0xa0(%rsp)
testq %rdi, %rdi
je 0xb707
movq %rdi, %rbx
leaq 0xe160(%rip), %rsi      # 0x1984d
callq 0x3250
testl %eax, %eax
je 0xb707
leaq 0xdd7c(%rip), %rsi      # 0x19479
movq %rbx, %rdi
callq 0x3350
jmp 0xb715
leaq 0xdd6b(%rip), %rsi      # 0x19479
xorl %edi, %edi
callq 0x3110
movq %rax, %rbx
testq %rax, %rax
je 0xc39b
movl $0x1, %edi
movl $0x20, %esi
callq 0x3240
movq %rax, %r15
movq %rbx, 0xc0(%rsp)
movq %rbx, 0x10(%rax)
movl 0x8(%rax), %eax
andl $0x3, %eax
orl $0x40000, %eax          # imm = 0x40000
movl %eax, 0x8(%r15)
movl $0x10000, %edi          # imm = 0x10000
callq 0x32f0
movq %rax, 0x18(%r15)
callq 0xa73a
movq %rax, 0x60(%rsp)
leaq 0x70(%rsp), %rax
movq $0x0, (%rax)
leaq 0x90(%rsp), %rbp
xorl %r13d, %r13d
movq $0x0, 0xb0(%rsp)
movq $0x0, 0x68(%rsp)
movl $0x0, 0x7c(%rsp)
movl $0x0, 0x10(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
leaq 0x5c(%rsp), %rbx
movq %r15, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0xc413
testl %eax, %eax
js 0xc2a3
incq %r12
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0xb7ad
cmpl $0x0, 0x10(%rsp)
je 0xb810
testl %r14d, %r14d
je 0xb868
movq 0xa0(%rsp), %rsi
movslq %eax, %rbx
movq %r13, %r14
leaq (%rbx,%r13), %rax
incq %rax
cmpq 0xb0(%rsp), %rax
jae 0xb8c8
movq 0x68(%rsp), %r13
jmp 0xb917
movq 0xa0(%rsp), %rbx
movzbl (%rbx), %ecx
cmpl $0x40, %ecx
je 0xb941
cmpl $0x3e, %ecx
jne 0xb7da
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xb840
movl %r13d, %esi
movq 0x68(%rsp), %rdx
callq 0xc5da
movq 0x60(%rsp), %rdi
movq %rbx, %rsi
leaq 0x70(%rsp), %rdx
callq 0xc635
movl $0x1, %r14d
xorl %r13d, %r13d
movl $0x0, 0x10(%rsp)
jmp 0xbe68
movq 0xa0(%rsp), %r14
movzbl (%r14), %eax
cmpl $0x4c, %eax
je 0xb98b
cmpl $0x53, %eax
jne 0xbe5d
leaq 0x2(%r14), %rdi
addq $0x3, %r14
xorl %ecx, %ecx
xorl %eax, %eax
movzbl -0x1(%r14), %ebx
cmpl $0x9, %ebx
je 0xb8a0
testl %ebx, %ebx
jne 0xb8c3
movb $0x0, -0x1(%r14)
testl %eax, %eax
je 0xb8b3
cmpl $0x1, %eax
jne 0xb8b6
jmp 0xbeed
movq %rdi, %rcx
testb %bl, %bl
je 0xbe6f
incl %eax
movq %r14, %rdi
incq %r14
jmp 0xb892
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rsi, %r13
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq 0x68(%rsp), %rdi
movq %rsi, 0xb0(%rsp)
callq 0x3330
movq %r13, %rsi
movq %rax, %r13
leaq (%r14,%r13), %rdi
movq %rbx, %rdx
callq 0x32c0
addq %rbx, %r14
movq %r13, 0x68(%rsp)
movb $0x0, (%r13,%r14)
movq %r14, %r13
xorl %ebx, %ebx
movl $0x1, %r14d
jmp 0xc10e
movq 0x60(%rsp), %rdi
movq %rbx, %rsi
leaq 0x70(%rsp), %rdx
callq 0xc635
movq %r15, %rdi
movq %rbp, %rsi
leaq 0x5c(%rsp), %rdx
callq 0xc413
testl %eax, %eax
js 0xbe85
movq 0x70(%rsp), %rdi
movl 0x90(%rsp), %esi
movq 0xa0(%rsp), %rdx
callq 0xc5da
xorl %ebx, %ebx
jmp 0xbe8a
movq %r13, 0xa8(%rsp)
addq $0x2, %r14
movq %r14, 0x18(%rsp)
xorl %edi, %edi
movq $-0x1, 0x10(%rsp)
movq $-0x1, 0x88(%rsp)
movq $-0x1, 0x80(%rsp)
movq $0x0, 0x28(%rsp)
xorl %esi, %esi
xorl %r8d, %r8d
xorl %ebx, %ebx
leaq 0xdbea(%rip), %rcx      # 0x195c0
movzbl (%r14), %r13d
cmpl $0x9, %r13d
je 0xb9e9
testl %r13d, %r13d
jne 0xbae8
movb $0x0, (%r14)
cmpl $0x4, %ebx
ja 0xbaca
movl %ebx, %eax
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x18(%rsp), %rsi
jmp 0xbaca
movq 0x18(%rsp), %rbx
movzbl (%rbx), %eax
cmpl $0x2a, %eax
je 0xbaf0
movq %rsi, 0x40(%rsp)
cmpl $0x3a, %eax
jne 0xbb1b
callq 0x34d0
movq (%rax), %rax
movsbq 0x1(%rbx), %rcx
movq $-0x1, 0x10(%rsp)
testb $0x8, 0x1(%rax,%rcx,2)
je 0xba5c
incq %rbx
movq %rbx, %rdi
leaq 0x18(%rsp), %rsi
movl $0xa, %edx
callq 0x33d0
leaq 0xdb5d(%rip), %rcx      # 0x195c0
movq 0x40(%rsp), %rsi
jmp 0xbaf9
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0xbaca
movq 0x18(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2d, %eax
je 0xba8f
cmpl $0x2b, %eax
jne 0xbb6f
xorl %edx, %edx
cmpb $0x2b, %al
setne %dl
movq %rdx, 0x80(%rsp)
jmp 0xbaca
movq 0x18(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2d, %eax
je 0xbabb
movl $0x1, %ebp
cmpl $0x2b, %eax
jne 0xbb7e
xorl %edx, %edx
cmpb $0x2b, %al
setne %dl
movq %rdx, 0x88(%rsp)
incl %ebx
leaq 0x1(%r14), %rax
movq %rax, 0x18(%rsp)
xorl %ebp, %ebp
testb %r13b, %r13b
sete %bpl
addl %ebp, %ebp
testl %ebp, %ebp
jne 0xbc7a
incq %r14
jmp 0xb9d6
movq $0x0, 0x10(%rsp)
leaq 0x1(%r14), %rax
testb %r13b, %r13b
movl $0x0, %edi
cmovneq %rax, %rdi
movl $0x4, %ebx
movl $0x1, %r8d
movl $0x2, %ebp
jmp 0xbae0
movq %rbx, 0xb8(%rsp)
movl %r8d, 0x38(%rsp)
movq %rdi, 0x50(%rsp)
movsbq %al, %rax
movq %rax, 0x30(%rsp)
callq 0x34d0
movq (%rax), %rcx
movl $0x4, %ebx
movl $0x2, %ebp
movq 0x30(%rsp), %rdx
testb $0x8, 0x1(%rcx,%rdx,2)
jne 0xbb88
leaq 0xda65(%rip), %rcx      # 0x195c0
movq 0x40(%rsp), %rsi
movq 0x50(%rsp), %rdi
movl 0x38(%rsp), %r8d
jmp 0xbae0
movl $0x3, %ebx
movl $0x1, %ebp
jmp 0xbae0
movl $0x1, %ebx
jmp 0xbae0
movq 0xb8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movq %rax, 0x30(%rsp)
movl $0xa, %edx
callq 0x32b0
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x48(%rsp), %rdi
movsbq (%rdi), %rcx
testb $0x1, 0x1(%rax,%rcx,2)
jne 0xbbee
xorl %ebp, %ebp
cmpb $0x3a, %cl
jne 0xbc50
movsbq 0x1(%rdi), %rcx
movb $0x1, %dl
testb $0x8, 0x1(%rax,%rcx,2)
je 0xbc57
incq %rdi
leaq 0x48(%rsp), %rsi
movl $0xa, %edx
callq 0x33d0
jmp 0xbc4c
movq $0x0, 0x10(%rsp)
leaq 0x18(%rsp), %rbp
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
movl $0xa, %edx
callq 0x32b0
movq 0x18(%rsp), %rcx
movzbl (%rcx), %edx
addl $-0x44, %edx
cmpl $0xa, %edx
ja 0xbc2d
movl $0x601, %esi            # imm = 0x601
btl %edx, %esi
jae 0xbc2d
addq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdx
leaq 0x1(%rcx), %rax
movq %rax, 0x18(%rsp)
movq (%rdx), %rax
movsbq 0x1(%rcx), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0xbbfc
xorl %ebp, %ebp
movb $0x1, %dl
jmp 0xbc57
movl $0x2, %ebp
xorl %edx, %edx
movq 0x40(%rsp), %rsi
movq 0x50(%rsp), %rdi
movl 0x38(%rsp), %r8d
testb %dl, %dl
leaq 0xd951(%rip), %rcx      # 0x195c0
je 0xbae0
jmp 0xbaf9
cmpl $0x2, %ebp
jne 0xbed0
testl %r8d, %r8d
movl $0x0, %r13d
movq 0x10(%rsp), %rdx
cmovneq %rdx, %r13
sete %al
cmpl $0x4, %ebx
setne %cl
cmovneq %rdx, %r13
movl $0xfffffffc, %ebx       # imm = 0xFFFFFFFC
testb %al, %cl
leaq 0x90(%rsp), %rbp
jne 0xbedd
movq %rdi, 0x50(%rsp)
movl $0x0, 0x24(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x60(%rsp), %rbx
movq %rbx, %rdi
movq %rsi, 0x40(%rsp)
movl $0x1, %edx
callq 0xa82f
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movl $0x1, %edx
callq 0xa82f
movl %eax, %r14d
movq 0x20(%rbx), %rbx
movq 0x20(%rbx), %rax
cmpq %rax, 0x18(%rbx)
jne 0xbd63
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x20, %rax
orq %rcx, %rax
incq %rax
movq %rax, 0x20(%rbx)
movq 0x28(%rbx), %rdi
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
callq 0x3330
movq %rax, 0x28(%rbx)
movq 0x10(%rsp), %rsi
addl %esi, %esi
orq 0x88(%rsp), %rsi
addl %r14d, %r14d
orq 0x80(%rsp), %r14
movq 0x18(%rbx), %rax
movq 0x28(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x18(%rbx)
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
leaq (%rcx,%rax), %rbx
movq %rsi, (%rcx,%rax)
movq %r14, 0x8(%rcx,%rax)
movq $0x0, 0x10(%rcx,%rax)
movq %r13, 0x18(%rcx,%rax)
movq $-0x1, 0x28(%rcx,%rax)
movl $0x0, 0x20(%rcx,%rax)
movq 0x50(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x24(%rsp), %rdx
callq 0x10b2f
testl %eax, %eax
je 0xbe3f
cmpb $0x0, 0x134b8(%rip)     # 0x1f298
je 0xc1a8
movzwl 0x134ab(%rip), %ecx     # 0x1f298
movw %cx, 0x3e(%rsp)
movq 0x48(%rsp), %rsi
movl %eax, %edi
leaq 0x3e(%rsp), %rdx
callq 0x115a2
testq %rax, %rax
je 0xc248
movzbl (%rax), %ecx
movsbl 0x13485(%rip), %edx     # 0x1f29b
cmpl %edx, %ecx
jne 0xc248
movq %rax, %rdi
callq 0x116cd
cvttsd2si %xmm0, %rax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl 0x20(%rbx), %ecx
movl $0xc0000000, %edx       # imm = 0xC0000000
andl %edx, %ecx
orl %eax, %ecx
movl %ecx, 0x20(%rbx)
testl $0x3fffffff, 0x20(%rbx) # imm = 0x3FFFFFFF
je 0xc1e8
movq 0x48(%rsp), %rdi
callq 0x3060
xorl %ebx, %ebx
jmp 0xbedd
xorl %r14d, %r14d
movl $0x1, 0x10(%rsp)
xorl %ebx, %ebx
jmp 0xc10e
movq %rcx, 0x28(%rsp)
movq $0x0, 0x10(%rsp)
xorl %r14d, %r14d
jmp 0xbf0d
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
movq %r15, %rdi
movq %rbp, %rsi
leaq 0x5c(%rsp), %rdx
callq 0xc413
testl %eax, %eax
js 0xbeb2
movq %r15, %rdi
movq %rbp, %rsi
leaq 0x5c(%rsp), %rdx
callq 0xc413
testl %eax, %eax
jns 0xbeb7
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
addq $0x3, %r12
movl $0x0, 0x10(%rsp)
movl $0x1, 0x7c(%rsp)
jmp 0xc10e
movl $0xfffffffc, %ebx       # imm = 0xFFFFFFFC
leaq 0x90(%rsp), %rbp
xorl %r14d, %r14d
movl $0x1, 0x10(%rsp)
jmp 0xc106
movq %rcx, 0x28(%rsp)
cmpb $0x2a, (%rdi)
jne 0xbefb
xorl %eax, %eax
jmp 0xbf00
callq 0x3480
xorl %ecx, %ecx
movq %rax, 0x10(%rsp)
testb %bl, %bl
cmoveq %rcx, %r14
movl $0x0, 0x48(%rsp)
movq $0x0, 0x18(%rsp)
movq %r14, %rdi
leaq 0x18(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x10b2f
movl %eax, %r14d
testl %eax, %eax
je 0xbf4d
movq 0x18(%rsp), %rsi
movl %r14d, %edi
leaq 0xe4cd(%rip), %rdx      # 0x1a413
callq 0x115a2
jmp 0xbf4f
xorl %eax, %eax
xorl %ebx, %ebx
testq %rax, %rax
movq 0x10(%rsp), %rcx
je 0xbf63
cmpb $0x69, (%rax)
jne 0xbf63
movl 0x1(%rax), %ebx
movl %ebx, %eax
testq %rcx, %rcx
je 0xbf74
movq 0x10(%rsp), %rdi
callq 0x3130
movq %r13, 0xa8(%rsp)
testl %ebx, %ebx
movq %rax, 0x30(%rsp)
je 0xbf8d
cmpl %ebx, %eax
jne 0xc146
movq 0x60(%rsp), %rbx
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
xorl %edx, %edx
callq 0xa82f
movq 0x10(%rbx), %rcx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %r13
movq 0x30(%rsp), %rax
movl %eax, 0x10(%r13)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%r13)
testl %r14d, %r14d
jle 0xc0e4
cmpb $0x0, 0x132cf(%rip)     # 0x1f2a0
je 0xc026
movzwl 0x132c6(%rip), %eax     # 0x1f2a0
movw %ax, 0x24(%rsp)
movq 0x18(%rsp), %rsi
movl %r14d, %edi
leaq 0x24(%rsp), %rdx
callq 0x115a2
testq %rax, %rax
je 0xc11b
movzbl (%rax), %ecx
movsbl 0x1329f(%rip), %edx     # 0x1f2a3
cmpl %edx, %ecx
jne 0xc11b
movq %rax, %rdi
callq 0x116cd
movq 0x30(%rsp), %rax
testl %eax, %eax
jne 0xc0cd
jmp 0xc0db
cmpb $0x0, 0x1326f(%rip)     # 0x1f29c
je 0xc072
movzwl 0x13266(%rip), %eax     # 0x1f29c
movw %ax, 0x24(%rsp)
movq 0x18(%rsp), %rsi
movl %r14d, %edi
leaq 0x24(%rsp), %rdx
callq 0x115a2
testq %rax, %rax
je 0xc11b
movzbl (%rax), %ecx
movsbl 0x1323f(%rip), %edx     # 0x1f29f
cmpl %edx, %ecx
jne 0xc11b
movq %rax, %rdi
callq 0x116cd
jmp 0xc0db
movq 0x18(%rsp), %rbx
movl %r14d, %edi
movq %rbx, %rsi
leaq 0xe416(%rip), %rdx      # 0x1a49a
callq 0x115a2
testq %rax, %rax
je 0xc093
cmpb $0x69, (%rax)
je 0xc0b3
movl %r14d, %edi
movq %rbx, %rsi
leaq 0xe3fd(%rip), %rdx      # 0x1a49d
callq 0x115a2
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0xc0bc
cmpb $0x69, (%rax)
jne 0xc0bc
xorps %xmm0, %xmm0
cvtsi2sdq 0x1(%rax), %xmm0
movsd 0xd45c(%rip), %xmm1     # 0x19520
movq 0x30(%rsp), %rax
testl %eax, %eax
je 0xc0d7
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, 0x14(%r13)
cmpl $0x0, 0x14(%r13)
je 0xc177
movq 0x18(%rsp), %rdi
callq 0x3060
xorl %r14d, %r14d
movl $0x1, 0x10(%rsp)
xorl %ebx, %ebx
movq 0xa8(%rsp), %r13
testl %ebx, %ebx
jns 0xb7a8
jmp 0xc3b3
movq 0x12ed6(%rip), %rax     # 0x1eff8
movq (%rax), %rdi
leaq 0xe342(%rip), %rsi      # 0x1a46e
leaq 0xe32f(%rip), %rdx      # 0x1a462
movq 0x28(%rsp), %rcx
leaq 0x24(%rsp), %r8
xorl %eax, %eax
callq 0x3290
jmp 0xc0e4
movq 0x12eab(%rip), %rax     # 0x1eff8
movq (%rax), %rdi
leaq 0xe2bf(%rip), %rsi      # 0x1a416
leaq 0xe304(%rip), %rdx      # 0x1a462
movq 0x28(%rsp), %rcx
movl %ebx, %r8d
movq 0x30(%rsp), %r9
xorl %eax, %eax
callq 0x3290
jmp 0xbf8d
movq 0x12e7a(%rip), %rax     # 0x1eff8
movq (%rax), %rdi
leaq 0xe318(%rip), %rsi      # 0x1a4a0
leaq 0xe2d3(%rip), %rdx      # 0x1a462
movq 0x28(%rsp), %rcx
xorl %eax, %eax
callq 0x3290
movl $0x1, 0x14(%r13)
jmp 0xc0ef
movq 0x48(%rsp), %rsi
movl %eax, %edi
leaq 0xe358(%rip), %rdx      # 0x1a50e
callq 0x115a2
testq %rax, %rax
je 0xbe3f
cmpb $0x69, (%rax)
jne 0xbe3f
movl 0x1(%rax), %eax
movl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
andl %ecx, %eax
movl 0x20(%rbx), %ecx
movl $0xc0000000, %edx       # imm = 0xC0000000
andl %edx, %ecx
orl %eax, %ecx
jmp 0xbe3c
movq 0x12e09(%rip), %rax     # 0x1eff8
movq (%rax), %rdi
leaq 0xd653(%rip), %rax      # 0x1984c
movq 0x88(%rsp), %rcx
movsbl (%rcx,%rax), %r8d
movq 0x80(%rsp), %rcx
movsbl (%rcx,%rax), %eax
movl %eax, (%rsp)
leaq 0xe2f5(%rip), %rsi      # 0x1a511
leaq 0xe2df(%rip), %rdx      # 0x1a502
movq 0x40(%rsp), %rcx
movq 0x28(%rsp), %r9
xorl %eax, %eax
callq 0x3290
movl 0x20(%rbx), %eax
movl $0xc0000000, %ecx       # imm = 0xC0000000
andl %ecx, %eax
incl %eax
movl %eax, 0x20(%rbx)
jmp 0xbe4c
movq 0x12da9(%rip), %rax     # 0x1eff8
movq (%rax), %rdi
leaq 0xd5f3(%rip), %rax      # 0x1984c
movq 0x88(%rsp), %rcx
movsbl (%rcx,%rax), %r8d
movq 0x80(%rsp), %rcx
movsbl (%rcx,%rax), %eax
leaq 0x3e(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movl %eax, (%rsp)
leaq 0xe248(%rip), %rsi      # 0x1a4ce
leaq 0xe275(%rip), %rdx      # 0x1a502
movq 0x40(%rsp), %rcx
movq 0x28(%rsp), %r9
xorl %eax, %eax
callq 0x3290
jmp 0xbe3f
testl %r14d, %r14d
setne %al
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
movq 0xc0(%rsp), %rbx
movq 0x68(%rsp), %r14
jne 0xc2d3
movl %r13d, %esi
movq %r14, %rdx
callq 0xc5da
movq %r14, %rdi
callq 0x3060
movq 0xa0(%rsp), %rdi
callq 0x3060
testq %r15, %r15
je 0xc2fe
movq 0x18(%r15), %rdi
callq 0x3060
movq %r15, %rdi
callq 0x3060
movq %rbx, %rdi
callq 0x3050
movq 0x60(%rsp), %r15
cmpq $0x0, 0x20(%r15)
jne 0xc325
movl $0x1, %edi
movl $0x40, %esi
callq 0x3240
movq %rax, 0x20(%r15)
movq 0x8(%r15), %r14
movq 0x20(%r15), %rbx
movq %r14, 0x8(%rbx)
movq %r14, (%rbx)
movl $0x28, %esi
movq %r14, %rdi
callq 0x3240
movq %rax, 0x10(%rbx)
testq %r14, %r14
je 0xc38f
movq 0x10(%r15), %rax
addq $0x14, %rax
movl $0x20, %ecx
movl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
movl $0xc0000000, %esi       # imm = 0xC0000000
movq 0x10(%rbx), %rdi
movl -0x4(%rax), %r8d
movq %r8, -0x8(%rdi,%rcx)
movl (%rax), %r8d
andl %edx, %r8d
movl (%rdi,%rcx), %r9d
andl %esi, %r9d
orl %r8d, %r9d
movl %r9d, (%rdi,%rcx)
addq $0x18, %rax
addq $0x28, %rcx
decq %r14
jne 0xc361
movq %rbx, %rdi
xorl %esi, %esi
callq 0x11baf
jmp 0xc39e
xorl %r15d, %r15d
movq %r15, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x12c3e(%rip), %rax     # 0x1eff8
movq (%rax), %rdi
cmpl $0x0, 0x7c(%rsp)
leaq 0xd7e1(%rip), %rax      # 0x19baa
leaq 0xd7d4(%rip), %rdx      # 0x19ba4
cmoveq %rax, %rdx
testl %r14d, %r14d
leaq 0xd7c0(%rip), %rcx      # 0x19b9e
cmoveq %rdx, %rcx
movq 0xa0(%rsp), %rax
movsbl (%rax), %r8d
movl %ebx, (%rsp)
leaq 0xd757(%rip), %rsi      # 0x19b4f
leaq 0xd796(%rip), %rdx      # 0x19b95
movq %r12, %r9
xorl %eax, %eax
callq 0x3290
movl $0x1, %edi
callq 0x3430