// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/sam.c
// Function: sam_hdr_read
sam_hdr_t *sam_hdr_read(htsFile *fp)
{
    if (!fp) {
        errno = EINVAL;
        return NULL;
    }

    switch (fp->format.format) {
    case bam:
        return sam_hdr_sanitise(bam_hdr_read(fp->fp.bgzf));

    case cram:
        return sam_hdr_sanitise(sam_hdr_dup(fp->fp.cram->header));

    case sam:
        return sam_hdr_create(fp);

    case fastq_format:
    case fasta_format:
        return sam_hdr_init();

    case empty_format:
        errno = EPIPE;
        return NULL;

    default:
        errno = EFTYPE;
        return NULL;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
testq %rdi, %rdi
je 0x2587a
movq %rdi, %r12
movl 0x4c(%rdi), %eax
addl $-0x3, %eax
cmpl $0xe, %eax
ja 0x25e31
leaq 0x719c4(%rip), %rcx     # 0x97214
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, %edi
movl $0x48, %esi
callq 0x4300
testq %rax, %rax
je 0x25885
leaq 0x71b9c(%rip), %rcx     # 0x97410
movq %rcx, 0x18(%rax)
jmp 0x25887
callq 0x4050
movl $0x16, (%rax)
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x38(%r12), %rax
movq 0x18(%rax), %rdi
callq 0x2223d
jmp 0x25e18
movl $0x1, %edi
movl $0x48, %esi
callq 0x4300
movq %rax, %r14
testq %rax, %rax
je 0x258ce
leaq 0x71b46(%rip), %rax     # 0x97410
movq %rax, 0x18(%r14)
callq 0x10dc0
movq %rax, %r15
testq %r14, %r14
setne %al
testq %r15, %r15
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x25e51
movq %r15, 0x20(%rsp)
movq %r14, 0x30(%rsp)
leaq 0x10(%r12), %r15
movq $0x0, 0x28(%rsp)
movl $0x0, 0x8(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x18(%rsp)
xorl %r13d, %r13d
movq %r15, 0x50(%rsp)
movq %r12, %rdi
movl $0x2, %esi
movq %r15, %rdx
callq 0x15732
testl %eax, %eax
js 0x25eb7
movq 0x20(%r12), %rbx
cmpb $0x40, (%rbx)
jne 0x25ec0
movl %eax, 0x10(%rsp)
cmpq $0x4, (%r15)
setae %cl
movb 0x1(%rbx), %al
cmpb $0x53, %al
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x25ac1
cmpb $0x51, 0x2(%rbx)
jne 0x25ae8
addq $0x4, %rbx
movq $-0x1, %r14
movq $0x0, 0x8(%rsp)
movq %rbx, 0x58(%rsp)
movzbl (%rbx), %eax
cmpl $0x4c, %eax
je 0x259da
cmpl $0x53, %eax
jne 0x25aa1
cmpb $0x4e, 0x1(%rbx)
jne 0x25aa1
cmpb $0x3a, 0x2(%rbx)
jne 0x25aa1
movq %r14, 0x38(%rsp)
addq $0x3, %rbx
movq %rbx, %rdx
movq %rbx, 0x58(%rsp)
movq %rbx, %r14
movzbl (%rbx), %eax
cmpl $0xa, %eax
ja 0x259d2
movl $0x601, %ecx            # imm = 0x601
btl %eax, %ecx
jb 0x25a26
incq %rbx
incq %r14
jmp 0x259c0
cmpb $0x4e, 0x1(%rbx)
jne 0x25aa1
cmpb $0x3a, 0x2(%rbx)
jne 0x25aa1
addq $0x3, %rbx
movq %rbx, %rdi
leaq 0x58(%rsp), %rsi
movl $0xa, %edx
callq 0x40b0
cmpq $-0x1, %r14
sete %cl
cmpq %rax, %r14
sete %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x267c4
movq 0x58(%rsp), %rbx
movq %rax, %r14
jmp 0x25aa1
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x25a5e
movq %rax, 0x8(%rsp)
movl $0x3, %edi
leaq 0x7278c(%rip), %rsi     # 0x981cd
leaq 0x72794(%rip), %rdx     # 0x981dc
xorl %eax, %eax
callq 0x13de5
movq 0x8(%rsp), %rdi
callq 0x45c0
movq 0x58(%rsp), %rdx
movq %rdx, 0x40(%rsp)
subq %rdx, %r14
leaq 0x1(%r14), %rdi
movl $0x1, %esi
callq 0x4300
testq %rax, %rax
je 0x267f4
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movq 0x40(%rsp), %rsi
movq %r14, %rdx
callq 0x4250
movq %rbx, 0x58(%rsp)
movq 0x38(%rsp), %r14
jmp 0x25aa1
incq %rbx
movzbl (%rbx), %eax
testl %eax, %eax
je 0x25af7
cmpl $0x9, %eax
je 0x25ab4
cmpl $0xa, %eax
jne 0x25a9e
jmp 0x25af7
movq %rbx, 0x58(%rsp)
incq %rbx
jmp 0x25982
movzbl %al, %eax
cmpl $0x4f, %eax
jle 0x25bcd
cmpl $0x50, %eax
je 0x25bea
cmpl $0x52, %eax
je 0x25bea
cmpl $0x53, %eax
jne 0x25e5d
cmpb $0x51, 0x2(%rbx)
je 0x25bf4
jmp 0x25e5d
movq %rbx, 0x58(%rsp)
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x25d43
testq %r14, %r14
js 0x25d6c
movq %r13, 0x40(%rsp)
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
leaq 0x70(%rsp), %rdx
callq 0x111c4
cmpl $0x0, 0x70(%rsp)
js 0x267f6
je 0x25dae
movl %eax, %r13d
movq %rbp, %rbx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
decq %rax
cmpq %rax, %r14
jbe 0x25de0
movq %r14, 0x38(%rsp)
movq 0x28(%rsp), %rbp
testq %rbp, %rbp
jne 0x25b72
callq 0x10dc0
movq %rax, %rbp
testq %rax, %rax
je 0x267e8
movq 0x20(%rsp), %r14
movq 0x18(%r14), %rax
movl %r13d, %r13d
movq (%rax,%r13,8), %rsi
movq %rbp, %rdi
leaq 0x70(%rsp), %rdx
callq 0x111c4
cmpl $0x0, 0x70(%rsp)
movq %rbp, 0x28(%rsp)
js 0x267f1
movq 0x20(%rbp), %rcx
cltq
movq 0x38(%rsp), %rdx
movq %rdx, (%rcx,%rax,8)
movl 0x4(%r14), %eax
decl %eax
shlq $0x20, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
orq %rcx, %rax
movq 0x20(%r14), %rcx
movq %rax, (%rcx,%r13,8)
jmp 0x25dfc
cmpl $0x43, %eax
je 0x25d37
cmpl $0x48, %eax
jne 0x25e5d
cmpb $0x44, 0x2(%rbx)
je 0x25bf4
jmp 0x25e5d
cmpb $0x47, 0x2(%rbx)
jne 0x25e5d
movb $0x9, %al
movl $0x3, %ecx
cmpb %al, (%rbx,%rcx)
jne 0x25e5d
movq %rbp, %rbx
movq 0x18(%rsp), %rcx
movq 0x10(%r12), %r14
leaq (%r14,%r13), %rax
addq $0x2, %rax
cmpq %r13, %rax
jbe 0x25e88
movq %r12, %r15
movq 0x20(%r12), %r12
cmpq %rax, %rcx
jae 0x25c6a
movq %rax, %rsi
shrq %rsi
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rcx, %rax
movl $0x0, %ecx
cmovaq %rcx, %rsi
addq %rax, %rsi
movq %rbx, %rbp
movq %rbx, %rdi
movq %rsi, 0x18(%rsp)
callq 0x4840
movq %rax, %rbx
testq %rax, %rax
je 0x267f4
leaq (%rbx,%r13), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x43c0
addq %r14, %r13
movb $0x0, (%rbx,%r13)
testl %r14d, %r14d
js 0x267f1
leaq 0x2(%r13), %rax
cmpq %rax, 0x18(%rsp)
jae 0x25cd1
movq %rax, %rsi
shrq %rsi
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rcx, %rax
movl $0x0, %ecx
cmovaq %rcx, %rsi
addq %rax, %rsi
movq %rbx, %rdi
movq %rsi, 0x18(%rsp)
callq 0x4840
movq %rax, %rbp
testq %rax, %rax
movq %r15, %r12
jne 0x25cd7
jmp 0x267f1
movq %rbx, %rbp
movq %r15, %r12
movw $0xa, (%rbp,%r13)
testb $0x10, (%r12)
jne 0x25d0e
movq 0x38(%r12), %rdi
movl $0x1, %edx
leaq 0x70(%rsp), %rsi
callq 0xf0a9
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
addl %eax, %ecx
testq %rax, %rax
movzbl 0x70(%rsp), %eax
cmovlel %ecx, %eax
jmp 0x25d18
movq 0x38(%r12), %rdi
callq 0xc02a
movq 0x50(%rsp), %r15
cmpl $-0x1, %eax
jl 0x267f4
incq %r13
cmpl $0x40, %eax
je 0x25920
jmp 0x25eac
movb $0x4f, %al
movl $0x2, %ecx
jmp 0x25bfb
movq %rbp, %rbx
movl $0x3, %edi
leaq 0x7247b(%rip), %rsi     # 0x981cd
leaq 0x72547(%rip), %rdx     # 0x982a0
xorl %eax, %eax
callq 0x13de5
movq 0x20(%r12), %rdi
callq 0x31aa5
jmp 0x25da1
movq %rbx, %r14
movq %rbp, %rbx
movl $0x3, %edi
leaq 0x7244f(%rip), %rsi     # 0x981cd
leaq 0x724f1(%rip), %rdx     # 0x98276
movq %r14, %rcx
xorl %eax, %eax
callq 0x13de5
movq 0x20(%r12), %rdi
callq 0x31aa5
movq %r14, %rdi
callq 0x45c0
movl $0x1, 0x8(%rsp)
jmp 0x25c07
movq %rbx, %r14
movq %rbp, %rbx
movq 0x28(%r12), %r8
movl $0x3, %edi
leaq 0x72408(%rip), %rsi     # 0x981cd
leaq 0x72484(%rip), %rdx     # 0x98250
movq %r14, %rcx
xorl %eax, %eax
callq 0x13de5
movq %r14, %rdi
callq 0x45c0
jmp 0x25dfc
movq 0x20(%rsp), %rcx
movl 0x4(%rcx), %eax
decl %eax
shlq $0x20, %rax
orq %r14, %rax
movq 0x20(%rcx), %rcx
movl %r13d, %edx
movq %rax, (%rcx,%rdx,8)
movl $0x1, 0x8(%rsp)
movq 0x40(%rsp), %r13
jmp 0x25c07
movq 0x38(%r12), %rdi
callq 0x2240a
movq %rax, %rdi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x268c7
callq 0x4050
movl $0x8, (%rax)
jmp 0x25885
callq 0x4050
movl $0x20, (%rax)
jmp 0x25885
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %ebp, %ebp
jmp 0x26861
leaq 0x72369(%rip), %rsi     # 0x981cd
leaq 0x7245b(%rip), %rdx     # 0x982c6
xorl %ebx, %ebx
movl $0x1, %edi
xorl %eax, %eax
callq 0x13de5
movq 0x20(%r12), %rdi
callq 0x31aa5
jmp 0x267f6
callq 0x4050
movl $0x4b, (%rax)
movq 0x30(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r12
movq %rbx, %rbp
xorl %ebx, %ebx
jmp 0x26805
movq $0x0, (%r15)
movl 0x10(%rsp), %eax
cmpl $-0x1, %eax
jl 0x267f4
cmpl $0x0, 0x8(%rsp)
je 0x25fb5
movq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rax
movslq 0x4(%rax), %rbx
movq 0x30(%rsp), %r14
movl %ebx, (%r14)
leaq (,%rbx,8), %rdi
callq 0x4680
movq %rax, 0x20(%r14)
testq %rax, %rax
je 0x25f9a
shlq $0x2, %rbx
movq %rbx, %rdi
callq 0x4680
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x25f9a
movq 0x20(%rsp), %rax
movl (%rax), %esi
testl %esi, %esi
je 0x26753
xorl %eax, %eax
xorl %edx, %edx
movq 0x20(%rsp), %r10
movq 0x20(%rsp), %rcx
movq 0x10(%rcx), %rcx
movl %edx, %edi
shrl $0x4, %edi
movl (%rcx,%rdi,4), %edi
movl %eax, %ecx
andb $0x1e, %cl
shrl %cl, %edi
testb $0x3, %dil
jne 0x25f8c
movl %edx, %ecx
movq 0x18(%r10), %rsi
movq 0x20(%r10), %rdi
movq (%rsi,%rcx,8), %rsi
movq 0x30(%rsp), %r9
movq 0x20(%r9), %r8
movslq 0x4(%rdi,%rcx,8), %rdi
movq %rsi, (%r8,%rdi,8)
movq 0x20(%r10), %rsi
movq (%rsi,%rcx,8), %rdi
movq 0x10(%r9), %r8
movq %rdi, %r9
sarq $0x20, %r9
movl %edi, (%r8,%r9,4)
movq %r9, (%rsi,%rcx,8)
movl (%r10), %esi
incl %edx
addl $0x2, %eax
cmpl %esi, %edx
jne 0x25f30
jmp 0x26753
movl $0x0, (%r14)
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r12
movq 0x8(%rsp), %rbx
jmp 0x26805
movq 0x30(%r12), %rbx
testq %rbx, %rbx
je 0x26753
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rsp)
leaq 0x6ff0e(%rip), %rsi     # 0x95ee0
movq %rbx, %rdi
callq 0x40e0
leaq 0x7(%rax), %rdi
testq %rax, %rax
cmoveq %rbx, %rdi
leaq 0x725df(%rip), %rsi     # 0x985cb
movq %rdi, 0x88(%rsp)
xorl %eax, %eax
callq 0xfe44
testq %rax, %rax
je 0x267f4
movq %rax, %r14
movl $0x0, 0x64(%rsp)
movq $0x0, 0x70(%rsp)
leaq 0x70(%rsp), %rdi
leaq -0x16fbf(%rip), %rsi    # 0xf065
movq %r14, %rdx
callq 0x9e08
movl %eax, %ebx
testl %eax, %eax
js 0x266e0
movl %ebx, 0x50(%rsp)
movq 0x80(%rsp), %rbx
movq %rbx, %rdi
movl $0x9, %esi
callq 0x4190
testq %rax, %rax
je 0x2600f
movq %r14, 0x38(%rsp)
movq %rax, 0x40(%rsp)
movq %rax, %r14
subq %rbx, %r14
leaq 0x1(%r14), %rdi
movl $0x1, %esi
callq 0x4300
testq %rax, %rax
je 0x26897
movq %rax, %r15
movq %rbp, 0x10(%rsp)
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x43c0
movq 0x20(%rsp), %rdi
movq %r15, 0x8(%rsp)
movq %r15, %rsi
leaq 0x6c(%rsp), %rdx
callq 0x111c4
cmpl $0x0, 0x6c(%rsp)
js 0x268b4
movl %eax, %ebx
movq 0x40(%rsp), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x40b0
movq %rax, %rbp
cmpl $0x0, 0x6c(%rsp)
movq 0x38(%rsp), %r14
je 0x2616c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
decq %rax
cmpq %rax, %rbp
jle 0x261a0
movl $0xffffffff, 0x68(%rsp) # imm = 0xFFFFFFFF
movq 0x28(%rsp), %r14
testq %r14, %r14
jne 0x2610d
callq 0x10dc0
movq %rax, %r14
testq %rax, %rax
je 0x268a2
movq 0x20(%rsp), %r15
movq 0x18(%r15), %rax
movl %ebx, %ebx
movq (%rax,%rbx,8), %rsi
movq %r14, %rdi
leaq 0x68(%rsp), %rdx
callq 0x111c4
cmpl $0x0, 0x68(%rsp)
movq %r14, 0x28(%rsp)
js 0x268ab
movq 0x20(%r14), %rcx
movl %eax, %eax
movq %rbp, (%rcx,%rax,8)
movl 0x4(%r15), %eax
decl %eax
shlq $0x20, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
orq %rcx, %rax
movq 0x20(%r15), %rcx
movq %rax, (%rcx,%rbx,8)
movl $0x1, 0x64(%rsp)
movq 0x38(%rsp), %r14
jmp 0x261c3
movl $0x3, %edi
leaq 0x72055(%rip), %rsi     # 0x981cd
leaq 0x72180(%rip), %rdx     # 0x982ff
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
movq 0x88(%rsp), %r8
xorl %eax, %eax
callq 0x13de5
movq %rbx, %rdi
callq 0x45c0
jmp 0x261c3
movq 0x20(%rsp), %rcx
movl 0x4(%rcx), %eax
decl %eax
shlq $0x20, %rax
orq %rbp, %rax
movq 0x20(%rcx), %rcx
movl %ebx, %edx
movq %rax, (%rcx,%rdx,8)
movl $0x1, 0x64(%rsp)
movq %r13, %rax
subq $-0x9, %rax
jae 0x26214
movq 0x18(%rsp), %rbx
cmpq %rax, %rbx
jae 0x2622c
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %ebx
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x4840
testq %rax, %rax
movq 0x40(%rsp), %rdi
jne 0x26236
movl $0x1, %r15d
jmp 0x2625e
callq 0x4050
movl $0x4b, (%rax)
movl $0x1, %r15d
movq 0x40(%rsp), %rdi
jmp 0x2625e
movq 0x10(%rsp), %rax
movq 0x40(%rsp), %rdi
movl $0x3a4e5309, 0x3(%rax,%r13) # imm = 0x3A4E5309
movl $0x9515340, (%rax,%r13) # imm = 0x9515340
movb $0x0, 0x7(%rax,%r13)
addq $0x7, %r13
xorl %r15d, %r15d
movq %rbx, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rsi
subq %rsi, %rdi
leaq (%rdi,%r13), %rax
addq $0x2, %rax
cmpq %r13, %rax
jbe 0x262ce
movl %r15d, 0x4c(%rsp)
movq 0x18(%rsp), %r14
cmpq %rax, %r14
jae 0x262e0
movq %rsi, %r14
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %esi
cmovbeq %rcx, %rsi
addq %rax, %rsi
movq %rdi, %rbx
movq 0x10(%rsp), %rdi
movq %rsi, 0x8(%rsp)
callq 0x4840
movq %r14, %rsi
movq %rbx, %rdi
movq %rax, %rbx
testq %rax, %rax
jne 0x262ea
movl $0x1, %ecx
jmp 0x2631c
callq 0x4050
movl $0x4b, (%rax)
movl $0x1, %ecx
jmp 0x26326
movq %r14, 0x8(%rsp)
movq 0x10(%rsp), %rbx
leaq (%rdi,%r13), %r15
addq %rbx, %r13
movq %rdi, %r14
movq %r13, %rdi
movq %r14, %rdx
callq 0x43c0
movq %r14, %rcx
movb $0x0, (%rbx,%r15)
shrl $0x1f, %ecx
movq %r15, %r13
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
movq 0x38(%rsp), %r14
movl 0x4c(%rsp), %r15d
movq %r13, %rax
subq $-0x6, %rax
movq %rcx, 0x40(%rsp)
jae 0x26371
movq 0x18(%rsp), %rbx
cmpq %rax, %rbx
jae 0x2638b
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %ebx
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x4840
testq %rax, %rax
jne 0x26390
jmp 0x2637c
callq 0x4050
movl $0x4b, (%rax)
movl $0x1, 0x8(%rsp)
movq 0x18(%rsp), %rbx
jmp 0x263af
movq 0x10(%rsp), %rax
movl $0x3a4e4c09, (%rax,%r13) # imm = 0x3A4E4C09
movb $0x0, 0x4(%rax,%r13)
addq $0x4, %r13
movl $0x0, 0x8(%rsp)
movq %rax, 0x10(%rsp)
leaq 0x17(%r13), %rax
cmpq %rax, %rbx
jae 0x2640c
movq %rbx, 0x18(%rsp)
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %ebx
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x4840
movq %rax, %r11
testq %rax, %rax
leaq 0x6e39a(%rip), %r9      # 0x94790
movabsq $0x28f5c28f5c28f5c3, %r10 # imm = 0x28F5C28F5C28F5C3
jne 0x26422
movl $0x1, %ebp
jmp 0x26651
movq 0x10(%rsp), %r11
leaq 0x6e378(%rip), %r9      # 0x94790
movabsq $0x28f5c28f5c28f5c3, %r10 # imm = 0x28F5C28F5C28F5C3
testq %rbp, %rbp
jns 0x26432
negq %rbp
movb $0x2d, (%r11,%r13)
incq %r13
movq %rbp, %rax
shrq $0x20, %rax
jne 0x2649e
cmpq $0x9, %rbp
ja 0x2651a
leaq 0x2(%r13), %rax
cmpq %rax, %rbx
jae 0x265c9
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %esi
cmovbeq %rcx, %rsi
addq %rax, %rsi
movq %r11, %rdi
movq %rsi, 0x18(%rsp)
movq %r11, 0x10(%rsp)
callq 0x4840
movq %rax, %r11
testq %rax, %rax
jne 0x265ce
movl $0x1, %ebp
movq %rbx, 0x18(%rsp)
jmp 0x26651
movl $0x1, %eax
xorl %ecx, %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %edx, %esi
incl %ecx
addq %rax, %rax
leaq (%rax,%rax,4), %rax
leal 0x1(%rsi), %edx
cmpq %rax, %rbp
jae 0x264aa
leaq (%r11,%r13), %rdi
movq %rbp, %r8
movq %rbp, %rax
shrq $0x2, %rax
mulq %r10
movq %rdx, %rbp
shrq $0x2, %rbp
imulq $0x64, %rbp, %rax
movq %r8, %rdx
subq %rax, %rdx
movl %esi, %eax
movzwl (%r9,%rdx,2), %edx
movw %dx, (%rdi,%rax)
addl $-0x2, %esi
cmpq $0x3e7, %r8             # imm = 0x3E7
ja 0x264c1
cmpl $-0x1, %esi
jne 0x26502
orb $0x30, %bpl
movb %bpl, (%rdi)
movl %ecx, %eax
addq %rax, %r13
leaq (%r11,%r13), %rax
movq %rbx, 0x18(%rsp)
movq %r11, 0x10(%rsp)
jmp 0x2664c
movl %r15d, 0x4c(%rsp)
bsrl %ebp, %eax
xorl $0x1f, %eax
shll $0x2, %eax
leaq 0x71011(%rip), %rcx     # 0x97540
movl (%rax,%rcx), %edx
xorl %r14d, %r14d
leaq 0x71084(%rip), %rcx     # 0x975c0
cmpl %ebp, (%rax,%rcx)
seta %r14b
movl %edx, %r8d
subl %r14d, %r8d
leaq (%r8,%r13), %rax
addq $0x2, %rax
cmpq %rax, %rbx
jae 0x265e7
movq %rax, %rcx
shrq %rcx
movq %rdx, 0x90(%rsp)
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %esi
cmovbeq %rcx, %rsi
addq %rax, %rsi
movq %r11, %rdi
movq %rsi, 0x18(%rsp)
movq %r11, 0x10(%rsp)
movq %r8, %r15
callq 0x4840
movq 0x90(%rsp), %rdx
movq %r15, %r8
leaq 0x6e1e8(%rip), %r9      # 0x94790
movq %rax, %r11
testq %rax, %rax
jne 0x265ec
movl $0x1, %ebp
movq %rbx, 0x18(%rsp)
movq 0x38(%rsp), %r14
movl 0x4c(%rsp), %r15d
jmp 0x26651
movq %rbx, 0x18(%rsp)
orb $0x30, %bpl
movq %r11, 0x10(%rsp)
leaq (%r11,%r13), %rax
incq %rax
incq %r13
movb %bpl, -0x1(%rax)
jmp 0x2664c
movq %rbx, 0x18(%rsp)
negl %r14d
movq %r11, 0x10(%rsp)
leaq (%r11,%r13), %rax
leal (%rdx,%r14), %ecx
addl $-0x2, %ecx
movl %ebp, %edx
movl %ebp, %esi
imulq $0x51eb851f, %rsi, %rbp # imm = 0x51EB851F
shrq $0x25, %rbp
imull $0x64, %ebp, %esi
movl %edx, %edi
subl %esi, %edi
movl %ecx, %esi
movzwl (%r9,%rdi,2), %edi
movw %di, (%rax,%rsi)
addl $-0x2, %ecx
cmpl $0x3e7, %edx            # imm = 0x3E7
ja 0x265ff
cmpl $-0x1, %ecx
movq 0x38(%rsp), %r14
movl 0x4c(%rsp), %r15d
jne 0x26641
orb $0x30, %bpl
movb %bpl, (%rax)
addq %r8, %r13
movq 0x10(%rsp), %rax
addq %r13, %rax
movb $0x0, (%rax)
xorl %ebp, %ebp
leaq 0x2(%r13), %rax
movq 0x18(%rsp), %rbx
cmpq %rax, %rbx
jae 0x2669c
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %ebx
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x4840
testq %rax, %rax
movq 0x40(%rsp), %rdx
jne 0x266a6
movl $0x1, %ecx
jmp 0x266bc
movq 0x10(%rsp), %rax
movq 0x40(%rsp), %rdx
movw $0xa, (%rax,%r13)
incq %r13
xorl %ecx, %ecx
movq %rbx, 0x18(%rsp)
movq %rax, 0x10(%rsp)
orl %r15d, %edx
orl 0x8(%rsp), %edx
orl %ebp, %edx
orl %ecx, %edx
movq 0x10(%rsp), %rbp
je 0x2600f
movq $0x0, 0x8(%rsp)
jmp 0x268be
movq $0x0, 0x8(%rsp)
movq 0x80(%rsp), %rdi
callq 0x45c0
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movq %r14, %rdi
callq 0xf4df
testl %eax, %eax
je 0x2673a
leaq 0x71ab0(%rip), %rsi     # 0x981cd
leaq 0x71c05(%rip), %rdx     # 0x98329
movl $0x1, %edi
movq 0x88(%rsp), %rcx
xorl %eax, %eax
callq 0x13de5
jmp 0x2673e
testl %ebx, %ebx
js 0x26748
movq 0x8(%rsp), %rbx
jmp 0x267f6
cmpl $0x0, 0x64(%rsp)
jne 0x25ed4
movq 0x30(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x30(%rax)
movq 0x20(%rsp), %rdi
callq 0x10dcf
testq %r13, %r13
je 0x26777
movq 0x30(%rsp), %rdi
jmp 0x267a6
cmpq $0x1, 0x18(%rsp)
ja 0x26798
movl $0x3, %esi
movq %rbp, %rdi
callq 0x4840
testq %rax, %rax
movq 0x30(%rsp), %rdi
jne 0x267a0
jmp 0x267a6
movq %rbp, %rax
movq 0x30(%rsp), %rdi
movb $0x0, (%rax)
movq %rax, %rbp
movq %r13, 0x8(%rdi)
movq %rbp, 0x28(%rdi)
callq 0x268c7
movq %rax, 0x78(%r12)
movl $0x1, 0x40(%rax)
jmp 0x25887
leaq 0x71a02(%rip), %rsi     # 0x981cd
leaq 0x71a33(%rip), %rdx     # 0x98205
movl $0x1, %edi
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x13de5
jmp 0x267f6
movq $0x0, 0x28(%rsp)
movq %rbx, %rbp
xorl %ebx, %ebx
movq 0x30(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r12
cmpq $0x0, 0x20(%r14)
je 0x26813
cmpq $0x0, 0x10(%r14)
jne 0x26861
movl (%r15), %eax
testl %eax, %eax
je 0x26861
movq %rbx, 0x8(%rsp)
movq %rbp, %r13
xorl %ebx, %ebx
xorl %ebp, %ebp
movq 0x10(%r15), %rcx
movl %ebp, %edx
shrl $0x4, %edx
movl (%rcx,%rdx,4), %edx
movl %ebx, %ecx
andb $0x1e, %cl
shrl %cl, %edx
testb $0x3, %dl
jne 0x26850
movq 0x18(%r15), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x45c0
movl (%r15), %eax
incl %ebp
addl $0x2, %ebx
cmpl %eax, %ebp
jne 0x26826
movq %r13, %rbp
movq 0x8(%rsp), %rbx
movq %r14, %rdi
callq 0x22102
movq %rbp, %rdi
callq 0x45c0
movq %r15, %rdi
callq 0x10dcf
movq %r12, %rdi
callq 0x10dcf
testq %rbx, %rbx
je 0x25885
movq %rbx, %rdi
callq 0x45c0
jmp 0x25885
movq $0x0, 0x8(%rsp)
jmp 0x268b9
movq $0x0, 0x28(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rbp
movq 0x38(%rsp), %r14
movl 0x50(%rsp), %ebx
jmp 0x266e9