user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x9000(%rsp),%r11
L82:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L82
  sub    $0xfd8,%rsp
  lea    D14(%rip),%r15
  mov    %r15,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x9fc8(%rsp)
  xor    %eax,%eax
  lea    0x58(%rsp),%rsi
  call   <scanf@plt>
  lea    0x5c(%rsp),%rcx
  mov    0x58(%rsp),%eax
  mov    %rcx,0x40(%rsp)
  lea    0x60(%rsp),%rcx
  mov    %rcx,0x30(%rsp)
  lea    0x380(%rsp),%rcx
  lea    -0x1(%rax),%edx
  mov    %rcx,0x48(%rsp)
  lea    0x68(%rsp),%rcx
  mov    %edx,0x58(%rsp)
  mov    %rcx,0x38(%rsp)
  test   %eax,%eax
  je     L90
  nopl   0x0(%rax,%rax,1)
L139:
  mov    0x40(%rsp),%rsi
  mov    %r15,%rdi
  call   <scanf@plt>
  mov    0x30(%rsp),%rdi
  mov    $0x320,%edx
  xor    %esi,%esi
  call   <memset@plt>
  mov    0x5c(%rsp),%eax
  test   %eax,%eax
  jle    L124
  mov    0x48(%rsp),%r14
  xor    %ebp,%ebp
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L9:
  lea    (%r14,%rbp,4),%r13
  xor    %r12d,%r12d
  nopw   0x0(%rax,%rax,1)
L133:
  mov    %r13,%rsi
  mov    %r15,%rdi
  add    $0x1,%r12d
  add    $0x4,%r13
  call   <scanf@plt>
  cmp    %ebx,%r12d
  jle    L133
  mov    0x5c(%rsp),%edx
  add    $0x1,%ebx
  add    $0x64,%rbp
  cmp    %ebx,%edx
  jg     L9
  mov    0x380(%rsp),%esi
  mov    %esi,0x60(%rsp)
  cmp    $0x1,%edx
  jle    L77
  mov    0x510(%rsp),%eax
  mov    $0x1,%edi
  movq   $0x1,0x8(%rsp)
  add    %esi,%eax
  mov    %eax,0x1f0(%rsp)
  lea    0x514(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x6a4(%rsp),%rax
  mov    %rax,0x20(%rsp)
  nopl   0x0(%rax,%rax,1)
L114:
  movslq %edi,%rcx
  mov    0x8(%rsp),%r8
  mov    0x10(%rsp),%r9
  mov    %rcx,0x18(%rsp)
  lea    (%rcx,%rcx,4),%rcx
  lea    (%rcx,%rcx,4),%rbx
  movslq %r8d,%rax
  add    (%r9),%esi
  mov    %r8d,0x28(%rsp)
  lea    0x0(,%rbx,4),%rcx
  add    %rcx,%rax
  mov    %esi,0x60(%rsp,%rax,4)
  mov    %r8d,%eax
  add    $0x1,%eax
  cmp    %eax,%edx
  jle    L10
  mov    $0x1,%eax
  mov    0x20(%rsp),%r14
  shl    $0x4,%rbx
  sub    %edi,%eax
  mov    %eax,0x2c(%rsp)
  cltq
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rbp
  mov    -0x4(%r14),%eax
  add    0x60(%rsp,%rbx,1),%eax
  shl    $0x4,%rbp
  mov    %eax,0x60(%rsp,%rbp,1)
  mov    0x30(%rsp),%rax
  lea    0x4(%rax,%rbx,1),%r13
  mov    0x8(%rsp),%rax
  lea    -0x1(%rax,%rcx,1),%rax
  mov    0x38(%rsp),%rcx
  lea    (%rcx,%rax,4),%r12
  nopl   (%rax)
L99:
  mov    -0x4(%r13),%esi
  mov    0x0(%r13),%edi
  add    $0x4,%r14
  call   <max@plt>
  mov    %r13,%rdx
  add    -0x4(%r14),%eax
  add    $0x4,%r13
  sub    %rbx,%rdx
  mov    %eax,(%rdx,%rbp,1)
  cmp    %r12,%r13
  jne    L99
  mov    0x18(%rsp),%rax
  movslq 0x28(%rsp),%rdx
  addq   $0x1,0x8(%rsp)
  mov    0x2c(%rsp),%edi
  addq   $0x194,0x10(%rsp)
  lea    (%rax,%rax,4),%rax
  addq   $0x190,0x20(%rsp)
  lea    (%rax,%rax,4),%rax
  lea    (%rdx,%rax,4),%rax
  mov    0x5c(%rsp),%edx
  mov    0x60(%rsp,%rax,4),%esi
  jmp    L114
  xchg   %ax,%ax
L10:
  shl    $0x4,%rbx
  mov    0x60(%rsp,%rbx,1),%esi
  cmp    $0x1,%edx
  jle    L77
  mov    0x30(%rsp),%rax
  mov    0x38(%rsp),%rdi
  sub    $0x2,%edx
  add    %rdx,%rcx
  lea    0x4(%rax,%rbx,1),%rax
  lea    (%rdi,%rcx,4),%rcx
  cs nopw 0x0(%rax,%rax,1)
L120:
  mov    (%rax),%edx
  cmp    %edx,%esi
  cmovl  %edx,%esi
  add    $0x4,%rax
  cmp    %rax,%rcx
  jne    L120
L77:
  lea    D7(%rip),%rdi
  call   <printf@plt>
  mov    0x58(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x58(%rsp)
  test   %eax,%eax
  jne    L139
L90:
  mov    0x9fc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x9fd8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L124:
  mov    0x380(%rsp),%esi
  mov    %esi,0x60(%rsp)
  jmp    L77
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D14
type: string
name: unpack_data
arguments: data_label: D7
type: string

tool: D14: %d

tool: D7: %d


assistant: ```c
int main() {
  int C;
  scanf("%d", &C);
  int n;
  int dp[2][100];
  int num[100][100];
  while (C--) {
    int N;
    scanf("%d", &N);
    int dpi = 0;
    memset(dp, 0, sizeof(dp));
    for (int i = 0; i < N; i++) {
      for (int j = 0; j <= i; j++) {
        scanf("%d", &num[i][j]);
      }
    }
    dpi = 0;
    dp[dpi][0] = num[0][0];
    for (int i = 1; i < N; i++) {
      dp[1 - dpi][0] = dp[dpi][0] + num[i][0];
      for (int j = 1; j < i; j++) {
        dp[1 - dpi][j] = max(dp[dpi][j], dp[dpi][j - 1]) + num[i][j];
      }
      dp[1 - dpi][i] = dp[dpi][i - 1] + num[i][i];
      dpi = 1 - dpi;
    }
    int ans = dp[dpi][0];
    for (int i = 1; i < N; i++) {
      ans = (ans < dp[dpi][i] ? dp[dpi][i] : ans);
    }
    printf("%d\n", ans);
  }
  return 0;
}
```