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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0xa,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x2a8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x298(%rsp)
  xor    %eax,%eax
  call   <putchar@plt>
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x28(%rsp),%rsi
  lea    D11(%rip),%rdi
  call   <scanf@plt>
  mov    0x28(%rsp),%r12
  test   %r12,%r12
  jle    L243
  mov    %r12,%rsi
  xor    %ecx,%ecx
  lea    0x30(%rsp),%rbx
  movabs $0xcccccccccccccccd,%r8
  nopl   0x0(%rax,%rax,1)
L40:
  mov    %rsi,%rax
  mov    %rsi,%rdi
  mov    %ecx,%r10d
  mul    %r8
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%rdi
  mov    %rsi,%rax
  mov    %rdx,%rsi
  mov    %edi,(%rbx,%rcx,4)
  add    $0x1,%rcx
  cmp    $0x9,%rax
  jg     L40
  lea    0x2(%r10),%r13d
  lea    0x100(%rsp),%rax
  xor    %r8d,%r8d
  xor    %edx,%edx
  mov    %r13d,%ebp
  mov    %rax,0x10(%rsp)
  mov    %r13d,%r9d
  lea    0x1(%r10),%r14d
  and    $0xfffffffc,%ebp
  movdqa 0x30(%rsp),%xmm2
  shr    $0x2,%r9d
  lea    0x1d0(%rsp),%rax
  mov    %rax,0x18(%rsp)
  movdqa 0x40(%rsp),%xmm3
  movslq %ebp,%r15
  movdqa 0x50(%rsp),%xmm4
  movdqa 0x60(%rsp),%xmm5
  movdqa 0x70(%rsp),%xmm6
  movdqa 0x80(%rsp),%xmm7
  movdqa 0x90(%rsp),%xmm8
  movdqa 0xa0(%rsp),%xmm9
  movdqa 0xb0(%rsp),%xmm10
  movdqa 0xc0(%rsp),%xmm11
  movdqa 0xd0(%rsp),%xmm12
  movdqa D24(%rip),%xmm1
  movdqa 0xe0(%rsp),%xmm13
  jmp    L276
  nopl   0x0(%rax)
L39:
  add    $0x1,%r8
  cmp    %r14,%r8
  je     L28
L276:
  mov    (%rbx,%r8,4),%ecx
  mov    %r8d,%r11d
  cmp    $0x1,%r10d
  jle    L242
  movd   %ecx,%xmm0
  pshufd $0x0,%xmm0,%xmm14
  movdqa %xmm2,%xmm0
  pcmpeqd %xmm14,%xmm0
  pand   %xmm1,%xmm0
  cmp    $0x1,%r9d
  jbe    L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm3,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0x2,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm4,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0x3,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm5,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0x4,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm6,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0x5,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm7,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0x6,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm8,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0x7,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm9,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0x8,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm10,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0x9,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm11,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0xa,%r9d
  je     L337
  movdqa %xmm14,%xmm15
  pcmpeqd %xmm12,%xmm15
  psubd  %xmm15,%xmm0
  cmp    $0xc,%r9d
  jne    L337
  pcmpeqd %xmm13,%xmm14
  psubd  %xmm14,%xmm0
  nopl   0x0(%rax,%rax,1)
L337:
  movdqa %xmm0,%xmm14
  psrldq $0x8,%xmm14
  paddd  %xmm14,%xmm0
  movdqa %xmm0,%xmm14
  psrldq $0x4,%xmm14
  paddd  %xmm14,%xmm0
  movd   %xmm0,%edi
  cmp    %ebp,%r13d
  je     L317
  mov    %ebp,%esi
  cmp    0x30(%rsp,%r15,4),%ecx
  je     L333
L131:
  lea    0x1(%rsi),%eax
  cmp    %esi,%r10d
  jl     L317
L251:
  movslq %eax,%rsi
  cmp    0x30(%rsp,%rsi,4),%ecx
  jne    L109
  add    $0x1,%edi
L109:
  lea    0x1(%rax),%esi
  cmp    %eax,%r10d
  jl     L317
  movslq %esi,%rsi
  cmp    0x30(%rsp,%rsi,4),%ecx
  jne    L317
  add    $0x1,%edi
  xchg   %ax,%ax
L317:
  cmp    $0x1,%edi
  jle    L39
  mov    0x10(%rsp),%rax
  movslq %edx,%rsi
  lea    0x1(%rdx,%r11,1),%r11d
  shl    $0x2,%rsi
  add    %rsi,%rax
  mov    %rax,0x8(%rsp)
  mov    0x18(%rsp),%rax
  lea    0x4(%rax,%rsi,1),%rsi
  mov    0x8(%rsp),%rax
  nopl   0x0(%rax)
L51:
  cmp    (%rax),%ecx
  je     L39
  add    $0x1,%edx
  mov    %ecx,0x4(%rax)
  add    $0x4,%rsi
  add    $0x4,%rax
  mov    %edi,-0x4(%rsi)
  cmp    %r11d,%edx
  jne    L51
  add    $0x1,%r8
  cmp    %r14,%r8
  jne    L276
  nopl   0x0(%rax,%rax,1)
L28:
  test   %edx,%edx
  je     L243
  movslq %edx,%rbx
  lea    0x100(%rsp),%r14
  mov    %r12,%rcx
  lea    0x1d0(%rsp),%r13
  lea    D30(%rip),%rbp
  jmp    L168
  nop
L103:
  mov    0x28(%rsp),%rcx
L168:
  mov    0x0(%r13,%rbx,4),%edx
  mov    (%r14,%rbx,4),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  sub    $0x1,%rbx
  call   <printf@plt>
  test   %ebx,%ebx
  jne    L103
L230:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x298(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L202
  add    $0x2a8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L279:
  xor    %esi,%esi
  xor    %edi,%edi
  nopl   (%rax)
L333:
  add    $0x1,%edi
  jmp    L131
L242:
  cmp    0x30(%rsp),%ecx
  je     L279
  xor    %edi,%edi
  mov    $0x1,%eax
  jmp    L251
L243:
  mov    %r12,%rsi
  lea    D36(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L230
L202:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D3
type_infered: string
name: retrieve_data
arguments: tag: D11
type_infered: string
name: retrieve_data
arguments: tag: D24
type_infered: byte[16]
name: retrieve_data
arguments: tag: D30
type_infered: string
name: retrieve_data
arguments: tag: D36
type_infered: string

tool: D3:   Enter Number: 

tool: D11: %lli

tool: {"D24": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: D30:   %d is Met %d Times in the Number %lli 


tool: D36:   Everything in the Number %lli is Met Only Once 


assistant: ```c
int main() {
  int a[50], b[50], c[50], d[50], m = 0, i, t, u, v = 0, o;
  long long int n, p;
  printf("\n");
  printf("  Enter Number: ");
  scanf("%lli", &n);
  p = n;
  for (i = 0; p > 0; i++) {
    a[i] = p % 10;
    p = p / 10;
  }
  for (t = 0; t < i; t++) {
    for (u = 0; u <= i; u++) {
      if (a[t] == a[u])
        m++;
    }
    b[t] = m;
    m = 0;
    if (b[t] > 1) {
      o = t;
      while (o >= 0) {
        if (a[t] == c[v])
          break;
        else {
          v++;
          c[v] = a[t];
          d[v] = b[t];
        }
        o--;
      }
    }
  }
  if (v > 0) {
    for (; v > 0; v--) {
      printf("  %d is Met %d Times in the Number %lli \n", c[v], d[v], n);
    }
  } else
    printf("  Everything in the Number %lli is Met Only Once \n", n);
  printf("\n");
  return 0;
}
```