// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/htscodecs/htscodecs/rANS_static.c
// Function: rans_compress
unsigned char *rans_compress(unsigned char *in, unsigned int in_size,
                             unsigned int *out_size, int order) {
    if (in_size > INT_MAX) {
        *out_size = 0;
        return NULL;
    }

    return order
        ? rans_compress_O1(in, in_size, out_size)
        : rans_compress_O0(in, in_size, out_size);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4b8, %rsp            # imm = 0x4B8
movq %rdx, %r15
testl %esi, %esi
js 0x7a478
movq %rdi, %r12
testl %ecx, %ecx
je 0x7a486
cmpl $0x3, %esi
ja 0x7a4a2
movq %r12, %rdi
movq %r15, %rdx
callq 0x7b2a5
jmp 0x7b13e
movl $0x0, (%r15)
xorl %eax, %eax
jmp 0x7b13e
movq %r12, %rdi
movq %r15, %rdx
addq $0x4b8, %rsp            # imm = 0x4B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7b2a5
movq %rsi, 0x30(%rsp)
movl $0x140000, %edi         # imm = 0x140000
callq 0x8060c
testq %rax, %rax
je 0x7a47f
movq %rax, 0x8(%rsp)
leaq 0x100000(%rax), %r13
movl $0x40000, %edx          # imm = 0x40000
movq %r13, %rdi
xorl %esi, %esi
callq 0x4260
leaq 0x90(%rsp), %rdi
movl $0x420, %edx            # imm = 0x420
xorl %esi, %esi
callq 0x4260
movq 0x30(%rsp), %r14
cvtsi2sd %r14d, %xmm1
mulsd 0x236b9(%rip), %xmm1    # 0x9dbb0
movsd 0x24311(%rip), %xmm0    # 0x9e810
movsd %xmm1, 0x10(%rsp)
addsd %xmm1, %xmm0
addsd 0x2897f(%rip), %xmm0    # 0xa2e90
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1e1ab(%rip), %xmm0    # 0x986d0
cvttsd2si %xmm0, %rdi
andq %rcx, %rdi
orq %rax, %rdi
callq 0x4680
testq %rax, %rax
je 0x7a758
movl %r14d, %ecx
movq %rcx, 0x38(%rsp)
leaq (%r12,%rcx), %rbx
cmpl $0x7a120, %r14d         # imm = 0x7A120
movq %rax, 0x18(%rsp)
jbe 0x7a642
movl $0x100, %edi            # imm = 0x100
movl $0x40c, %esi            # imm = 0x40C
callq 0x8070d
testq %rax, %rax
je 0x7a74e
leaq -0x8(%rbx), %rsi
xorl %edx, %edx
movq %r12, %rcx
cmpq %r12, %rsi
jbe 0x7a61b
movzbl (%rcx), %r8d
movzbl 0x1(%rcx), %r9d
movzbl 0x2(%rcx), %r10d
movzbl 0x3(%rcx), %edi
movzbl %dl, %edx
shll $0xa, %edx
addq %r13, %rdx
incl (%rdx,%r8,4)
imulq $0x40c, %r8, %rdx       # imm = 0x40C
addq %rax, %rdx
incl (%rdx,%r9,4)
shll $0xa, %r9d
addq %r13, %r9
incl (%r9,%r10,4)
imulq $0x40c, %r10, %rdx      # imm = 0x40C
addq %rax, %rdx
incl (%rdx,%rdi,4)
movzbl 0x4(%rcx), %r8d
movzbl 0x5(%rcx), %r9d
movzbl 0x6(%rcx), %r10d
movzbl 0x7(%rcx), %edx
shll $0xa, %edi
addq %r13, %rdi
incl (%rdi,%r8,4)
imulq $0x40c, %r8, %rdi       # imm = 0x40C
addq %rax, %rdi
incl (%rdi,%r9,4)
shll $0xa, %r9d
addq %r13, %r9
incl (%r9,%r10,4)
addq $0x8, %rcx
imulq $0x40c, %r10, %rdi      # imm = 0x40C
addq %rax, %rdi
incl (%rdi,%rdx,4)
cmpq %rsi, %rcx
jb 0x7a586
cmpq %rbx, %rcx
jae 0x7a766
movzbl (%rcx), %esi
movzbl %dl, %edx
shll $0xa, %edx
addq %r13, %rdx
incl (%rdx,%rsi,4)
incq %rcx
movl %esi, %edx
cmpq %rbx, %rcx
jb 0x7a624
jmp 0x7a768
leaq -0x8(%rbx), %rcx
xorl %edx, %edx
movq %r12, %rax
cmpq %r12, %rcx
jbe 0x7a6e1
movsd 0x10(%rsp), %xmm0
movzbl (%rax), %edi
movzbl 0x1(%rax), %r8d
movzbl 0x2(%rax), %r9d
movzbl 0x3(%rax), %esi
movzbl %dl, %edx
shll $0xa, %edx
addq %r13, %rdx
incl (%rdx,%rdi,4)
shll $0xa, %edi
addq %r13, %rdi
incl (%rdi,%r8,4)
shll $0xa, %r8d
addq %r13, %r8
incl (%r8,%r9,4)
shll $0xa, %r9d
addq %r13, %r9
incl (%r9,%rsi,4)
movzbl 0x4(%rax), %r8d
movzbl 0x5(%rax), %r9d
movzbl 0x6(%rax), %edi
movzbl 0x7(%rax), %edx
shll $0xa, %esi
addq %r13, %rsi
incl (%rsi,%r8,4)
shll $0xa, %r8d
addq %r13, %r8
incl (%r8,%r9,4)
shll $0xa, %r9d
addq %r13, %r9
incl (%r9,%rdi,4)
addq $0x8, %rax
shll $0xa, %edi
addq %r13, %rdi
incl (%rdi,%rdx,4)
cmpq %rcx, %rax
jb 0x7a65a
jmp 0x7a6e7
movsd 0x10(%rsp), %xmm0
cmpq %rbx, %rax
movq 0x8(%rsp), %rdi
jae 0x7a70c
movzbl (%rax), %ecx
movzbl %dl, %edx
shll $0xa, %edx
addq %r13, %rdx
incl (%rdx,%rcx,4)
incq %rax
movl %ecx, %edx
cmpq %rbx, %rax
jb 0x7a6f1
jmp 0x7a70e
movl %edx, %ecx
movzbl %cl, %eax
incl 0x90(%rsp,%rax,4)
xorl %eax, %eax
movq %r13, %rcx
xorl %esi, %esi
xorl %edx, %edx
addl (%rcx,%rsi,4), %edx
incq %rsi
cmpq $0x100, %rsi            # imm = 0x100
jne 0x7a721
addl %edx, 0x90(%rsp,%rax,4)
incq %rax
addq $0x400, %rcx            # imm = 0x400
cmpq $0x100, %rax            # imm = 0x100
jne 0x7a71d
jmp 0x7a7cf
movq 0x18(%rsp), %rdi
callq 0x45c0
movq $0x0, 0x18(%rsp)
jmp 0x7b12f
movl %edx, %esi
movzbl %sil, %ecx
incl 0x90(%rsp,%rcx,4)
xorl %ecx, %ecx
movq %rax, %rdx
movq %r13, %rsi
xorl %r8d, %r8d
xorl %edi, %edi
movl (%rsi,%r8,4), %r9d
addl (%rdx,%r8,4), %r9d
movl %r9d, (%rsi,%r8,4)
addl %r9d, %edi
incq %r8
cmpq $0x100, %r8             # imm = 0x100
jne 0x7a780
addl %edi, 0x90(%rsp,%rcx,4)
incq %rcx
addq $0x400, %rsi            # imm = 0x400
addq $0x40c, %rdx            # imm = 0x40C
cmpq $0x100, %rcx            # imm = 0x100
jne 0x7a77b
movq %rax, %rdi
callq 0x80732
movq 0x8(%rsp), %rdi
movsd 0x10(%rsp), %xmm0
movq %r15, 0x80(%rsp)
cvttsd2si %xmm0, %rax
movl %eax, %eax
movq 0x18(%rsp), %rcx
addq %rcx, %rax
addq $0x3060c, %rax          # imm = 0x3060C
movq %rax, 0x48(%rsp)
movq 0x30(%rsp), %rax
movl %eax, %edx
shrl $0x2, %edx
movzbl (%r12,%rdx), %eax
incl 0x100000(%rdi,%rax,4)
movzbl (%r12,%rdx,2), %eax
incl 0x100000(%rdi,%rax,4)
movq %rdx, 0x58(%rsp)
leaq (%rdx,%rdx,2), %rax
movq %r12, 0x40(%rsp)
movq %rax, 0x50(%rsp)
movzbl (%r12,%rax), %eax
incl 0x100000(%rdi,%rax,4)
leaq 0x9(%rcx), %r11
addl $0x3, 0x90(%rsp)
leaq 0x100004(%rdi), %r8
xorl %r14d, %r14d
movl $0x1, %r9d
movsd 0x24312(%rip), %xmm0    # 0x9eb68
movsd 0x2863a(%rip), %xmm1    # 0xa2e98
movq %r13, %r12
xorl %r10d, %r10d
movq %r13, 0x60(%rsp)
movl 0x90(%rsp,%r14,4), %eax
testl %eax, %eax
je 0x7ab06
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
movapd %xmm0, %xmm2
divsd %xmm3, %xmm2
xorl %edx, %edx
xorl %eax, %eax
xorl %esi, %esi
xorl %ecx, %ecx
movl (%r12,%rdx,4), %edi
testl %edi, %edi
je 0x7a8bb
cmpl %edi, %esi
cmovll %edx, %ecx
cmovlel %edi, %esi
xorps %xmm3, %xmm3
cvtsi2sd %edi, %xmm3
mulsd %xmm2, %xmm3
cvttsd2si %xmm3, %edi
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, (%r12,%rdx,4)
addl %edi, %eax
incq %rdx
cmpq $0x100, %rdx            # imm = 0x100
jne 0x7a890
cmpl $0xffe, %eax            # imm = 0xFFE
jle 0x7a8fe
addl $0xfffff001, %eax       # imm = 0xFFFFF001
movslq %ecx, %rcx
movq %r14, %rdx
shlq $0xa, %rdx
addq %r13, %rdx
movl (%rdx,%rcx,4), %esi
movl %esi, %edi
shrl $0x1f, %edi
addl %esi, %edi
sarl %edi
movapd %xmm1, %xmm2
cmpl %edi, %eax
jge 0x7a888
leaq (%rdx,%rcx,4), %rcx
subl %eax, %esi
movl %esi, (%rcx)
jmp 0x7a919
movslq %ecx, %rcx
movq %r14, %rdx
shlq $0xa, %rdx
addq %r13, %rdx
movl (%rdx,%rcx,4), %esi
subl %eax, %esi
addl $0xfff, %esi            # imm = 0xFFF
movl %esi, (%rdx,%rcx,4)
testl %r10d, %r10d
je 0x7ab26
decl %r10d
movq %r11, %rax
movq %r10, 0x68(%rsp)
movq %r9, 0x70(%rsp)
movq %r14, %rdi
shlq $0xa, %rdi
addq %r13, %rdi
xorl %ebx, %ebx
movl $0x1, %r15d
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %r8, 0x20(%rsp)
movq %r8, %r11
xorl %r10d, %r10d
xorl %r9d, %r9d
movq %r14, 0x10(%rsp)
cmpl $0x0, (%rdi,%rbx,4)
je 0x7aa69
testl %r10d, %r10d
je 0x7aa85
decl %r10d
movq %rax, %rbp
movl (%rdi,%rbx,4), %eax
movl $0x1, %edx
cmpl $0x80, %eax
jge 0x7a98a
movq %rbp, %rcx
jmp 0x7a99e
shrl $0x8, %eax
orb $-0x80, %al
leaq 0x1(%rbp), %rcx
movb %al, (%rbp)
movl (%rdi,%rbx,4), %eax
movl $0x2, %edx
movb %al, (%rcx)
cmpl $0x1001, %r9d           # imm = 0x1001
jae 0x7b248
movl (%rdi,%rbx,4), %r8d
movl $0x1000, %eax           # imm = 0x1000
subl %r9d, %eax
cmpl %r8d, %eax
jb 0x7b229
movq %r14, %rax
shlq $0xc, %rax
addq 0x8(%rsp), %rax
movq %rbx, %r14
shlq $0x4, %r14
addq %rax, %r14
movl %r8d, %eax
shll $0x13, %eax
movl %eax, (%r14)
movl $0x1000, %eax           # imm = 0x1000
subl %r8d, %eax
movw %ax, 0xc(%r14)
cmpl $0x2, %r8d
jae 0x7aa0c
movl $0xffffffff, 0x4(%r14)  # imm = 0xFFFFFFFF
movw $0x0, 0xe(%r14)
leal 0xfff(%r9), %eax
jmp 0x7aa50
movq %rdx, 0x28(%rsp)
movl $0x1e, %esi
leal -0x1e(%rsi), %ecx
movl $0x1, %eax
shll %cl, %eax
incl %esi
cmpl %r8d, %eax
jb 0x7aa16
movl $0x1, %eax
movl %esi, %ecx
shlq %cl, %rax
addq %r8, %rax
decq %rax
xorl %edx, %edx
divq %r8
movl %eax, 0x4(%r14)
addl $-0x20, %esi
movw %si, 0xe(%r14)
movl %r9d, %eax
movq 0x28(%rsp), %rdx
movl %eax, 0x8(%r14)
addw $0x20, 0xe(%r14)
addq %rdx, %rbp
addl (%rdi,%rbx,4), %r9d
movq %rbp, %rax
movq 0x10(%rsp), %r14
incq %rbx
incq %r15
decq %r13
addq $0x4, %r11
cmpq $0x100, %rbx            # imm = 0x100
jne 0x7a95d
jmp 0x7aae9
leaq 0x1(%rax), %rbp
movb %bl, (%rax)
xorl %r10d, %r10d
testq %rbx, %rbx
je 0x7a976
cmpl $0x0, -0x4(%rdi,%rbx,4)
je 0x7a976
leal 0x1(%rbx), %ecx
movl %ecx, %r10d
cmpq $0xfe, %rbx
ja 0x7aad9
xorl %r10d, %r10d
cmpl $0x0, (%r11,%r10,4)
je 0x7aad6
leaq (%r15,%r10), %rdx
incq %rdx
incq %r10
cmpq $0x100, %rdx            # imm = 0x100
jne 0x7aab4
movl $0x100, %r10d           # imm = 0x100
jmp 0x7aad9
subl %r13d, %r10d
subl %ecx, %r10d
movb %r10b, 0x1(%rax)
addq $0x2, %rax
jmp 0x7a973
movb $0x0, (%rax)
incq %rax
movq %rax, %r11
movq 0x60(%rsp), %r13
movq 0x20(%rsp), %r8
movq 0x70(%rsp), %r9
movq 0x68(%rsp), %r10
incq %r14
incq %r9
movl $0x400, %eax            # imm = 0x400
addq %rax, %r12
addq %rax, %r8
cmpq $0x100, %r14            # imm = 0x100
jne 0x7a869
jmp 0x7ab88
leaq 0x1(%r11), %rax
movb %r14b, (%r11)
xorl %r10d, %r10d
testq %r14, %r14
je 0x7a928
cmpl $0x0, 0x8c(%rsp,%r14,4)
je 0x7a928
leal 0x1(%r14), %eax
movl %eax, %r10d
cmpq $0xff, %r14
je 0x7ab78
movq %r9, %r10
cmpl $0x0, 0x90(%rsp,%r10,4)
je 0x7ab78
incq %r10
cmpq $0x100, %r10            # imm = 0x100
jne 0x7ab5b
movl $0x100, %r10d           # imm = 0x100
subl %eax, %r10d
movb %r10b, 0x1(%r11)
addq $0x2, %r11
jmp 0x7a925
movb $0x0, (%r11)
subq 0x18(%rsp), %r11
incq %r11
cmpl $0x30603, %r11d         # imm = 0x30603
jae 0x7b286
movq 0x30(%rsp), %rax
movl %eax, %edx
andl $0x7ffffffc, %edx       # imm = 0x7FFFFFFC
movq 0x40(%rsp), %rcx
movq 0x58(%rsp), %rbx
movb -0x1(%rcx,%rbx), %r13b
movb -0x1(%rcx,%rbx,2), %r12b
movq 0x50(%rsp), %r15
movb -0x1(%rcx,%r15), %r10b
movq 0x38(%rsp), %rsi
movb -0x1(%rcx,%rsi), %r14b
cmpl %eax, %edx
jne 0x7abf0
movq %rax, %rcx
addl $-0x2, %eax
movl $0x800000, %r9d         # imm = 0x800000
movq 0x48(%rsp), %rbp
jmp 0x7ac7d
decl %eax
movl $0x800000, %r9d         # imm = 0x800000
movq 0x48(%rsp), %rbp
decl %eax
movzbl %r14b, %edi
movq 0x40(%rsp), %rcx
movzbl (%rcx,%rax), %r14d
movl %r14d, %esi
shll $0xc, %esi
addq 0x8(%rsp), %rsi
shll $0x4, %edi
movl (%rdi,%rsi), %r8d
testl %r8d, %r8d
je 0x7b267
xorl %ecx, %ecx
cmpl %r8d, %r9d
setae %cl
movb %r9b, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %r9d
cmpl %r8d, %r9d
jae 0x7ac69
addq %rdi, %rsi
movl %r9d, %ecx
movl 0x4(%rsi), %edi
imulq %rcx, %rdi
movb 0xe(%rsi), %cl
shrq %cl, %rdi
movzwl 0xc(%rsi), %ecx
imull %edi, %ecx
addl 0x8(%rsi), %r9d
addl %ecx, %r9d
cmpl %edx, %eax
jge 0x7abfd
jmp 0x7ac76
movb %r9b, -0x1(%rbp)
decq %rbp
shrl $0x8, %r9d
jmp 0x7ac42
decl %eax
movq 0x30(%rsp), %rcx
movq %rbp, 0x20(%rsp)
movq %r11, 0x78(%rsp)
cmpl $0x8, %ecx
jb 0x7b150
movl %r13d, %ebp
leal -0x2(%r15), %ecx
cltq
movq %rax, 0x50(%rsp)
movslq %ecx, %rax
movq %rax, 0x88(%rsp)
movq 0x38(%rsp), %rax
shrl %eax
andl $0x3ffffffe, %eax       # imm = 0x3FFFFFFE
movq %rax, 0x38(%rsp)
leal -0x1(%rbx), %eax
movq %rax, 0x10(%rsp)
movl $0x800000, %ebx         # imm = 0x800000
movq 0x40(%rsp), %r15
movl $0x800000, %eax         # imm = 0x800000
movl $0x800000, 0x28(%rsp)   # imm = 0x800000
movq 0x50(%rsp), %rcx
movzbl (%r15,%rcx), %ecx
movl %ecx, 0x70(%rsp)
movl %ecx, %esi
shll $0xc, %esi
movq 0x8(%rsp), %r8
addq %r8, %rsi
movzbl %r14b, %r11d
shll $0x4, %r11d
movl (%r11,%rsi), %edi
testl %edi, %edi
je 0x7b173
movq 0x88(%rsp), %rcx
movzbl (%r15,%rcx), %ecx
movl %ecx, 0x68(%rsp)
shll $0xc, %ecx
movzbl %r10b, %edx
shll $0x4, %edx
addq %r8, %rdx
addq %rcx, %rdx
movl (%rdx), %r10d
testl %r10d, %r10d
je 0x7b192
movq 0x38(%rsp), %rcx
movzbl -0x2(%r15,%rcx), %ecx
movl %ecx, 0x60(%rsp)
shll $0xc, %ecx
movzbl %r12b, %r12d
shll $0x4, %r12d
addq %r8, %r12
addq %rcx, %r12
movl (%r12), %r14d
testl %r14d, %r14d
je 0x7b1b1
movq 0x10(%rsp), %rcx
decl %ecx
movq 0x40(%rsp), %r13
movzbl (%r13,%rcx), %ecx
movl %ecx, 0x58(%rsp)
shll $0xc, %ecx
movzbl %bpl, %r13d
shll $0x4, %r13d
addq %r8, %r13
addq %rcx, %r13
movl (%r13), %r8d
testl %r8d, %r8d
je 0x7b1d0
xorl %ecx, %ecx
cmpl %edi, %r9d
setae %cl
movq 0x20(%rsp), %rbp
movb %r9b, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %r9d
cmpl %edi, %r9d
jb 0x7adc0
movb %r9b, -0x1(%rbp)
decq %rbp
shrl $0x8, %r9d
xorl %ecx, %ecx
cmpl %r10d, %ebx
setae %cl
movb %bl, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %ebx
cmpl %r10d, %ebx
jb 0x7ade1
movb %bl, -0x1(%rbp)
decq %rbp
shrl $0x8, %ebx
xorl %ecx, %ecx
cmpl %r14d, %eax
setae %cl
movb %al, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %eax
cmpl %r14d, %eax
jb 0x7ae02
movb %al, -0x1(%rbp)
decq %rbp
shrl $0x8, %eax
xorl %ecx, %ecx
movl 0x28(%rsp), %r10d
cmpl %r8d, %r10d
setae %cl
movb %r10b, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %r10d
cmpl %r8d, %r10d
jae 0x7ae28
movq %rbp, 0x20(%rsp)
jmp 0x7ae38
movb %r10b, -0x1(%rbp)
decq %rbp
movq %rbp, 0x20(%rsp)
shrl $0x8, %r10d
addq %r11, %rsi
movl %r9d, %ecx
movl 0x4(%rsi), %r8d
imulq %rcx, %r8
movb 0xe(%rsi), %cl
shrq %cl, %r8
movl %ebx, %ecx
movl 0x4(%rdx), %edi
imulq %rcx, %rdi
movzwl 0xc(%rsi), %r11d
movb 0xe(%rdx), %cl
shrq %cl, %rdi
imull %r8d, %r11d
addl %r9d, %r11d
addl 0x8(%rsi), %r11d
addl 0x8(%rdx), %ebx
movl %eax, %ecx
movl 0x4(%r12), %esi
imulq %rcx, %rsi
movl %r10d, %ecx
movl 0x4(%r13), %r8d
imulq %rcx, %r8
movzwl 0xc(%rdx), %edx
movb 0xe(%r12), %cl
shrq %cl, %rsi
movb 0xe(%r13), %cl
shrq %cl, %r8
imull %edi, %edx
addl %edx, %ebx
movzwl 0xc(%r12), %edx
imull %esi, %edx
addl %eax, %edx
movzwl 0xc(%r13), %eax
addl 0x8(%r12), %edx
imull %r8d, %eax
addl 0x8(%r13), %r10d
addl %eax, %r10d
movl %r10d, 0x28(%rsp)
decq %r15
movl 0x70(%rsp), %edi
movl %edi, %r14d
movl 0x68(%rsp), %ecx
movl %ecx, %r10d
movl 0x60(%rsp), %r8d
movl %r8d, %r12d
movl 0x58(%rsp), %r13d
movl %r13d, %ebp
movl %r11d, %r9d
movl %edx, %eax
movq 0x10(%rsp), %rsi
decl %esi
movq %rsi, 0x10(%rsp)
jg 0x7acd9
movzbl %dil, %edi
shll $0x4, %edi
movq 0x8(%rsp), %rsi
movl (%rsi,%rdi), %eax
testl %eax, %eax
je 0x7b267
movl %ecx, %r9d
addq %rsi, %rdi
xorl %ecx, %ecx
cmpl %eax, %r11d
setae %cl
movq 0x20(%rsp), %rbp
movb %r11b, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %r11d
cmpl %eax, %r11d
movq 0x80(%rsp), %r12
movl %r8d, %r10d
jae 0x7b1ef
movl %r11d, %ecx
movl 0x4(%rdi), %eax
imulq %rcx, %rax
movb 0xe(%rdi), %cl
shrq %cl, %rax
movzbl %r9b, %r9d
shll $0x4, %r9d
movl (%rsi,%r9), %r8d
testl %r8d, %r8d
je 0x7b267
movq %rsi, %rcx
movzwl 0xc(%rdi), %esi
addl 0x8(%rdi), %r11d
addq %rcx, %r9
xorl %ecx, %ecx
cmpl %r8d, %ebx
setae %cl
movb %bl, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %ebx
cmpl %r8d, %ebx
jae 0x7b1ff
movl %ebx, %ecx
movl 0x4(%r9), %edi
imulq %rcx, %rdi
movb 0xe(%r9), %cl
shrq %cl, %rdi
movzbl %r10b, %r8d
shll $0x4, %r8d
movq 0x8(%rsp), %rcx
movl (%rcx,%r8), %r14d
testl %r14d, %r14d
je 0x7b267
movzwl 0xc(%r9), %r10d
addl 0x8(%r9), %ebx
addq %rcx, %r8
xorl %ecx, %ecx
cmpl %r14d, %edx
setae %cl
movb %dl, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %edx
cmpl %r14d, %edx
jae 0x7b20d
movl %edx, %ecx
movl 0x4(%r8), %r14d
imulq %rcx, %r14
movb 0xe(%r8), %cl
shrq %cl, %r14
movzbl %r13b, %ecx
shll $0x4, %ecx
movq 0x8(%rsp), %r15
movl (%r15,%rcx), %r9d
testl %r9d, %r9d
je 0x7b267
imull %esi, %eax
addl %eax, %r11d
imull %r10d, %edi
addl %edi, %ebx
movzwl 0xc(%r8), %eax
imull %r14d, %eax
addl 0x8(%r8), %edx
addl %eax, %edx
movq %r15, %rax
addq %rcx, %rax
xorl %ecx, %ecx
movl 0x28(%rsp), %esi
cmpl %r9d, %esi
setae %cl
movb %sil, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %esi
movl %esi, %ecx
cmpl %r9d, %esi
jae 0x7b21b
movq 0x78(%rsp), %r9
movl %ecx, %r10d
movl %ecx, %edi
movl 0x4(%rax), %esi
movb 0xe(%rax), %cl
addl 0x8(%rax), %r10d
movzwl 0xc(%rax), %eax
movl %r11d, -0x4(%rbp)
movb %bl, -0x8(%rbp)
movb %bh, -0x7(%rbp)
movl %ebx, %r8d
shrl $0x10, %r8d
movb %r8b, -0x6(%rbp)
shrl $0x18, %ebx
movb %bl, -0x5(%rbp)
movb %dl, -0xc(%rbp)
movb %dh, -0xb(%rbp)
movl %edx, %r8d
shrl $0x10, %r8d
movb %r8b, -0xa(%rbp)
shrl $0x18, %edx
movb %dl, -0x9(%rbp)
imulq %rdi, %rsi
shrq %cl, %rsi
imull %esi, %eax
movl %r10d, %ecx
addl %eax, %ecx
leaq -0x10(%rbp), %rsi
movb %cl, -0x10(%rbp)
movb %ch, -0xf(%rbp)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, -0xe(%rbp)
shrl $0x18, %ecx
movb %cl, -0xd(%rbp)
movq 0x48(%rsp), %rdx
subq %rsi, %rdx
movl %r9d, %eax
addq %rdx, %r9
movl %r9d, (%r12)
movq 0x18(%rsp), %rdi
movb $0x1, (%rdi)
movl %r9d, %ecx
addb $-0x9, %cl
movb %cl, 0x1(%rdi)
leal 0xfff7(%r9), %ecx
movb %ch, 0x2(%rdi)
leal 0xfffff7(%r9), %ecx
shrl $0x10, %ecx
movb %cl, 0x3(%rdi)
leal -0x9(%r9), %ecx
shrl $0x18, %ecx
movb %cl, 0x4(%rdi)
movq 0x30(%rsp), %rbx
movb %bl, 0x5(%rdi)
movb %bh, 0x6(%rdi)
movl %ebx, %ecx
shrl $0x10, %ecx
movb %cl, 0x7(%rdi)
shrl $0x18, %ebx
movb %bl, 0x8(%rdi)
andl $0x3ffff, %eax          # imm = 0x3FFFF
addq %rax, %rdi
callq 0x4830
movq 0x8(%rsp), %rdi
callq 0x80732
movq 0x18(%rsp), %rax
addq $0x4b8, %rsp            # imm = 0x4B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x800000, 0x28(%rsp)   # imm = 0x800000
movl $0x800000, %edx         # imm = 0x800000
movl $0x800000, %ebx         # imm = 0x800000
movl %r9d, %r11d
movl %r12d, %r8d
movl %r10d, %ecx
movl %r14d, %edi
jmp 0x7aef9
leaq 0x27e42(%rip), %rdi     # 0xa2fbc
leaq 0x27dc5(%rip), %rsi     # 0xa2f46
leaq 0x27e45(%rip), %rcx     # 0xa2fcd
movl $0x14d, %edx            # imm = 0x14D
callq 0x42f0
leaq 0x27ee7(%rip), %rdi     # 0xa3080
leaq 0x27da6(%rip), %rsi     # 0xa2f46
leaq 0x27e26(%rip), %rcx     # 0xa2fcd
movl $0x14e, %edx            # imm = 0x14E
callq 0x42f0
leaq 0x27ed9(%rip), %rdi     # 0xa3091
leaq 0x27d87(%rip), %rsi     # 0xa2f46
leaq 0x27e07(%rip), %rcx     # 0xa2fcd
movl $0x14f, %edx            # imm = 0x14F
callq 0x42f0
leaq 0x27ecb(%rip), %rdi     # 0xa30a2
leaq 0x27d68(%rip), %rsi     # 0xa2f46
leaq 0x27de8(%rip), %rcx     # 0xa2fcd
movl $0x150, %edx            # imm = 0x150
callq 0x42f0
movb %r11b, -0x1(%rbp)
decq %rbp
shrl $0x8, %r11d
jmp 0x7af44
movb %bl, -0x1(%rbp)
decq %rbp
shrl $0x8, %ebx
jmp 0x7af93
movb %dl, -0x1(%rbp)
decq %rbp
shrl $0x8, %edx
jmp 0x7afe6
movb %cl, -0x1(%rbp)
decq %rbp
shrl $0x8, %ecx
jmp 0x7b054
leaq 0x23a02(%rip), %rdi     # 0x9ec32
leaq 0x27d0f(%rip), %rsi     # 0xa2f46
leaq 0x23992(%rip), %rcx     # 0x9ebd0
movl $0xc9, %edx
callq 0x42f0
leaq 0x239c7(%rip), %rdi     # 0x9ec16
leaq 0x27cf0(%rip), %rsi     # 0xa2f46
leaq 0x23973(%rip), %rcx     # 0x9ebd0
movl $0xc8, %edx
callq 0x42f0
leaq 0x27cf8(%rip), %rdi     # 0xa2f66
leaq 0x27cd1(%rip), %rsi     # 0xa2f46
leaq 0x27cfa(%rip), %rcx     # 0xa2f76
movl $0x11d, %edx            # imm = 0x11D
callq 0x42f0
leaq 0x27c33(%rip), %rdi     # 0xa2ec0
leaq 0x27c41(%rip), %rsi     # 0xa2ed5
leaq 0x27c5c(%rip), %rcx     # 0xa2ef7
movl $0x204, %edx            # imm = 0x204
callq 0x42f0