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

```asm
<knapsack_complete>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %edx,-0x94(%rbp)
  mov    %ecx,-0x98(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0xa0(%rbp)
  mov    -0x94(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x68(%rbp)
  mov    -0x98(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x64(%rbp)
  mov    -0x64(%rbp),%esi
  mov    -0x68(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x60(%rbp)
  movslq %esi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  movslq %esi,%rax
  lea    0x0(,%rax,4),%r12
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x58(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %edi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  mov    -0xb0(%rbp),%rcx
  mov    -0xa8(%rbp),%rbx
  mov    %rbx,%rdx
  imul   %r14,%rdx
  mov    %rcx,-0xb0(%rbp)
  mov    %rbx,-0xa8(%rbp)
  mov    %rcx,%rax
  imul   %r15,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb0(%rbp),%rax
  mul    %r14
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %edi,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    %r11,%rdx
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L230:
  cmp    %rdx,%rsp
  je     L106
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L230
L106:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L20
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L20:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x94(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L201:
  cmp    %rdx,%rsp
  je     L61
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L201
L61:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L75
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L75:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x74(%rbp)
  jmp    L188
L101:
  mov    -0x50(%rbp),%rax
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  addl   $0x1,-0x74(%rbp)
L188:
  mov    -0x74(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L101
  movl   $0x0,-0x74(%rbp)
  jmp    L62
L132:
  mov    %r12,%rcx
  shr    $0x2,%rcx
  mov    -0x50(%rbp),%rax
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  addl   $0x1,-0x74(%rbp)
L62:
  mov    -0x74(%rbp),%eax
  cmp    -0x68(%rbp),%eax
  jl     L132
  movl   $0x1,-0x74(%rbp)
  jmp    L211
L156:
  movl   $0x1,-0x70(%rbp)
  jmp    L151
L184:
  mov    -0x74(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x70(%rbp)
  jge    L48
  mov    %r12,%rcx
  shr    $0x2,%rcx
  mov    -0x74(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    %r12,%rsi
  shr    $0x2,%rsi
  mov    -0x50(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%r8
  movslq %edi,%rdx
  imul   %rcx,%rdx
  add    %r8,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x50(%rbp),%rax
  mov    -0x70(%rbp),%ecx
  movslq %ecx,%rdi
  mov    -0x74(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    %edx,(%rax,%rcx,4)
  jmp    L119
L48:
  mov    %r12,%rcx
  shr    $0x2,%rcx
  mov    -0x74(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%esi
  mov    -0x70(%rbp),%eax
  sub    %esi,%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%rax
  movslq %edx,%rsi
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x74(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rcx
  mov    -0x88(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    %r12,%rsi
  shr    $0x2,%rsi
  mov    -0x74(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    -0x50(%rbp),%rax
  mov    -0x70(%rbp),%ecx
  movslq %ecx,%r8
  movslq %edi,%rcx
  imul   %rsi,%rcx
  add    %r8,%rcx
  mov    (%rax,%rcx,4),%eax
  mov    %r12,%rbx
  shr    $0x2,%rbx
  mov    %edx,%esi
  mov    %eax,%edi
  call   <max@plt>
  mov    -0x50(%rbp),%rdx
  mov    -0x70(%rbp),%ecx
  movslq %ecx,%rsi
  mov    -0x74(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rbx,%rcx
  add    %rsi,%rcx
  mov    %eax,(%rdx,%rcx,4)
L119:
  addl   $0x1,-0x70(%rbp)
L151:
  mov    -0x70(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L184
  addl   $0x1,-0x74(%rbp)
L211:
  mov    -0x74(%rbp),%eax
  cmp    -0x68(%rbp),%eax
  jl     L156
  mov    %r12,%rcx
  shr    $0x2,%rcx
  mov    -0x50(%rbp),%rax
  mov    -0x98(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x94(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x94(%rbp),%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x98(%rbp),%eax
  mov    %eax,-0x70(%rbp)
  mov    -0x94(%rbp),%eax
  mov    %eax,-0x74(%rbp)
  jmp    L96
L126:
  movl   $0x0,-0x6c(%rbp)
  jmp    L182
L23:
  addl   $0x1,-0x6c(%rbp)
  mov    -0x74(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    %eax,-0x70(%rbp)
L182:
  cmpl   $0x0,-0x70(%rbp)
  jle    L118
  mov    %r12,%rcx
  shr    $0x2,%rcx
  mov    -0x50(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %r12,%rsi
  shr    $0x2,%rsi
  mov    -0x74(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    -0x50(%rbp),%rax
  mov    -0x70(%rbp),%ecx
  movslq %ecx,%r8
  movslq %edi,%rcx
  imul   %rsi,%rcx
  add    %r8,%rcx
  mov    (%rax,%rcx,4),%eax
  cmp    %eax,%edx
  jne    L23
L118:
  mov    -0x74(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  mov    -0x6c(%rbp),%ecx
  mov    %ecx,(%rax,%rdx,4)
  subl   $0x1,-0x74(%rbp)
L96:
  cmpl   $0x0,-0x74(%rbp)
  jg     L126
  movl   $0x0,-0x74(%rbp)
  jmp    L141
L169:
  mov    -0x40(%rbp),%rax
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    -0x74(%rbp),%edx
  lea    0x1(%rdx),%ecx
  mov    %eax,%edx
  mov    %ecx,%esi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x74(%rbp)
L141:
  mov    -0x74(%rbp),%eax
  cmp    -0x94(%rbp),%eax
  jl     L169
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0xa0(%rbp),%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L29
  call   <__stack_chk_fail@plt>
L29:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D3
data_type: string
name: unpack_data
arguments: data_label: D14
data_type: string

tool: D3: 
Max Value:%d



tool: D14: 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");
}
```