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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x360,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x348(%rbp)
  movl   $0x0,-0x340(%rbp)
  movl   $0x0,-0x33c(%rbp)
  movl   $0x0,-0x338(%rbp)
  lea    -0x354(%rbp),%rax
  mov    %rax,%rsi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  jmp    L152
L20:
  lea    -0x350(%rbp),%rax
  mov    %rax,%rsi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x350(%rbp),%eax
  test   %eax,%eax
  je     L119
  mov    -0x350(%rbp),%eax
  cmp    $0x1,%eax
  jne    L6
L119:
  mov    $0x1,%esi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L152
L6:
  mov    -0x350(%rbp),%eax
  mov    %eax,-0x33c(%rbp)
  jmp    L18
L60:
  mov    -0x33c(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    -0x338(%rbp),%eax
  cltq
  mov    %edx,-0x330(%rbp,%rax,4)
  mov    -0x33c(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x33c(%rbp)
  addl   $0x1,-0x338(%rbp)
  addl   $0x1,-0x348(%rbp)
L18:
  cmpl   $0x0,-0x33c(%rbp)
  jne    L60
  movl   $0x0,-0x338(%rbp)
  mov    -0x350(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x350(%rbp)
  jmp    L139
L62:
  movl   $0x0,-0x34c(%rbp)
  movl   $0x0,-0x340(%rbp)
  jmp    L43
L135:
  mov    -0x340(%rbp),%eax
  cltq
  mov    -0x330(%rbp,%rax,4),%edx
  mov    -0x350(%rbp),%eax
  imul   %eax,%edx
  mov    -0x34c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x334(%rbp)
  mov    -0x334(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    -0x340(%rbp),%eax
  cltq
  mov    %edx,-0x330(%rbp,%rax,4)
  mov    -0x334(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34c(%rbp)
  addl   $0x1,-0x340(%rbp)
L43:
  mov    -0x340(%rbp),%eax
  cmp    -0x348(%rbp),%eax
  jl     L135
  jmp    L133
L5:
  mov    -0x34c(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    -0x340(%rbp),%eax
  cltq
  mov    %edx,-0x330(%rbp,%rax,4)
  mov    -0x34c(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34c(%rbp)
  addl   $0x1,-0x340(%rbp)
  addl   $0x1,-0x348(%rbp)
L133:
  cmpl   $0x0,-0x34c(%rbp)
  jne    L5
  mov    -0x350(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x350(%rbp)
L139:
  mov    -0x350(%rbp),%eax
  test   %eax,%eax
  jne    L62
  mov    -0x348(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x344(%rbp)
  jmp    L94
L95:
  mov    -0x344(%rbp),%eax
  cltq
  mov    -0x330(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  subl   $0x1,-0x344(%rbp)
L94:
  cmpl   $0x0,-0x344(%rbp)
  jns    L95
  movl   $0x0,-0x348(%rbp)
  movl   $0x0,-0x344(%rbp)
  movl   $0x0,-0x340(%rbp)
  movl   $0x0,-0x334(%rbp)
  movl   $0x0,-0x34c(%rbp)
  mov    $0xa,%edi
  call   <putchar@plt>
L152:
  mov    -0x354(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x354(%rbp)
  test   %eax,%eax
  jne    L20
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L0
  call   <__stack_chk_fail@plt>
L0:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D28
datatype: string
name: unpack_data
arguments: data_tag: D19
datatype: string

tool: D28: %d

tool: D19: %d


assistant: ```c
int main(void) {
  int t, n, fact[201], x, temp, m = 0, i, j = 0, temp_n = 0, index = 0;
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    if (n == 0 || n == 1) {
      printf("%d\n", 1);
    } else {
      temp_n = n;
      while (temp_n != 0) {
        fact[index] = temp_n % 10;
        temp_n /= 10;
        index++;
        m++;
      }
      index = 0;
      n -= 1;
      while (n != 0) {
        temp = 0;
        for (j = 0; j < m; j++) {
          x = fact[j] * n + temp;
          fact[j] = x % 10;
          temp = x / 10;
        }
        while (temp != 0) {
          fact[j] = temp % 10;
          temp /= 10;
          j++;
          m++;
        }
        n -= 1;
      }
      for (i = m - 1; i >= 0; i--) {
        printf("%d", fact[i]);
      }
      m = 0;
      i = 0;
      j = 0;
      x = 0;
      temp = 0;
      printf("\n");
    }
  }
  return 0;
}
```