user: Translate the below assembly code into C programming language:

```asm
<funcMochila>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x68,%rsp
  mov    %edi,-0x64(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %ecx,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0x80(%rbp)
  mov    -0x64(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x68(%rbp),%eax
  lea    0x1(%rax),%esi
  movslq %ecx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %ecx,%rax
  mov    %rax,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %ecx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %esi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %esi,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    %r11,%rdx
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rdx
  movslq %esi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L106:
  cmp    %rdx,%rsp
  je     L11
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L106
L11:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L116
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L116:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x58(%rbp)
  jmp    L18
L31:
  movl   $0x0,-0x54(%rbp)
  jmp    L157
L158:
  cmpl   $0x0,-0x58(%rbp)
  je     L104
  cmpl   $0x0,-0x54(%rbp)
  jne    L134
L104:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movl   $0x0,(%rax,%rdx,4)
  jmp    L168
L134:
  mov    -0x58(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x54(%rbp)
  jl     L64
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdi
  movslq %esi,%rdx
  imul   %rcx,%rdx
  add    %rdi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  lea    -0x4(%rdx),%rcx
  mov    -0x78(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%r8d
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x58(%rbp),%edx
  lea    -0x1(%rdx),%ecx
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  lea    -0x4(%rdx),%rdi
  mov    -0x70(%rbp),%rdx
  add    %rdi,%rdx
  mov    (%rdx),%r9d
  mov    -0x54(%rbp),%edx
  mov    %edx,%edi
  sub    %r9d,%edi
  mov    -0x40(%rbp),%rdx
  movslq %edi,%rdi
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    (%rdx,%rcx,4),%edx
  add    %r8d,%edx
  mov    %rbx,%r12
  shr    $0x2,%r12
  mov    %eax,%esi
  mov    %edx,%edi
  call   <max@plt>
  mov    -0x40(%rbp),%rdx
  mov    -0x54(%rbp),%ecx
  movslq %ecx,%rsi
  mov    -0x58(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %r12,%rcx
  add    %rsi,%rcx
  mov    %eax,(%rdx,%rcx,4)
  jmp    L168
L64:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%r8
  movslq %edi,%rdx
  imul   %rcx,%rdx
  add    %r8,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%ecx
  movslq %ecx,%rdi
  mov    -0x58(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    %edx,(%rax,%rcx,4)
L168:
  addl   $0x1,-0x54(%rbp)
L157:
  mov    -0x54(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jle    L158
  addl   $0x1,-0x58(%rbp)
L18:
  mov    -0x58(%rbp),%eax
  cmp    -0x68(%rbp),%eax
  jle    L31
  subl   $0x1,-0x58(%rbp)
  subl   $0x1,-0x54(%rbp)
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x68(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L107
L153:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%ecx
  movslq %ecx,%r8
  movslq %edi,%rcx
  imul   %rsi,%rcx
  add    %r8,%rcx
  mov    (%rax,%rcx,4),%eax
  cmp    %eax,%edx
  jne    L44
  subl   $0x1,-0x58(%rbp)
  jmp    L107
L44:
  mov    -0x58(%rbp),%eax
  mov    %eax,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  subl   $0x1,-0x58(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    %eax,-0x54(%rbp)
L107:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  jne    L153
  mov    -0x80(%rbp),%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L40
  call   <__stack_chk_fail@plt>
L40:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: label: D26
type: string
name: disassemble_data
arguments: label: D29
type: string
name: disassemble_data
arguments: label: D13
type: string

tool: D26: valor : %d 


tool: D29: posicoes escolhidas : 

tool: D13:  %d 

assistant: ```c
void funcMochila(int W, int wt[], int val[], int n) {
  int i, w;
  int K[n + 1][W + 1];
  for (i = 0; i <= n; i++) {
    for (w = 0; w <= W; w++) {
      if (i == 0 || w == 0)
        K[i][w] = 0;
      else if (wt[i - 1] <= w)
        K[i][w] = max(val[i - 1] + K[i - 1][w - wt[i - 1]], K[i - 1][w]);
      else
        K[i][w] = K[i - 1][w];
    }
  }
  i--;
  w--;
  printf("valor : %d \n", K[n][W]);
  printf("posicoes escolhidas : ");
  while (K[i][w]) {
    if (K[i][w] == K[i - 1][w])
      i--;
    else {
      printf(" %d ", i);
      i--;
      w = w - wt[i];
    }
  }
}
```