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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x753000(%rsp),%r11
L19:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L19
  sub    $0x308,%rsp
  lea    D9(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x7532f8(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%rdx
  lea    0x18(%rsp),%rsi
  call   <scanf@plt>
  lea    0x2f0(%rsp),%rdi
  mov    $0x753000,%edx
  xor    %esi,%esi
  call   <memset@plt>
  mov    0x1c(%rsp),%edi
  test   %edi,%edi
  jle    L73
  mov    $0x4,%ebx
  lea    0x110(%rsp),%rax
  mov    $0x1,%r15d
  mov    %rax,(%rsp)
  lea    0x200(%rsp),%r14
  lea    0x20(%rsp),%r13
  lea    D23(%rip),%rbp
  nopw   0x0(%rax,%rax,1)
L98:
  mov    (%rsp),%rax
  lea    0x0(%r13,%rbx,1),%rsi
  lea    (%r14,%rbx,1),%rcx
  mov    %rbp,%rdi
  add    $0x1,%r15d
  lea    (%rax,%rbx,1),%rdx
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <scanf@plt>
  mov    0x1c(%rsp),%esi
  mov    %esi,%edi
  cmp    %r15d,%esi
  jge    L98
  mov    0x18(%rsp),%r8d
  movslq %r8d,%rax
  test   %esi,%esi
  jle    L99
  lea    0x1f6f4(%rsp),%rdx
  lea    0x204(%rsp),%r12
  xor    %r13d,%r13d
  mov    %rdx,0x8(%rsp)
  lea    0x24(%rsp),%r15
  nopl   0x0(%rax,%rax,1)
L85:
  mov    0x8(%rsp),%r14
  mov    $0x1,%ebx
  test   %r8d,%r8d
  jle    L80
  movslq %r13d,%rbp
  imul   $0x7d00,%rbp,%rbp
  jmp    L140
  nopw   0x0(%rax,%rax,1)
L100:
  cmp    %esi,%ebx
  jge    L94
L21:
  add    $0x1,%ebx
  mov    %edi,(%r14)
  movslq %r8d,%rax
  add    $0x4,%r14
  cmp    %ebx,%r8d
  jl     L4
L140:
  movslq (%r12),%rax
  mov    (%r15),%esi
  mov    -0x1f400(%r14),%edi
  test   %eax,%eax
  je     L100
  mov    0x20(%rsp,%rax,4),%r9d
  lea    (%r9,%rsi,1),%r10d
  cmp    %ebx,%r10d
  jg     L21
  mov    %ebx,%r8d
  mov    (%rsp),%rcx
  sub    %r9d,%r8d
  imul   0x110(%rsp,%rax,4),%r9d
  sub    %esi,%r8d
  imul   0x4(%rcx,%r13,4),%esi
  movslq %r8d,%r8
  add    %rbp,%r8
  add    0x2f0(%rsp,%r8,4),%esi
  add    %r9d,%esi
  call   <max@plt>
  mov    0x18(%rsp),%r8d
  mov    %eax,%edi
  jmp    L21
  nopl   (%rax)
L94:
  mov    %ebx,%eax
  mov    (%rsp),%rdx
  sub    %esi,%eax
  cltq
  imul   0x4(%rdx,%r13,4),%esi
  add    %rbp,%rax
  add    0x2f0(%rsp,%rax,4),%esi
  call   <max@plt>
  mov    0x18(%rsp),%r8d
  mov    %eax,%edi
  jmp    L21
  nopl   0x0(%rax,%rax,1)
L4:
  mov    0x1c(%rsp),%esi
L80:
  add    $0x1,%r13
  mov    %esi,%edi
  add    $0x4,%r12
  add    $0x4,%r15
  addq   $0x1f400,0x8(%rsp)
  lea    0x1(%r13),%r9d
  cmp    %r9d,%esi
  jge    L85
L99:
  movslq %edi,%rdx
  lea    D12(%rip),%rdi
  imul   $0x7d00,%rdx,%rdx
  add    %rdx,%rax
  mov    0x2f0(%rsp,%rax,4),%esi
  call   <printf@plt>
  mov    0x7532f8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x753308,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L73:
  movslq 0x18(%rsp),%rax
  jmp    L99
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D9
type_infered: string
name: extract_symbolic_data
arguments: tag: D23
type_infered: string
name: extract_symbolic_data
arguments: tag: D12
type_infered: string

tool: D9: %d %d

tool: D23: %d %d %d

tool: D12: %d


assistant: ```c
int main() {
  int N, m;
  int v[60], p[60], q[60];
  int cnt = 0;
  scanf("%d %d", &N, &m);
  int dp[60][32000] = {0};
  for (int i = 1; i <= m; i++) {
    scanf("%d %d %d", &v[i], &p[i], &q[i]);
  }
  for (int i = 1; i < m + 1; i++) {
    for (int j = 1; j < N + 1; j++) {
      if (q[i] == 0) {
        if (j >= v[i])
          dp[i][j] = max(dp[i - 1][j], dp[i - 1][j - v[i]] + v[i] * p[i]);
        else
          dp[i][j] = dp[i - 1][j];
      } else {
        if (j >= v[q[i]] + v[i])
          dp[i][j] = max(dp[i - 1][j], dp[i - 1][j - v[q[i]] - v[i]] + v[i] * p[i] + v[q[i]] * p[q[i]]);
        else
          dp[i][j] = dp[i - 1][j];
      }
    }
  }
  printf("%d\n", dp[m][N]);
  return 0;
}
```