// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/libraries/libwebp/src/dec/vp8l_dec.c
// Function: VP8LDecodeAlphaImageStream
int VP8LDecodeAlphaImageStream(ALPHDecoder* const alph_dec, int last_row) {
  VP8LDecoder* const dec = alph_dec->vp8l_dec_;
  assert(dec != NULL);
  assert(last_row <= dec->height_);

  if (dec->last_row_ >= last_row) {
    return 1;  // done
  }

  if (!alph_dec->use_8b_decode_) WebPInitAlphaProcessing();

  // Decode (with special row processing).
  return alph_dec->use_8b_decode_ ?
      DecodeAlphaData(dec, (uint8_t*)dec->pixels_, dec->width_, dec->height_,
                      last_row) :
      DecodeImageData(dec, dec->pixels_, dec->width_, dec->height_,
                      last_row, ExtractAlphaRows);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x18(%rdi), %rbx
testq %rbx, %rbx
je 0xd50bd
movl %esi, %r14d
movl 0x88(%rbx), %r8d
cmpl %esi, %r8d
jl 0xd50dc
movl $0x1, %eax
cmpl %r14d, 0x8c(%rbx)
jge 0xd5019
movq %rdi, %r15
cmpl $0x0, 0xc0(%rdi)
jne 0xd497f
callq 0xd6da2
cmpl $0x0, 0xc0(%r15)
movl 0x88(%rbx), %r8d
je 0xd5028
movq 0x18(%rbx), %rax
movq %rax, 0x38(%rsp)
movl 0x84(%rbx), %ebp
movl 0x90(%rbx), %r13d
movl %r13d, %eax
cltd
idivl %ebp
movl %eax, %r15d
movl %edx, %r12d
movl %ebp, %eax
imull %r14d, %eax
movl 0xc0(%rbx), %ecx
movl %ecx, 0x34(%rsp)
movq $0x0, 0x10(%rsp)
movl %eax, 0x1c(%rsp)
cmpl %eax, %r13d
jge 0xd4a18
movl 0xc4(%rbx), %ecx
testl %ecx, %ecx
je 0xd49f2
movl %r15d, %eax
sarl %cl, %eax
imull 0xc8(%rbx), %eax
movl %r12d, %edx
sarl %cl, %edx
movq 0xd0(%rbx), %rcx
addl %eax, %edx
movslq %edx, %rax
movl (%rcx,%rax,4), %eax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpl 0xd8(%rbx), %eax
jge 0xd509e
cltq
imulq $0x238, %rax, %rax      # imm = 0x238
addq 0xe0(%rbx), %rax
movq %rax, 0x10(%rsp)
movl %r8d, %eax
imull %ebp, %eax
movl %eax, 0x2c(%rsp)
cmpl %eax, %r13d
jg 0xd50fb
cmpl %r14d, %r8d
jl 0xd511a
leaq 0x98(%rbx), %rdi
callq 0xd4832
testl %eax, %eax
je 0xd5139
cmpl 0x1c(%rsp), %r13d
jge 0xd4fa2
cmpl $0x0, 0x4c(%rbx)
jne 0xd4fa2
leaq 0x28(%rbx), %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rax
incq %rax
movq %rax, 0x40(%rsp)
movl %r14d, 0xc(%rsp)
testl %r12d, 0x34(%rsp)
movq 0x10(%rsp), %r14
jne 0xd4ace
movl 0xc4(%rbx), %ecx
testl %ecx, %ecx
je 0xd4ab0
movl %r15d, %eax
sarl %cl, %eax
imull 0xc8(%rbx), %eax
movl %r12d, %edx
sarl %cl, %edx
movq 0xd0(%rbx), %rcx
addl %eax, %edx
movslq %edx, %rax
movl (%rcx,%rax,4), %eax
jmp 0xd4ab2
xorl %eax, %eax
cmpl 0xd8(%rbx), %eax
jge 0xd509e
cltq
imulq $0x238, %rax, %r14      # imm = 0x238
addq 0xe0(%rbx), %r14
testq %r14, %r14
je 0xd507f
movl 0x48(%rbx), %edx
cmpl $0x20, %edx
jl 0xd4aec
movq 0x20(%rsp), %rdi
callq 0xefeb1
movl 0x48(%rbx), %edx
movq (%r14), %rax
movq 0x20(%rsp), %rcx
movq (%rcx), %rsi
movq %rsi, %rdi
movl %edx, %ecx
shrq %cl, %rdi
movzbl %dil, %ecx
leaq (%rax,%rcx,4), %rdi
movzbl (%rdi), %eax
cmpl $0x9, %eax
movq %r14, 0x10(%rsp)
jb 0xd4b40
addl $0x8, %edx
movq %rsi, %r8
movl %edx, %ecx
shrq %cl, %r8
movzwl 0x2(%rdi), %ecx
leaq (%rdi,%rcx,4), %rdi
addb $-0x8, %al
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r9d
notl %r9d
andl %r8d, %r9d
leaq (%rdi,%r9,4), %rdi
movb (%rdi), %al
movzbl %al, %eax
addl %edx, %eax
movl %eax, 0x48(%rbx)
movzwl 0x2(%rdi), %r14d
cmpl $0xff, %r14d
ja 0xd4ba8
movslq %r13d, %rax
movq 0x38(%rsp), %rcx
movb %r14b, (%rcx,%rax)
incl %r13d
incl %r12d
cmpl %ebp, %r12d
jl 0xd4b9e
movl %r13d, %r14d
leal 0x1(%r15), %r13d
cmpl 0xc(%rsp), %r15d
setl %al
testb $0xf, %r13b
sete %cl
andb %al, %cl
xorl %r12d, %r12d
cmpb $0x1, %cl
jne 0xd4b98
movq %rbx, %rdi
movl %r13d, %esi
callq 0xd67e3
movl %r13d, %r15d
movl %r14d, %r13d
movl 0xc(%rsp), %r14d
jmp 0xd4f60
cmpl $0x117, %r14d           # imm = 0x117
ja 0xd5058
movl %r13d, 0x30(%rsp)
leal -0x100(%r14), %r13d
cmpl $0x4, %r13d
jb 0xd4bf4
leal -0x102(%r14), %ecx
shrl %ecx
andl $0x1, %r14d
orl $0x2, %r14d
shll %cl, %r14d
movq 0x20(%rsp), %rdi
movl %ecx, %esi
callq 0xeffac
movl %eax, %r13d
addl %r14d, %r13d
movq 0x28(%rbx), %rsi
movl 0x48(%rbx), %eax
movq 0x10(%rsp), %rcx
movq 0x20(%rcx), %rdx
movq %rsi, %rdi
movl %eax, %ecx
shrq %cl, %rdi
movzbl %dil, %ecx
leaq (%rdx,%rcx,4), %rdi
movzbl (%rdi), %edx
cmpl $0x9, %edx
jb 0xd4c3f
addl $0x8, %eax
movl %eax, %ecx
shrq %cl, %rsi
movzwl 0x2(%rdi), %ecx
leaq (%rdi,%rcx,4), %rdi
addb $-0x8, %dl
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl %edx, %ecx
shll %cl, %r8d
notl %r8d
andl %esi, %r8d
leaq (%rdi,%r8,4), %rdi
movb (%rdi), %dl
movzbl %dl, %ecx
addl %eax, %ecx
movl %ecx, 0x48(%rbx)
movzwl 0x2(%rdi), %r14d
cmpl $0x20, %ecx
jl 0xd4c5b
movq 0x20(%rsp), %rdi
callq 0xefeb1
cmpw $0x4, %r14w
jb 0xd4c85
leal -0x2(%r14), %ecx
shrl %ecx
andl $0x1, %r14d
orl $0x2, %r14d
shll %cl, %r14d
movq 0x20(%rsp), %rdi
movl %ecx, %esi
callq 0xeffac
addl %r14d, %eax
movl %eax, %r14d
leal 0x1(%r14), %eax
cmpl $0x79, %eax
jl 0xd4c94
addl $-0x77, %r14d
jmp 0xd4cc4
movslq %r14d, %rax
leaq 0x54bc2(%rip), %rcx     # 0x129860
movzbl (%rax,%rcx), %eax
movl %eax, %r14d
shrl $0x4, %r14d
andl $0xf, %eax
imull %ebp, %r14d
subl %eax, %r14d
addl $0x8, %r14d
cmpl $0x2, %r14d
movl $0x1, %eax
cmovll %eax, %r14d
movl 0x30(%rsp), %ecx
cmpl %r14d, %ecx
jl 0xd5055
incl %r13d
movl 0x2c(%rsp), %eax
subl %ecx, %eax
cmpl %r13d, %eax
jl 0xd5055
movl %ecx, %r8d
movq 0x38(%rsp), %rax
leaq (%rax,%r8), %rdi
movl %r14d, %edx
movq %rdi, %rsi
subq %rdx, %rsi
negq %rdx
cmpl $0x8, %r13d
jl 0xd4d1e
cmpl $0x4, %r14d
je 0xd4d5b
cmpl $0x2, %r14d
je 0xd4d4f
cmpl $0x1, %r14d
jne 0xd4d1e
movzbl (%rsi), %eax
imull $0x1010101, %eax, %eax  # imm = 0x1010101
jmp 0xd4d5d
cmpl %r13d, %r14d
jge 0xd4d3d
movl %r13d, %eax
movl 0xc(%rsp), %r14d
movb (%rdi,%rdx), %cl
movb %cl, (%rdi)
incq %rdi
decq %rax
jne 0xd4d2b
jmp 0xd4ec8
movslq %r13d, %rdx
callq 0x552d0
movl 0xc(%rsp), %r14d
jmp 0xd4ec8
movzwl (%rsi), %ecx
movl %ecx, %eax
shll $0x10, %eax
orl %ecx, %eax
jmp 0xd4d5d
movl (%rsi), %eax
testb $0x3, %dil
movl 0xc(%rsp), %r14d
je 0xd4d96
addq 0x40(%rsp), %r8
movl %r13d, %ecx
movq %r8, %rsi
movb (%rdi,%rdx), %r9b
movb %r9b, (%rdi)
incq %rdi
roll $0x18, %eax
decl %ecx
incq %rsi
testb $0x3, %r8b
movq %rsi, %r8
jne 0xd4d73
addq %rdi, %rdx
movq %rdx, %rsi
jmp 0xd4d99
movl %r13d, %ecx
movl %ecx, %edx
sarl $0x2, %edx
testl %edx, %edx
jle 0xd4ea5
movl %edx, %r9d
leal 0x3(%rdx), %r8d
decq %r9
movq %r9, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shrl $0x2, %r8d
shlq $0x4, %r8
pxor 0x3dfb6(%rip), %xmm0    # 0x112d80
xorl %r9d, %r9d
movdqa 0x3df9b(%rip), %xmm1    # 0x112d70
movdqa 0x3df83(%rip), %xmm2    # 0x112d60
movdqa %xmm1, %xmm3
pxor 0x3df97(%rip), %xmm3    # 0x112d80
movdqa %xmm3, %xmm4
pcmpgtd %xmm0, %xmm4
pcmpeqd %xmm0, %xmm3
pshufd $0xf5, %xmm3, %xmm5     # xmm5 = xmm3[1,1,3,3]
pand %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm3     # xmm3 = xmm4[1,1,3,3]
por %xmm5, %xmm3
movd %xmm3, %r10d
notl %r10d
testb $0x1, %r10b
je 0xd4e19
movl %eax, (%rdi,%r9)
pxor 0x2178f(%rip), %xmm3    # 0xf65b0
pextrw $0x4, %xmm3, %r10d
testb $0x1, %r10b
je 0xd4e32
movl %eax, 0x4(%rdi,%r9)
movdqa %xmm2, %xmm3
pxor 0x3df42(%rip), %xmm3    # 0x112d80
movdqa %xmm3, %xmm4
pcmpgtd %xmm0, %xmm4
pcmpeqd %xmm0, %xmm3
pshufd $0xf5, %xmm3, %xmm5     # xmm5 = xmm3[1,1,3,3]
pand %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm3     # xmm3 = xmm4[1,1,3,3]
por %xmm5, %xmm3
pxor 0x2174c(%rip), %xmm3    # 0xf65b0
pextrw $0x0, %xmm3, %r10d
testb $0x1, %r10b
je 0xd4e75
movl %eax, 0x8(%rdi,%r9)
pextrw $0x4, %xmm3, %r10d
testb $0x1, %r10b
je 0xd4e86
movl %eax, 0xc(%rdi,%r9)
movdqa 0x3e9e2(%rip), %xmm3    # 0x113870
paddq %xmm3, %xmm1
paddq %xmm3, %xmm2
addq $0x10, %r9
cmpq %r9, %r8
jne 0xd4ddd
jmp 0xd4ea7
xorl %edx, %edx
leal (,%rdx,4), %eax
cmpl %ecx, %eax
jge 0xd4ec8
movl %edx, %eax
shlq $0x2, %rax
movl %ecx, %ecx
movb (%rsi,%rax), %dl
movb %dl, (%rdi,%rax)
incq %rax
cmpq %rax, %rcx
jne 0xd4eba
addl %r13d, %r12d
cmpl %ebp, %r12d
jl 0xd4ef8
cmpl %r14d, %r15d
leal 0x1(%r15), %r15d
setl %al
testb $0xf, %r15b
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xd4ef3
movq %rbx, %rdi
movl %r15d, %esi
callq 0xd67e3
subl %ebp, %r12d
jmp 0xd4ecb
movl 0x30(%rsp), %eax
addl %r13d, %eax
movl %eax, %r13d
cmpl 0x1c(%rsp), %eax
jge 0xd4f60
movl %r12d, %eax
andl 0x34(%rsp), %eax
je 0xd4f60
movl 0xc4(%rbx), %ecx
testl %ecx, %ecx
je 0xd4f3d
movl %r15d, %eax
sarl %cl, %eax
imull 0xc8(%rbx), %eax
movl %r12d, %edx
sarl %cl, %edx
movq 0xd0(%rbx), %rcx
addl %eax, %edx
movslq %edx, %rax
movl (%rcx,%rax,4), %eax
jmp 0xd4f3f
xorl %eax, %eax
cmpl 0xd8(%rbx), %eax
jge 0xd509e
cltq
imulq $0x238, %rax, %rax      # imm = 0x238
addq 0xe0(%rbx), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rbx), %rcx
movq 0x40(%rbx), %rdx
cmpq %rcx, %rdx
ja 0xd5060
cmpl $0x0, 0x4c(%rbx)
jne 0xd4f9b
xorl %eax, %eax
cmpq %rcx, %rdx
jne 0xd4f87
xorl %eax, %eax
cmpl $0x41, 0x48(%rbx)
setge %al
movl %eax, 0x4c(%rbx)
testl %eax, %eax
jne 0xd4fa2
cmpl 0x1c(%rsp), %r13d
jl 0xd4a78
jmp 0xd4fa2
movl $0x1, 0x4c(%rbx)
cmpl %r14d, %r15d
cmovll %r15d, %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0xd67e3
xorl %esi, %esi
movq 0x38(%rbx), %rax
movq 0x40(%rbx), %rdx
cmpq %rax, %rdx
ja 0xd5060
movl $0x1, %ecx
cmpl $0x0, 0x4c(%rbx)
jne 0xd4fe2
xorl %ecx, %ecx
cmpq %rax, %rdx
jne 0xd4fe2
xorl %ecx, %ecx
cmpl $0x41, 0x48(%rbx)
setge %cl
movl %ecx, 0x4c(%rbx)
testb %sil, %sil
jne 0xd4ff5
testl %ecx, %ecx
je 0xd500d
cmpl 0x2c(%rsp), %r13d
jge 0xd500d
movl (%rbx), %edx
xorl %eax, %eax
cmpl $0x5, %edx
je 0xd5002
testl %edx, %edx
jne 0xd5019
leal 0x3(,%rcx,2), %ecx
movl %ecx, (%rbx)
jmp 0xd5019
movl %r13d, 0x90(%rbx)
movl $0x1, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rbx), %rsi
movl 0x84(%rbx), %edx
leaq 0xc26(%rip), %r9        # 0xd5c5f
movq %rbx, %rdi
movl %r8d, %ecx
movl %r14d, %r8d
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd5158
movl %ecx, %r13d
movb $0x1, %sil
jmp 0xd4fb6
leaq 0x54ec8(%rip), %rdi     # 0x129f2f
leaq 0x54ed6(%rip), %rsi     # 0x129f44
leaq 0x54f36(%rip), %rcx     # 0x129fab
movl $0xac, %edx
callq 0x55710
leaq 0x54d25(%rip), %rdi     # 0x129dab
leaq 0x5485c(%rip), %rsi     # 0x1298e9
leaq 0x54ca8(%rip), %rcx     # 0x129d3c
movl $0x423, %edx            # imm = 0x423
callq 0x55710
leaq 0x54d1a(%rip), %rdi     # 0x129dbf
leaq 0x5483d(%rip), %rsi     # 0x1298e9
leaq 0x54d30(%rip), %rcx     # 0x129de3
movl $0x30a, %edx            # imm = 0x30A
callq 0x55710
leaq 0x54819(%rip), %rdi     # 0x1298dd
leaq 0x5481e(%rip), %rsi     # 0x1298e9
leaq 0x54876(%rip), %rcx     # 0x129948
movl $0x678, %edx            # imm = 0x678
callq 0x55710
leaq 0x5489d(%rip), %rdi     # 0x129980
leaq 0x547ff(%rip), %rsi     # 0x1298e9
leaq 0x54857(%rip), %rcx     # 0x129948
movl $0x679, %edx            # imm = 0x679
callq 0x55710
leaq 0x54c2f(%rip), %rdi     # 0x129d31
leaq 0x547e0(%rip), %rsi     # 0x1298e9
leaq 0x54c2c(%rip), %rcx     # 0x129d3c
movl $0x419, %edx            # imm = 0x419
callq 0x55710
leaq 0x54c62(%rip), %rdi     # 0x129d83
leaq 0x547c1(%rip), %rsi     # 0x1298e9
leaq 0x54c0d(%rip), %rcx     # 0x129d3c
movl $0x41a, %edx            # imm = 0x41A
callq 0x55710
leaq 0x54c56(%rip), %rdi     # 0x129d96
leaq 0x547a2(%rip), %rsi     # 0x1298e9
leaq 0x54bee(%rip), %rcx     # 0x129d3c
movl $0x41b, %edx            # imm = 0x41B
callq 0x55710