// File: /workspace/github_c_makefile_star2_O1/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 0x26276
movq %rdi, %r15
movl 0x4c(%rdi), %eax
addl $-0x3, %eax
cmpl $0xe, %eax
ja 0x262ea
leaq 0x73ee8(%rip), %rcx     # 0x9a134
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, %edi
movl $0x48, %esi
callq 0x4300
testq %rax, %rax
je 0x26281
leaq 0x74190(%rip), %rcx     # 0x9a400
movq %rcx, 0x18(%rax)
jmp 0x26283
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(%r15), %rax
movq 0x18(%rax), %rdi
callq 0x22c39
jmp 0x262d1
movl $0x1, %edi
movl $0x48, %esi
callq 0x4300
testq %rax, %rax
je 0x26307
movq %rax, %r13
leaq 0x7413e(%rip), %rax     # 0x9a400
movq %rax, 0x18(%r13)
jmp 0x2630a
movq 0x38(%r15), %rdi
callq 0x22e2b
movq %rax, %rdi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x27418
callq 0x4050
movl $0x8, (%rax)
jmp 0x26281
callq 0x4050
movl $0x20, (%rax)
jmp 0x26281
xorl %r13d, %r13d
callq 0x10ffc
movq %rax, %r14
testq %r13, %r13
setne %al
testq %r14, %r14
setne %cl
andb %al, %cl
movb %cl, 0x27(%rsp)
cmpb $0x1, %cl
jne 0x2691a
leaq 0x10(%r15), %rdx
movq %r15, %rdi
movl $0x2, %esi
movq %rdx, 0x28(%rsp)
callq 0x15cc5
movb $0x1, %dl
testl %eax, %eax
movq %r13, 0x38(%rsp)
js 0x26933
movl %eax, 0x50(%rsp)
movq 0x20(%r15), %rbx
cmpb $0x40, (%rbx)
jne 0x2695f
movq $0x0, 0x8(%rsp)
movq $0x0, 0x30(%rsp)
movl $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
xorl %r12d, %r12d
movq %r14, 0x88(%rsp)
movq 0x28(%rsp), %rax
cmpq $0x4, (%rax)
jb 0x263bd
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x74e06(%rip), %rsi     # 0x9b1ba
callq 0x4210
testl %eax, %eax
je 0x26426
movzbl 0x1(%rbx), %eax
cmpl $0x4f, %eax
jle 0x263e9
cmpl $0x50, %eax
je 0x2640b
cmpl $0x52, %eax
je 0x2640b
cmpl $0x53, %eax
movq 0x18(%rsp), %rbp
jne 0x2722e
cmpb $0x51, 0x2(%rbx)
je 0x2641a
jmp 0x2722e
cmpl $0x43, %eax
je 0x26659
cmpl $0x48, %eax
movq 0x18(%rsp), %rbp
jne 0x2722e
cmpb $0x44, 0x2(%rbx)
je 0x2641a
jmp 0x2722e
cmpb $0x47, 0x2(%rbx)
movq 0x18(%rsp), %rbp
jne 0x2722e
movb $0x9, %al
movl $0x3, %ecx
jmp 0x26665
addq $0x4, %rbx
movq $-0x1, %r13
movq 0x18(%rsp), %rbp
movq %r12, (%rsp)
movq %rbx, 0x40(%rsp)
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x7450f(%rip), %rsi     # 0x9a95d
callq 0x4210
testl %eax, %eax
je 0x264a9
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x74d90(%rip), %rsi     # 0x9b1f6
callq 0x4210
testl %eax, %eax
jne 0x26567
addq $0x3, %rbx
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
movl $0xa, %edx
callq 0x40b0
cmpq $-0x1, %r13
sete %cl
cmpq %rax, %r13
sete %bl
orb %cl, %bl
je 0x2653a
xorl %r12d, %r12d
movq %rax, %r13
jmp 0x2655f
addq $0x3, %rbx
movq %rbx, 0x40(%rsp)
movq %rbx, %rbp
movzbl (%rbp), %eax
cmpl $0xa, %eax
ja 0x264c8
movl $0x601, %ecx            # imm = 0x601
btl %eax, %ecx
jb 0x264d0
incq %rbp
incq %rbx
jmp 0x264b5
movq 0x8(%rsp), %r12
testq %r12, %r12
je 0x264fc
movl $0x3, %edi
leaq 0x74cd8(%rip), %rsi     # 0x9b1be
leaq 0x74ce0(%rip), %rdx     # 0x9b1cd
xorl %eax, %eax
callq 0x14378
movq %r12, %rdi
callq 0x45c0
movq 0x40(%rsp), %r12
subq %r12, %rbx
leaq 0x1(%rbx), %rdi
movl $0x1, %esi
callq 0x4300
testq %rax, %rax
je 0x268e3
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x4250
movq %rbp, 0x40(%rsp)
movq 0x18(%rsp), %rbp
jmp 0x26567
movl $0x1, %edi
leaq 0x74c78(%rip), %rsi     # 0x9b1be
leaq 0x74cad(%rip), %rdx     # 0x9b1fa
movq 0x8(%rsp), %rcx
xorl %eax, %eax
callq 0x14378
movl $0x2, %r12d
testb %bl, %bl
je 0x26894
movq 0x40(%rsp), %rbx
movzbl (%rbx), %eax
testl %eax, %eax
je 0x2658f
cmpl $0x9, %eax
je 0x26582
cmpl $0xa, %eax
je 0x2658f
incq %rbx
jmp 0x2656c
movq %rbx, 0x40(%rsp)
incq %rbx
jmp 0x2643a
movq %rbx, 0x40(%rsp)
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x26804
testq %r13, %r13
js 0x2682c
movq %r14, %rdi
leaq 0x60(%rsp), %rdx
callq 0x1143a
movl $0x2, %r12d
cmpl $0x0, 0x60(%rsp)
js 0x26894
je 0x2685a
movl %eax, %ebx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
decq %rax
cmpq %rax, %r13
jle 0x268b3
movq 0x30(%rsp), %rbp
testq %rbp, %rbp
jne 0x265fd
callq 0x10ffc
movq %rax, %rbp
testq %rax, %rax
je 0x268fe
movq 0x18(%r14), %rax
movl %ebx, %ebx
movq (%rax,%rbx,8), %rsi
movq %rbp, %rdi
leaq 0x60(%rsp), %rdx
callq 0x1143a
cmpl $0x0, 0x60(%rsp)
movq %rbp, 0x30(%rsp)
js 0x268d8
movq 0x20(%rbp), %rcx
cltq
movq %r13, (%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,%rbx,8)
movq $0x0, 0x8(%rsp)
xorl %r12d, %r12d
jmp 0x26910
movb $0x4f, %al
movl $0x2, %ecx
movq 0x18(%rsp), %rbp
cmpb %al, (%rbx,%rcx)
jne 0x2722e
movq 0x10(%r15), %rbx
leaq (%r12,%rbx), %rax
addq $0x2, %rax
cmpq %r12, %rax
jbe 0x266f6
movq 0x20(%r15), %r14
movq 0x10(%rsp), %r13
cmpq %rax, %r13
jae 0x266c7
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r13d
cmovbeq %rcx, %r13
addq %rax, %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4840
movq %rbp, %rcx
movq %rax, %rbp
testq %rax, %rax
je 0x267ed
leaq (%r12,%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x43c0
addq %rbx, %r12
movb $0x0, (%rbp,%r12)
shrl $0x1f, %ebx
movq %r13, 0x10(%rsp)
movq 0x38(%rsp), %r13
movq 0x88(%rsp), %r14
jmp 0x26703
callq 0x4050
movl $0x4b, (%rax)
movb $0x1, %bl
testb %bl, %bl
jne 0x2734f
leaq 0x2(%r12), %rax
movq 0x10(%rsp), %rbx
cmpq %rax, %rbx
jae 0x2674d
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %ebx
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x4840
testq %rax, %rax
jne 0x26750
movb $0x1, %cl
jmp 0x26764
movq %rbp, %rax
movw $0xa, (%rax,%r12)
incq %r12
xorl %ecx, %ecx
movq %rbx, 0x10(%rsp)
movq %rax, %rbp
testb %cl, %cl
jne 0x2734f
testb $0x10, (%r15)
jne 0x26799
movq 0x38(%r15), %rdi
movl $0x1, %edx
leaq 0x60(%rsp), %rsi
callq 0xf24d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
addl %eax, %ecx
testq %rax, %rax
movzbl 0x60(%rsp), %eax
cmovlel %ecx, %eax
jmp 0x267a2
movq 0x38(%r15), %rdi
callq 0xc0fc
cmpl $-0x1, %eax
jl 0x2734f
movq %rbp, 0x18(%rsp)
cmpl $0x40, %eax
sete %bpl
jne 0x2698b
movq %r15, %rdi
movl $0x2, %esi
movq 0x28(%rsp), %rdx
callq 0x15cc5
movl %eax, 0x50(%rsp)
testl %eax, %eax
js 0x2698b
movq 0x20(%r15), %rbx
cmpb $0x40, (%rbx)
je 0x2639a
jmp 0x2698b
movb $0x1, %bl
movq 0x38(%rsp), %r13
movq 0x88(%rsp), %r14
movq %rcx, %rbp
jmp 0x26703
xorl %r12d, %r12d
movl $0x3, %edi
leaq 0x749ab(%rip), %rsi     # 0x9b1be
leaq 0x74a7b(%rip), %rdx     # 0x9b295
xorl %eax, %eax
callq 0x14378
movq 0x20(%r15), %rdi
callq 0x32c43
jmp 0x2688b
movq %rsi, %rbx
xorl %r12d, %r12d
movl $0x3, %edi
leaq 0x74980(%rip), %rsi     # 0x9b1be
leaq 0x74a26(%rip), %rdx     # 0x9b26b
movq %rbx, %rcx
xorl %eax, %eax
callq 0x14378
movq 0x20(%r15), %rdi
callq 0x32c43
jmp 0x26883
movq 0x28(%r15), %r8
xorl %r12d, %r12d
movl $0x3, %edi
leaq 0x74951(%rip), %rsi     # 0x9b1be
leaq 0x749d1(%rip), %rdx     # 0x9b245
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x14378
movq %rbx, %rdi
callq 0x45c0
movq $0x0, 0x8(%rsp)
movq 0x38(%rsp), %r13
testl %r12d, %r12d
jne 0x27409
movl $0x1, 0x20(%rsp)
movq (%rsp), %r12
jmp 0x2666e
movl 0x4(%r14), %eax
decl %eax
shlq $0x20, %rax
orq %r13, %rax
movq 0x20(%r14), %rcx
movl %ebx, %edx
movq %rax, (%rcx,%rdx,8)
movq $0x0, 0x8(%rsp)
xorl %r12d, %r12d
jmp 0x26894
movq $0x0, 0x8(%rsp)
jmp 0x26910
movl $0x2, %r12d
movq $0x0, 0x8(%rsp)
movq 0x38(%rsp), %r13
movq 0x18(%rsp), %rbp
jmp 0x26899
movq $0x0, 0x8(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x18(%rsp), %rbp
jmp 0x26894
xorl %ebp, %ebp
movq $0x0, 0x30(%rsp)
movq $0x0, 0x8(%rsp)
jmp 0x2734f
xorl %r12d, %r12d
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x8(%rsp)
movb $0x1, %bpl
jmp 0x26997
xorl %r12d, %r12d
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x8(%rsp)
movb $0x1, %bpl
jmp 0x26993
cmpl $0x0, 0x20(%rsp)
sete %dl
movl 0x50(%rsp), %eax
testb %bpl, %bpl
jne 0x269a8
movq 0x28(%rsp), %rcx
movq $0x0, (%rcx)
cmpl $-0x1, %eax
movq 0x18(%rsp), %rbp
jl 0x2734f
movl $0x1, %ecx
testb %dl, %dl
je 0x27260
movq 0x30(%r15), %rbx
testq %rbx, %rbx
je 0x2722a
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
leaq 0x72458(%rip), %rsi     # 0x98e40
movq %rbx, %rdi
callq 0x40e0
leaq 0x7(%rax), %rdi
testq %rax, %rax
cmoveq %rbx, %rdi
leaq 0x74bc2(%rip), %rsi     # 0x9b5c4
xorl %ebx, %ebx
movq %rdi, 0x80(%rsp)
xorl %eax, %eax
callq 0x10014
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x27256
movl $0x0, 0x4c(%rsp)
movl $0x0, 0x20(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x60(%rsp), %rdi
leaq -0x1783d(%rip), %rsi    # 0xf209
movq 0x50(%rsp), %rdx
callq 0x9e4b
testl %eax, %eax
js 0x271c9
movq 0x70(%rsp), %rbx
movq %rbx, %rdi
movl $0x9, %esi
callq 0x4190
testq %rax, %rax
je 0x26b91
movq %r14, %r13
movq %rbp, %r14
movq %r12, (%rsp)
movq %rax, 0x28(%rsp)
movq %rax, %r12
subq %rbx, %r12
leaq 0x1(%r12), %rdi
movl $0x1, %esi
callq 0x4300
movl $0xe, %edx
testq %rax, %rax
je 0x26b9b
movq %rax, %rbp
movq %r14, 0x18(%rsp)
movq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x43c0
movq %r13, %r14
movq %r13, %rdi
movq %rbp, 0x8(%rsp)
movq %rbp, %rsi
leaq 0x5c(%rsp), %rdx
callq 0x1143a
cmpl $0x0, 0x5c(%rsp)
js 0x26bbb
movl %eax, %ebp
movq 0x28(%rsp), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x40b0
movq %rax, %rbx
cmpl $0x0, 0x5c(%rsp)
movq (%rsp), %r12
je 0x26bd6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
decq %rax
cmpq %rax, %rbx
movq 0x10(%rsp), %r13
jle 0x26c18
movl $0xffffffff, 0x58(%rsp) # imm = 0xFFFFFFFF
movq 0x30(%rsp), %r12
testq %r12, %r12
jne 0x26b3c
callq 0x10ffc
movq %rax, %r12
testq %rax, %rax
je 0x26c4c
movq 0x18(%r14), %rax
movl %ebp, %ebp
movq (%rax,%rbp,8), %rsi
movq %r12, %rdi
leaq 0x58(%rsp), %rdx
callq 0x1143a
xorl %edx, %edx
cmpl $0x0, 0x58(%rsp)
movq %r12, 0x30(%rsp)
js 0x26c3b
movq 0x20(%r12), %rcx
movl %eax, %eax
movq %rbx, (%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,%rbp,8)
movb $0x1, %al
jmp 0x26c64
movl $0xd, %edx
jmp 0x271a3
movq $0x0, 0x8(%rsp)
movl $0x1, 0x20(%rsp)
movq (%rsp), %r12
movq %r14, %rbp
movq %r13, %r14
jmp 0x271a3
movl $0x1, 0x20(%rsp)
movq (%rsp), %r12
movq 0x18(%rsp), %rbp
movl $0xe, %edx
jmp 0x271a3
movl $0x3, %edi
leaq 0x745dc(%rip), %rsi     # 0x9b1be
leaq 0x7470b(%rip), %rdx     # 0x9b2f4
movq 0x8(%rsp), %r13
movq %r13, %rcx
movq 0x80(%rsp), %r8
xorl %eax, %eax
callq 0x14378
movq %r13, %rdi
callq 0x45c0
movq 0x18(%rsp), %rbp
movq 0x10(%rsp), %r13
movl 0x4c(%rsp), %ecx
jmp 0x26c7f
movl 0x4(%r14), %eax
decl %eax
shlq $0x20, %rax
orq %rbx, %rax
movq 0x20(%r14), %rcx
movl %ebp, %edx
movq %rax, (%rcx,%rdx,8)
movl $0x1, %ecx
movq 0x18(%rsp), %rbp
jmp 0x26c7f
movl $0x1, 0x20(%rsp)
movl $0xe, %edx
xorl %eax, %eax
jmp 0x26c64
movl $0x1, 0x20(%rsp)
movl $0xe, %edx
xorl %eax, %eax
movq $0x0, 0x30(%rsp)
testb %al, %al
movq (%rsp), %r12
movq 0x18(%rsp), %rbp
je 0x2719a
movl $0x1, %ecx
movq 0x10(%rsp), %r13
movq %r12, %rax
subq $-0x9, %rax
movl %ecx, 0x4c(%rsp)
jae 0x26cd1
cmpq %rax, %r13
jae 0x26ceb
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4840
testq %rax, %rax
movq 0x28(%rsp), %rdx
jne 0x26cf6
movl $0x1, %esi
movq (%rsp), %rcx
jmp 0x26d1a
callq 0x4050
movl $0x4b, (%rax)
movl $0x1, %esi
movq %r12, %rcx
movq 0x28(%rsp), %rdx
jmp 0x26d1a
movq %r13, %r12
movq %rbp, %rax
movq 0x28(%rsp), %rdx
movq (%rsp), %rcx
movl $0x3a4e5309, 0x3(%rax,%rcx) # imm = 0x3A4E5309
movl $0x9515340, (%rax,%rcx) # imm = 0x9515340
movb $0x0, 0x7(%rax,%rcx)
addq $0x7, %rcx
xorl %esi, %esi
movq %r12, %r13
movq %rax, %rbp
movq 0x70(%rsp), %r12
subq %r12, %rdx
leaq (%rdx,%rcx), %rax
addq $0x2, %rax
movq %rcx, (%rsp)
cmpq %rcx, %rax
movl %esi, 0x8(%rsp)
jbe 0x26db3
cmpq %rax, %r13
jae 0x26d85
movq %r13, 0x10(%rsp)
movq %rax, %rcx
shrq %rcx
movq %rdx, 0x28(%rsp)
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r13d
cmovbeq %rcx, %r13
addq %rax, %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4840
movq 0x28(%rsp), %rdx
movq %rbp, %rcx
movq %rax, %rbp
testq %rax, %rax
je 0x271b3
movq (%rsp), %rdi
leaq (%rdx,%rdi), %rax
movq %rax, 0x10(%rsp)
addq %rbp, %rdi
movq %r12, %rsi
movq %rdx, %r12
callq 0x43c0
movq %r12, %rdx
movq 0x10(%rsp), %r12
movb $0x0, (%rbp,%r12)
shrl $0x1f, %edx
jmp 0x26dc7
callq 0x4050
movl $0x4b, (%rax)
movl $0x1, %edx
movq (%rsp), %r12
movq %r12, %rax
subq $-0x6, %rax
movq %rdx, 0x28(%rsp)
jae 0x26e2d
movq %r13, %rcx
movq %r14, %r13
movq %r12, %r14
cmpq %rax, %rcx
jae 0x26e42
movq %rcx, 0x10(%rsp)
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4840
testq %rax, %rax
jne 0x26e48
movl $0x1, 0x18(%rsp)
movq %r14, %r12
movq %r13, %r14
movq 0x10(%rsp), %r13
jmp 0x26e71
callq 0x4050
movl $0x4b, (%rax)
movl $0x1, 0x18(%rsp)
jmp 0x26e71
movq %rcx, %r12
movq %rbp, %rax
movl $0x3a4e4c09, (%rax,%r14) # imm = 0x3A4E4C09
movb $0x0, 0x4(%rax,%r14)
addq $0x4, %r14
movl $0x0, 0x18(%rsp)
movq %r12, %rcx
movq %r14, %r12
movq %rax, %rbp
movq %r13, %r14
movq %rcx, %r13
movq %r12, (%rsp)
leaq 0x17(%r12), %rax
cmpq %rax, %r13
jae 0x26ec2
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r12d
cmovbeq %rcx, %r12
addq %rax, %r12
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4840
movq %rax, %r11
testq %rax, %rax
jne 0x26ec8
movq %r13, 0x10(%rsp)
movl $0x1, %r13d
jmp 0x27103
movq %r13, %r12
movq %rbp, %r11
testq %rbx, %rbx
jns 0x26ee0
negq %rbx
movq (%rsp), %rax
movb $0x2d, (%r11,%rax)
incq %rax
movq %rax, (%rsp)
leaq 0x708a9(%rip), %r9      # 0x97790
movabsq $0x28f5c28f5c28f5c3, %r10 # imm = 0x28F5C28F5C28F5C3
movq %rbx, %rax
shrq $0x20, %rax
jne 0x26f56
cmpq $0x9, %rbx
ja 0x26fda
movq (%rsp), %rax
addq $0x2, %rax
cmpq %rax, %r12
jae 0x27075
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %r13d
cmovbeq %rcx, %r13
addq %rax, %r13
movq %r11, %rdi
movq %r13, %rsi
movq %r11, 0x78(%rsp)
callq 0x4840
movq %rax, %rbp
testq %rax, %rax
jne 0x2707b
jmp 0x27060
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, %rbx
jae 0x26f62
movq (%rsp), %rax
leaq (%r11,%rax), %rdi
movq %rbx, %r8
movq %rbx, %rax
shrq $0x2, %rax
mulq %r10
movq %rdx, %rbx
shrq $0x2, %rbx
imulq $0x64, %rbx, %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 0x26f7d
cmpl $-0x1, %esi
jne 0x26fbc
orb $0x30, %bl
movb %bl, (%rdi)
movl %ecx, %eax
movq (%rsp), %rcx
addq %rax, %rcx
movq %rcx, (%rsp)
leaq (%r11,%rcx), %rax
movq %r12, 0x10(%rsp)
movq %r11, %rbp
jmp 0x270fd
bsrl %ebx, %eax
xorl $0x1f, %eax
shll $0x2, %eax
leaq 0x73546(%rip), %rcx     # 0x9a530
movl (%rax,%rcx), %edx
xorl %ebp, %ebp
leaq 0x735ba(%rip), %rcx     # 0x9a5b0
cmpl %ebx, (%rax,%rcx)
seta %bpl
movl %edx, %r13d
subl %ebp, %r13d
movq (%rsp), %rax
addq %r13, %rax
addq $0x2, %rax
cmpq %rax, %r12
jae 0x2709a
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, 0x10(%rsp)
movq %r11, 0x78(%rsp)
callq 0x4840
movq 0x90(%rsp), %rdx
movq %rax, %r11
testq %rax, %rax
jne 0x2709f
movl $0x1, %r13d
movq %r12, 0x10(%rsp)
movq 0x78(%rsp), %rbp
jmp 0x27103
movq %r12, %r13
movq %r11, %rbp
movq %r13, 0x10(%rsp)
orb $0x30, %bl
movq (%rsp), %rcx
leaq (%rcx,%rbp), %rax
incq %rax
incq %rcx
movq %rcx, (%rsp)
movb %bl, -0x1(%rax)
jmp 0x270fd
movq %r12, 0x10(%rsp)
negl %ebp
movq (%rsp), %r8
movq %r11, %r9
leaq (%r11,%r8), %rax
leal (%rdx,%rbp), %ecx
addl $-0x2, %ecx
leaq 0x706d7(%rip), %r10     # 0x97790
movl %ebx, %edx
movl %ebx, %esi
imulq $0x51eb851f, %rsi, %rbx # imm = 0x51EB851F
shrq $0x25, %rbx
imull $0x64, %ebx, %esi
movl %edx, %edi
subl %esi, %edi
movl %ecx, %esi
movzwl (%r10,%rdi,2), %edi
movw %di, (%rax,%rsi)
addl $-0x2, %ecx
cmpl $0x3e7, %edx            # imm = 0x3E7
ja 0x270b9
cmpl $-0x1, %ecx
jne 0x270ef
orb $0x30, %bl
movb %bl, (%rax)
addq %r13, %r8
movq %r8, (%rsp)
movq %r9, %rbp
leaq (%r9,%r8), %rax
movb $0x0, (%rax)
xorl %r13d, %r13d
movq (%rsp), %r12
leaq 0x2(%r12), %rax
movq 0x10(%rsp), %rbx
cmpq %rax, %rbx
jae 0x27155
movq %rax, %rcx
shrq %rcx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rdx, %rax
movl $0x0, %ebx
cmovbeq %rcx, %rbx
addq %rax, %rbx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x4840
testq %rax, %rax
movq 0x28(%rsp), %rdx
movl 0x8(%rsp), %esi
jne 0x27161
movl $0x1, %ecx
jmp 0x27175
movq %rbp, %rax
movq 0x28(%rsp), %rdx
movl 0x8(%rsp), %esi
movw $0xa, (%rax,%r12)
incq %r12
xorl %ecx, %ecx
movq %rbx, 0x10(%rsp)
movq %rax, %rbp
orl 0x20(%rsp), %esi
orl %edx, %esi
orl 0x18(%rsp), %esi
orl %r13d, %esi
xorl %eax, %eax
orl %ecx, %esi
setne %al
movl %eax, 0x20(%rsp)
movl $0x0, %edx
movl $0xe, %eax
cmovnel %eax, %edx
movq $0x0, 0x8(%rsp)
cmpl $0xe, %edx
movq 0x38(%rsp), %r13
jne 0x26a31
jmp 0x271c9
movl $0x1, %edx
movq (%rsp), %r12
movq %rcx, %rbp
movq 0x10(%rsp), %r13
jmp 0x26dc7
movq 0x70(%rsp), %rdi
callq 0x45c0
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
movq 0x50(%rsp), %rdi
callq 0xf6d0
testl %eax, %eax
je 0x2721c
leaq 0x73fc5(%rip), %rsi     # 0x9b1be
leaq 0x7411e(%rip), %rdx     # 0x9b31e
movl $0x1, 0x20(%rsp)
movl $0x1, %edi
movq 0x80(%rsp), %rcx
xorl %eax, %eax
callq 0x14378
cmpl $0x0, 0x20(%rsp)
sete %bl
movl 0x4c(%rsp), %ecx
jmp 0x27258
xorl %ecx, %ecx
jmp 0x27260
leaq 0x73f89(%rip), %rsi     # 0x9b1be
leaq 0x7407f(%rip), %rdx     # 0x9b2bb
movl $0x1, %edi
xorl %eax, %eax
callq 0x14378
movq 0x20(%r15), %rdi
callq 0x32c43
jmp 0x2734f
xorl %ecx, %ecx
testb %bl, %bl
je 0x2734f
testl %ecx, %ecx
je 0x27306
movslq 0x4(%r14), %rbx
movl %ebx, (%r13)
leaq (,%rbx,8), %rdi
callq 0x4680
movq %rax, 0x20(%r13)
testq %rax, %rax
je 0x27347
shlq $0x2, %rbx
movq %rbx, %rdi
callq 0x4680
movq %rax, 0x10(%r13)
testq %rax, %rax
je 0x27347
cmpl $0x0, (%r14)
je 0x27306
xorl %eax, %eax
xorl %edx, %edx
movq 0x10(%r14), %rcx
movl %edx, %esi
shrl $0x4, %esi
movl (%rcx,%rsi,4), %esi
movl %eax, %ecx
andb $0x1e, %cl
shrl %cl, %esi
testb $0x3, %sil
jne 0x272fc
movl %edx, %ecx
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdi
movq (%rsi,%rcx,8), %rsi
movq 0x20(%r13), %r8
movslq 0x4(%rdi,%rcx,8), %rdi
movq %rsi, (%r8,%rdi,8)
movq 0x20(%r14), %rsi
movq (%rsi,%rcx,8), %rdi
movq 0x10(%r13), %r8
movq %rdi, %r9
sarq $0x20, %r9
movl %edi, (%r8,%r9,4)
movq %r9, (%rsi,%rcx,8)
incl %edx
addl $0x2, %eax
cmpl (%r14), %edx
jne 0x272ad
movq 0x30(%rsp), %rax
movq %rax, 0x30(%r13)
movq %r14, %rdi
callq 0x1100b
testq %r12, %r12
jne 0x273e9
cmpq $0x1, 0x10(%rsp)
ja 0x273de
movl $0x3, %esi
movq %rbp, %rdi
callq 0x4840
testq %rax, %rax
jne 0x273e1
jmp 0x273e9
movl $0x0, (%r13)
movq %rbp, %r12
cmpb $0x0, 0x27(%rsp)
movq 0x30(%rsp), %r15
je 0x273a6
cmpq $0x0, 0x20(%r13)
je 0x2736c
cmpq $0x0, 0x10(%r13)
jne 0x273a6
cmpl $0x0, (%r14)
je 0x273a6
xorl %ebx, %ebx
xorl %ebp, %ebp
movq 0x10(%r14), %rax
movl %ebp, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %eax
movl %ebx, %ecx
andb $0x1e, %cl
shrl %cl, %eax
testb $0x3, %al
jne 0x2739c
movq 0x18(%r14), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x45c0
incl %ebp
addl $0x2, %ebx
cmpl (%r14), %ebp
jne 0x27376
movq %r13, %rdi
callq 0x22ae6
movq %r12, %rdi
callq 0x45c0
movq %r14, %rdi
callq 0x1100b
movq %r15, %rdi
callq 0x1100b
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x26281
callq 0x45c0
jmp 0x26281
movq %rbp, %rax
movb $0x0, (%rax,%r12)
movq %rax, %rbp
movq %r12, 0x8(%r13)
movq %rbp, 0x28(%r13)
movq %r13, %rdi
callq 0x27418
movq %rax, 0x78(%r15)
movl $0x1, 0x40(%rax)
jmp 0x26283
cmpl $0x2, %r12d
je 0x2734f
jmp 0x26283