// File: /workspace/github_c_makefile_star2_O1/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, %ebp
movl %esi, %r14d
movq %rdi, %r15
movq 0xc0(%rsp), %r13
movq 0xb8(%rsp), %rbx
movq 0xb0(%rsp), %r12
cmpl $0x0, 0x8(%rdi)
je 0x2839
cmpl $0x0, 0xc(%r15)
je 0x285b
xorl %eax, %eax
movq %rax, 0x28(%rsp)
movq %rax, 0x20(%rsp)
testl %r14d, %r14d
movq %r9, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
jne 0x27bc
subq $0x8, %rsp
movq %r15, %rdi
xorl %esi, %esi
movl %ebp, %edx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %r9
pushq %r13
pushq %rbx
pushq %r12
callq 0x29be
addq $0x20, %rsp
movl %ebp, 0x4(%rsp)
movq %r12, 0x48(%rsp)
leal -0x1(%r14), %eax
cmpl $0x2, %eax
jae 0x2980
leaq 0x30(%rsp), %rdi
callq 0x6684
movq %r15, 0x58(%rsp)
movq 0x10(%rsp), %rbp
movq %rbp, 0x68(%rsp)
movq 0x18(%rsp), %r12
movq %r12, 0x70(%rsp)
movl $0x18, %edi
callq 0x1120
movq %rax, 0x60(%rsp)
movq %r12, %rdi
subq %rbp, %rdi
movq %rax, %rsi
callq 0x1c9c
cmpl $0x2, %r14d
movq %r13, 0x50(%rsp)
jne 0x2876
leaq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %r8
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x7470
jmp 0x289e
subq $0x8, %rsp
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
pushq %r13
pushq %rbx
pushq %r12
callq 0x2abe
addq $0x98, %rsp
jmp 0x2975
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x29be
cmpl $0x1, %r14d
movq 0x8(%rsp), %rsi
jne 0x299f
leaq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %r8
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x85e0
movq 0x48(%rsp), %r13
movl 0x4(%rsp), %ebp
cmpl $0x1, %r14d
je 0x28db
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq %r15, %rdi
movslq 0x10(%r15), %r8
subq $0x8, %rsp
leaq 0x28(%rsp), %rax
leaq 0x30(%rsp), %r9
pushq %rax
callq 0x14bc
addq $0x10, %rsp
movq 0x20(%rsp), %rax
xorl %r12d, %r12d
testq %r12, %r12
je 0x28f4
movq 0x28(%rsp), %rcx
movq -0x8(%rcx,%r12,8), %r9
jmp 0x28f7
xorl %r9d, %r9d
testl %ebp, %ebp
setne %cl
leaq (,%r12,8), %r10
addq 0x28(%rsp), %r10
cmpq %rax, %r12
sete %al
leaq 0x40(%rsp), %rdx
cmoveq %rdx, %r10
andb %cl, %al
movzbl %al, %edx
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
subq $0x8, %rsp
movq %r15, %rdi
movl %r14d, %esi
pushq 0x58(%rsp)
pushq %rbx
pushq %r13
pushq $0x0
pushq (%r10)
callq 0x3947
addq $0x30, %rsp
incq %r12
movq 0x20(%rsp), %rax
cmpq %rax, %r12
jbe 0x28e3
movq 0x60(%rsp), %rdi
callq 0x1fd8
movq 0x60(%rsp), %rdi
callq 0x1030
leaq 0x30(%rsp), %rdi
callq 0x6693
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7a01(%rip), %rdi      # 0xa388
leaq 0x7a13(%rip), %rsi      # 0xa3a1
leaq 0x7b14(%rip), %rcx      # 0xa4a9
movl $0x264, %edx            # imm = 0x264
callq 0x10b0
leaq 0x7b92(%rip), %rdi      # 0xa538
leaq 0x79f4(%rip), %rsi      # 0xa3a1
leaq 0x7af5(%rip), %rcx      # 0xa4a9
movl $0x273, %edx            # imm = 0x273
callq 0x10b0