// File: /workspace/github_c_makefile_star2_O3/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 0x78420
movq %rdi, %r12
testl %ecx, %ecx
je 0x7842e
cmpl $0x3, %esi
ja 0x7844a
movq %r12, %rdi
movq %r15, %rdx
callq 0x7921b
jmp 0x790c0
movl $0x0, (%r15)
xorl %eax, %eax
jmp 0x790c0
movq %r12, %rdi
movq %r15, %rdx
addq $0x4b8, %rsp            # imm = 0x4B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7921b
movq %rsi, 0x20(%rsp)
movl $0x140000, %edi         # imm = 0x140000
callq 0x7e144
testq %rax, %rax
je 0x78427
movq %rax, %r14
leaq 0x100000(%rax), %rbp
movl $0x40000, %edx          # imm = 0x40000
movq %rbp, %rdi
xorl %esi, %esi
callq 0x4260
leaq 0x90(%rsp), %rdi
movl $0x420, %edx            # imm = 0x420
xorl %esi, %esi
callq 0x4260
movq 0x20(%rsp), %rbx
cvtsi2sd %ebx, %xmm1
mulsd 0x2290c(%rip), %xmm1    # 0x9ada8
movsd 0x23564(%rip), %xmm0    # 0x9ba08
movsd %xmm1, 0x8(%rsp)
addsd %xmm1, %xmm0
addsd 0x2815a(%rip), %xmm0    # 0xa0610
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1d246(%rip), %xmm0    # 0x95710
cvttsd2si %xmm0, %rdi
andq %rcx, %rdi
orq %rax, %rdi
callq 0x4680
testq %rax, %rax
je 0x790aa
movl %ebx, %ecx
movq %rcx, 0x58(%rsp)
leaq (%r12,%rcx), %r13
cmpl $0x7a120, %ebx          # imm = 0x7A120
movq %rax, 0x10(%rsp)
jbe 0x78639
movl $0x100, %edi            # imm = 0x100
movl $0x40c, %esi            # imm = 0x40C
callq 0x7e245
testq %rax, %rax
je 0x790a0
leaq -0x8(%r13), %rsi
xorl %edx, %edx
movq %r12, %rcx
movzbl (%rcx), %r8d
movzbl 0x1(%rcx), %r9d
movzbl 0x2(%rcx), %r10d
movzbl 0x3(%rcx), %edi
movzbl %dl, %edx
shll $0xa, %edx
addq %rbp, %rdx
incl (%rdx,%r8,4)
imulq $0x40c, %r8, %rdx       # imm = 0x40C
addq %rax, %rdx
incl (%rdx,%r9,4)
shll $0xa, %r9d
addq %rbp, %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 %rbp, %rdi
incl (%rdi,%r8,4)
imulq $0x40c, %r8, %rdi       # imm = 0x40C
addq %rax, %rdi
incl (%rdi,%r9,4)
shll $0xa, %r9d
addq %rbp, %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 0x78520
cmpq %r13, %rcx
jae 0x785d6
movl %edx, %esi
movzbl (%rcx), %edx
movzbl %sil, %esi
shll $0xa, %esi
addq %rbp, %rsi
incl (%rsi,%rdx,4)
incq %rcx
movl %edx, %esi
cmpq %r13, %rcx
jb 0x785bc
incl 0x90(%rsp,%rdx,4)
xorl %ecx, %ecx
movq %rax, %rdx
movq %rbp, %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 0x785ea
addl %edi, 0x90(%rsp,%rcx,4)
incq %rcx
addq $0x400, %rsi            # imm = 0x400
addq $0x40c, %rdx            # imm = 0x40C
cmpq $0x100, %rcx            # imm = 0x100
jne 0x785e5
movq %rax, %rdi
callq 0x7e26a
movsd 0x8(%rsp), %xmm2
jmp 0x78758
leaq -0x8(%r13), %rcx
xorl %edx, %edx
movq %r12, %rax
cmpq %r12, %rcx
jbe 0x786d8
movsd 0x8(%rsp), %xmm2
movzbl (%rax), %edi
movzbl 0x1(%rax), %r8d
movzbl 0x2(%rax), %r9d
movzbl 0x3(%rax), %esi
movzbl %dl, %edx
shll $0xa, %edx
addq %rbp, %rdx
incl (%rdx,%rdi,4)
shll $0xa, %edi
addq %rbp, %rdi
incl (%rdi,%r8,4)
shll $0xa, %r8d
addq %rbp, %r8
incl (%r8,%r9,4)
shll $0xa, %r9d
addq %rbp, %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 %rbp, %rsi
incl (%rsi,%r8,4)
shll $0xa, %r8d
addq %rbp, %r8
incl (%r8,%r9,4)
shll $0xa, %r9d
addq %rbp, %r9
incl (%r9,%rdi,4)
addq $0x8, %rax
shll $0xa, %edi
addq %rbp, %rdi
incl (%rdi,%rdx,4)
cmpq %rcx, %rax
jb 0x78651
jmp 0x786de
movsd 0x8(%rsp), %xmm2
cmpq %r13, %rax
jae 0x786fe
movzbl (%rax), %ecx
movzbl %dl, %edx
shll $0xa, %edx
addq %rbp, %rdx
incl (%rdx,%rcx,4)
incq %rax
movl %ecx, %edx
cmpq %r13, %rax
jb 0x786e3
jmp 0x78701
movzbl %dl, %ecx
incl 0x90(%rsp,%rcx,4)
xorl %eax, %eax
movq %rbp, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
movdqu (%rcx,%rdx,4), %xmm1
paddd %xmm1, %xmm0
addq $0x4, %rdx
cmpq $0x100, %rdx            # imm = 0x100
jne 0x78713
pshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
paddd %xmm0, %xmm1
pshufd $0x55, %xmm1, %xmm0     # xmm0 = xmm1[1,1,1,1]
paddd %xmm1, %xmm0
movd %xmm0, %edx
addl %edx, 0x90(%rsp,%rax,4)
incq %rax
addq $0x400, %rcx            # imm = 0x400
cmpq $0x100, %rax            # imm = 0x100
jne 0x7870d
movq %r13, 0x50(%rsp)
movq %r15, 0x88(%rsp)
cvttsd2si %xmm2, %rax
movl %eax, %eax
movq 0x10(%rsp), %rcx
leaq 0x3060c(%rcx,%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x20(%rsp), %rax
movl %eax, %edx
shrl $0x2, %edx
movzbl (%r12,%rdx), %eax
incl 0x100000(%r14,%rax,4)
movzbl (%r12,%rdx,2), %eax
incl 0x100000(%r14,%rax,4)
movq %rdx, 0x38(%rsp)
leaq (%rdx,%rdx,2), %rax
movq %r12, 0x30(%rsp)
movq %rax, 0x28(%rsp)
movzbl (%r12,%rax), %eax
incl 0x100000(%r14,%rax,4)
leaq 0x9(%rcx), %r13
addl $0x3, 0x90(%rsp)
leaq 0x100004(%r14), %r11
xorl %r8d, %r8d
movl $0x1, %r9d
movsd 0x27e32(%rip), %xmm0    # 0xa0618
movsd 0x27e32(%rip), %xmm1    # 0xa0620
movq %rbp, %r12
xorl %r10d, %r10d
movq %r14, 0x60(%rsp)
movq %rbp, 0x68(%rsp)
movl 0x90(%rsp,%r8,4), %eax
testl %eax, %eax
je 0x78a95
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 0x78850
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 0x78825
cmpl $0xffe, %eax            # imm = 0xFFE
jle 0x78893
addl $0xfffff001, %eax       # imm = 0xFFFFF001
movslq %ecx, %rcx
movq %r8, %rdx
shlq $0xa, %rdx
addq %rbp, %rdx
movl (%rdx,%rcx,4), %esi
movl %esi, %edi
shrl $0x1f, %edi
addl %esi, %edi
sarl %edi
movapd %xmm1, %xmm2
cmpl %edi, %eax
jge 0x7881d
leaq (%rdx,%rcx,4), %rcx
subl %eax, %esi
movl %esi, (%rcx)
jmp 0x788ae
movslq %ecx, %rcx
movq %r8, %rdx
shlq $0xa, %rdx
addq %rbp, %rdx
movl (%rdx,%rcx,4), %esi
subl %eax, %esi
addl $0xfff, %esi            # imm = 0xFFF
movl %esi, (%rdx,%rcx,4)
testl %r10d, %r10d
je 0x78ab5
decl %r10d
movq %r13, %rax
movq %r10, 0x70(%rsp)
movq %r9, 0x78(%rsp)
movq %r8, 0x8(%rsp)
movq %r8, %rdi
shlq $0xa, %rdi
addq %rbp, %rdi
xorl %ebp, %ebp
movl $0x1, %r15d
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %r11, 0x40(%rsp)
xorl %r10d, %r10d
xorl %esi, %esi
cmpl $0x0, (%rdi,%rbp,4)
je 0x789f2
testl %r10d, %r10d
je 0x78a0e
decl %r10d
movq %rax, %rbx
movl (%rdi,%rbp,4), %eax
movl $0x1, %r8d
cmpl $0x80, %eax
jge 0x7891c
movq %rbx, %rcx
jmp 0x78930
shrl $0x8, %eax
orb $-0x80, %al
leaq 0x1(%rbx), %rcx
movb %al, (%rbx)
movl (%rdi,%rbp,4), %eax
movl $0x2, %r8d
movb %al, (%rcx)
cmpl $0x1001, %esi           # imm = 0x1001
jae 0x791be
movl (%rdi,%rbp,4), %r9d
movl $0x1000, %eax           # imm = 0x1000
subl %esi, %eax
cmpl %r9d, %eax
jb 0x7919f
movq 0x8(%rsp), %rax
shlq $0xc, %rax
addq %r14, %rax
movq %rbp, %r14
shlq $0x4, %r14
addq %rax, %r14
movl %r9d, %eax
shll $0x13, %eax
movl %eax, (%r14)
movl $0x1000, %eax           # imm = 0x1000
subl %r9d, %eax
movw %ax, 0xc(%r14)
cmpl $0x2, %r9d
jae 0x7899f
movl $0xffffffff, 0x4(%r14)  # imm = 0xFFFFFFFF
leal 0xfff(%rsi), %eax
movl %eax, 0x8(%r14)
movq %rsi, %rcx
movw $0x20, %si
jmp 0x789dc
movq %rsi, 0x18(%rsp)
movl $0x1e, %esi
leal -0x1e(%rsi), %ecx
movl $0x1, %eax
shll %cl, %eax
incl %esi
cmpl %r9d, %eax
jb 0x789a9
movl $0x1, %eax
movl %esi, %ecx
shlq %cl, %rax
addq %r9, %rax
decq %rax
xorl %edx, %edx
divq %r9
movl %eax, 0x4(%r14)
movq 0x18(%rsp), %rcx
movl %ecx, 0x8(%r14)
addq %r8, %rbx
movw %si, 0xe(%r14)
addl (%rdi,%rbp,4), %ecx
movq %rbx, %rax
movq 0x60(%rsp), %r14
movq %rcx, %rsi
incq %rbp
incq %r15
decq %r13
addq $0x4, %r11
cmpq $0x100, %rbp            # imm = 0x100
jne 0x788ee
jmp 0x78a73
leaq 0x1(%rax), %rbx
movb %bpl, (%rax)
xorl %r10d, %r10d
testq %rbp, %rbp
je 0x78907
cmpl $0x0, -0x4(%rdi,%rbp,4)
je 0x78907
leal 0x1(%rbp), %ecx
movl %ecx, %r10d
cmpq $0xfe, %rbp
ja 0x78a63
xorl %r10d, %r10d
cmpl $0x0, (%r11,%r10,4)
je 0x78a60
leaq (%r15,%r10), %rdx
incq %rdx
incq %r10
cmpq $0x100, %rdx            # imm = 0x100
jne 0x78a3e
movl $0x100, %r10d           # imm = 0x100
jmp 0x78a63
subl %r13d, %r10d
subl %ecx, %r10d
movb %r10b, 0x1(%rax)
addq $0x2, %rax
jmp 0x78904
movb $0x0, (%rax)
incq %rax
movq %rax, %r13
movq 0x68(%rsp), %rbp
movq 0x40(%rsp), %r11
movq 0x8(%rsp), %r8
movq 0x78(%rsp), %r9
movq 0x70(%rsp), %r10
incq %r8
incq %r9
movl $0x400, %eax            # imm = 0x400
addq %rax, %r12
addq %rax, %r11
cmpq $0x100, %r8             # imm = 0x100
jne 0x787fe
jmp 0x78b18
leaq 0x1(%r13), %rax
movb %r8b, (%r13)
xorl %r10d, %r10d
testq %r8, %r8
je 0x788bd
cmpl $0x0, 0x8c(%rsp,%r8,4)
je 0x788bd
leal 0x1(%r8), %eax
movl %eax, %r10d
cmpq $0xff, %r8
je 0x78b08
movq %r9, %r10
cmpl $0x0, 0x90(%rsp,%r10,4)
je 0x78b08
incq %r10
cmpq $0x100, %r10            # imm = 0x100
jne 0x78aeb
movl $0x100, %r10d           # imm = 0x100
subl %eax, %r10d
movb %r10b, 0x1(%r13)
addq $0x2, %r13
jmp 0x788ba
movb $0x0, (%r13)
subq 0x10(%rsp), %r13
incq %r13
cmpl $0x30603, %r13d         # imm = 0x30603
jae 0x791fc
movq 0x20(%rsp), %rcx
movl %ecx, %edx
andl $0x7ffffffc, %edx       # imm = 0x7FFFFFFC
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rsi
movb -0x1(%rax,%rsi), %r15b
movb -0x1(%rax,%rsi,2), %r10b
movq 0x28(%rsp), %rsi
movb -0x1(%rax,%rsi), %r11b
movq 0x50(%rsp), %rax
movb -0x1(%rax), %r12b
cmpl %ecx, %edx
jne 0x78b7c
leal -0x2(%rcx), %eax
movl $0x800000, %esi         # imm = 0x800000
movq 0x48(%rsp), %rbp
jmp 0x78c05
leal -0x1(%rcx), %eax
movl $0x800000, %esi         # imm = 0x800000
movq 0x48(%rsp), %rbp
decl %eax
movzbl %r12b, %r8d
movq 0x30(%rsp), %rcx
movzbl (%rcx,%rax), %r12d
movl %r12d, %edi
shll $0xc, %edi
addq %r14, %rdi
shll $0x4, %r8d
movl (%r8,%rdi), %r9d
testl %r9d, %r9d
je 0x791dd
xorl %ecx, %ecx
cmpl %r9d, %esi
setae %cl
movb %sil, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %esi
cmpl %r9d, %esi
jae 0x78bf2
addq %r8, %rdi
movl %esi, %ecx
movl 0x4(%rdi), %r8d
imulq %rcx, %r8
movb 0xe(%rdi), %cl
shrq %cl, %r8
movzwl 0xc(%rdi), %ecx
imull %r8d, %ecx
addl 0x8(%rdi), %esi
addl %ecx, %esi
cmpl %edx, %eax
jge 0x78b89
jmp 0x78bfe
movb %sil, -0x1(%rbp)
decq %rbp
shrl $0x8, %esi
jmp 0x78bcc
decl %eax
movq 0x20(%rsp), %rcx
cmpl $0x7, %ecx
jbe 0x790d2
movq %r13, 0x80(%rsp)
movq 0x28(%rsp), %rcx
addl $-0x2, %ecx
cltq
movq %rax, 0x28(%rsp)
movslq %ecx, %rax
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rax
shrl %eax
andl $0x3ffffffe, %eax       # imm = 0x3FFFFFFE
movq %rax, 0x58(%rsp)
movq 0x38(%rsp), %rax
decl %eax
movq %rax, 0x8(%rsp)
movl $0x800000, %edx         # imm = 0x800000
movq 0x30(%rsp), %rdi
movl $0x800000, 0x18(%rsp)   # imm = 0x800000
movl $0x800000, %eax         # imm = 0x800000
movl %eax, 0x40(%rsp)
movq %rbp, %rax
movq 0x28(%rsp), %rcx
movzbl (%rdi,%rcx), %ecx
movl %ecx, %r9d
shll $0xc, %r9d
addq %r14, %r9
movzbl %r12b, %r13d
shll $0x4, %r13d
movl (%r13,%r9), %ebp
testl %ebp, %ebp
je 0x790ea
movq %rcx, 0x78(%rsp)
movq 0x50(%rsp), %rcx
movzbl (%rdi,%rcx), %ecx
movl %ecx, 0x70(%rsp)
shll $0xc, %ecx
movzbl %r11b, %r11d
shll $0x4, %r11d
addq %r14, %r11
addq %rcx, %r11
movq %rdi, %r8
movl (%r11), %edi
testl %edi, %edi
movq 0x30(%rsp), %r12
je 0x79109
movq 0x58(%rsp), %rcx
movq %r8, 0x68(%rsp)
movzbl -0x2(%r8,%rcx), %ecx
movl %ecx, 0x38(%rsp)
shll $0xc, %ecx
movzbl %r10b, %r10d
shll $0x4, %r10d
addq %r14, %r10
addq %rcx, %r10
movl (%r10), %r8d
testl %r8d, %r8d
je 0x79128
movq 0x8(%rsp), %rcx
decl %ecx
movzbl (%r12,%rcx), %ecx
movl %ecx, %ebx
shll $0xc, %ecx
movzbl %r15b, %r12d
shll $0x4, %r12d
addq %r14, %r12
addq %rcx, %r12
movl (%r12), %r14d
testl %r14d, %r14d
je 0x79147
xorl %ecx, %ecx
cmpl %ebp, %esi
setae %cl
movb %sil, -0x1(%rax)
subq %rcx, %rax
shlb $0x3, %cl
shrl %cl, %esi
cmpl %ebp, %esi
jb 0x78d44
movb %sil, -0x1(%rax)
decq %rax
shrl $0x8, %esi
movq %rax, %rbp
movl 0x40(%rsp), %eax
xorl %ecx, %ecx
cmpl %edi, %edx
setae %cl
movb %dl, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %edx
cmpl %edi, %edx
movl %ebx, %r15d
jb 0x78d6d
movb %dl, -0x1(%rbp)
decq %rbp
shrl $0x8, %edx
movl 0x18(%rsp), %ebx
xorl %ecx, %ecx
cmpl %r8d, %ebx
setae %cl
movb %bl, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %ebx
cmpl %r8d, %ebx
jb 0x78d92
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 0x78db3
movb %al, -0x1(%rbp)
decq %rbp
shrl $0x8, %eax
addq %r13, %r9
movl %esi, %ecx
movl 0x4(%r9), %edi
imulq %rcx, %rdi
movb 0xe(%r9), %cl
shrq %cl, %rdi
movl %edx, %ecx
movl 0x4(%r11), %r8d
imulq %rcx, %r8
movb 0xe(%r11), %cl
shrq %cl, %r8
movl %ebx, %ecx
movl 0x4(%r10), %r14d
imulq %rcx, %r14
movb 0xe(%r10), %cl
shrq %cl, %r14
movl %eax, %ecx
movl 0x4(%r12), %r13d
imulq %rcx, %r13
movb 0xe(%r12), %cl
shrq %cl, %r13
movzwl 0xc(%r9), %ecx
imull %edi, %ecx
addl %ecx, %esi
addl 0x8(%r9), %esi
movzwl 0xc(%r11), %ecx
imull %r8d, %ecx
addl 0x8(%r11), %edx
movzwl 0xc(%r10), %edi
imull %r14d, %edi
addl %edi, %ebx
addl 0x8(%r10), %ebx
movl %ebx, 0x18(%rsp)
addl %ecx, %edx
addl 0x8(%r12), %eax
movzwl 0xc(%r12), %ecx
imull %r13d, %ecx
addl %ecx, %eax
movq 0x68(%rsp), %rdi
decq %rdi
movq 0x78(%rsp), %r8
movl %r8d, %r12d
movl 0x70(%rsp), %r9d
movl %r9d, %r11d
movl 0x38(%rsp), %r13d
movl %r13d, %r10d
movq 0x8(%rsp), %rcx
decl %ecx
movq %rcx, 0x8(%rsp)
movq 0x60(%rsp), %r14
jg 0x78c61
movl %r13d, %r10d
movl %r9d, %r11d
movq 0x80(%rsp), %r13
movl 0x18(%rsp), %ebx
shll $0x4, %r8d
movl (%r14,%r8), %edi
testl %edi, %edi
je 0x791dd
addq %r14, %r8
xorl %ecx, %ecx
cmpl %edi, %esi
setae %cl
movb %sil, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %esi
cmpl %edi, %esi
jae 0x79166
movl %esi, %ecx
movl 0x4(%r8), %edi
imulq %rcx, %rdi
movb 0xe(%r8), %cl
shrq %cl, %rdi
movzbl %r11b, %r11d
shll $0x4, %r11d
movl (%r14,%r11), %r9d
testl %r9d, %r9d
je 0x791dd
movq %r8, %rcx
movzwl 0xc(%r8), %r8d
addl 0x8(%rcx), %esi
addq %r14, %r11
xorl %ecx, %ecx
cmpl %r9d, %edx
setae %cl
movb %dl, -0x1(%rbp)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %edx
movl %esi, %r12d
cmpl %r9d, %edx
jae 0x79175
movl %edx, %ecx
movl 0x4(%r11), %r9d
imulq %rcx, %r9
movb 0xe(%r11), %cl
shrq %cl, %r9
movzbl %r10b, %r10d
shll $0x4, %r10d
movq %r14, %rcx
movl (%r14,%r10), %r14d
testl %r14d, %r14d
je 0x791dd
movq %rbp, %rsi
movzwl 0xc(%r11), %ebp
addl 0x8(%r11), %edx
addq %rcx, %r10
xorl %ecx, %ecx
cmpl %r14d, %ebx
setae %cl
movb %bl, -0x1(%rsi)
subq %rcx, %rsi
shlb $0x3, %cl
shrl %cl, %ebx
cmpl %r14d, %ebx
jae 0x79183
movl %ebx, %ecx
movl 0x4(%r10), %r14d
imulq %rcx, %r14
movb 0xe(%r10), %cl
shrq %cl, %r14
movzbl %r15b, %ecx
shll $0x4, %ecx
movq 0x60(%rsp), %r15
movl (%r15,%rcx), %r11d
testl %r11d, %r11d
je 0x791dd
imull %r8d, %edi
addl %edi, %r12d
imull %ebp, %r9d
addl %r9d, %edx
movzwl 0xc(%r10), %edi
imull %r14d, %edi
addl 0x8(%r10), %ebx
addl %edi, %ebx
movq %r15, %rdi
addq %rcx, %rdi
xorl %ecx, %ecx
cmpl %r11d, %eax
setae %cl
movq %rsi, %rbp
movb %al, -0x1(%rsi)
subq %rcx, %rbp
shlb $0x3, %cl
shrl %cl, %eax
cmpl %r11d, %eax
movq %r15, %r14
jae 0x79191
movl %eax, %r9d
movl 0x4(%rdi), %r8d
movb 0xe(%rdi), %cl
addl 0x8(%rdi), %eax
movzwl 0xc(%rdi), %edi
movl %r12d, -0x4(%rbp)
movb %dl, -0x8(%rbp)
movb %dh, -0x7(%rbp)
movl %edx, %esi
shrl $0x10, %esi
movb %sil, -0x6(%rbp)
shrl $0x18, %edx
movb %dl, -0x5(%rbp)
movb %bl, -0xc(%rbp)
movb %bh, -0xb(%rbp)
movl %ebx, %edx
shrl $0x10, %edx
movb %dl, -0xa(%rbp)
shrl $0x18, %ebx
movb %bl, -0x9(%rbp)
imulq %r9, %r8
shrq %cl, %r8
imull %r8d, %edi
addl %edi, %eax
leaq -0x10(%rbp), %rsi
movb %al, -0x10(%rbp)
movb %ah, -0xf(%rbp)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, -0xe(%rbp)
shrl $0x18, %eax
movb %al, -0xd(%rbp)
movq 0x48(%rsp), %rdx
subq %rsi, %rdx
movl %r13d, %eax
addq %rdx, %r13
movq 0x88(%rsp), %rcx
movl %r13d, (%rcx)
movq 0x10(%rsp), %rdi
movb $0x1, (%rdi)
movl %r13d, %ecx
addb $-0x9, %cl
movb %cl, 0x1(%rdi)
leal 0xfff7(%r13), %ecx
movb %ch, 0x2(%rdi)
leal 0xfffff7(%r13), %ecx
shrl $0x10, %ecx
movb %cl, 0x3(%rdi)
leal -0x9(%r13), %ecx
shrl $0x18, %ecx
movb %cl, 0x4(%rdi)
movq 0x20(%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
jmp 0x790b3
movq 0x10(%rsp), %rdi
callq 0x45c0
movq $0x0, 0x10(%rsp)
movq %r14, %rdi
callq 0x7e26a
movq 0x10(%rsp), %rax
addq $0x4b8, %rsp            # imm = 0x4B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %r12b, %r8d
movl $0x800000, %eax         # imm = 0x800000
movl $0x800000, %ebx         # imm = 0x800000
movl $0x800000, %edx         # imm = 0x800000
jmp 0x78e86
leaq 0x27653(%rip), %rdi     # 0xa0744
leaq 0x275d6(%rip), %rsi     # 0xa06ce
leaq 0x27656(%rip), %rcx     # 0xa0755
movl $0x14d, %edx            # imm = 0x14D
callq 0x42f0
leaq 0x276f8(%rip), %rdi     # 0xa0808
leaq 0x275b7(%rip), %rsi     # 0xa06ce
leaq 0x27637(%rip), %rcx     # 0xa0755
movl $0x14e, %edx            # imm = 0x14E
callq 0x42f0
leaq 0x276ea(%rip), %rdi     # 0xa0819
leaq 0x27598(%rip), %rsi     # 0xa06ce
leaq 0x27618(%rip), %rcx     # 0xa0755
movl $0x14f, %edx            # imm = 0x14F
callq 0x42f0
leaq 0x276dc(%rip), %rdi     # 0xa082a
leaq 0x27579(%rip), %rsi     # 0xa06ce
leaq 0x275f9(%rip), %rcx     # 0xa0755
movl $0x150, %edx            # imm = 0x150
callq 0x42f0
movb %sil, -0x1(%rbp)
decq %rbp
shrl $0x8, %esi
jmp 0x78eb4
movb %dl, -0x1(%rbp)
decq %rbp
shrl $0x8, %edx
jmp 0x78f07
movb %bl, -0x1(%rsi)
decq %rsi
shrl $0x8, %ebx
jmp 0x78f5b
movb %al, -0x1(%rbp)
decq %rbp
shrl $0x8, %eax
jmp 0x78fca
leaq 0x22d2c(%rip), %rdi     # 0x9bed2
leaq 0x27521(%rip), %rsi     # 0xa06ce
leaq 0x22cbc(%rip), %rcx     # 0x9be70
movl $0xc9, %edx
callq 0x42f0
leaq 0x22cf1(%rip), %rdi     # 0x9beb6
leaq 0x27502(%rip), %rsi     # 0xa06ce
leaq 0x22c9d(%rip), %rcx     # 0x9be70
movl $0xc8, %edx
callq 0x42f0
leaq 0x2750a(%rip), %rdi     # 0xa06ee
leaq 0x274e3(%rip), %rsi     # 0xa06ce
leaq 0x2750c(%rip), %rcx     # 0xa06fe
movl $0x11d, %edx            # imm = 0x11D
callq 0x42f0
leaq 0x27445(%rip), %rdi     # 0xa0648
leaq 0x27453(%rip), %rsi     # 0xa065d
leaq 0x2746e(%rip), %rcx     # 0xa067f
movl $0x204, %edx            # imm = 0x204
callq 0x42f0