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

  assert(last_row <= dec->io_->crop_bottom);
  while (num_rows > 0) {
    const int num_rows_to_process =
        (num_rows > NUM_ARGB_CACHE_ROWS) ? NUM_ARGB_CACHE_ROWS : num_rows;
    // Extract alpha (which is stored in the green plane).
    ALPHDecoder* const alph_dec = (ALPHDecoder*)dec->io_->opaque;
    uint8_t* const output = alph_dec->output_;
    const int width = dec->io_->width;      // the final width (!= dec->width_)
    const int cache_pixs = width * num_rows_to_process;
    uint8_t* const dst = output + width * cur_row;
    const uint32_t* const src = dec->argb_cache_;
    ApplyInverseTransforms(dec, cur_row, num_rows_to_process, in);
    WebPExtractGreen(src, dst, cache_pixs);
    AlphaApplyFilter(alph_dec,
                     cur_row, cur_row + num_rows_to_process, dst, width);
    num_rows -= num_rows_to_process;
    in += num_rows_to_process * dec->width_;
    cur_row += num_rows_to_process;
  }
  assert(cur_row == last_row);
  dec->last_row_ = dec->last_out_row_ = last_row;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %eax
movl %eax, -0x10(%rbp)
movl -0xc(%rbp), %eax
subl -0x10(%rbp), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x8(%rbp), %rcx
movl 0x84(%rcx), %ecx
imull -0x10(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movq 0x8(%rcx), %rcx
cmpl 0x84(%rcx), %eax
jg 0x1465ee
jmp 0x14660d
leaq 0x77452(%rip), %rdi     # 0x1bda47
leaq 0x76eed(%rip), %rsi     # 0x1bd4e9
movl $0x62e, %edx            # imm = 0x62E
leaq 0x7790c(%rip), %rcx     # 0x1bdf14
callq 0x598a0
jmp 0x14660f
cmpl $0x0, -0x14(%rbp)
jle 0x146709
cmpl $0x10, -0x14(%rbp)
jle 0x146629
movl $0x10, %eax
movl %eax, -0x54(%rbp)
jmp 0x14662f
movl -0x14(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq 0xc8(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
imull -0x24(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movl -0x3c(%rbp), %ecx
imull -0x10(%rbp), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x24(%rbp), %edx
movq -0x20(%rbp), %rcx
callq 0x148870
leaq 0xd27da(%rip), %rax     # 0x218e80
movq (%rax), %rax
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x40(%rbp), %edx
callq *%rax
movq -0x30(%rbp), %rdi
movl -0x10(%rbp), %esi
movl -0x10(%rbp), %edx
addl -0x24(%rbp), %edx
movq -0x48(%rbp), %rcx
movl -0x3c(%rbp), %r8d
callq 0x1481d0
movl -0x24(%rbp), %ecx
movl -0x14(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movl -0x24(%rbp), %ecx
movq -0x8(%rbp), %rax
imull 0x84(%rax), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl -0x10(%rbp), %eax
movl %eax, -0x10(%rbp)
jmp 0x14660f
movl -0x10(%rbp), %eax
cmpl -0xc(%rbp), %eax
jne 0x146713
jmp 0x146732
leaq 0x77829(%rip), %rdi     # 0x1bdf43
leaq 0x76dc8(%rip), %rsi     # 0x1bd4e9
movl $0x641, %edx            # imm = 0x641
leaq 0x777e7(%rip), %rcx     # 0x1bdf14
callq 0x598a0
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x94(%rax)
movq -0x8(%rbp), %rax
movl %ecx, 0x8c(%rax)
addq $0x60, %rsp
popq %rbp
retq
nop