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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    D18(%rip),%rbx
  mov    %rbx,%rdi
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rbp
  mov    %rbp,%rsi
  call   <scanf@plt>
  jmp    L194
  nopl   0x0(%rax,%rax,1)
L68:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
L194:
  mov    0xc(%rsp),%edi
  call   <rightInt@plt>
  test   %eax,%eax
  je     L68
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  je     L406
  movslq %edx,%rax
  mov    %edx,%ecx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%ecx
  sar    $0x22,%rax
  sub    %ecx,%eax
  lea    (%rax,%rax,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%edx
  mov    %edx,0x10(%rsp)
  test   %eax,%eax
  je     L406
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x22,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%eax
  mov    %eax,0x14(%rsp)
  test   %edx,%edx
  je     L31
  movslq %edx,%rax
  mov    %edx,%ecx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%ecx
  sar    $0x22,%rax
  sub    %ecx,%eax
  lea    (%rax,%rax,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%edx
  mov    %edx,0x18(%rsp)
  test   %eax,%eax
  je     L214
  mov    $0xa,%ecx
  cltd
  idiv   %ecx
  mov    %edx,0x1c(%rsp)
  test   %eax,%eax
  je     L596
  cltd
  idiv   %ecx
  mov    %edx,0x20(%rsp)
  test   %eax,%eax
  je     L15
  cltd
  idiv   %ecx
  mov    %edx,0x24(%rsp)
  test   %eax,%eax
  je     L597
  cltd
  idiv   %ecx
  mov    %edx,0x28(%rsp)
  test   %eax,%eax
  je     L176
  cltd
  idiv   %ecx
  mov    %edx,0x2c(%rsp)
  test   %eax,%eax
  je     L121
  cltd
  idiv   %ecx
  mov    %edx,0x30(%rsp)
  test   %eax,%eax
  je     L130
  mov    %eax,0x34(%rsp)
  mov    $0x9,%esi
  mov    $0xa,%edx
L239:
  lea    -0x1(%rsi),%ebx
  lea    0x10(%rsp),%rdi
  mov    %edx,0xc(%rsp)
  xor    %eax,%eax
  movslq %ebx,%rcx
  lea    -0x2(%rsi),%ebp
  lea    -0x3(%rsi),%r12d
  lea    (%rdi,%rcx,4),%r8
  movslq %ebp,%rcx
  lea    -0x4(%rsi),%r9d
  lea    (%rdi,%rcx,4),%r10
  movslq %r12d,%rcx
  lea    (%rdi,%rcx,4),%r11
  nopw   0x0(%rax,%rax,1)
L499:
  movq   (%r8),%xmm0
  pshufd $0xe5,%xmm0,%xmm2
  movd   %xmm0,%ecx
  movd   %xmm2,%r13d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r13d
  jge    L5
  movq   %xmm1,(%r8)
L5:
  cmp    %ebx,%eax
  jge    L329
  movq   (%r10),%xmm0
  pshufd $0xe5,%xmm0,%xmm3
  movd   %xmm0,%ecx
  movd   %xmm3,%r13d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r13d
  jge    L381
  movq   %xmm1,(%r10)
L381:
  cmp    %ebp,%eax
  jge    L329
  movq   (%r11),%xmm0
  pshufd $0xe5,%xmm0,%xmm4
  movd   %xmm0,%ecx
  movd   %xmm4,%r13d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r13d
  jge    L555
  movq   %xmm1,(%r11)
L555:
  cmp    %r12d,%eax
  jge    L329
  movslq %r9d,%rcx
  lea    (%rdi,%rcx,4),%r13
  movq   0x0(%r13),%xmm0
  pshufd $0xe5,%xmm0,%xmm5
  movd   %xmm0,%ecx
  movd   %xmm5,%r14d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r14d
  jge    L224
  movq   %xmm1,0x0(%r13)
L224:
  cmp    %r9d,%eax
  jge    L329
  lea    -0x5(%rsi),%r13d
  movslq %r13d,%rcx
  lea    (%rdi,%rcx,4),%r14
  movq   (%r14),%xmm0
  pshufd $0xe5,%xmm0,%xmm6
  movd   %xmm0,%ecx
  movd   %xmm6,%r15d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r15d
  jge    L205
  movq   %xmm1,(%r14)
L205:
  cmp    %r13d,%eax
  jge    L329
  lea    -0x6(%rsi),%r13d
  movslq %r13d,%rcx
  lea    (%rdi,%rcx,4),%r14
  movq   (%r14),%xmm0
  pshufd $0xe5,%xmm0,%xmm7
  movd   %xmm0,%ecx
  movd   %xmm7,%r15d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r15d
  jge    L313
  movq   %xmm1,(%r14)
L313:
  cmp    %r13d,%eax
  jge    L329
  lea    -0x7(%rsi),%r13d
  movslq %r13d,%rcx
  lea    (%rdi,%rcx,4),%r14
  movq   (%r14),%xmm0
  pshufd $0xe5,%xmm0,%xmm7
  movd   %xmm0,%ecx
  movd   %xmm7,%r15d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r15d
  jge    L522
  movq   %xmm1,(%r14)
L522:
  cmp    %r13d,%eax
  jge    L329
  lea    -0x8(%rsi),%r13d
  movslq %r13d,%rcx
  lea    (%rdi,%rcx,4),%r14
  movq   (%r14),%xmm0
  pshufd $0xe5,%xmm0,%xmm6
  movd   %xmm0,%ecx
  movd   %xmm6,%r15d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r15d
  jge    L98
  movq   %xmm1,(%r14)
L98:
  cmp    %r13d,%eax
  jge    L329
  movq   0x10(%rsp),%xmm0
  pshufd $0xe5,%xmm0,%xmm5
  movd   %xmm0,%ecx
  movd   %xmm5,%r13d
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %ecx,%r13d
  jge    L329
  movq   %xmm1,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L329:
  add    $0x1,%eax
  cmp    %esi,%eax
  jne    L499
  xor    %ebx,%ebx
  lea    D16(%rip),%rbp
  nopl   0x0(%rax)
L94:
  lea    0x1(%rbx),%eax
  cmp    %edx,%eax
  jge    L406
  movslq %ebx,%rcx
  mov    0x10(%rsp,%rcx,4),%esi
  movslq %eax,%rcx
  cmp    0x10(%rsp,%rcx,4),%esi
  jne    L416
  lea    0x2(%rbx),%eax
  cmp    %eax,%edx
  jle    L454
  movslq %eax,%rcx
  cmp    0x10(%rsp,%rcx,4),%esi
  jne    L454
  lea    0x3(%rbx),%eax
  cmp    %edx,%eax
  jge    L454
  movslq %eax,%rcx
  cmp    0x10(%rsp,%rcx,4),%esi
  jne    L454
  lea    0x4(%rbx),%eax
  cmp    %edx,%eax
  jge    L454
  movslq %eax,%rcx
  cmp    0x10(%rsp,%rcx,4),%esi
  jne    L454
  lea    0x5(%rbx),%eax
  cmp    %eax,%edx
  jle    L454
  movslq %eax,%rcx
  cmp    0x10(%rsp,%rcx,4),%esi
  jne    L454
  lea    0x6(%rbx),%eax
  cmp    %eax,%edx
  jle    L454
  movslq %eax,%rcx
  cmp    0x10(%rsp,%rcx,4),%esi
  jne    L454
  lea    0x7(%rbx),%eax
  cmp    %eax,%edx
  jle    L454
  movslq %eax,%rcx
  cmp    0x10(%rsp,%rcx,4),%esi
  jne    L454
  lea    0x8(%rbx),%eax
  cmp    %eax,%edx
  jle    L454
  movslq %eax,%rcx
  cmp    0x10(%rsp,%rcx,4),%esi
  jne    L454
  lea    0x9(%rbx),%eax
  cmp    %eax,%edx
  jle    L454
  movslq %eax,%rdx
  cmp    0x10(%rsp,%rdx,4),%esi
  jne    L454
  add    $0xa,%ebx
L390:
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%edx
  cmp    %ebx,%edx
  jg     L94
L406:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L159
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L454:
  mov    %eax,%ebx
  jmp    L390
L416:
  mov    %eax,%ebx
  jmp    L94
L15:
  mov    $0x4,%esi
  mov    $0x5,%edx
  jmp    L239
L31:
  mov    $0x1,%esi
  mov    $0x2,%edx
  jmp    L239
L214:
  mov    $0x2,%esi
  mov    $0x3,%edx
  jmp    L239
L596:
  mov    $0x3,%esi
  mov    $0x4,%edx
  jmp    L239
L597:
  mov    $0x5,%esi
  mov    $0x6,%edx
  jmp    L239
L176:
  mov    $0x6,%esi
  mov    $0x7,%edx
  jmp    L239
L121:
  mov    $0x7,%esi
  mov    $0x8,%edx
  jmp    L239
L130:
  mov    $0x8,%esi
  mov    $0x9,%edx
  jmp    L239
L159:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D18
data_type: string
name: extract_symbolic_data
arguments: data_label: D16
data_type: string

tool: D18: %d

tool: D16: %d 


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