user: 这段汇编代码用C语言表示是什么样的：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x9000(%rsp),%r11
L31:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L31
  sub    $0xfd8,%rsp
  lea    D10(%rip),%r15
  mov    %r15,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x9fc8(%rsp)
  xor    %eax,%eax
  lea    0x58(%rsp),%rsi
  call   <scanf@plt>
  mov    0x58(%rsp),%eax
  lea    0x5c(%rsp),%rcx
  mov    %rcx,0x40(%rsp)
  lea    0x60(%rsp),%rcx
  mov    %rcx,0x30(%rsp)
  lea    -0x1(%rax),%edx
  lea    0x380(%rsp),%rcx
  mov    %edx,0x58(%rsp)
  mov    %rcx,0x48(%rsp)
  test   %eax,%eax
  je     L110
  nopl   0x0(%rax)
L29:
  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    L99
  mov    0x48(%rsp),%r14
  xor    %ebp,%ebp
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L75:
  lea    (%r14,%rbp,4),%r13
  xor    %r12d,%r12d
  nop
L79:
  mov    %r13,%rsi
  mov    %r15,%rdi
  add    $0x1,%r12d
  add    $0x4,%r13
  call   <scanf@plt>
  cmp    %ebx,%r12d
  jle    L79
  mov    0x5c(%rsp),%eax
  add    $0x1,%ebx
  add    $0x64,%rbp
  cmp    %ebx,%eax
  jg     L75
  mov    0x380(%rsp),%esi
  movd   %esi,%xmm3
  mov    %esi,0x60(%rsp)
  pshufd $0xe0,%xmm3,%xmm1
  cmp    $0x1,%eax
  jle    L52
  movq   0x510(%rsp),%xmm0
  paddd  %xmm1,%xmm0
  movq   %xmm0,0x1f0(%rsp)
  cmp    $0x2,%eax
  je     L41
  lea    0x6a8(%rsp),%rax
  movq   $0x2,(%rsp)
  mov    %rax,0x10(%rsp)
  lea    0x6a4(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x68(%rsp),%rax
  movl   $0x1,0x20(%rsp)
  movq   $0x1,0x8(%rsp)
  mov    %rax,0x38(%rsp)
L186:
  mov    0x8(%rsp),%rax
  mov    0x20(%rsp),%ebx
  mov    0x18(%rsp),%r14
  mov    (%rsp),%rdi
  lea    (%rax,%rax,4),%rax
  mov    %ebx,0x2c(%rsp)
  lea    (%rax,%rax,4),%rcx
  mov    $0x1,%eax
  mov    %edi,0x28(%rsp)
  sub    %ebx,%eax
  mov    %rcx,%rbp
  mov    %edi,0x24(%rsp)
  mov    %eax,0x20(%rsp)
  cltq
  shl    $0x4,%rbp
  mov    %rax,0x8(%rsp)
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rbx
  mov    -0x4(%r14),%eax
  add    0x60(%rsp,%rbp,1),%eax
  shl    $0x4,%rbx
  mov    %eax,0x60(%rsp,%rbx,1)
  mov    0x30(%rsp),%rax
  lea    0x4(%rax,%rbp,1),%r13
  lea    -0x2(%rdi,%rcx,4),%rax
  mov    0x38(%rsp),%rcx
  lea    (%rcx,%rax,4),%r12
  nop
L151:
  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    %rbp,%rdx
  mov    %eax,(%rdx,%rbx,1)
  cmp    %r12,%r13
  jne    L151
  mov    0x8(%rsp),%rcx
  movslq 0x24(%rsp),%rsi
  mov    0x10(%rsp),%rbx
  addq   $0x1,(%rsp)
  lea    (%rcx,%rcx,4),%rdx
  mov    0x5c(%rsp),%eax
  addq   $0x190,0x18(%rsp)
  lea    (%rdx,%rdx,4),%rcx
  mov    0x28(%rsp),%edx
  add    $0x194,%rbx
  lea    (%rsi,%rcx,4),%rdi
  movslq 0x2c(%rsp),%rsi
  sub    $0x1,%edx
  lea    (%rsi,%rsi,4),%rsi
  movslq %edx,%rdx
  lea    (%rsi,%rsi,4),%rsi
  lea    (%rdx,%rsi,4),%rsi
  mov    -0x194(%rbx),%edx
  mov    %rbx,0x10(%rsp)
  add    0x60(%rsp,%rsi,4),%edx
  mov    %edx,0x60(%rsp,%rdi,4)
  mov    (%rsp),%rdi
  cmp    %edi,%eax
  jg     L186
  shl    $0x4,%rcx
  mov    0x60(%rsp,%rcx,1),%esi
  cmp    $0x1,%eax
  jle    L52
  lea    -0x2(%rax),%edx
  lea    -0x1(%rax),%edi
  cmp    $0x2,%edx
  jbe    L72
  mov    0x30(%rsp),%rbx
  mov    %edi,%edx
  movd   %esi,%xmm4
  shr    $0x2,%edx
  pshufd $0x0,%xmm4,%xmm2
  lea    -0x1(%rdx),%esi
  lea    0x4(%rbx,%rcx,1),%rcx
  shl    $0x4,%rsi
  lea    0x10(%rcx),%rdx
  add    %rdx,%rsi
  jmp    L188
  nopl   (%rax)
L1:
  add    $0x10,%rdx
L188:
  movdqu (%rcx),%xmm0
  mov    %rdx,%rcx
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rsi,%rdx
  jne    L1
  movdqa %xmm2,%xmm1
  mov    %edi,%ecx
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%ecx
  movdqa %xmm1,%xmm0
  lea    0x1(%rcx),%edx
  pcmpgtd %xmm2,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%esi
  cmp    %edi,%ecx
  je     L52
L91:
  mov    0x8(%rsp),%rcx
  movslq %edx,%rdi
  lea    (%rcx,%rcx,4),%rcx
  lea    (%rcx,%rcx,4),%rcx
  shl    $0x2,%rcx
  add    %rcx,%rdi
  mov    0x60(%rsp,%rdi,4),%edi
  cmp    %edi,%esi
  cmovl  %edi,%esi
  lea    0x1(%rdx),%edi
  cmp    %eax,%edi
  jge    L52
  movslq %edi,%rdi
  add    %rcx,%rdi
  mov    0x60(%rsp,%rdi,4),%edi
  cmp    %edi,%esi
  cmovl  %edi,%esi
  add    $0x2,%edx
  cmp    %eax,%edx
  jge    L52
  movslq %edx,%rdx
  add    %rdx,%rcx
  mov    0x60(%rsp,%rcx,4),%eax
  cmp    %eax,%esi
  cmovl  %eax,%esi
L52:
  lea    D6(%rip),%rdi
  call   <printf@plt>
  mov    0x58(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x58(%rsp)
  test   %eax,%eax
  jne    L29
L110:
  mov    0x9fc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x9fd8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L99:
  mov    0x380(%rsp),%esi
  mov    %esi,0x60(%rsp)
  jmp    L52
L41:
  movq   $0x1,0x8(%rsp)
  mov    0x1f0(%rsp),%esi
L72:
  mov    $0x1,%edx
  jmp    L91
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D10
type_guessed: string
name: unpack_data
arguments: data_label: D6
type_guessed: string

tool: D10: %d

tool: D6: %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;
}
```