// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/libraries/libwebp/src/dec/io_dec.c
// Function: EmitAlphaRGB
static int EmitAlphaRGB(const VP8Io* const io, WebPDecParams* const p,
                        int expected_num_lines_out) {
  const uint8_t* alpha = io->a;
  if (alpha != NULL) {
    const int mb_w = io->mb_w;
    const WEBP_CSP_MODE colorspace = p->output->colorspace;
    const int alpha_first =
        (colorspace == MODE_ARGB || colorspace == MODE_Argb);
    const WebPRGBABuffer* const buf = &p->output->u.RGBA;
    int num_rows;
    const size_t start_y = GetAlphaSourceRow(io, &alpha, &num_rows);
    uint8_t* const base_rgba = buf->rgba + start_y * buf->stride;
    uint8_t* const dst = base_rgba + (alpha_first ? 0 : 3);
    const int has_alpha = WebPDispatchAlpha(alpha, io->width, mb_w,
                                            num_rows, dst, buf->stride);
    (void)expected_num_lines_out;
    assert(expected_num_lines_out == num_rows);
    // has_alpha is true if there's non-trivial alpha to premultiply with.
    if (has_alpha && WebPIsPremultipliedMode(colorspace)) {
      WebPApplyAlphaMultiply(base_rgba, alpha_first,
                             mb_w, num_rows, buf->stride);
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x1415ff
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x28(%rbp)
movb $0x1, %al
cmpl $0x4, -0x28(%rbp)
movb %al, -0x5d(%rbp)
je 0x141508
cmpl $0x9, -0x28(%rbp)
sete %al
movb %al, -0x5d(%rbp)
movb -0x5d(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
addq $0x10, %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x20(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
callq 0x142250
cltq
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rdx
movslq 0x8(%rdx), %rdx
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movl -0x2c(%rbp), %esi
movl $0x3, %ecx
xorl %edx, %edx
cmpl $0x0, %esi
cmovnel %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
leaq 0xd78ec(%rip), %rax     # 0x218e68
movq (%rax), %rax
movq -0x20(%rbp), %rdi
movq -0x8(%rbp), %rcx
movl (%rcx), %esi
movl -0x24(%rbp), %edx
movl -0x3c(%rbp), %ecx
movq -0x58(%rbp), %r8
movq -0x38(%rbp), %r9
movl 0x8(%r9), %r9d
callq *%rax
movl %eax, -0x5c(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jne 0x1415aa
jmp 0x1415c9
leaq 0x7b974(%rip), %rdi     # 0x1bcf25
leaq 0x7b758(%rip), %rsi     # 0x1bcd10
movl $0xbe, %edx
leaq 0x7b9c9(%rip), %rcx     # 0x1bcf8d
callq 0x598a0
cmpl $0x0, -0x5c(%rbp)
je 0x1415fd
movl -0x28(%rbp), %edi
callq 0x140640
cmpl $0x0, %eax
je 0x1415fd
leaq 0xd7875(%rip), %rax     # 0x218e58
movq (%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x2c(%rbp), %esi
movl -0x24(%rbp), %edx
movl -0x3c(%rbp), %ecx
movq -0x38(%rbp), %r8
movl 0x8(%r8), %r8d
callq *%rax
jmp 0x1415ff
xorl %eax, %eax
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)