user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    D39(%rip),%r15
  movabs $0x6666666666666667,%r13
  jmp    L84
L83:
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%r12d
  lea    D41(%rip),%r14
L73:
  mov    %r12d,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%r12d
  cmp    $0xa,%r12d
  jne    L73
  lea    D66(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D41(%rip),%r12
L79:
  mov    0x0(%rbp),%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x4,%rbp
  cmp    %rbx,%rbp
  jne    L79
  mov    $0xa,%edi
  call   <putchar@plt>
L84:
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x8(%rsp)
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D18(%rip),%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%rcx
  test   %rcx,%rcx
  je     L14
  jle    L2
L16:
  mov    %rcx,%rax
  imul   %r13
  sar    $0x2,%rdx
  mov    %rcx,%rax
  sar    $0x3f,%rax
  sub    %rax,%rdx
  lea    (%rdx,%rdx,4),%rsi
  add    %rsi,%rsi
  mov    %rcx,%rax
  sub    %rsi,%rax
  cltq
  addl   $0x1,0x10(%rsp,%rax,4)
  mov    %rcx,%rax
  mov    %rdx,%rcx
  cmp    $0x9,%rax
  jg     L16
  mov    %rdx,0x8(%rsp)
L2:
  lea    0x10(%rsp),%rbp
  lea    0x38(%rsp),%rbx
  mov    %rbp,%rax
  mov    $0x0,%edx
L42:
  add    (%rax),%edx
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L42
  test   %edx,%edx
  jne    L83
  lea    D11(%rip),%rdi
  call   <puts@plt>
  jmp    L84
L14:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D39
type_infered: string
name: parse_data
arguments: data_tag: D8
type_infered: string
name: parse_data
arguments: data_tag: D41
type_infered: string
name: parse_data
arguments: data_tag: D66
type_infered: string
name: parse_data
arguments: data_tag: D18
type_infered: string
name: parse_data
arguments: data_tag: D11
type_infered: string

tool: D39: Enter a number: 

tool: D8: Digit:		

tool: D41: %d 

tool: D66: 
Occurances:	

tool: D18: %ld

tool: D11: No repeated digits

assistant: ```c
int main(void) {
  while (1) {
    int duplicates[10] = {0};
    int digit = 0;
    int empty = 0;
    long n = 0;
    printf("Enter a number: ");
    scanf("%ld", &n);
    if (n == 0) {
      break;
    }
    while (n > 0) {
      digit = n % 10;
      duplicates[digit] += 1;
      n /= 10;
    }
    for (int i = 0; i < 10; i += 1) {
      empty += duplicates[i];
    }
    if (empty == 0) {
      printf("No repeated digits\n");
    } else {
      printf("Digit:\t\t");
      for (int i = 0; i < 10; i += 1) {
        printf("%d ", i);
      }
      printf("\nOccurances:\t");
      for (int i = 0; i < 10; i += 1) {
        printf("%d ", duplicates[i]);
      }
      printf("\n");
    }
  }
  return 0;
}
```