// File: /workspace/github_c_makefile_star2_O2/imaya[P]zopfli-for-emscripten/deflate.c
// Function: ZopfliDeflatePart
void ZopfliDeflatePart(const ZopfliOptions* options, int btype, int final,
                       const unsigned char* in, size_t instart, size_t inend,
                       unsigned char* bp, unsigned char** out,
                       size_t* outsize) {
  if (options->blocksplitting) {
    if (options->blocksplittinglast) {
      DeflateSplittingLast(options, btype, final, in, instart, inend,
                           bp, out, outsize);
    } else {
      DeflateSplittingFirst(options, btype, final, in, instart, inend,
                            bp, out, outsize);
    }
  } else {
    DeflateBlock(options, btype, final, in, instart, inend, bp, out, outsize);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %edx, %r12d
movl %esi, %r14d
movq %rdi, %r13
movq 0xc0(%rsp), %rbp
movq 0xb8(%rsp), %r10
movq 0xb0(%rsp), %rax
cmpl $0x0, 0x8(%rdi)
je 0x209c
cmpl $0x0, 0xc(%r13)
je 0x20be
andq $0x0, 0x38(%rsp)
andq $0x0, 0x30(%rsp)
testl %r14d, %r14d
je 0x21a2
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
cmpl $0x3, %r14d
jae 0x21bb
movq %r8, %r15
movq %r9, %rbx
leaq 0x40(%rsp), %rdi
callq 0x439c
movq %r13, 0x58(%rsp)
movq %r15, 0x68(%rsp)
movq %rbx, 0x70(%rsp)
pushq $0x18
popq %rdi
callq 0x1120
movq %rax, 0x60(%rsp)
movq %rbx, 0x10(%rsp)
subq %r15, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1ab8
movl %r14d, 0xc(%rsp)
cmpl $0x2, %r14d
movl %r12d, 0x8(%rsp)
jne 0x20da
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %r12
leaq 0x58(%rsp), %rdi
leaq 0x40(%rsp), %r14
movq 0x28(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
movq %r14, %r8
callq 0x50bc
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x10(%r14), %rcx
movslq 0x10(%r13), %r8
subq $0x8, %rsp
leaq 0x38(%rsp), %rax
leaq 0x40(%rsp), %r9
movq %r13, %r14
movq %r13, %rdi
pushq %rax
callq 0x128c
popq %rax
popq %rcx
jmp 0x2103
subq $0x8, %rsp
movq %r13, %rdi
movl %r14d, %esi
movl %r12d, %edx
pushq %rbp
pushq %r10
pushq %rax
callq 0x22d5
addq $0x98, %rsp
jmp 0x2197
movq %r13, %rdi
movl %r14d, %esi
movl %r12d, %edx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21da
movq %r13, %r14
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %r12
leaq 0x58(%rsp), %rdi
leaq 0x40(%rsp), %r8
movq 0x28(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
callq 0x5fa7
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x30(%rsp), %rcx
cmpq %rcx, %r13
ja 0x2175
movq 0x38(%rsp), %rax
testq %r13, %r13
je 0x2124
movq -0x8(%rax,%r15), %r9
jmp 0x2127
xorl %r9d, %r9d
cmpl $0x0, 0x8(%rsp)
setne %dl
addq %r15, %rax
cmpq %rcx, %r13
sete %cl
leaq 0x50(%rsp), %rsi
cmoveq %rsi, %rax
andb %dl, %cl
movzbl %cl, %edx
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
subq $0x8, %rsp
movq %r14, %rdi
movl 0x14(%rsp), %esi
pushq %rbp
pushq %rbx
pushq %r12
pushq $0x0
pushq (%rax)
callq 0x3175
addq $0x30, %rsp
incq %r13
addq $0x8, %r15
jmp 0x2109
movq 0x60(%rsp), %rdi
callq 0x1b3c
movq 0x60(%rsp), %rdi
callq 0x1030
leaq 0x40(%rsp), %rdi
callq 0x43a8
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
subq $0x8, %rsp
movq %r13, %rdi
xorl %esi, %esi
movl %r12d, %edx
pushq %rbp
pushq %r10
pushq %rax
callq 0x21da
addq $0x20, %rsp
leaq 0x5116(%rip), %rdi      # 0x72d8
leaq 0x5128(%rip), %rsi      # 0x72f1
leaq 0x5229(%rip), %rcx      # 0x73f9
movl $0x264, %edx            # imm = 0x264
callq 0x10b0