// File: /workspace/github_c_makefile_star2_O2/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 %rdi, %rbx
andl $0x0, 0xcc(%rdi)
movq %rsi, %r14
cmpl $0x0, 0xc8(%rdi)
jle 0xc8f26
leaq 0x98(%rbx), %r15
callq 0x577c0
movq %r15, %rdi
callq *0x8(%rax)
testl %eax, %eax
je 0xc8f35
movq %rbx, 0xb0(%rbx)
leaq 0xf8(%rbx), %rax
movq %rax, 0xb8(%rbx)
leaq -0x9f3(%rip), %rax      # 0xc8515
movq %rax, 0xa8(%rbx)
xorl %edx, %edx
cmpl $0x0, 0xb68(%rbx)
setg %dl
orl $0x2, %edx
movl %edx, 0xd0(%rbx)
jmp 0xc8f55
pushq $0x1
popq %rdx
movl $0x1, 0xd0(%rbx)
jmp 0xc8f55
leaq 0x4fea0(%rip), %rdx     # 0x118ddc
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xca862
testl %eax, %eax
je 0xc9263
movl 0xd0(%rbx), %edx
movq %r14, 0x8(%rsp)
movslq 0x198(%rbx), %rbp
movq %rbp, %r15
shlq $0x5, %r15
movslq 0xb68(%rbx), %r8
movl 0xc8(%rbx), %esi
testq %r8, %r8
jle 0xc8f8c
testl %esi, %esi
setg %cl
movl %ebp, %eax
shll %cl, %eax
movslq %eax, %r14
shlq $0x2, %r14
jmp 0xc8f8f
xorl %r14d, %r14d
leaq (,%rbp,4), %r9
leaq 0x2(,%rbp,2), %r10
cmpl $0x2, %esi
sete %cl
movl %ebp, %eax
shll %cl, %eax
cltq
imulq $0x320, %rax, %r11      # imm = 0x320
movl %edx, 0x4(%rsp)
movl %edx, %eax
shll $0x4, %eax
leaq 0x4fc4a(%rip), %rcx     # 0x118c0c
movzbl (%r8,%rcx), %ecx
movq %rax, 0x28(%rsp)
addl %ecx, %eax
leal (%rax,%rax,2), %eax
pushq $0x2
popq %rdi
cltd
idivl %edi
movslq %eax, %r12
imulq %r15, %r12
cmpq $0x0, 0xb98(%rbx)
je 0xc8ff6
movzwl 0x4c(%rbx), %eax
movzwl 0x4e(%rbx), %edx
imulq %rax, %rdx
jmp 0xc8ff8
xorl %edx, %edx
leaq (%r9,%r15), %rax
addq %r10, %rax
addq %r14, %rax
movq %r11, 0x20(%rsp)
addq %r11, %rax
addq %r12, %rax
movq %rdx, 0x30(%rsp)
leaq (%rdx,%rax), %r13
addq $0x35f, %r13            # imm = 0x35F
movq 0xb48(%rbx), %rax
movq 0xb50(%rbx), %rdx
cmpq %rdx, %r13
jbe 0xc9091
movq %r10, 0x10(%rsp)
movq %r9, 0x18(%rsp)
movq %rax, %rdi
callq 0x58480
andq $0x0, 0xb50(%rbx)
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0x57c90
movq %rax, 0xb48(%rbx)
testq %rax, %rax
je 0xc9248
movq %r13, 0xb50(%rbx)
movslq 0xb68(%rbx), %r8
movl 0xc8(%rbx), %esi
leaq 0x4fb8c(%rip), %rcx     # 0x118c0c
movzbl (%r8,%rcx), %ecx
movq 0x18(%rsp), %r9
movq 0x10(%rsp), %r10
jmp 0xc9094
movq %rdx, %r13
movq %rax, 0xaf8(%rbx)
leaq (%rax,%r9), %rdx
movq %rdx, 0xb08(%rbx)
leaq (%rdx,%r15), %rdi
addq %r15, %rdx
addq $0x2, %rdx
movq %rdx, 0xb10(%rbx)
leaq (%rdi,%r10), %rdx
testq %r14, %r14
movq %r9, %r15
leaq 0x1f(%r14,%rdx), %r9
cmoveq %r14, %rdx
movq %rdx, 0xb18(%rbx)
andl $0x0, 0xd8(%rbx)
movq %r10, %r14
xorl %r10d, %r10d
testl %esi, %esi
movl $0x0, %r11d
cmovgq %rbp, %r11
testl %r8d, %r8d
cmovleq %r10, %r11
leaq (%rdx,%r11,4), %rdx
movq %rdx, 0xe8(%rbx)
andq $-0x20, %r9
movq %r9, 0xb20(%rbx)
leaq 0x340(%r9), %rdx
movq %rdx, 0xb60(%rbx)
cmpl $0x2, %esi
cmoveq %rbp, %r10
imulq $0x320, %r10, %rdx      # imm = 0x320
addq %r9, %rdx
addq $0x340, %rdx            # imm = 0x340
movq %rdx, 0xf0(%rbx)
movq 0x20(%rsp), %rdx
addq %r9, %rdx
addq $0x340, %rdx            # imm = 0x340
movl %ebp, %esi
shll $0x4, %esi
movl %esi, 0xb40(%rbx)
movl %esi, %r8d
imull 0x28(%rsp), %esi
leal (,%rbp,8), %r9d
movl %r9d, 0xb44(%rbx)
imull %ecx, %r8d
shrl %ecx
imull %r9d, %ecx
movslq %r8d, %r8
addq %rdx, %r8
movq %r8, 0xb28(%rbx)
movslq %esi, %rsi
movslq %ecx, %rcx
addq %rcx, %rsi
addq %r8, %rsi
movl 0x4(%rsp), %r8d
imull %r9d, %r8d
shll $0x3, %r8d
movslq %r8d, %r8
addq %rcx, %r8
movq %rsi, 0xb30(%rbx)
addq %rsi, %r8
movq %r8, 0xb38(%rbx)
andl $0x0, 0xcc(%rbx)
addq %rdx, %r12
movq 0x30(%rsp), %rdx
testq %rdx, %rdx
movq %r12, %rcx
cmoveq %rdx, %rcx
movq %rcx, 0xbb8(%rbx)
addq %rdx, %r12
addq %rax, %r13
cmpq %r13, %r12
ja 0xc9267
xorl %esi, %esi
movq %r14, %rdx
callq 0x56ff0
movq %rbx, %rdi
callq 0xcb395
movq 0xaf8(%rbx), %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x56ff0
movq 0x8(%rsp), %rcx
andl $0x0, 0x8(%rcx)
movups 0xb28(%rbx), %xmm0
movups %xmm0, 0x18(%rcx)
movq 0xb38(%rbx), %rax
movq %rax, 0x28(%rcx)
movq 0xb40(%rbx), %rax
movq %rax, 0x30(%rcx)
andq $0x0, 0x98(%rcx)
callq 0xcf1b4
pushq $0x1
popq %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4fbab(%rip), %rdx     # 0x118dfa
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xca862
testl %eax, %eax
movq 0x8(%rsp), %rcx
jne 0xc9204
xorl %eax, %eax
jmp 0xc9239
leaq 0x4fbb3(%rip), %rdi     # 0x118e21
leaq 0x4f99a(%rip), %rsi     # 0x118c0f
leaq 0x4fbd1(%rip), %rcx     # 0x118e4d
movl $0x304, %edx            # imm = 0x304
callq 0x56770