// File: /workspace/github_c_makefile_star2_O3/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, %r13d
movl %esi, %r14d
movq %rdi, %r12
movq 0xc0(%rsp), %rbp
movq 0xb8(%rsp), %r11
movq 0xb0(%rsp), %r10
cmpl $0x0, 0x8(%rdi)
je 0x2851
cmpl $0x0, 0xc(%r12)
je 0x2874
xorl %eax, %eax
movq %rax, 0x38(%rsp)
movq %rax, 0x30(%rsp)
testl %r14d, %r14d
je 0x2959
movq %r11, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
cmpl $0x3, %r14d
jae 0x2973
movq %r8, %r15
movq %r9, %rbx
leaq 0x40(%rsp), %rdi
callq 0x6824
movq %r12, 0x58(%rsp)
movq %r15, 0x68(%rsp)
movq %rbx, 0x70(%rsp)
movl $0x18, %edi
callq 0x1130
movq %rax, 0x60(%rsp)
movq %rbx, 0x10(%rsp)
subq %r15, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1cb0
movl %r14d, 0xc(%rsp)
cmpl $0x2, %r14d
movl %r13d, 0x8(%rsp)
jne 0x2890
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %r13
leaq 0x58(%rsp), %rdi
leaq 0x40(%rsp), %r14
movq 0x28(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
movq %r14, %r8
callq 0x75bc
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x10(%r14), %rcx
movslq 0x10(%r12), %r8
subq $0x8, %rsp
leaq 0x38(%rsp), %r15
leaq 0x40(%rsp), %r9
movq %r12, %r14
movq %r12, %rdi
pushq %r15
callq 0x14cc
addq $0x10, %rsp
movq (%r15), %rax
jmp 0x28bb
subq $0x8, %rsp
movq %r12, %rdi
movl %r14d, %esi
movl %r13d, %edx
pushq %rbp
pushq %r11
pushq %r10
callq 0x2a92
addq $0x98, %rsp
jmp 0x294e
movq %r12, %rdi
movl %r14d, %esi
movl %r13d, %edx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2992
movq %r12, %r14
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %r13
leaq 0x58(%rsp), %rdi
leaq 0x40(%rsp), %r8
movq 0x28(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
callq 0x873b
xorl %eax, %eax
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x38(%rsp), %r10
testq %r12, %r12
je 0x28d2
movq -0x8(%r10,%r15), %r9
jmp 0x28d5
xorl %r9d, %r9d
cmpl $0x0, 0x8(%rsp)
setne %cl
addq %r15, %r10
cmpq %rax, %r12
sete %al
leaq 0x50(%rsp), %rdx
cmoveq %rdx, %r10
andb %cl, %al
movzbl %al, %edx
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
subq $0x8, %rsp
movq %r14, %rdi
movl 0x14(%rsp), %esi
pushq %rbp
pushq %rbx
pushq %r13
pushq $0x0
pushq (%r10)
callq 0x39d8
addq $0x30, %rsp
incq %r12
movq 0x30(%rsp), %rax
addq $0x8, %r15
cmpq %rax, %r12
jbe 0x28c1
movq 0x60(%rsp), %rdi
callq 0x1fec
movq 0x60(%rsp), %rdi
callq 0x1030
leaq 0x40(%rsp), %rdi
callq 0x6833
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
subq $0x8, %rsp
movq %r12, %rdi
xorl %esi, %esi
movl %r13d, %edx
pushq %rbp
pushq %r11
pushq %r10
callq 0x2992
addq $0x20, %rsp
leaq 0x7a0e(%rip), %rdi      # 0xa388
leaq 0x7a20(%rip), %rsi      # 0xa3a1
leaq 0x7b21(%rip), %rcx      # 0xa4a9
movl $0x264, %edx            # imm = 0x264
callq 0x10b0