user: What is the c source code of the assembly code below?

```asm
<knapsack>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  mov    $0x32,%ecx
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  sub    $0x1d8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1c8(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rdi
  movaps %xmm0,(%rsp)
  movq   $0x0,0x20(%rsp)
  movaps %xmm0,0x10(%rsp)
  rep stos %rax,%es:(%rdi)
  test   %ebx,%ebx
  jle    L38
  mov    %esi,%ebp
  mov    %rdx,%r10
  lea    0x58(%rsp),%r11
  mov    $0x1,%r8d
  lea    0x1(%rbx),%r13d
  mov    $0x1,%r15d
  lea    0x1(%rsi),%r14d
  cs nopw 0x0(%rax,%rax,1)
L21:
  test   %ebp,%ebp
  jle    L65
  mov    %r15d,%edx
  sub    (%r12,%r8,4),%edx
  mov    %r14d,%edi
  mov    %r11,%rax
  sub    (%r12,%r8,4),%edi
  movslq %edx,%r9
  nopl   0x0(%rax,%rax,1)
L14:
  mov    -0x24(%rax),%ecx
  test   %edx,%edx
  js     L4
  mov    -0x28(%rax,%r9,4),%esi
  add    (%r10,%r8,4),%esi
  cmp    %esi,%ecx
  cmovl  %esi,%ecx
L4:
  add    $0x1,%edx
  mov    %ecx,0x4(%rax)
  add    $0x4,%rax
  cmp    %edi,%edx
  jne    L14
L65:
  add    $0x1,%r8
  add    $0x28,%r11
  cmp    %r13,%r8
  jne    L21
  movslq %ebx,%rax
  movslq %ebp,%r13
  lea    D4(%rip),%rdi
  mov    %rsp,%r15
  lea    (%rax,%rax,4),%rax
  lea    0x0(%r13,%rax,2),%rax
  mov    0x30(%rsp,%rax,4),%r14d
  xor    %eax,%eax
  mov    %r14d,%esi
  call   <printf@plt>
  lea    D30(%rip),%rdi
  call   <puts@plt>
  lea    -0x1(%rbx),%eax
  cltq
  jmp    L76
  nopl   0x0(%rax,%rax,1)
L59:
  movslq %ebp,%r13
  lea    (%rdx,%rdx,4),%rdx
  sub    $0x1,%rax
  lea    0x0(%r13,%rdx,2),%rdx
  mov    0x30(%rsp,%rdx,4),%r14d
L76:
  movslq %eax,%rcx
  movslq %eax,%rdx
  lea    (%rcx,%rcx,4),%rcx
  lea    0x0(%r13,%rcx,2),%rcx
  cmp    %r14d,0x30(%rsp,%rcx,4)
  je     L5
  movl   $0x1,0x4(%r15,%rax,4)
  sub    0x4(%r12,%rax,4),%ebp
L5:
  test   %eax,%eax
  jg     L59
  mov    $0x1,%ebp
  lea    D28(%rip),%r12
  nopl   0x0(%rax)
L43:
  mov    (%r15,%rbp,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbp
  call   <printf@plt>
  cmp    %ebp,%ebx
  jge    L43
L94:
  mov    0x1c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  add    $0x1d8,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <putchar@plt>
L38:
  xor    %esi,%esi
  lea    D4(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D30(%rip),%rdi
  call   <puts@plt>
  jmp    L94
L85:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D4
type_infered: string
name: unpack_data
arguments: data_label: D30
type_infered: string
name: unpack_data
arguments: data_label: D28
type_infered: string

tool: D4: Max profit : %d


tool: D30: Edges are : 

tool: D28: %d	

assistant: ```c
void knapsack(int no, int wt, int pt[10], int weight[10]) {
  int knap[10][10] = {0}, x[10] = {0}, i, j;
  for (i = 1; i <= no; i++)
    for (j = 1; j <= wt; j++) {
      if ((j - weight[i]) < 0)
        knap[i][j] = knap[i - 1][j];
      else
        knap[i][j] = (knap[i - 1][j] > pt[i] + knap[i - 1][j - weight[i]] ? knap[i - 1][j] : pt[i] + knap[i - 1][j - weight[i]]);
    }
  printf("Max profit : %d\n", knap[no][wt]);
  printf("Edges are : \n");
  for (i = no; i >= 1; i--)
    if (knap[i][wt] != knap[i - 1][wt]) {
      x[i] = 1;
      wt -= weight[i];
    }
  for (i = 1; i <= no; i++)
    printf("%d\t", x[i]);
  printf("\n");
}
```