// File: /workspace/github_c_makefile_star2_O3/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 $0xb8, %rsp
xorpd %xmm0, %xmm0
movapd %xmm0, 0x90(%rsp)
movq $0x0, 0xa0(%rsp)
testq %rdi, %rdi
je 0xbbd0
cmpb $0x2d, (%rdi)
jne 0xbbc2
cmpb $0x0, 0x1(%rdi)
je 0xbbd0
leaq 0xe8b0(%rip), %rsi      # 0x1a479
callq 0x3350
jmp 0xbbde
leaq 0xe8a2(%rip), %rsi      # 0x1a479
xorl %edi, %edi
callq 0x3110
movq %rax, %r14
testq %rax, %rax
je 0xc792
movl $0x1, %edi
movl $0x20, %esi
callq 0x3240
movq %rax, %r15
movq %r14, 0x10(%rax)
movl $0x40000, 0x8(%rax)     # imm = 0x40000
movl $0x10000, %edi          # imm = 0x10000
callq 0x32f0
movq %rax, 0x18(%r15)
callq 0xabfc
movq %rax, 0x70(%rsp)
leaq 0x78(%rsp), %rax
movq $0x0, (%rax)
leaq 0xac(%rsp), %rbp
movq $0x0, 0x58(%rsp)
movq $0x0, 0xb0(%rsp)
movq $0x0, 0x88(%rsp)
movl $0x0, 0x84(%rsp)
movl $0x0, 0x10(%rsp)
xorl %r13d, %r13d
xorl %r12d, %r12d
leaq 0x90(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0xc80d
testl %eax, %eax
js 0xc69c
incq %r12
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0xbc75
cmpl $0x0, 0x10(%rsp)
je 0xbd69
movq %r14, 0x40(%rsp)
movq 0xa0(%rsp), %r14
testl %r13d, %r13d
je 0xbdd2
movslq %eax, %rbx
movq 0x58(%rsp), %rax
addq %rbx, %rax
incq %rax
cmpq 0xb0(%rsp), %rax
movq 0x88(%rsp), %r13
jb 0xbd23
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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %r13, %rdi
movq %rsi, 0xb0(%rsp)
callq 0x3330
movq %rax, %r13
movq 0x58(%rsp), %rbp
movq %r13, %rdi
addq %rbp, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x32c0
addq %rbx, %rbp
movq %r13, 0x88(%rsp)
movq %rbp, 0x58(%rsp)
movb $0x0, (%r13,%rbp)
xorl %ebx, %ebx
movl $0x1, %r13d
movq 0x40(%rsp), %r14
leaq 0xac(%rsp), %rbp
jmp 0xc46e
movq 0xa0(%rsp), %rbx
movzbl (%rbx), %ecx
cmpl $0x40, %ecx
je 0xbe2b
cmpl $0x3e, %ecx
jne 0xbca6
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xbda2
movq 0x58(%rsp), %rsi
movq 0x88(%rsp), %rdx
callq 0xc9d0
movq 0x70(%rsp), %rdi
movq %rbx, %rsi
leaq 0x78(%rsp), %rdx
callq 0xca2b
movl $0x1, %r13d
movq $0x0, 0x58(%rsp)
movl $0x0, 0x10(%rsp)
xorl %ebx, %ebx
jmp 0xc46e
movzbl (%r14), %eax
cmpl $0x4c, %eax
je 0xbe78
cmpl $0x53, %eax
jne 0xc23a
leaq 0x2(%r14), %rdi
addq $0x3, %r14
xorl %r13d, %r13d
xorl %eax, %eax
movzbl -0x1(%r14), %ebx
cmpl $0x9, %ebx
je 0xbe03
testl %ebx, %ebx
jne 0xbe26
movb $0x0, -0x1(%r14)
testl %eax, %eax
je 0xbe16
cmpl $0x1, %eax
jne 0xbe19
jmp 0xbfb0
movq %rdi, %r13
testb %bl, %bl
je 0xbf4e
incl %eax
movq %r14, %rdi
incq %r14
jmp 0xbdf5
movq 0x70(%rsp), %rdi
movq %rbx, %rsi
leaq 0x78(%rsp), %rdx
callq 0xca2b
movq %r15, %rdi
leaq 0x90(%rsp), %rsi
movq %rbp, %rdx
callq 0xc80d
testl %eax, %eax
js 0xbf5c
movq 0x78(%rsp), %rdi
movl 0x90(%rsp), %esi
movq 0xa0(%rsp), %rdx
callq 0xc9d0
xorl %ebx, %ebx
jmp 0xbf61
leaq 0x2(%r14), %rbx
movq %rbx, 0x20(%rsp)
addq $0x3, %r14
xorl %edi, %edi
movq $-0x1, %r8
movq $-0x1, %r9
xorl %esi, %esi
xorl %eax, %eax
leaq 0xe730(%rip), %rdx      # 0x1a5d0
movzbl -0x1(%r14), %r13d
cmpl $0x9, %r13d
je 0xbeb0
testl %r13d, %r13d
jne 0xbf11
movb $0x0, -0x1(%r14)
cmpl $0x4, %eax
ja 0xbf07
movl %eax, %ecx
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rbx, %rsi
jmp 0xbf07
movq %rbx, %rdi
jmp 0xbf07
movzbl (%rbx), %ecx
cmpl $0x2d, %ecx
je 0xbee0
cmpl $0x2b, %ecx
jne 0xc19b
xorl %r9d, %r9d
cmpb $0x2b, %cl
setne %r9b
jmp 0xbf07
movzbl (%rbx), %ecx
cmpl $0x2d, %ecx
je 0xbefd
cmpl $0x2b, %ecx
jne 0xc19b
xorl %r8d, %r8d
cmpb $0x2b, %cl
setne %r8b
incl %eax
testb %r13b, %r13b
je 0xbf16
movq %r14, %rbx
incq %r14
jmp 0xbea0
movq %r14, 0x20(%rsp)
movl $0xfffffffc, %ebx       # imm = 0xFFFFFFFC
cmpl $0x4, %eax
movq 0x40(%rsp), %r14
jne 0xc463
movq %r9, 0x60(%rsp)
movq %r8, 0x68(%rsp)
movq %rdi, 0x38(%rsp)
movq $0x0, 0x10(%rsp)
xorl %r14d, %r14d
jmp 0xc2bc
movq $0x0, 0x10(%rsp)
xorl %r14d, %r14d
jmp 0xbfd2
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
movq %r15, %rdi
leaq 0x90(%rsp), %rsi
movq %rbp, %rdx
callq 0xc80d
testl %eax, %eax
js 0xbf8f
movq %r15, %rdi
leaq 0x90(%rsp), %rsi
movq %rbp, %rdx
callq 0xc80d
testl %eax, %eax
jns 0xbf94
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
addq $0x3, %r12
movl $0x0, 0x10(%rsp)
movl $0x1, 0x84(%rsp)
jmp 0xc46e
cmpb $0x2a, (%rdi)
jne 0xbfc0
movq $0x0, 0x10(%rsp)
jmp 0xbfca
callq 0x3480
movq %rax, 0x10(%rsp)
xorl %eax, %eax
testb %bl, %bl
cmoveq %rax, %r14
movl $0x0, 0x30(%rsp)
movq $0x0, 0x20(%rsp)
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x112e5
xorl %ebx, %ebx
testl %eax, %eax
movl %eax, 0x18(%rsp)
je 0xc022
movq 0x20(%rsp), %rsi
movl %eax, %edi
movl $0x4c, %edx
movl $0x4e, %ecx
callq 0x11d46
testq %rax, %rax
je 0xc022
cmpb $0x69, (%rax)
jne 0xc022
movl 0x1(%rax), %ebx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc049
callq 0x3130
movq %rax, %r14
testl %ebx, %ebx
je 0xc04c
movq %r14, %r9
cmpl %r14d, %ebx
jne 0xc4eb
movq %r9, %r14
jmp 0xc04c
movl %ebx, %r14d
movq 0x70(%rsp), %rbx
movq %rbx, %rdi
movq %r13, 0x38(%rsp)
movq %r13, %rsi
xorl %edx, %edx
callq 0xacf1
movq 0x10(%rbx), %rcx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %r13
movl %r14d, 0x10(%r13)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%r13)
movl 0x18(%rsp), %edi
testl %edi, %edi
jle 0xc229
cmpb $0x0, 0x1420f(%rip)     # 0x202a0
je 0xc0df
movzwl 0x14206(%rip), %edx     # 0x202a0
movw %dx, 0x2c(%rsp)
movq 0x20(%rsp), %rsi
movl %edx, %ecx
shrl $0x8, %ecx
callq 0x11d46
testq %rax, %rax
je 0xc251
movzbl (%rax), %ecx
movsbl 0x141e2(%rip), %edx     # 0x202a3
cmpl %edx, %ecx
jne 0xc251
movq %rax, %rdi
callq 0x11e6c
testl %r14d, %r14d
jne 0xc211
jmp 0xc220
cmpb $0x0, 0x141b6(%rip)     # 0x2029c
je 0xc1aa
movzwl 0x141a9(%rip), %edx     # 0x2029c
movw %dx, 0x2c(%rsp)
movq 0x20(%rsp), %rsi
movl %edx, %ecx
shrl $0x8, %ecx
callq 0x11d46
testq %rax, %rax
je 0xc251
movzbl (%rax), %ecx
movsbl 0x14185(%rip), %edx     # 0x2029f
cmpl %edx, %ecx
jne 0xc251
movq %rax, %rdi
callq 0x11e6c
jmp 0xc220
movq %rbx, 0x20(%rsp)
movzbl (%rbx), %eax
cmpl $0x2a, %eax
movq %rdi, 0x38(%rsp)
movq %r8, 0x68(%rsp)
movq %r9, 0x60(%rsp)
je 0xc2aa
movq %rsi, 0x18(%rsp)
cmpl $0x3a, %eax
jne 0xc4b4
callq 0x34d0
movq (%rax), %rax
movsbq 0x1(%rbx), %rcx
movq $-0x1, 0x10(%rsp)
testb $0x8, 0x1(%rax,%rcx,2)
je 0xc18f
incq %rbx
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
movl $0xa, %edx
callq 0x33d0
xorl %eax, %eax
movq 0x18(%rsp), %rsi
jmp 0xc2b5
movl $0xfffffffc, %ebx       # imm = 0xFFFFFFFC
movq 0x40(%rsp), %r14
jmp 0xc463
movq %r14, 0x10(%rsp)
movq 0x20(%rsp), %rbx
movl %edi, %r14d
movq %rbx, %rsi
movl $0x4b, %edx
movl $0x43, %ecx
callq 0x11d46
testq %rax, %rax
je 0xc1d3
cmpb $0x69, (%rax)
je 0xc1f6
movl %r14d, %edi
movq %rbx, %rsi
movl $0x46, %edx
movl $0x43, %ecx
callq 0x11d46
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0xc1ff
cmpb $0x69, (%rax)
jne 0xc1ff
xorps %xmm0, %xmm0
cvtsi2sdq 0x1(%rax), %xmm0
movsd 0xe319(%rip), %xmm1     # 0x1a520
movq 0x10(%rsp), %r14
testl %r14d, %r14d
je 0xc21c
movl %r14d, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, 0x14(%r13)
cmpl $0x0, 0x14(%r13)
je 0xc27c
movq 0x20(%rsp), %rdi
callq 0x3060
xorl %r13d, %r13d
movl $0x1, 0x10(%rsp)
xorl %ebx, %ebx
movq 0x40(%rsp), %r14
jmp 0xc46e
movq 0x13da0(%rip), %rax     # 0x1fff8
movq (%rax), %rdi
leaq 0xf219(%rip), %rsi      # 0x1b47b
leaq 0xf206(%rip), %rdx      # 0x1b46f
movq 0x38(%rsp), %rcx
leaq 0x2c(%rsp), %r8
xorl %eax, %eax
callq 0x3290
jmp 0xc229
movq 0x13d75(%rip), %rax     # 0x1fff8
movq (%rax), %rdi
leaq 0xf21a(%rip), %rsi      # 0x1b4a7
leaq 0xf1db(%rip), %rdx      # 0x1b46f
movq 0x38(%rsp), %rcx
xorl %eax, %eax
callq 0x3290
movl $0x1, 0x14(%r13)
jmp 0xc230
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
testb %r13b, %r13b
cmoveq %rax, %r14
movl $0x0, 0x2c(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x70(%rsp), %r13
movq %r13, %rdi
movq %rsi, 0x18(%rsp)
movl $0x1, %edx
callq 0xacf1
movq %rax, 0x50(%rsp)
movq %r13, %rdi
movq 0x38(%rsp), %rsi
movl $0x1, %edx
callq 0xacf1
movl %eax, %ebx
movq 0x20(%r13), %r13
movq 0x18(%r13), %rcx
cmpq 0x20(%r13), %rcx
jne 0xc368
movq %rcx, %rax
shrq %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x10, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x20, %rcx
orq %rax, %rcx
incq %rcx
movq %rcx, 0x20(%r13)
movq 0x28(%r13), %rdi
shlq $0x4, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x3330
movq %rax, 0x28(%r13)
movq 0x18(%r13), %rcx
jmp 0xc36c
movq 0x28(%r13), %rax
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x50(%rsp), %rdi
addl %edi, %edi
orq %rdx, %rdi
addl %ebx, %ebx
orq %rsi, %rbx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%r13)
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %r13
movq %rdi, (%rax,%rcx)
movq %rbx, 0x8(%rax,%rcx)
movq $0x0, 0x10(%rax,%rcx)
movq 0x10(%rsp), %rdx
movq %rdx, 0x18(%rax,%rcx)
movq $-0x1, 0x28(%rax,%rcx)
movl $0x0, 0x20(%rax,%rcx)
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x2c(%rsp), %rdx
callq 0x112e5
testl %eax, %eax
movq 0x40(%rsp), %r14
je 0xc449
cmpb $0x0, 0x13eb0(%rip)     # 0x20298
je 0xc47b
movzwl 0x13ea3(%rip), %edx     # 0x20298
movw %dx, 0x4e(%rsp)
movq 0x30(%rsp), %rsi
movl %edx, %ecx
shrl $0x8, %ecx
movl %eax, %edi
callq 0x11d46
testq %rax, %rax
je 0xc5e6
movzbl (%rax), %ecx
movsbl 0x13e7d(%rip), %edx     # 0x2029b
cmpl %edx, %ecx
jne 0xc5e6
movq %rax, %rdi
callq 0x11e6c
cvttsd2si %xmm0, %rax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl 0x20(%r13), %ecx
movl $0xc0000000, %edx       # imm = 0xC0000000
andl %edx, %ecx
orl %eax, %ecx
movl %ecx, 0x20(%r13)
testl $0x3fffffff, 0x20(%r13) # imm = 0x3FFFFFFF
je 0xc518
movq 0x30(%rsp), %rdi
callq 0x3060
xorl %ebx, %ebx
xorl %r13d, %r13d
movl $0x1, 0x10(%rsp)
testl %ebx, %ebx
jns 0xbc6d
jmp 0xc7aa
movq 0x30(%rsp), %rsi
movl %eax, %edi
movl $0x45, %edx
movl $0x43, %ecx
callq 0x11d46
testq %rax, %rax
je 0xc449
cmpb $0x69, (%rax)
jne 0xc449
movl 0x1(%rax), %eax
movl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
andl %ecx, %eax
movl 0x20(%r13), %ecx
movl $0xc0000000, %edx       # imm = 0xC0000000
andl %edx, %ecx
orl %eax, %ecx
jmp 0xc445
movsbq %al, %rax
movq %rax, 0x10(%rsp)
callq 0x34d0
movq (%rax), %rcx
movq 0x10(%rsp), %rdx
testb $0x8, 0x1(%rcx,%rdx,2)
jne 0xc574
movq $0x0, 0x10(%rsp)
xorl %r14d, %r14d
movq 0x18(%rsp), %rsi
jmp 0xc2bc
movq 0x13b06(%rip), %rax     # 0x1fff8
movq (%rax), %rdi
leaq 0xef27(%rip), %rsi      # 0x1b423
leaq 0xef6c(%rip), %rdx      # 0x1b46f
movq %r13, %rcx
movl %ebx, %r8d
movq %r9, %r14
xorl %eax, %eax
callq 0x3290
jmp 0xc04c
movq 0x13ad9(%rip), %rax     # 0x1fff8
movq (%rax), %rdi
leaq 0xe333(%rip), %rax      # 0x1a85c
movq 0x68(%rsp), %rcx
movsbl (%rcx,%rax), %r8d
movq 0x60(%rsp), %rcx
movsbl (%rcx,%rax), %eax
movl %eax, (%rsp)
leaq 0xefcf(%rip), %rsi      # 0x1b515
leaq 0xefbc(%rip), %rdx      # 0x1b509
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %r9
xorl %eax, %eax
callq 0x3290
movl 0x20(%r13), %eax
movl $0xc0000000, %ecx       # imm = 0xC0000000
andl %ecx, %eax
incl %eax
movl %eax, 0x20(%r13)
jmp 0xc457
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
movq %rax, 0x50(%rsp)
callq 0x32b0
movq 0x50(%rsp), %rcx
movq (%rcx), %rdx
movq 0x30(%rsp), %rdi
movsbq (%rdi), %rcx
testb $0x1, 0x1(%rdx,%rcx,2)
jne 0xc63b
movq %rax, 0x10(%rsp)
cmpb $0x3a, %cl
movq 0x18(%rsp), %rsi
jne 0xbf3d
movsbq 0x1(%rdi), %rcx
testb $0x8, 0x1(%rdx,%rcx,2)
je 0xc2b3
incq %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x33d0
movq 0x18(%rsp), %rsi
jmp 0xc2b3
movq 0x13a0b(%rip), %rax     # 0x1fff8
movq (%rax), %rdi
leaq 0xe265(%rip), %rax      # 0x1a85c
movq 0x68(%rsp), %rcx
movsbl (%rcx,%rax), %r8d
movq 0x60(%rsp), %rcx
movsbl (%rcx,%rax), %eax
leaq 0x4e(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movl %eax, (%rsp)
leaq 0xeeb7(%rip), %rsi      # 0x1b4d5
leaq 0xeee4(%rip), %rdx      # 0x1b509
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %r9
xorl %eax, %eax
callq 0x3290
jmp 0xc449
movq $0x0, 0x10(%rsp)
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
movl $0xa, %edx
callq 0x32b0
movq 0x20(%rsp), %rcx
movzbl (%rcx), %edx
addl $-0x44, %edx
cmpl $0xa, %edx
ja 0xc675
movl $0x601, %esi            # imm = 0x601
btl %edx, %esi
jae 0xc675
addq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rsi
movq 0x50(%rsp), %rax
leaq 0x1(%rcx), %rbx
movq %rbx, 0x20(%rsp)
movq (%rax), %rax
movsbq 0x1(%rcx), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0xc644
jmp 0xc2b3
testl %r13d, %r13d
setne %al
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
movq 0x88(%rsp), %rbx
jne 0xc6c9
movq 0x58(%rsp), %rsi
movq %rbx, %rdx
callq 0xc9d0
movq %rbx, %rdi
callq 0x3060
movq 0xa0(%rsp), %rdi
callq 0x3060
testq %r15, %r15
je 0xc6f4
movq 0x18(%r15), %rdi
callq 0x3060
movq %r15, %rdi
callq 0x3060
movq %r14, %rdi
callq 0x3050
movq 0x70(%rsp), %r15
movq 0x20(%r15), %rbx
testq %rbx, %rbx
jne 0xc720
movl $0x1, %edi
movl $0x40, %esi
callq 0x3240
movq %rax, %rbx
movq %rax, 0x20(%r15)
movq 0x8(%r15), %r14
movq %r14, 0x8(%rbx)
movq %r14, (%rbx)
movl $0x28, %esi
movq %r14, %rdi
callq 0x3240
movq %rax, 0x10(%rbx)
testq %r14, %r14
je 0xc786
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 0xc758
movq %rbx, %rdi
xorl %esi, %esi
callq 0x121d6
jmp 0xc795
xorl %r15d, %r15d
movq %r15, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x13847(%rip), %rax     # 0x1fff8
movq (%rax), %rdi
cmpl $0x0, 0x84(%rsp)
leaq 0xe3f7(%rip), %rax      # 0x1abba
leaq 0xe3ea(%rip), %rdx      # 0x1abb4
cmoveq %rax, %rdx
testl %r13d, %r13d
leaq 0xe3d6(%rip), %rcx      # 0x1abae
cmoveq %rdx, %rcx
movq 0xa0(%rsp), %rax
movsbl (%rax), %r8d
movl %ebx, (%rsp)
leaq 0xe36d(%rip), %rsi      # 0x1ab5f
leaq 0xe3ac(%rip), %rdx      # 0x1aba5
movq %r12, %r9
xorl %eax, %eax
callq 0x3290
movl $0x1, %edi
callq 0x3430