user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1c0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x1a8(%rbp)
  lea    -0x1b4(%rbp),%rax
  mov    %rax,%rsi
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movl   $0x0,-0x1b0(%rbp)
  jmp    L60
L67:
  mov    -0x1b4(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    %edx,-0x1a0(%rbp,%rax,4)
  mov    -0x1b4(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x1b4(%rbp)
  addl   $0x1,-0x1b0(%rbp)
L60:
  mov    -0x1b4(%rbp),%eax
  test   %eax,%eax
  jne    L67
  mov    -0x1b0(%rbp),%eax
  mov    %eax,-0x1b4(%rbp)
  movl   $0x0,-0x1b0(%rbp)
  jmp    L99
L100:
  mov    -0x1b4(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x1ac(%rbp)
  jmp    L57
L31:
  mov    -0x1ac(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x1ac(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jle    L24
  mov    -0x1ac(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  mov    %eax,-0x1a4(%rbp)
  mov    -0x1ac(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x1ac(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  movslq %ecx,%rax
  mov    %edx,-0x1a0(%rbp,%rax,4)
  mov    -0x1ac(%rbp),%eax
  cltq
  mov    -0x1a4(%rbp),%edx
  mov    %edx,-0x1a0(%rbp,%rax,4)
L24:
  subl   $0x1,-0x1ac(%rbp)
L57:
  mov    -0x1ac(%rbp),%eax
  cmp    -0x1b0(%rbp),%eax
  jg     L31
  addl   $0x1,-0x1b0(%rbp)
L99:
  mov    -0x1b4(%rbp),%eax
  cmp    %eax,-0x1b0(%rbp)
  jl     L100
  movl   $0x0,-0x1b0(%rbp)
  jmp    L3
L45:
  mov    -0x1b0(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x1ac(%rbp)
  jmp    L33
L13:
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x1ac(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jne    L92
  addl   $0x1,-0x1a8(%rbp)
  addl   $0x1,-0x1ac(%rbp)
L33:
  mov    -0x1b4(%rbp),%eax
  cmp    %eax,-0x1ac(%rbp)
  jl     L13
  jmp    L97
L92:
  nop
L97:
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  mov    -0x1a8(%rbp),%edx
  mov    %eax,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x1ac(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x1b0(%rbp)
  movl   $0x1,-0x1a8(%rbp)
  addl   $0x1,-0x1b0(%rbp)
L3:
  mov    -0x1b4(%rbp),%eax
  cmp    %eax,-0x1b0(%rbp)
  jl     L45
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L128
  call   <__stack_chk_fail@plt>
L128:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D18
type_guessed: string
name: parse_data
arguments: label: D7
type_guessed: string

tool: D18: %d

tool: D7: 
 %d - %d 


assistant: ```c
int main() {
  int d[100];
  int i, j, a, b, n, count = 1;
  scanf("%d", &n);
  for (i = 0; n != 0; i++) {
    d[i] = n % 10;
    n /= 10;
  }
  n = i;
  for (i = 0; i < n; i++) {
    for (b = n - 1; b > i; b--) {
      if (d[b - 1] > d[b]) {
        a = d[b - 1];
        d[b - 1] = d[b];
        d[b] = a;
      }
    }
  }
  for (i = 0; i < n; i++) {
    for (b = i + 1; b < n; b++) {
      if (d[i] == d[b]) {
        count++;
      } else {
        break;
      }
    }
    printf("\n %d - %d \n", d[i], count);
    i = b - 1;
    count = 1;
  }
  return 0;
}
```