user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0xc3000(%rsp),%r11
L53:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L53
  sub    $0x520,%rsp
  lea    D2(%rip),%rbx
  mov    %rbx,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0xc3518(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rsi
  lea    0xc(%rsp),%rbp
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  je     L136
  nopl   0x0(%rax,%rax,1)
L52:
  mov    %rbx,%rdi
  mov    %rbp,%rsi
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  movl   $0x1,0x10(%rsp)
  test   %edi,%edi
  jle    L124
  add    $0x1,%edi
  mov    $0x1,%edx
  mov    $0x1,%r10d
  xor    %eax,%eax
  mov    $0x1,%ecx
  lea    0x10(%rsp),%rsi
  xor    %r12d,%r12d
  lea    0x14(%rsp),%r8
  nopl   0x0(%rax)
L0:
  mov    %r12d,%r11d
  mov    %rsi,%r9
  lea    (%r8,%r11,4),%r11
  jmp    L22
  nopl   0x0(%rax)
L41:
  mov    (%r9),%edx
L22:
  imul   %ecx,%edx
  add    $0x4,%r9
  add    %eax,%edx
  movslq %edx,%rax
  mov    %edx,%r13d
  mov    %edx,%r14d
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%r13d
  sar    $0x22,%rax
  sub    %r13d,%eax
  lea    (%rax,%rax,4),%r13d
  add    %r13d,%r13d
  sub    %r13d,%r14d
  mov    %r14d,-0x4(%r9)
  cmp    %r11,%r9
  jne    L41
  cmp    $0x9,%edx
  jle    L48
  lea    0x1(%r10),%r9d
  movslq %r9d,%r9
  xchg   %ax,%ax
L115:
  movslq %eax,%rdx
  mov    %eax,%r10d
  mov    %eax,%r11d
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%r10d
  sar    $0x22,%rdx
  sub    %r10d,%edx
  lea    (%rdx,%rdx,4),%r10d
  add    %r10d,%r10d
  sub    %r10d,%r11d
  mov    %r9d,%r10d
  mov    %r11d,-0x4(%rsi,%r9,4)
  mov    %eax,%r11d
  add    $0x1,%r9
  mov    %edx,%eax
  cmp    $0x9,%r11d
  jg     L115
  lea    -0x1(%r10),%r12d
L48:
  add    $0x1,%ecx
  cmp    %edi,%ecx
  je     L16
  mov    0x10(%rsp),%edx
  jmp    L0
L16:
  movslq %r12d,%rax
  mov    0x10(%rsp,%rax,4),%esi
L120:
  sub    $0x1,%r12d
  movslq %r12d,%r12
  jmp    L138
L113:
  mov    0x10(%rsp,%r12,4),%esi
  sub    $0x1,%r12
L138:
  xor    %eax,%eax
  mov    %rbx,%rdi
  call   <printf@plt>
  cmp    $0xffffffff,%r12d
  jne    L113
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  jne    L52
L136:
  mov    0xc3518(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L102
  add    $0xc3520,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L124:
  mov    $0x1,%esi
  xor    %r12d,%r12d
  jmp    L120
L102:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D2
data_type: string

tool: D2: %d

assistant: ```c
int main() {
  int t;
  int a[200001];
  int n, i, j, temp, m, x;
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    a[0] = 1;
    m = 1;
    temp = 0;
    for (i = 1; i <= n; i++) {
      for (j = 0; j < m; j++) {
        x = a[j] * i + temp;
        a[j] = x % 10;
        temp = x / 10;
      }
      while (temp > 0) {
        a[m] = temp % 10;
        temp = temp / 10;
        m++;
      }
    }
    for (i = m - 1; i >= 0; i--)
      printf("%d", a[i]);
    printf("\n");
  }
  return 0;
}
```