user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D14(%rip),%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x1,%ebx
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  lea    0x4c(%rsp),%rax
  mov    %rax,0x38(%rsp)
L114:
  mov    0x38(%rsp),%rsi
  lea    D18(%rip),%rdi
  call   <scanf@plt>
  mov    0x4c(%rsp),%esi
  test   %esi,%esi
  je     L192
  jle    L145
  lea    0x50(%rsp),%r12
  xor    %ebp,%ebp
L88:
  mov    %r12,%rsi
  lea    D18(%rip),%rdi
  add    $0x1,%ebp
  add    $0x4,%r12
  call   <scanf@plt>
  mov    0x4c(%rsp),%eax
  cmp    %ebp,%eax
  jg     L88
  test   %ebx,%ebx
  je     L2
L169:
  movq   $0x1,0x30(%rsp)
  lea    0x5c(%rsp),%r14
  test   %eax,%eax
  jle    L160
L153:
  mov    0x30(%rsp),%rdi
  cmp    %edi,%eax
  jle    L160
  add    $0x1,%rdi
  mov    %r14,%r13
  mov    %rdi,0x30(%rsp)
  mov    %rdi,0x28(%rsp)
L121:
  mov    0x28(%rsp),%rdi
  cmp    %edi,%eax
  jle    L50
  add    $0x1,%rdi
  mov    %r14,%rbp
  mov    %r13,%r14
  mov    %rdi,0x28(%rsp)
  mov    %rdi,0x20(%rsp)
L90:
  mov    0x20(%rsp),%rdi
  cmp    %edi,%eax
  jle    L42
  add    $0x1,%rdi
  mov    %r13,0x8(%rsp)
  mov    %rbp,%r12
  mov    %rdi,0x20(%rsp)
  mov    %rdi,0x18(%rsp)
  mov    %r14,%rdi
  mov    %r13,%r14
  mov    %rdi,%r13
  nop
L34:
  mov    0x18(%rsp),%rdi
  cmp    %edi,%eax
  jle    L78
  mov    0x8(%rsp),%rsi
  add    $0x1,%rdi
  mov    %r12,%rbp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,(%rsp)
  mov    %rdi,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L47:
  mov    0x10(%rsp),%rbx
  cmp    %ebx,%eax
  jle    L136
  lea    0x50(%rsp),%r12
  xchg   %ax,%ax
L131:
  mov    (%r12,%rbx,4),%eax
  sub    $0x8,%rsp
  mov    -0x4(%r14),%ecx
  mov    %r15,%rdi
  mov    -0x8(%r13),%edx
  mov    -0xc(%rbp),%esi
  add    $0x1,%rbx
  push   %rax
  mov    0x10(%rsp),%rax
  mov    0x4(%rax),%r9d
  mov    0x18(%rsp),%rax
  mov    (%rax),%r8d
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x5c(%rsp),%eax
  pop    %rdx
  pop    %rcx
  cmp    %ebx,%eax
  jg     L131
  addq   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%rdi
  addq   $0x4,(%rsp)
  lea    -0x1(%rdi),%edx
  cmp    %edx,%eax
  jg     L47
  nopl   0x0(%rax)
L136:
  mov    0x18(%rsp),%edi
  addq   $0x4,0x8(%rsp)
  mov    %rbp,%r12
  lea    -0x1(%rdi),%edx
  cmp    %edx,%eax
  jg     L34
L78:
  mov    %r13,%rdi
  mov    %r14,%r13
  mov    %r12,%rbp
  mov    %rdi,%r14
  mov    0x20(%rsp),%edi
  add    $0x4,%r13
  lea    -0x1(%rdi),%edx
  cmp    %edx,%eax
  jg     L90
L42:
  mov    0x28(%rsp),%edi
  mov    %r14,%r13
  mov    %rbp,%r14
  add    $0x4,%r13
  lea    -0x1(%rdi),%edx
  cmp    %edx,%eax
  jg     L121
L50:
  mov    0x30(%rsp),%edi
  add    $0x4,%r14
  lea    -0x1(%rdi),%edx
  cmp    %edx,%eax
  jg     L153
L160:
  xor    %ebx,%ebx
  jmp    L114
L192:
  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
L145:
  test   %ebx,%ebx
  jne    L160
L2:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x4c(%rsp),%eax
  jmp    L169
L63:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D14
type_guessed: string
name: parse_data
arguments: data_label: D18
type_guessed: string

tool: D14: %d %d %d %d %d %d


tool: D18: %d

assistant: ```c
int main(void) {
  int mSet[15], numEle, isFirst, i, i1, i2, i3, i4, i5, i6;
  isFirst = 1;
  while (1) {
    scanf("%d", &numEle);
    if (!numEle)
      break;
    for (i = 0; i < numEle; i++)
      scanf("%d", &mSet[i]);
    if (isFirst)
      isFirst = 0;
    else
      printf("\n");
    for (i1 = 0; i1 < numEle; i1++)
      for (i2 = i1 + 1; i2 < numEle; i2++)
        for (i3 = i2 + 1; i3 < numEle; i3++)
          for (i4 = i3 + 1; i4 < numEle; i4++)
            for (i5 = i4 + 1; i5 < numEle; i5++)
              for (i6 = i5 + 1; i6 < numEle; i6++) {
                printf("%d %d %d %d %d %d\n", mSet[i1], mSet[i2], mSet[i3], mSet[i4], mSet[i5], mSet[i6]);
              }
  }
  return 0;
}
```