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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  lea    D20(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D28(%rip),%rbx
  sub    $0x420,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x418(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rbp
  nopl   0x0(%rax)
L40:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%esi
  cmp    $0xe,%esi
  ja     L40
  test   $0x1,%al
  je     L40
  mov    %eax,%r8d
  mov    $0x4,%edx
  lea    0x10(%rsp),%r9
  shl    $0x2,%r8
  test   %eax,%eax
  cmovle %rdx,%r8
  xor    %edi,%edi
  xor    %r10d,%r10d
  mov    %r8d,%ebx
  mov    %r8d,%r12d
  mov    %r8d,%r11d
  and    $0x4,%ebx
  and    $0x2,%r12d
  nopl   0x0(%rax)
L23:
  mov    %rdi,%rdx
  mov    %r9,%rbp
  shl    $0x6,%rdx
  add    %r9,%rdx
  cmp    $0x8,%r8d
  jae    L92
  test   %ebx,%ebx
  jne    L191
  test   %r8d,%r8d
  je     L59
  movb   $0x0,(%rdx)
  test   %r12d,%r12d
  jne    L142
L59:
  add    $0x1,%rdi
  cmp    %edi,%eax
  jg     L23
  mov    %eax,%r10d
  mov    %eax,%r8d
  mov    %eax,%ecx
  mov    $0x1,%edi
  imul   %eax,%r10d
  sar    %r8d
  movslq %r8d,%r9
  movl   $0x1,0x10(%rsp,%r9,4)
  cmp    $0x1,%r10d
  jne    L114
  jmp    L174
  nopl   0x0(%rax,%rax,1)
L17:
  cmp    %edx,%eax
  jg     L157
  xor    %r8d,%r8d
  xor    %r9d,%r9d
L18:
  movslq %ecx,%rdx
  shl    $0x4,%rdx
  add    %r9,%rdx
  mov    0x10(%rsp,%rdx,4),%r11d
  test   %r11d,%r11d
  je     L229
  add    $0x2,%ecx
  sub    $0x1,%r8d
  movslq %ecx,%rdx
  movslq %r8d,%r9
  shl    $0x4,%rdx
  add    %r9,%rdx
L229:
  mov    %edi,0x10(%rsp,%rdx,4)
  add    $0x1,%edi
  cmp    %r10d,%edi
  je     L174
L114:
  sub    $0x1,%ecx
  lea    0x1(%r8),%edx
  cmp    $0xffffffff,%ecx
  jne    L17
  mov    $0x1,%ecx
  cmp    %edx,%eax
  jle    L18
  movslq %edx,%r9
  mov    %esi,%ecx
  mov    %r9,%r8
  jmp    L18
  nopl   0x0(%rax)
L92:
  movq   $0x0,(%rdx)
  lea    0x8(%rdx),%r14
  movq   $0x0,-0x8(%rdx,%r11,1)
  lea    -0x8(%r8),%edx
  and    $0xfffffff8,%edx
  cmp    $0x8,%edx
  jb     L59
  mov    %edx,%ecx
  xor    %edx,%edx
  and    $0xfffffff8,%ecx
L122:
  mov    %edx,%r13d
  add    $0x8,%edx
  mov    %r10,(%r14,%r13,1)
  cmp    %ecx,%edx
  jb     L122
  jmp    L59
  cs nopw 0x0(%rax,%rax,1)
L174:
  xor    %r13d,%r13d
  lea    D10(%rip),%r12
  nopw   0x0(%rax,%rax,1)
L83:
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L156:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0xc(%rsp)
  jg     L156
  mov    $0xa,%edi
  add    $0x1,%r13d
  add    $0x40,%rbp
  call   <putchar@plt>
  cmp    %r13d,0xc(%rsp)
  jg     L83
  mov    0x418(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L172
  add    $0x420,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L157:
  movslq %edx,%r9
  mov    %r9,%r8
  jmp    L18
L191:
  movl   $0x0,(%rdx)
  movl   $0x0,-0x4(%rdx,%r11,1)
  jmp    L59
L142:
  movw   $0x0,-0x2(%rdx,%r11,1)
  jmp    L59
L172:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D20
datatype: string
name: parse_data
arguments: label: D28
datatype: string
name: parse_data
arguments: label: D10
datatype: string

tool: D20: enter n(n=1 to 15):

tool: D28: %d

tool: D10: %4d

assistant: ```c
void main() {
  int a[16][16], i, j, k, n, p;
  p = 1;
  while (p == 1) {
    printf("enter n(n=1 to 15):");
    scanf("%d", &n);
    if ((n > 0) && (n < 16) && (n % 2 != 0))
      p = 0;
  }
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      a[i][j] = 0;
  j = n / 2;
  a[0][j] = 1;
  for (k = 1; k < n * n; k++) {
    i = i - 1;
    j = j + 1;
    if ((i < 0) && (j > n - 1)) {
      i = i + 2;
      j = j - 1;
    } else {
      if (i < 0)
        i = n - 1;
      if (j > n - 1)
        j = 0;
    }
    if (a[i][j] == 0)
      a[i][j] = k;
    else {
      i = i + 2;
      j = j - 1;
      a[i][j] = k;
    }
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++)
      printf("%4d", a[i][j]);
    printf("\n");
  }
}
```