// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless.c
// Function: VP8LInverseTransform
void VP8LInverseTransform(const VP8LTransform* const transform,
                          int row_start, int row_end,
                          const uint32_t* const in, uint32_t* const out) {
  const int width = transform->xsize_;
  assert(row_start < row_end);
  assert(row_end <= transform->ysize_);
  switch (transform->type_) {
    case SUBTRACT_GREEN_TRANSFORM:
      VP8LAddGreenToBlueAndRed(in, (row_end - row_start) * width, out);
      break;
    case PREDICTOR_TRANSFORM:
      PredictorInverseTransform_C(transform, row_start, row_end, in, out);
      if (row_end != transform->ysize_) {
        // The last predicted row in this iteration will be the top-pred row
        // for the first row in next iteration.
        memcpy(out - width, out + (row_end - row_start - 1) * width,
               width * sizeof(*out));
      }
      break;
    case CROSS_COLOR_TRANSFORM:
      ColorSpaceInverseTransform_C(transform, row_start, row_end, in, out);
      break;
    case COLOR_INDEXING_TRANSFORM:
      if (in == out && transform->bits_ > 0) {
        // Move packed pixels to the end of unpacked region, so that unpacking
        // can occur seamlessly.
        // Also, note that this is the only transform that applies on
        // the effective width of VP8LSubSampleSize(xsize_, bits_). All other
        // transforms work on effective width of xsize_.
        const int out_stride = (row_end - row_start) * width;
        const int in_stride = (row_end - row_start) *
            VP8LSubSampleSize(transform->xsize_, transform->bits_);
        uint32_t* const src = out + out_stride - in_stride;
        memmove(src, out, in_stride * sizeof(*src));
        ColorIndexInverseTransform_C(transform, row_start, row_end, src, out);
      } else {
        ColorIndexInverseTransform_C(transform, row_start, row_end, in, out);
      }
      break;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x24(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x14e9de
jmp 0x14e9fd
leaq 0x70ea5(%rip), %rdi     # 0x1bf88a
leaq 0x70eb2(%rip), %rsi     # 0x1bf89e
movl $0x18b, %edx            # imm = 0x18B
leaq 0x70eb9(%rip), %rcx     # 0x1bf8b1
callq 0x598a0
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jg 0x14ea0b
jmp 0x14ea2a
leaq 0x70f07(%rip), %rdi     # 0x1bf919
leaq 0x70e85(%rip), %rsi     # 0x1bf89e
movl $0x18c, %edx            # imm = 0x18C
leaq 0x70e8c(%rip), %rcx     # 0x1bf8b1
callq 0x598a0
movq -0x8(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x40(%rbp)
subq $0x3, %rax
ja 0x14ebab
movq -0x40(%rbp), %rax
leaq 0x70e03(%rip), %rcx     # 0x1bf84c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0xca60f(%rip), %rax     # 0x219068
movq -0x18(%rbp), %rdi
movl -0x10(%rbp), %esi
subl -0xc(%rbp), %esi
imull -0x24(%rbp), %esi
movq -0x20(%rbp), %rdx
callq *%rax
jmp 0x14ebab
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %r8
callq 0x14ebc0
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0xc(%rcx), %eax
je 0x14ead0
movq -0x20(%rbp), %rdi
movslq -0x24(%rbp), %rcx
xorl %eax, %eax
subq %rcx, %rax
shlq $0x2, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
movl -0x10(%rbp), %eax
subl -0xc(%rbp), %eax
subl $0x1, %eax
imull -0x24(%rbp), %eax
cltq
shlq $0x2, %rax
addq %rax, %rsi
movslq -0x24(%rbp), %rdx
shlq $0x2, %rdx
callq 0x593a0
jmp 0x14ebab
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %r8
callq 0x14ee00
jmp 0x14ebab
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x14eb92
movq -0x8(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jle 0x14eb92
movl -0x10(%rbp), %eax
subl -0xc(%rbp), %eax
imull -0x24(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x10(%rbp), %eax
subl -0xc(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %edi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %esi
callq 0x14eff0
movl %eax, %ecx
movl -0x44(%rbp), %eax
imull %ecx, %eax
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movslq -0x28(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movslq -0x2c(%rbp), %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
movslq -0x2c(%rbp), %rdx
shlq $0x2, %rdx
callq 0x59850
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %r8
callq 0x14f020
jmp 0x14eba9
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %r8
callq 0x14f020
jmp 0x14ebab
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)