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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x18(%rbp)
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x24(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x24(%rbp),%eax
  add    $0x3,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x1,-0x1c(%rbp)
  jmp    L17
L96:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x1c(%rbp)
L17:
  mov    -0x24(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jle    L96
  mov    -0x20(%rbp),%edx
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  add    $0x1,%edx
  mov    %edx,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x18(%rbp)
L56:
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L76
L4:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  subl   $0x1,-0x1c(%rbp)
L76:
  cmpl   $0x0,-0x1c(%rbp)
  jg     L4
  mov    $0xa,%edi
  call   <putchar@plt>
  cmpl   $0x0,-0x18(%rbp)
  jle    L37
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  jmp    L86
L37:
  mov    -0x10(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x10(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jge    L68
  mov    -0x10(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%rax
  add    $0x4,%rax
  add    $0x1,%edx
  mov    %edx,(%rax)
  jmp    L56
L68:
  movl   $0x2,-0x18(%rbp)
L30:
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x18(%rbp),%edx
  sub    $0x1,%edx
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x14(%rbp)
  jne    L117
  addl   $0x1,-0x18(%rbp)
  jmp    L30
L117:
  mov    -0x24(%rbp),%eax
  cmp    %eax,-0x18(%rbp)
  jle    L120
  mov    $0x0,%edi
  call   <exit@plt>
  jmp    L86
L120:
  nop
L86:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  subl   $0x1,-0x18(%rbp)
  jmp    L56
```

tool_calls: name: extract_symbolic_data
arguments: label: D28
data_type: string
name: extract_symbolic_data
arguments: label: D6
data_type: string
name: extract_symbolic_data
arguments: label: D23
data_type: string

tool: D28: Enter n,k: 

tool: D6: %d,%d

tool: D23: %3d

assistant: ```c
void main(void) {
  int i, j = 1, k, n, *c, x;
  printf("Enter n,k: ");
  scanf("%d,%d", &n, &k);
  c = malloc((k + 3) * sizeof(int));
  for (i = 1; i <= k; i++)
    c[i] = i;
  c[k + 1] = n + 1;
  c[k + 2] = 0;
  j = k;
visit:
  for (i = k; i >= 1; i--)
    printf("%3d", c[i]);
  printf("\n");
  if (j > 0) {
    x = j + 1;
    goto incr;
  }
  if (c[1] + 1 < c[2]) {
    c[1] += 1;
    goto visit;
  }
  j = 2;
do_more:
  c[j - 1] = j - 1;
  x = c[j] + 1;
  if (x == c[j + 1]) {
    j++;
    goto do_more;
  }
  if (j > k)
    exit(0);
incr:
  c[j] = x;
  j--;
  goto visit;
}
```