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

```asm
<main>:
  endbr64
  push   %r15
  lea    D2(%rip),%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D25(%rip),%rbp
  push   %rbx
  movabs $0xcccccccccccccccd,%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%r14
  nop
L14:
  pxor   %xmm0,%xmm0
  mov    %r15,%rdi
  xor    %eax,%eax
  movq   $0x0,0x30(%rsp)
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  movq   $0x0,0x8(%rsp)
  call   <printf@plt>
  mov    %r14,%rsi
  lea    D59(%rip),%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%rcx
  test   %rcx,%rcx
  je     L60
  jle    L43
  nopl   0x0(%rax)
L26:
  mov    %rcx,%rax
  mul    %rbx
  mov    %rcx,%rax
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rsi
  add    %rsi,%rsi
  sub    %rsi,%rax
  cltq
  addl   $0x1,0x10(%rsp,%rax,4)
  mov    %rcx,%rax
  mov    %rdx,%rcx
  cmp    $0x9,%rax
  jg     L26
  mov    0x14(%rsp),%eax
  add    0x10(%rsp),%eax
  mov    %rdx,0x8(%rsp)
  add    0x18(%rsp),%eax
  add    0x1c(%rsp),%eax
  add    0x20(%rsp),%eax
  add    0x24(%rsp),%eax
  add    0x28(%rsp),%eax
  add    0x2c(%rsp),%eax
  add    0x30(%rsp),%eax
  add    0x34(%rsp),%eax
  jne    L0
L43:
  lea    D46(%rip),%rdi
  call   <puts@plt>
  jmp    L14
  nopw   0x0(%rax,%rax,1)
L0:
  lea    D54(%rip),%rdi
  xor    %eax,%eax
  xor    %r12d,%r12d
  call   <printf@plt>
  nopl   0x0(%rax)
L21:
  mov    %r12d,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%r12d
  call   <printf@plt>
  cmp    $0xa,%r12d
  jne    L21
  lea    D22(%rip),%rdi
  xor    %eax,%eax
  lea    0x10(%rsp),%r13
  call   <printf@plt>
  lea    0x38(%rsp),%r12
  nopw   0x0(%rax,%rax,1)
L81:
  mov    0x0(%r13),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%r13
  call   <printf@plt>
  cmp    %r13,%r12
  jne    L81
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L14
  cs nopw 0x0(%rax,%rax,1)
L60:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L19
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L19:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D2
type: string
name: parse_data
arguments: tag: D25
type: string
name: parse_data
arguments: tag: D59
type: string
name: parse_data
arguments: tag: D46
type: string
name: parse_data
arguments: tag: D54
type: string
name: parse_data
arguments: tag: D22
type: string

tool: D2: Enter a number: 

tool: D25: %d 

tool: D59: %ld

tool: D46: No repeated digits

tool: D54: Digit:		

tool: D22: 
Occurances:	

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;
}
```