user: 下面的汇编指令对应的C源代码是什么:

```asm
<solveKnapsack>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %edi,-0x90(%rbp)
  mov    %rsi,-0x98(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %ecx,-0x8c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %ecx,%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    %rcx,-0x78(%rbp)
  movslq %edi,%rdx
  imul   %rdx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L39:
  cmp    %rdx,%rsp
  je     L10
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L39
L10:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L125
  orq    $0x0,-0x8(%rsp,%rax,1)
L125:
  mov    %rsp,%r13
  mov    -0x8c(%rbp),%edi
  test   %edi,%edi
  js     L57
  mov    -0x98(%rbp),%rax
  mov    (%rax),%ecx
  lea    0x1(%rdi),%edx
  mov    $0x0,%eax
  mov    -0x68(%rbp),%rdi
  jmp    L78
L145:
  mov    (%rdi),%esi
  mov    %esi,0x0(%r13,%rax,4)
L58:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L57
L78:
  cmp    %eax,%ecx
  jle    L145
  movl   $0x0,0x0(%r13,%rax,4)
  jmp    L58
L57:
  mov    -0x90(%rbp),%esi
  cmp    $0x1,%esi
  jle    L27
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  shr    $0x2,%rdi
  mov    %rdi,-0x88(%rbp)
  mov    %r13,%r14
  add    %r13,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x98(%rbp),%rdi
  lea    0x4(%rdi),%r12
  lea    -0x1(%rsi),%edi
  mov    %rdi,-0x80(%rbp)
  mov    %rax,-0x58(%rbp)
  mov    %r13,-0x50(%rbp)
  mov    $0x0,%r15d
  mov    %r13,-0x70(%rbp)
  mov    -0x8c(%rbp),%r13d
  jmp    L151
L16:
  mov    %ebx,%edx
  sub    %eax,%edx
  movslq %edx,%rax
  add    -0x60(%rbp),%rax
  mov    -0x68(%rbp),%rdi
  mov    0x4(%rdi,%r15,4),%esi
  mov    -0x70(%rbp),%rdi
  add    (%rdi,%rax,4),%esi
  mov    -0x50(%rbp),%rax
  mov    (%rax,%rbx,4),%edi
  call   <max@plt>
  mov    -0x58(%rbp),%rcx
  mov    %eax,(%rcx,%rbx,4)
L210:
  add    $0x1,%rbx
  cmp    %ebx,%r13d
  jl     L88
L213:
  mov    (%r12),%eax
  cmp    %ebx,%eax
  jle    L16
  mov    (%r14,%rbx,4),%eax
  mov    -0x48(%rbp),%rdi
  mov    %eax,(%rdi,%rbx,4)
  jmp    L210
L88:
  add    $0x1,%r15
  mov    -0x78(%rbp),%rax
  add    %rax,%r14
  add    %rax,-0x48(%rbp)
  add    %rax,-0x50(%rbp)
  add    %rax,-0x58(%rbp)
  add    $0x4,%r12
  cmp    -0x80(%rbp),%r15
  je     L19
L151:
  mov    $0x0,%ebx
  test   %r13d,%r13d
  js     L88
  movslq %r15d,%rax
  imul   -0x88(%rbp),%rax
  mov    %rax,-0x60(%rbp)
  jmp    L213
L19:
  mov    -0x70(%rbp),%r13
L27:
  mov    -0x90(%rbp),%r15d
  sub    $0x1,%r15d
  mov    -0x78(%rbp),%r12
  shr    $0x2,%r12
  movslq %r15d,%rax
  imul   %r12,%rax
  mov    -0x8c(%rbp),%esi
  movslq %esi,%rdx
  add    %rdx,%rax
  lea    0x0(%r13,%rax,4),%rax
  mov    %esi,%edx
L130:
  mov    (%rax),%ecx
  mov    %edx,%r14d
  sub    $0x1,%edx
  sub    $0x4,%rax
  cmp    (%rax),%ecx
  je     L130
  test   %r14d,%r14d
  jle    L149
  mov    %r15d,%ebx
  mov    %r15d,-0x48(%rbp)
  mov    -0x98(%rbp),%r15
  jmp    L94
L113:
  mov    %ecx,%ebx
L46:
  test   %ebx,%ebx
  jle    L230
  lea    -0x1(%rbx),%ecx
  movslq %ebx,%rdx
  imul   %r12,%rdx
  add    %rsi,%rdx
  movslq %ecx,%rax
  imul   %r12,%rax
  add    %rsi,%rax
  mov    0x0(%r13,%rax,4),%eax
  cmp    %eax,0x0(%r13,%rdx,4)
  je     L113
L230:
  movslq %ebx,%rax
  sub    (%r15,%rax,4),%r14d
  jns    L221
L81:
  sub    $0x1,%ebx
  test   %r14d,%r14d
  jle    L181
L94:
  movslq %r14d,%rsi
  jmp    L46
L221:
  lea    0x1(%rbx),%esi
  lea    D0(%rip),%rdi
  call   <printf@plt>
  jmp    L81
L181:
  mov    -0x48(%rbp),%r15d
L149:
  movslq -0x8c(%rbp),%rax
  movslq %r15d,%r15
  imul   %r12,%r15
  add    %r15,%rax
  mov    0x0(%r13,%rax,4),%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L153
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L153:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D0
type_infered: string

tool: D0: %d


assistant: ```c
int solveKnapsack(int nbObjects, int weights[], int values[], int maxValue) {
  int M[nbObjects][maxValue + 1];
  int i, j;
  for (j = 0; j <= maxValue; j++) {
    if (weights[0] > j)
      M[0][j] = 0;
    else
      M[0][j] = values[0];
  }
  for (i = 1; i < nbObjects; i++) {
    for (j = 0; j <= maxValue; j++) {
      if (weights[i] > j)
        M[i][j] = M[i - 1][j];
      else
        M[i][j] = max(M[i - 1][j], M[i - 1][j - weights[i]] + values[i]);
    }
  }
  i = nbObjects - 1, j = maxValue;
  while (M[i][j] == M[i][j - 1])
    j--;
  while (j > 0) {
    while ((i > 0) && (M[i][j] == M[i - 1][j]))
      i--;
    j -= weights[i];
    if (j >= 0)
      printf("%d\n", i + 1);
    i--;
  }
  return M[nbObjects - 1][maxValue];
}
```