// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/libraries/libwebp/src/dec/vp8l_dec.c
// Function: ProcessRows
static void ProcessRows(VP8LDecoder* const dec, int row) {
  const uint32_t* const rows = dec->pixels_ + dec->width_ * dec->last_row_;
  const int num_rows = row - dec->last_row_;

  assert(row <= dec->io_->crop_bottom);
  // We can't process more than NUM_ARGB_CACHE_ROWS at a time (that's the size
  // of argb_cache_), but we currently don't need more than that.
  assert(num_rows <= NUM_ARGB_CACHE_ROWS);
  if (num_rows > 0) {    // Emit output.
    VP8Io* const io = dec->io_;
    uint8_t* rows_data = (uint8_t*)dec->argb_cache_;
    const int in_stride = io->width * sizeof(uint32_t);  // in unit of RGBA
    ApplyInverseTransforms(dec, dec->last_row_, num_rows, rows);
    if (!SetCropWindow(io, dec->last_row_, row, &rows_data, in_stride)) {
      // Nothing to output (this time).
    } else {
      const WebPDecBuffer* const output = dec->output_;
      if (WebPIsRGBMode(output->colorspace)) {  // convert to RGBA
        const WebPRGBABuffer* const buf = &output->u.RGBA;
        uint8_t* const rgba =
            buf->rgba + (int64_t)dec->last_out_row_ * buf->stride;
        const int num_rows_out =
#if !defined(WEBP_REDUCE_SIZE)
         io->use_scaling ?
            EmitRescaledRowsRGBA(dec, rows_data, in_stride, io->mb_h,
                                 rgba, buf->stride) :
#endif  // WEBP_REDUCE_SIZE
            EmitRows(output->colorspace, rows_data, in_stride,
                     io->mb_w, io->mb_h, rgba, buf->stride);
        // Update 'last_out_row_'.
        dec->last_out_row_ += num_rows_out;
      } else {                              // convert to YUVA
        dec->last_out_row_ = io->use_scaling ?
            EmitRescaledRowsYUVA(dec, rows_data, in_stride, io->mb_h) :
            EmitRowsYUVA(dec, rows_data, in_stride, io->mb_w, io->mb_h);
      }
      assert(dec->last_out_row_ <= output->height);
    }
  }

  // Update 'last_row_'.
  dec->last_row_ = row;
  assert(dec->last_row_ <= dec->height_);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq 0x8(%rdi), %rbx
cmpl %esi, 0x84(%rbx)
jl 0xd76e9
movl %esi, %ebp
movq %rdi, %r15
movslq 0x8c(%rdi), %rsi
movl %ebp, %edx
subl %esi, %edx
cmpl $0x11, %edx
jge 0xd7708
testl %edx, %edx
jle 0xd7669
movslq 0x84(%r15), %rax
movq %rsi, %rcx
imulq %rax, %rcx
shlq $0x2, %rcx
addq 0x18(%r15), %rcx
movq 0x20(%r15), %r12
movl (%rbx), %r14d
movq %r15, %rdi
callq 0xd7aa9
movl 0x8c(%r15), %esi
cmpl %ebp, %esi
jge 0xd7746
movslq 0x78(%rbx), %rax
movl 0x7c(%rbx), %ecx
cmpl %eax, %ecx
jle 0xd7765
shll $0x2, %r14d
movl 0x80(%rbx), %edi
movl %edi, %r8d
subl %esi, %r8d
movl %esi, %edx
cmovgl %edi, %edx
movl %r14d, 0xc(%rsp)
imull %r14d, %r8d
xorl %r9d, %r9d
cmpl %esi, %edi
cmovgl %r8d, %r9d
movl 0x84(%rbx), %esi
cmpl %ebp, %esi
cmovgel %ebp, %esi
movslq %r9d, %r8
addq %r8, %r12
movl %esi, %r8d
subl %edx, %r8d
jle 0xd72fa
leaq (%r12,%rax,4), %r12
movl %edx, %r9d
subl %edi, %r9d
movl %r9d, 0x8(%rbx)
subl %eax, %ecx
movl %ecx, 0xc(%rbx)
movl %r8d, 0x10(%rbx)
cmpl %edx, %esi
jle 0xd7669
movq 0x10(%r15), %rax
movl (%rax), %r13d
cmpl $0xa, %r13d
movq %r15, 0x28(%rsp)
movl %ebp, 0x40(%rsp)
movq %rax, 0x48(%rsp)
jbe 0xd7452
cmpl $0x0, 0x88(%rbx)
je 0xd75b5
movl 0x10(%rbx), %ebx
movl 0x94(%r15), %eax
testl %ebx, %ebx
jle 0xd763b
xorl %ecx, %ecx
movq %r12, %r14
movl 0xc(%rsp), %ebp
movl %ebx, 0x30(%rsp)
movq %rax, 0x10(%rsp)
movl %ecx, %r13d
subl %ecx, %ebx
movq 0x188(%r15), %rdi
movl %ebx, %esi
callq 0xcf898
movl %eax, %r12d
movq 0x188(%r15), %rax
movl 0x2c(%rax), %edx
movq %r14, %rdi
movl %ebp, %esi
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0xd7cfd
movq 0x188(%r15), %rdi
movl %ebx, %esi
movq %r14, 0x38(%rsp)
movq %r14, %rdx
movl %ebp, %ecx
callq 0xcf8ab
movl %r12d, 0x1c(%rsp)
movl %eax, 0x20(%rsp)
cmpl %r12d, %eax
jne 0xd768c
movq 0x188(%r15), %rbp
movl 0x40(%rbp), %eax
xorl %r12d, %r12d
cmpl 0x38(%rbp), %eax
movl %r13d, %ecx
jge 0xd741b
movq 0x48(%rbp), %r15
movl 0x34(%rbp), %r14d
xorl %r12d, %r12d
cmpl $0x0, 0x18(%rbp)
jg 0xd741b
movq 0x10(%rsp), %rax
leal (%rax,%r12), %ebx
movq %rbp, %rdi
callq 0xdcbcf
movq %r15, %rdi
movl %r14d, %esi
movl $0x1, %edx
leaq 0xa4e03(%rip), %rax     # 0x17c1f8
callq *(%rax)
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rcx
movq %r15, %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0xd7b4a
movl %r13d, %ecx
incl %r12d
movl 0x40(%rbp), %eax
cmpl 0x38(%rbp), %eax
jl 0xd73cc
addl 0x20(%rsp), %ecx
movl 0xc(%rsp), %ebp
movl 0x1c(%rsp), %eax
imull %ebp, %eax
cltq
movq 0x38(%rsp), %r14
addq %rax, %r14
addl 0x10(%rsp), %r12d
movl %r12d, %eax
movl 0x30(%rsp), %ebx
cmpl %ebx, %ecx
movq 0x28(%rsp), %r15
jl 0xd734d
jmp 0xd763e
movslq 0x94(%r15), %rcx
movslq 0x18(%rax), %r14
imulq %r14, %rcx
addq 0x10(%rax), %rcx
cmpl $0x0, 0x88(%rbx)
je 0xd75f0
movl 0x10(%rbx), %ebx
testl %ebx, %ebx
jle 0xd7647
movq %r14, 0x10(%rsp)
movq %rcx, 0x50(%rsp)
movl %r13d, 0x1c(%rsp)
movslq 0xc(%rsp), %rax
movq %rax, 0x30(%rsp)
xorl %r13d, %r13d
xorl %eax, %eax
movq %r12, 0x38(%rsp)
movl %ebx, 0x44(%rsp)
movq %rax, 0x20(%rsp)
subl %r13d, %ebx
movq 0x188(%r15), %rdi
movl %ebx, %esi
callq 0xcf898
testl %eax, %eax
jle 0xd76ab
movl %eax, %ebp
cmpl %ebx, %eax
jg 0xd76ab
movl %r13d, 0xc(%rsp)
movl %r13d, %r14d
movq 0x30(%rsp), %r13
imulq %r13, %r14
addq %r12, %r14
movq 0x188(%r15), %rax
movl 0x2c(%rax), %edx
movq %r14, %rdi
movl %r13d, %esi
movl %ebp, %ecx
xorl %r8d, %r8d
callq 0xd7cfd
movq 0x188(%r15), %rdi
movl %ebx, %esi
movq %r14, %rdx
movl %r13d, %ecx
callq 0xcf8ab
cmpl %ebp, %eax
jne 0xd76ca
movl %eax, %ebx
movq 0x188(%r15), %rbp
movl 0x40(%rbp), %eax
xorl %r14d, %r14d
cmpl 0x38(%rbp), %eax
jge 0xd7589
movslq 0x20(%rsp), %r13
imulq 0x10(%rsp), %r13
addq 0x50(%rsp), %r13
movq 0x48(%rbp), %r12
movl 0x34(%rbp), %r15d
xorl %r14d, %r14d
cmpl $0x0, 0x18(%rbp)
jg 0xd7589
movq %rbp, %rdi
callq 0xdcbcf
movq %r12, %rdi
movl %r15d, %esi
movl $0x1, %edx
leaq 0xa4c93(%rip), %rax     # 0x17c1f8
callq *(%rax)
movq %r12, %rdi
movl %r15d, %esi
movl 0x1c(%rsp), %edx
movq %r13, %rcx
callq 0xdb882
addq 0x10(%rsp), %r13
incl %r14d
movl 0x40(%rbp), %eax
cmpl 0x38(%rbp), %eax
jl 0xd7545
movl 0xc(%rsp), %r13d
addl %ebx, %r13d
movq 0x20(%rsp), %rax
addl %r14d, %eax
movl 0x44(%rsp), %ebx
cmpl %ebx, %r13d
movq 0x28(%rsp), %r15
movq 0x38(%rsp), %r12
jl 0xd74a4
jmp 0xd7649
movq %r12, %r13
movl 0x10(%rbx), %ebp
movl 0x94(%r15), %r12d
testl %ebp, %ebp
jle 0xd763e
movl 0xc(%rbx), %ebx
movslq 0xc(%rsp), %r14
incl %ebp
movq 0x10(%r15), %rcx
movq %r13, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0xd7b4a
addq %r14, %r13
incl %r12d
decl %ebp
cmpl $0x1, %ebp
jg 0xd75d0
jmp 0xd763e
movl 0x10(%rbx), %eax
testl %eax, %eax
jle 0xd7649
movl 0xc(%rbx), %edx
movl %edx, 0x28(%rsp)
movq %rcx, %rbx
movslq 0xc(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x20(%rsp)
leal 0x1(%rax), %ebp
movq %r12, %rdi
movl 0x28(%rsp), %esi
movl %r13d, %edx
movq %rbx, %rcx
callq 0xdb882
addq 0x10(%rsp), %r12
addq %r14, %rbx
decl %ebp
cmpl $0x1, %ebp
jg 0xd7613
movq 0x20(%rsp), %rax
jmp 0xd7649
movl %eax, %r12d
movl %r12d, 0x94(%r15)
jmp 0xd7650
xorl %eax, %eax
addl %eax, 0x94(%r15)
movl 0x94(%r15), %eax
movq 0x48(%rsp), %rcx
cmpl 0x8(%rcx), %eax
movl 0x40(%rsp), %ebp
jg 0xd7784
movl %ebp, 0x8c(%r15)
cmpl %ebp, 0x88(%r15)
jl 0xd7727
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x53c11(%rip), %rdi     # 0x12b2a4
leaq 0x5301f(%rip), %rsi     # 0x12a6b9
leaq 0x53c22(%rip), %rcx     # 0x12b2c3
movl $0x2cc, %edx            # imm = 0x2CC
callq 0x55710
leaq 0x53b66(%rip), %rdi     # 0x12b218
leaq 0x53000(%rip), %rsi     # 0x12a6b9
leaq 0x53b87(%rip), %rcx     # 0x12b247
movl $0x278, %edx            # imm = 0x278
callq 0x55710
leaq 0x53bd3(%rip), %rdi     # 0x12b2a4
leaq 0x52fe1(%rip), %rsi     # 0x12a6b9
leaq 0x53b68(%rip), %rcx     # 0x12b247
movl $0x27d, %edx            # imm = 0x27D
callq 0x55710
leaq 0x53511(%rip), %rdi     # 0x12ac01
leaq 0x52fc2(%rip), %rsi     # 0x12a6b9
leaq 0x53a1d(%rip), %rcx     # 0x12b11b
movl $0x32e, %edx            # imm = 0x32E
callq 0x55710
leaq 0x53a36(%rip), %rdi     # 0x12b145
leaq 0x52fa3(%rip), %rsi     # 0x12a6b9
leaq 0x539fe(%rip), %rcx     # 0x12b11b
movl $0x331, %edx            # imm = 0x331
callq 0x55710
leaq 0x53a5c(%rip), %rdi     # 0x12b18a
leaq 0x52f84(%rip), %rsi     # 0x12a6b9
leaq 0x539df(%rip), %rcx     # 0x12b11b
movl $0x354, %edx            # imm = 0x354
callq 0x55710
leaq 0x53a5c(%rip), %rdi     # 0x12b1a9
leaq 0x52f65(%rip), %rsi     # 0x12a6b9
leaq 0x53a5e(%rip), %rcx     # 0x12b1b9
movl $0x2ea, %edx            # imm = 0x2EA
callq 0x55710
leaq 0x53a8d(%rip), %rdi     # 0x12b1f9
leaq 0x52f46(%rip), %rsi     # 0x12a6b9
leaq 0x53a3f(%rip), %rcx     # 0x12b1b9
movl $0x2eb, %edx            # imm = 0x2EB
callq 0x55710
leaq 0x539da(%rip), %rdi     # 0x12b165
leaq 0x52f27(%rip), %rsi     # 0x12a6b9
leaq 0x53982(%rip), %rcx     # 0x12b11b
movl $0x34e, %edx            # imm = 0x34E
callq 0x55710