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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    -0x54(%rbp),%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x54(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x38(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x30(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L25
L70:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x4c(%rbp)
L25:
  mov    -0x54(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jl     L70
  movl   $0x0,-0x4c(%rbp)
  jmp    L68
L57:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x4c(%rbp)
L68:
  mov    -0x54(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jl     L57
  lea    -0x50(%rbp),%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x54(%rbp),%eax
  mov    -0x50(%rbp),%edx
  add    $0x1,%edx
  mov    %eax,%esi
  mov    %edx,%edi
  call   <build_matrix@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x54(%rbp),%eax
  mov    -0x50(%rbp),%edx
  add    $0x1,%edx
  mov    %eax,%esi
  mov    %edx,%edi
  call   <build_matrix@plt>
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L80
L29:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x4c(%rbp)
L80:
  mov    -0x54(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jl     L29
  movl   $0x1,-0x4c(%rbp)
  jmp    L26
L11:
  movl   $0x0,-0x48(%rbp)
  jmp    L3
L122:
  cmpl   $0x0,-0x48(%rbp)
  jle    L69
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  sub    $0x4,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  jmp    L16
L69:
  mov    $0x0,%eax
L16:
  mov    %eax,-0x44(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ebx
  mov    -0x4c(%rbp),%eax
  cltd
  idiv   %ebx
  mov    %eax,-0x40(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x4c(%rbp),%eax
  sub    %edx,%eax
  test   %eax,%eax
  js     L0
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x4c(%rbp),%eax
  sub    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  sub    $0x4,%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  jmp    L18
L0:
  mov    $0x0,%eax
L18:
  mov    %eax,-0x3c(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x40(%rbp),%edx
  mov    -0x3c(%rbp),%esi
  mov    -0x44(%rbp),%eax
  mov    %eax,%edi
  call   <max@plt>
  mov    %eax,(%rbx)
  addl   $0x1,-0x48(%rbp)
L3:
  mov    -0x54(%rbp),%eax
  cmp    %eax,-0x48(%rbp)
  jl     L122
  addl   $0x1,-0x4c(%rbp)
L26:
  mov    -0x50(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jle    L11
  mov    -0x54(%rbp),%eax
  mov    -0x50(%rbp),%edx
  lea    0x1(%rdx),%ecx
  mov    -0x20(%rbp),%rdx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <print_matrix@plt>
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x54(%rbp),%eax
  mov    -0x50(%rbp),%edx
  lea    0x1(%rdx),%ecx
  mov    -0x28(%rbp),%rdx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <print_matrix@plt>
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x50(%rbp),%esi
  mov    -0x54(%rbp),%eax
  mov    -0x28(%rbp),%rdi
  mov    -0x20(%rbp),%rcx
  mov    -0x30(%rbp),%rdx
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <print_picked@plt>
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D13
type_infered: string
name: disassemble_data
arguments: data_label: D53
type_infered: string
name: disassemble_data
arguments: data_label: D67
type_infered: string

tool: D13: %d

tool: 

tool: D67: 
Picked: 

assistant: ```c
int main() {
  int i, j, x, y;
  int n, b;
  int c;
  int *vs;
  int *ws;
  int **ps;
  int **zs;
  scanf("%d", &n);
  vs = (int *)malloc(sizeof(int) * n);
  ws = (int *)malloc(sizeof(int) * n);
  for (i = 0; i < n; i++)
    scanf("%d", &vs[i]);
  for (i = 0; i < n; i++)
    scanf("%d", &ws[i]);
  scanf("%d", &b);
  ps = build_matrix(b + 1, n);
  zs = build_matrix(b + 1, n);
  for (i = 0; i < n; i++)
    zs[0][i] = 0;
  for (i = 1; i <= b; i++)
    for (j = 0; j < n; j++) {
      x = (j - 1 < 0) ? 0 : zs[i][j - 1];
      c = i / ws[j];
      y = (i - ws[j] < 0) ? 0 : vs[j] + zs[i - c * ws[j]][j - 1];
      zs[i][j] = max(x, y, c, &ps[i][j]);
    }
  print_matrix(b + 1, n, zs);
  puts("");
  print_matrix(b + 1, n, ps);
  printf("\nPicked: ");
  print_picked(n, b, ws, zs, ps);
  puts("");
}
```