// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movq 0x8(%rdi), %r14
cmpl %esi, 0x84(%r14)
jl 0xd669d
movl %esi, %ebp
movq %rdi, %r13
movslq 0x8c(%rdi), %rsi
movl %ebp, %edx
subl %esi, %edx
cmpl $0x11, %edx
jge 0xd66bc
testl %edx, %edx
jle 0xd661d
movslq 0x84(%r13), %rax
movq %rsi, %rcx
imulq %rax, %rcx
shlq $0x2, %rcx
addq 0x18(%r13), %rcx
movq 0x20(%r13), %r15
movl (%r14), %r12d
movq %r13, %rdi
callq 0xd6ae6
movl 0x8c(%r13), %edx
cmpl %ebp, %edx
jge 0xd66fa
movslq 0x78(%r14), %rcx
movl 0x7c(%r14), %eax
cmpl %ecx, %eax
jle 0xd6719
movl %eax, %r10d
movl 0x84(%r14), %ebx
cmpl %ebp, %ebx
cmovgel %ebp, %ebx
movl 0x80(%r14), %esi
movl %esi, %edi
subl %edx, %edi
movl %edx, %eax
cmovgl %esi, %eax
movl %ebx, %r9d
subl %eax, %r9d
jle 0xd661d
shll $0x2, %r12d
imull %r12d, %edi
xorl %r8d, %r8d
cmpl %edx, %esi
cmovgl %edi, %r8d
movslq %r8d, %rdx
addq %rdx, %r15
leaq (%r15,%rcx,4), %r15
movl %eax, %edx
subl %esi, %edx
movl %edx, 0x8(%r14)
subl %ecx, %r10d
movl %r10d, %edi
movl %r10d, 0xc(%r14)
movl %r9d, 0x4(%rsp)
movl %r9d, 0x10(%r14)
movq 0x10(%r13), %rcx
movl (%rcx), %edx
movl %edx, 0x10(%rsp)
cmpl $0xa, %edx
movq %r13, 0x18(%rsp)
movl %ebp, 0x28(%rsp)
movq %rcx, 0x38(%rsp)
jbe 0xd6419
cmpl $0x0, 0x88(%r14)
movl 0x94(%r13), %edx
movq %rdx, 0x8(%rsp)
je 0xd656e
movl 0x4(%rsp), %r14d
testl %r14d, %r14d
jle 0xd65ed
xorl %ecx, %ecx
movl %r12d, %ebp
movl %r12d, 0x14(%rsp)
movl %ecx, 0x10(%rsp)
subl %ecx, %r14d
movq 0x188(%r13), %rdi
movl %r14d, %esi
callq 0xce95c
movl %eax, %ebx
movq 0x188(%r13), %rax
movl 0x2c(%rax), %edx
movq %r15, %rdi
movl %ebp, %esi
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0xd6d1d
movq 0x188(%r13), %rdi
movl %r14d, %esi
movq %r15, 0x20(%rsp)
movq %r15, %rdx
movl %ebp, %ecx
callq 0xce96f
cmpl %ebx, %eax
jne 0xd6640
movq 0x188(%r13), %r13
movl 0x40(%r13), %eax
xorl %r12d, %r12d
cmpl 0x38(%r13), %eax
jge 0xd63dc
movq 0x48(%r13), %r14
movl 0x34(%r13), %r15d
xorl %r12d, %r12d
cmpl $0x0, 0x18(%r13)
jg 0xd63dc
movq 0x8(%rsp), %rax
leal (%rax,%r12), %ebp
movq %r13, %rdi
callq 0xdbd07
movq %r14, %rdi
movl %r15d, %esi
movl $0x1, %edx
leaq 0xa4e41(%rip), %rax     # 0x17b1f8
callq *(%rax)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rcx
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0xd6b68
incl %r12d
movl 0x40(%r13), %eax
cmpl 0x38(%r13), %eax
jl 0xd638d
movl 0x10(%rsp), %ecx
addl %ebx, %ecx
movl 0x14(%rsp), %ebp
imull %ebp, %ebx
movslq %ebx, %rax
movq 0x20(%rsp), %r15
addq %rax, %r15
addl 0x8(%rsp), %r12d
movl %r12d, %eax
movq %rax, 0x8(%rsp)
movl 0x4(%rsp), %r14d
cmpl %r14d, %ecx
movq 0x18(%rsp), %r13
jl 0xd631c
jmp 0xd6603
movslq 0x94(%r13), %rdx
movslq 0x18(%rcx), %rsi
movq %rsi, 0x8(%rsp)
imulq %rsi, %rdx
addq 0x10(%rcx), %rdx
movq %rdx, 0x30(%rsp)
cmpl $0x0, 0x88(%r14)
je 0xd65a3
movl 0x4(%rsp), %ebx
testl %ebx, %ebx
jle 0xd65f4
movslq %r12d, %rax
movq %rax, 0x40(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
movq %r15, 0x20(%rsp)
subl %r14d, %ebx
movq 0x188(%r13), %rdi
movl %ebx, %esi
callq 0xce95c
testl %eax, %eax
jle 0xd665f
cmpl %ebx, %eax
jg 0xd665f
movl %r14d, 0x14(%rsp)
movl %r14d, %r14d
movq 0x40(%rsp), %rbp
imulq %rbp, %r14
addq %r15, %r14
movl %eax, %r15d
movq 0x188(%r13), %rax
movl 0x2c(%rax), %edx
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0xd6d1d
movq 0x188(%r13), %rdi
movl %ebx, %esi
movq %r14, %rdx
movl %ebp, %ecx
callq 0xce96f
movl %r15d, 0x2c(%rsp)
cmpl %r15d, %eax
jne 0xd667e
movq 0x188(%r13), %rbx
movl 0x40(%rbx), %eax
xorl %ebp, %ebp
cmpl 0x38(%rbx), %eax
movq 0x8(%rsp), %rax
jge 0xd6545
movslq %r12d, %r13
imulq %rax, %r13
addq 0x30(%rsp), %r13
movq 0x48(%rbx), %r14
movl 0x34(%rbx), %r15d
xorl %ebp, %ebp
cmpl $0x0, 0x18(%rbx)
jg 0xd6545
movq %rbx, %rdi
callq 0xdbd07
movq %r14, %rdi
movl %r15d, %esi
movl $0x1, %edx
leaq 0xa4cd6(%rip), %rax     # 0x17b1f8
callq *(%rax)
movq %r14, %rdi
movl %r15d, %esi
movl 0x10(%rsp), %edx
movq %r13, %rcx
callq 0xda9de
addq 0x8(%rsp), %r13
incl %ebp
movl 0x40(%rbx), %eax
cmpl 0x38(%rbx), %eax
jl 0xd6502
movl 0x14(%rsp), %r14d
addl 0x2c(%rsp), %r14d
addl %ebp, %r12d
movl 0x4(%rsp), %ebx
cmpl %ebx, %r14d
movq 0x18(%rsp), %r13
movq 0x20(%rsp), %r15
jl 0xd6463
jmp 0xd65fc
cmpl $0x0, 0x4(%rsp)
jle 0xd65ed
movslq %r12d, %r14
subl %eax, %ebx
incl %ebx
movq 0x8(%rsp), %r12
movl %edi, %ebp
movq 0x10(%r13), %rcx
movq %r15, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0xd6b68
addq %r14, %r15
incl %r12d
decl %ebx
cmpl $0x1, %ebx
ja 0xd6583
jmp 0xd6603
movl 0x4(%rsp), %edx
testl %edx, %edx
jle 0xd65f9
movslq %r12d, %rcx
movq %rcx, 0x18(%rsp)
subl %eax, %ebx
incl %ebx
movl 0x10(%rsp), %ebp
movq 0x30(%rsp), %r12
movl %edi, %r14d
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
movq %r12, %rcx
callq 0xda9de
addq 0x18(%rsp), %r15
addq 0x8(%rsp), %r12
decl %ebx
cmpl $0x1, %ebx
ja 0xd65c3
movl 0x4(%rsp), %eax
movl %eax, %r12d
jmp 0xd65fc
movq 0x8(%rsp), %r12
jmp 0xd6603
xorl %r12d, %r12d
jmp 0xd65fc
movl %edx, %r12d
addl 0x94(%r13), %r12d
movl %r12d, 0x94(%r13)
movq 0x38(%rsp), %rax
cmpl 0x8(%rax), %r12d
movl 0x28(%rsp), %ebp
jg 0xd6738
movl %ebp, 0x8c(%r13)
cmpl %ebp, 0x88(%r13)
jl 0xd66db
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x53e6f(%rip), %rdi     # 0x12a4b6
leaq 0x5329b(%rip), %rsi     # 0x1298e9
leaq 0x53e80(%rip), %rcx     # 0x12a4d5
movl $0x2cc, %edx            # imm = 0x2CC
callq 0x55710
leaq 0x53dc4(%rip), %rdi     # 0x12a42a
leaq 0x5327c(%rip), %rsi     # 0x1298e9
leaq 0x53de5(%rip), %rcx     # 0x12a459
movl $0x278, %edx            # imm = 0x278
callq 0x55710
leaq 0x53e31(%rip), %rdi     # 0x12a4b6
leaq 0x5325d(%rip), %rsi     # 0x1298e9
leaq 0x53dc6(%rip), %rcx     # 0x12a459
movl $0x27d, %edx            # imm = 0x27D
callq 0x55710
leaq 0x53783(%rip), %rdi     # 0x129e27
leaq 0x5323e(%rip), %rsi     # 0x1298e9
leaq 0x53c7b(%rip), %rcx     # 0x12a32d
movl $0x32e, %edx            # imm = 0x32E
callq 0x55710
leaq 0x53c94(%rip), %rdi     # 0x12a357
leaq 0x5321f(%rip), %rsi     # 0x1298e9
leaq 0x53c5c(%rip), %rcx     # 0x12a32d
movl $0x331, %edx            # imm = 0x331
callq 0x55710
leaq 0x53cba(%rip), %rdi     # 0x12a39c
leaq 0x53200(%rip), %rsi     # 0x1298e9
leaq 0x53c3d(%rip), %rcx     # 0x12a32d
movl $0x354, %edx            # imm = 0x354
callq 0x55710
leaq 0x53cba(%rip), %rdi     # 0x12a3bb
leaq 0x531e1(%rip), %rsi     # 0x1298e9
leaq 0x53cbc(%rip), %rcx     # 0x12a3cb
movl $0x2ea, %edx            # imm = 0x2EA
callq 0x55710
leaq 0x53ceb(%rip), %rdi     # 0x12a40b
leaq 0x531c2(%rip), %rsi     # 0x1298e9
leaq 0x53c9d(%rip), %rcx     # 0x12a3cb
movl $0x2eb, %edx            # imm = 0x2EB
callq 0x55710
leaq 0x53c38(%rip), %rdi     # 0x12a377
leaq 0x531a3(%rip), %rsi     # 0x1298e9
leaq 0x53be0(%rip), %rcx     # 0x12a32d
movl $0x34e, %edx            # imm = 0x34E
callq 0x55710