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

```asm
<knapsack_complete>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %ecx,%r12d
  push   %rbx
  sub    $0x88,%rsp
  mov    %edx,-0x84(%rbp)
  add    $0x1,%edx
  mov    %rsi,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0x1(%rcx),%eax
  mov    %edx,-0x88(%rbp)
  mov    %eax,-0x6c(%rbp)
  cltq
  lea    0x0(,%rax,4),%rcx
  movslq %edx,%rax
  imul   %rcx,%rax
  mov    %rcx,-0x68(%rbp)
  mov    %rsp,%rcx
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L115
L87:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L87
L115:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L145
L10:
  movslq -0x84(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rsp,%r14
  mov    %rax,-0xa8(%rbp)
  shl    $0x2,%rax
  mov    %rax,-0xb0(%rbp)
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L6
L242:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L242
L6:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L105
L188:
  mov    -0x68(%rbp),%rax
  mov    -0x6c(%rbp),%ecx
  mov    %rsp,-0x98(%rbp)
  shr    $0x2,%rax
  mov    %rax,-0x78(%rbp)
  test   %ecx,%ecx
  jle    L159
  mov    %r12d,%eax
  xor    %esi,%esi
  mov    %r14,%rdi
  lea    0x4(,%rax,4),%rdx
  call   <memset@plt>
L159:
  mov    -0x88(%rbp),%edx
  xor    %eax,%eax
  test   %edx,%edx
  jle    L1
  mov    -0x78(%rbp),%rcx
  mov    -0x84(%rbp),%esi
  nopl   0x0(%rax)
L28:
  movslq %eax,%rdx
  imul   %rcx,%rdx
  movl   $0x0,(%r14,%rdx,4)
  mov    %eax,%edx
  add    $0x1,%eax
  cmp    %edx,%esi
  jne    L28
  cmpl   $0x1,-0x88(%rbp)
  jle    L1
  mov    -0x68(%rbp),%rax
  mov    $0x1,%r11d
  mov    %r14,%r8
  mov    %r15,%rcx
  mov    -0x90(%rbp),%r9
  mov    %r12d,-0x9c(%rbp)
  mov    %r11,%r15
  lea    (%r14,%rax,1),%r10
  mov    -0x84(%rbp),%eax
  mov    %r14,-0x60(%rbp)
  mov    %r10,%r13
  mov    %r9,%r14
  sub    $0x1,%eax
  add    $0x2,%rax
  mov    %rax,-0x80(%rbp)
  lea    -0x1(%r12),%eax
  mov    %eax,-0x70(%rbp)
  nopl   (%rax)
L140:
  cmpl   $0x1,-0x6c(%rbp)
  movslq %r15d,%r12
  jle    L215
  imul   -0x78(%rbp),%r12
  mov    -0x70(%rbp),%edx
  mov    $0x1,%ebx
  add    $0x2,%rdx
  mov    %r12,-0x58(%rbp)
  mov    %r15,%r12
  mov    %r13,%r15
  mov    %r14,%r13
  mov    %rdx,%r14
  jmp    L96
L60:
  mov    %edi,(%r15,%rbx,4)
  add    $0x1,%rbx
  cmp    %rbx,%r14
  je     L59
L96:
  mov    0x0(%r13),%eax
  mov    (%r8,%rbx,4),%edi
  cmp    %ebx,%eax
  jg     L60
  mov    %ebx,%esi
  mov    -0x60(%rbp),%rdx
  mov    %r8,-0x50(%rbp)
  sub    %eax,%esi
  mov    %rcx,-0x48(%rbp)
  movslq %esi,%rax
  add    -0x58(%rbp),%rax
  mov    -0x4(%rcx,%r12,4),%esi
  add    (%rdx,%rax,4),%esi
  call   <max@plt>
  mov    -0x50(%rbp),%r8
  mov    -0x48(%rbp),%rcx
  mov    %eax,%edi
  mov    %edi,(%r15,%rbx,4)
  add    $0x1,%rbx
  cmp    %rbx,%r14
  jne    L96
L59:
  mov    %r13,%r14
  mov    %r15,%r13
  mov    %r12,%r15
L215:
  mov    -0x68(%rbp),%rax
  add    $0x1,%r15
  add    $0x4,%r14
  add    %rax,%r13
  add    %rax,%r8
  cmp    -0x80(%rbp),%r15
  jne    L140
  mov    -0x9c(%rbp),%r12d
  mov    -0x60(%rbp),%r14
L1:
  mov    -0xa8(%rbp),%rdx
  mov    -0x78(%rbp),%rbx
  movslq %r12d,%rax
  lea    D17(%rip),%rdi
  imul   %rbx,%rdx
  add    %rdx,%rax
  mov    (%r14,%rax,4),%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    -0x84(%rbp),%r11d
  test   %r11d,%r11d
  jle    L228
  mov    -0xb0(%rbp),%rax
  mov    -0x98(%rbp),%r9
  mov    %rbx,%r8
  mov    -0x90(%rbp),%r10
  add    %rax,%r9
  add    %rax,%r10
  nopl   0x0(%rax)
L91:
  movslq %r11d,%rsi
  sub    $0x1,%r11d
  xor    %edx,%edx
  movslq %r11d,%rdi
  test   %r12d,%r12d
  jle    L23
  imul   %r8,%rsi
  imul   %r8,%rdi
  jmp    L131
  nopl   0x0(%rax,%rax,1)
L210:
  sub    -0x4(%r10),%r12d
  add    $0x1,%edx
  test   %r12d,%r12d
  jle    L23
L131:
  movslq %r12d,%rax
  lea    (%rax,%rsi,1),%rcx
  add    %rdi,%rax
  mov    (%r14,%rax,4),%eax
  cmp    %eax,(%r14,%rcx,4)
  jne    L210
L23:
  mov    %edx,-0x4(%r9)
  sub    $0x4,%r10
  sub    $0x4,%r9
  test   %r11d,%r11d
  jne    L91
  mov    -0x88(%rbp),%r13d
  mov    -0x98(%rbp),%r14
  mov    $0x1,%ebx
  lea    D8(%rip),%r12
  nopl   0x0(%rax,%rax,1)
L165:
  mov    -0x4(%r14,%rbx,4),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %rbx,%r13
  jne    L165
L228:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L47
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L145:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L10
L105:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L188
L47:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D17
type: string
name: parse_data
arguments: label: D8
type: string

tool: D17: 
Max Value:%d



tool: D8: Good %d Get %d


assistant: ```c
void knapsack_complete(int v[], int w[], int length, int W) {
  int i, j, k;
  int cLen = length + 1;
  int cW = W + 1;
  int c[cLen][cW];
  int num[length];
  for (i = 0; i < cW; i++)
    c[0][i] = 0;
  for (i = 0; i < cLen; i++)
    c[i][0] = 0;
  for (i = 1; i < cLen; i++) {
    for (j = 1; j < cW; j++) {
      if (w[i - 1] > j)
        c[i][j] = c[i - 1][j];
      else {
        c[i][j] = max(c[i - 1][j], c[i][j - w[i - 1]] + v[i - 1]);
      }
    }
  }
  printf("\nMax Value:%d\n\n", c[length][W]);
  i = length;
  j = W;
  for (i = length; i > 0; i--) {
    k = 0;
    while (j > 0 && c[i][j] != c[i - 1][j]) {
      k++;
      j -= w[i - 1];
    }
    num[i - 1] = k;
  }
  for (i = 0; i < length; i++)
    printf("Good %d Get %d\n", i + 1, num[i]);
  printf("\n");
}
```