user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D4(%rip),%rbp
  push   %rbx
  mov    $0x1,%ebx
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  lea    0x3c(%rsp),%rax
  lea    0x60(%rsp),%r13
  mov    %rax,0x28(%rsp)
  lea    0x40(%rsp),%r14
L120:
  mov    0x28(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  test   %rax,%rax
  je     L129
  mov    0x3c(%rsp),%eax
  test   %eax,%eax
  je     L129
  mov    %r13,%r15
  mov    $0x0,%r12d
  jle    L112
L99:
  mov    %r15,%rsi
  mov    %rbp,%rdi
  add    $0x1,%r12d
  add    $0x4,%r15
  call   <scanf@plt>
  mov    0x3c(%rsp),%eax
  cmp    %r12d,%eax
  jg     L99
  test   %ebx,%ebx
  je     L143
L148:
  movq   $0x1,0x20(%rsp)
  test   %eax,%eax
  jle    L115
L213:
  mov    0x20(%rsp),%rcx
  mov    -0x4(%r13,%rcx,4),%edx
  mov    %edx,0x40(%rsp)
  cmp    %ecx,%eax
  jle    L115
  add    $0x1,%rcx
  mov    %rcx,0x20(%rsp)
  mov    %rcx,0x18(%rsp)
L84:
  mov    0x18(%rsp),%rcx
  mov    -0x4(%r13,%rcx,4),%edx
  mov    %edx,0x44(%rsp)
  cmp    %ecx,%eax
  jle    L201
  add    $0x1,%rcx
  mov    %rcx,0x18(%rsp)
  mov    %rcx,0x10(%rsp)
L134:
  mov    0x10(%rsp),%rcx
  mov    -0x4(%r13,%rcx,4),%edx
  mov    %edx,0x48(%rsp)
  cmp    %ecx,%eax
  jle    L47
  add    $0x1,%rcx
  mov    %rcx,0x10(%rsp)
  mov    %rcx,0x8(%rsp)
L151:
  mov    0x8(%rsp),%rcx
  mov    -0x4(%r13,%rcx,4),%edx
  mov    %edx,0x4c(%rsp)
  cmp    %ecx,%eax
  jle    L85
  add    $0x1,%rcx
  mov    %rcx,0x8(%rsp)
  mov    %rcx,(%rsp)
  nopl   (%rax)
L223:
  mov    (%rsp),%rcx
  mov    -0x4(%r13,%rcx,4),%edx
  mov    %edx,0x50(%rsp)
  cmp    %ecx,%eax
  jle    L203
  mov    %rcx,%r12
  nopl   0x0(%rax)
L25:
  mov    0x0(%r13,%r12,4),%eax
  mov    %r14,%rbx
  xor    %r15d,%r15d
  mov    %eax,0x54(%rsp)
  jmp    L147
  nopl   0x0(%rax)
L33:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  call   <printf@plt>
L101:
  add    $0x4,%rbx
L147:
  add    $0x1,%r15d
  cmp    $0x1,%r15d
  je     L33
  mov    $0x20,%edi
  call   <putchar@plt>
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x6,%r15d
  jne    L101
  mov    $0xa,%edi
  add    $0x1,%r12
  call   <putchar@plt>
  mov    0x3c(%rsp),%eax
  cmp    %r12d,%eax
  jg     L25
  addq   $0x1,(%rsp)
  mov    (%rsp),%rdx
  lea    -0x1(%rdx),%edx
  cmp    %edx,%eax
  jg     L223
L203:
  mov    0x8(%rsp),%edx
  sub    $0x1,%edx
  cmp    %edx,%eax
  jg     L151
L85:
  mov    0x10(%rsp),%edx
  sub    $0x1,%edx
  cmp    %edx,%eax
  jg     L134
L47:
  mov    0x18(%rsp),%edx
  sub    $0x1,%edx
  cmp    %edx,%eax
  jg     L84
L201:
  mov    0x20(%rsp),%edx
  sub    $0x1,%edx
  cmp    %edx,%eax
  jg     L213
L115:
  xor    %ebx,%ebx
  jmp    L120
L129:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L63
  add    $0xa8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L112:
  test   %ebx,%ebx
  jne    L115
L143:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x3c(%rsp),%eax
  jmp    L148
L63:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D4
type_infered: string

tool: D4: %d

assistant: ```c
int main() {
  int i, n, arr[14], res[7], j, k, l, m, o, x, per = 1;
  while (scanf("%d", &n) && n) {
    for (i = 0; i < n; i++)
      scanf("%d", &arr[i]);
    if (per)
      per = 0;
    else
      putchar('\n');
    for (i = 0; i < n; i++) {
      res[0] = arr[i];
      for (j = i + 1; j < n; j++) {
        res[1] = arr[j];
        for (k = j + 1; k < n; k++) {
          res[2] = arr[k];
          for (l = k + 1; l < n; l++) {
            res[3] = arr[l];
            for (m = l + 1; m < n; m++) {
              res[4] = arr[m];
              for (o = m + 1; o < n; o++) {
                res[5] = arr[o];
                for (x = 0; x < 6; x++) {
                  if (x)
                    putchar(' ');
                  printf("%d", res[x]);
                }
                putchar('\n');
              }
            }
          }
        }
      }
    }
  }
  return 0;
}
```