// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/libraries/libwebp/src/dec/frame_dec.c
// Function: VP8InitFrame
int VP8InitFrame(VP8Decoder* const dec, VP8Io* const io) {
  if (!InitThreadContext(dec)) return 0;  // call first. Sets dec->num_caches_.
  if (!AllocateMemory(dec)) return 0;
  InitIo(dec, io);
  VP8DspInit();  // Init critical function pointers and look-up tables.
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x0, 0xcc(%rdi)
cmpl $0x0, 0xc8(%rdi)
jle 0xd0dea
leaq 0x98(%r14), %r15
callq 0x56690
movq %r15, %rdi
callq *0x8(%rax)
movl %eax, %ebp
testl %eax, %eax
je 0xd0df7
movq %r14, 0xb0(%r14)
leaq 0xf8(%r14), %rax
movq %rax, 0xb8(%r14)
leaq -0xa56(%rip), %rax      # 0xd0374
movq %rax, 0xa8(%r14)
xorl %eax, %eax
cmpl $0x0, 0xb68(%r14)
setg %al
orl $0x2, %eax
movl %eax, 0xd0(%r14)
jmp 0xd0e0b
movl $0x1, 0xd0(%r14)
jmp 0xd0e0f
leaq 0x5908e(%rip), %rdx     # 0x129e8c
movq %r14, %rdi
movl $0x1, %esi
callq 0xd2755
testl %ebp, %ebp
je 0xd0e14
movl $0x1, %eax
testl %eax, %eax
je 0xd1157
movq %rbx, 0x8(%rsp)
movl 0xd0(%r14), %r10d
movslq 0x198(%r14), %r12
movq %r12, %r15
shlq $0x5, %r15
movslq 0xb68(%r14), %rax
testq %rax, %rax
jle 0xd0e5b
cmpl $0x0, 0xc8(%r14)
setg %cl
movl %r12d, %edx
shll %cl, %edx
movslq %edx, %rbx
shlq $0x2, %rbx
jmp 0xd0e5d
xorl %ebx, %ebx
leaq (,%r12,4), %rsi
leaq 0x2(,%r12,2), %rdx
cmpl $0x2, 0xc8(%r14)
sete %cl
movl %r12d, %edi
shll %cl, %edi
movslq %edi, %rcx
imulq $0x320, %rcx, %r8       # imm = 0x320
movl %r10d, %ebp
shll $0x4, %ebp
leaq 0x58e28(%rip), %r11     # 0x129cbc
movzbl (%rax,%r11), %eax
addl %ebp, %eax
leal (%rax,%rax,2), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %ecx, %rdi
imulq %r15, %rdi
cmpq $0x0, 0xb98(%r14)
je 0xd0ec8
movzwl 0x4c(%r14), %eax
movzwl 0x4e(%r14), %r9d
imulq %rax, %r9
jmp 0xd0ecb
xorl %r9d, %r9d
leaq (%rdx,%rbx), %rcx
addq %rsi, %rcx
addq %r15, %rcx
movq %r8, 0x20(%rsp)
addq %r8, %rcx
movq %rdi, 0x30(%rsp)
addq %rdi, %rcx
movq %rsi, %r8
movq %r9, 0x28(%rsp)
leaq (%r9,%rcx), %r13
addq $0x35f, %r13            # imm = 0x35F
cmpq 0xb50(%r14), %r13
jbe 0xd0f61
movq %rdx, 0x10(%rsp)
movl %r10d, 0x4(%rsp)
movq %r8, 0x18(%rsp)
movq 0xb48(%r14), %rdi
callq 0x57290
movq $0x0, 0xb50(%r14)
movl $0x1, %esi
movq %r13, %rdi
callq 0x56b20
movq %rax, 0xb48(%r14)
testq %rax, %rax
je 0xd113a
movq %r13, 0xb50(%r14)
movq 0x18(%rsp), %r8
movl 0x4(%rsp), %r10d
movq 0x10(%rsp), %rdx
leaq 0x58d5b(%rip), %r11     # 0x129cbc
movq 0xb48(%r14), %rax
movq %rax, 0xaf8(%r14)
leaq (%rax,%r8), %rcx
movq %rcx, 0xb08(%r14)
leaq (%rcx,%r15), %rdi
addq %r15, %rcx
addq $0x2, %rcx
movq %rcx, 0xb10(%r14)
leaq (%rdi,%rdx), %rcx
testq %rbx, %rbx
movq %rcx, %rsi
cmoveq %rbx, %rsi
movq %rsi, 0xb18(%r14)
addq %rbx, %rcx
movl $0x0, 0xd8(%r14)
movq %rsi, 0xe8(%r14)
movslq 0xb68(%r14), %r9
testq %r9, %r9
movq %r8, %rbx
jle 0xd0fda
cmpl $0x0, 0xc8(%r14)
jle 0xd0fda
leaq (%rsi,%r12,4), %rsi
movq %rsi, 0xe8(%r14)
addq $0x1f, %rcx
andq $-0x20, %rcx
movq %rcx, 0xb20(%r14)
addq $0x340, %rcx            # imm = 0x340
movq %rcx, 0xb60(%r14)
movq %rcx, 0xf0(%r14)
cmpl $0x2, 0xc8(%r14)
movq 0x20(%rsp), %r8
jne 0xd101e
imulq $0x320, %r12, %rsi      # imm = 0x320
addq %rcx, %rsi
movq %rsi, 0xf0(%r14)
addq %r8, %rcx
movq %r12, %rsi
shlq $0x4, %rsi
movl %esi, 0xb40(%r14)
leal (,%r12,8), %r8d
movl %r8d, 0xb44(%r14)
movzbl (%r9,%r11), %r11d
movq %r11, %r9
imulq %rsi, %r9
shrl %r11d
imull %r8d, %r11d
addq %rcx, %r9
movq %r9, 0xb28(%r14)
imull %esi, %ebp
movslq %ebp, %rsi
movslq %r11d, %r11
addq %r11, %rsi
addq %r9, %rsi
movq %rsi, 0xb30(%r14)
imull %r8d, %r10d
shll $0x3, %r10d
movslq %r10d, %r8
addq %r11, %r8
addq %rsi, %r8
movq %r8, 0xb38(%r14)
movl $0x0, 0xcc(%r14)
addq 0x30(%rsp), %rcx
movq 0x28(%rsp), %r8
testq %r8, %r8
movq %rcx, %rsi
cmoveq %r8, %rsi
movq %rsi, 0xbb8(%r14)
addq %r8, %rcx
addq 0xb50(%r14), %rax
cmpq %rax, %rcx
ja 0xd1168
xorl %esi, %esi
callq 0x55f20
movq %r14, %rdi
callq 0xd331b
movq 0xaf8(%r14), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x55f20
movq 0x8(%rsp), %rcx
movl $0x0, 0x8(%rcx)
movq 0xb28(%r14), %rax
movq %rax, 0x18(%rcx)
movq 0xb30(%r14), %rax
movq %rax, 0x20(%rcx)
movq 0xb38(%r14), %rax
movq %rax, 0x28(%rcx)
movl 0xb40(%r14), %eax
movl %eax, 0x30(%rcx)
movl 0xb44(%r14), %eax
movl %eax, 0x34(%rcx)
movq $0x0, 0x98(%rcx)
callq 0xd847c
movl $0x1, %eax
jmp 0xd1159
leaq 0x58d69(%rip), %rdx     # 0x129eaa
movq %r14, %rdi
movl $0x1, %esi
callq 0xd2755
testl %eax, %eax
movq 0x8(%rsp), %rcx
jne 0xd10e7
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58d62(%rip), %rdi     # 0x129ed1
leaq 0x58b49(%rip), %rsi     # 0x129cbf
leaq 0x58d80(%rip), %rcx     # 0x129efd
movl $0x304, %edx            # imm = 0x304
callq 0x55710