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

```asm
<main>:
  endbr64
  push   %r15
  lea    D66(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D71(%rip),%rdi
  lea    0x14(%rsp),%rsi
  call   <scanf@plt>
  mov    0x14(%rsp),%edi
  test   %edi,%edi
  js     L48
  je     L99
  mov    %edi,%eax
  xor    %ebx,%ebx
  mov    $0xcccccccd,%edx
  nopw   0x0(%rax,%rax,1)
L235:
  mov    %eax,%eax
  add    $0x1,%ebx
  imul   %rdx,%rax
  shr    $0x23,%rax
  test   %eax,%eax
  jne    L235
L230:
  mov    $0x1,%edx
L237:
  movslq %edi,%rsi
  mov    %edi,%eax
  movl   $0x0,0x14(%rsp)
  imul   $0x66666667,%rsi,%rsi
  sar    $0x1f,%eax
  sar    $0x22,%rsi
  sub    %eax,%esi
  lea    (%rsi,%rsi,4),%eax
  mov    %edi,%esi
  add    %eax,%eax
  movslq %eax,%rcx
  sub    %eax,%esi
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %eax,%ecx
  movslq %ecx,%rbp
  mov    %ecx,%eax
  imul   $0x66666667,%rbp,%rbp
  sar    $0x1f,%eax
  sar    $0x22,%rbp
  sub    %eax,%ebp
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%ebp
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %eax,%ecx
  movslq %ecx,%r12
  mov    %ecx,%eax
  imul   $0x66666667,%r12,%r12
  sar    $0x1f,%eax
  sar    $0x22,%r12
  sub    %eax,%r12d
  lea    (%r12,%r12,4),%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%r12d
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %eax,%ecx
  movslq %ecx,%r14
  mov    %ecx,%eax
  imul   $0x66666667,%r14,%r14
  sar    $0x22,%r14
  sar    $0x1f,%eax
  sub    %eax,%r14d
  lea    (%r14,%r14,4),%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%r14d
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %eax,%ecx
  movslq %ecx,%r15
  mov    %ecx,%eax
  imul   $0x66666667,%r15,%r15
  sar    $0x1f,%eax
  sar    $0x22,%r15
  sub    %eax,%r15d
  lea    (%r15,%r15,4),%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%r15d
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %eax,%ecx
  movslq %ecx,%r8
  mov    %ecx,%eax
  imul   $0x66666667,%r8,%r8
  sar    $0x1f,%eax
  sar    $0x22,%r8
  sub    %eax,%r8d
  lea    (%r8,%r8,4),%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%r8d
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %eax,%ecx
  movslq %ecx,%r9
  mov    %ecx,%eax
  imul   $0x66666667,%r9,%r9
  sar    $0x1f,%eax
  sar    $0x22,%r9
  sub    %eax,%r9d
  lea    (%r9,%r9,4),%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%r9d
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %eax,%ecx
  movslq %ecx,%r10
  mov    %ecx,%eax
  imul   $0x66666667,%r10,%r10
  sar    $0x1f,%eax
  sar    $0x22,%r10
  sub    %eax,%r10d
  lea    (%r10,%r10,4),%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%r10d
  movslq %eax,%rcx
  sar    $0x1f,%eax
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  sub    %eax,%ecx
  movslq %ecx,%r11
  mov    %ecx,%eax
  imul   $0x66666667,%r11,%r11
  sar    $0x1f,%eax
  sar    $0x22,%r11
  sub    %eax,%r11d
  lea    (%r11,%r11,4),%eax
  add    %eax,%eax
  movslq %eax,%r13
  sub    %eax,%ecx
  sar    $0x1f,%eax
  imul   $0x66666667,%r13,%r13
  mov    %ecx,%r11d
  sar    $0x22,%r13
  sub    %eax,%r13d
  cmp    $0x1,%edx
  je     L175
  cmp    $0x9,%ebx
  jle    L95
  neg    %r8d
  neg    %r9d
  neg    %r10d
  neg    %r11d
  neg    %esi
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  mov    %r8d,0xc(%rsp)
  mov    %r9d,0x8(%rsp)
  neg    %r15d
  mov    %r10d,0x4(%rsp)
  mov    %r11d,(%rsp)
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D78(%rip),%rbp
  xor    %eax,%eax
  neg    %esi
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    %r12d,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  neg    %esi
  call   <printf@plt>
  mov    %r14d,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  neg    %esi
  call   <printf@plt>
  mov    (%rsp),%r11d
  mov    0x4(%rsp),%r10d
  mov    0x8(%rsp),%r9d
  mov    0xc(%rsp),%r8d
L211:
  mov    %r11d,0xc(%rsp)
  mov    %r10d,0x8(%rsp)
  mov    %r9d,0x4(%rsp)
  mov    %r8d,(%rsp)
L244:
  xor    %eax,%eax
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x5,%ebx
  je     L12
  mov    (%rsp),%esi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x6,%ebx
  je     L12
  mov    0x4(%rsp),%esi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x7,%ebx
  je     L12
  mov    0x8(%rsp),%esi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x8,%ebx
  je     L12
  mov    0xc(%rsp),%esi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x9,%ebx
  je     L12
  mov    %r13d,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L12:
  lea    D95(%rip),%rdi
  call   <puts@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L95:
  lea    -0x2(%rbx),%eax
  cmp    $0x7,%eax
  ja     L173
  lea    D49(%rip),%rdx
  neg    %esi
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L173:
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L12
L48:
  mov    %edi,%edx
  xor    %ebx,%ebx
  nopl   (%rax)
L41:
  movslq %edx,%rax
  sar    $0x1f,%edx
  add    $0x1,%ebx
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sub    %edx,%eax
  mov    %eax,%edx
  jne    L41
  jmp    L237
L175:
  xor    %eax,%eax
  lea    D52(%rip),%rdi
  mov    %ecx,0xc(%rsp)
  mov    %r10d,0x8(%rsp)
  mov    %r9d,0x4(%rsp)
  mov    %r8d,(%rsp)
  call   <printf@plt>
  cmp    $0x1,%ebx
  jle    L12
  mov    %ebp,%esi
  lea    D78(%rip),%rbp
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x2,%ebx
  je     L12
  xor    %eax,%eax
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x3,%ebx
  je     L12
  xor    %eax,%eax
  mov    %r14d,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x4,%ebx
  jne    L244
  jmp    L12
  neg    %ebp
L266:
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  mov    %r11d,0xc(%rsp)
  mov    %r10d,0x8(%rsp)
  mov    %r9d,0x4(%rsp)
  mov    %r8d,(%rsp)
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D78(%rip),%rbp
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x2,%ebx
  mov    (%rsp),%r8d
  mov    0x4(%rsp),%r9d
  mov    0x8(%rsp),%r10d
  mov    0xc(%rsp),%r11d
  jle    L12
  xor    %eax,%eax
  mov    %r12d,%esi
  mov    %rbp,%rdi
  mov    %r11d,0xc(%rsp)
  mov    %r10d,0x8(%rsp)
  mov    %r9d,0x4(%rsp)
  mov    %r8d,(%rsp)
  call   <printf@plt>
  cmp    $0x3,%ebx
  je     L12
  xor    %eax,%eax
  mov    %r14d,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    $0x4,%ebx
  mov    (%rsp),%r8d
  mov    0x4(%rsp),%r9d
  mov    0x8(%rsp),%r10d
  mov    0xc(%rsp),%r11d
  jg     L211
  jmp    L12
L99:
  xor    %ebx,%ebx
  jmp    L230
  neg    %ebp
  neg    %r12d
  jmp    L266
  neg    %ebp
  neg    %r12d
  neg    %r14d
  jmp    L266
  neg    %ebp
  neg    %r12d
  neg    %r14d
  neg    %r15d
  jmp    L266
  neg    %ebp
  neg    %r12d
  neg    %r14d
  neg    %r15d
  neg    %r8d
  jmp    L266
  neg    %ebp
  neg    %r12d
  neg    %r14d
  neg    %r15d
  neg    %r8d
  neg    %r9d
  neg    %r10d
  jmp    L266
  neg    %ebp
  neg    %r12d
  neg    %r14d
  neg    %r15d
  neg    %r8d
  neg    %r9d
  jmp    L266
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D66
datatype: string
name: disassemble_data
arguments: data_tag: D71
datatype: string
name: disassemble_data
arguments: data_tag: D52
datatype: string
name: disassemble_data
arguments: data_tag: D78
datatype: string
name: disassemble_data
arguments: data_tag: D95
datatype: string

tool: D66: 
Enter an integer > 

tool: D71: %d

tool: D52: 
%d


tool: D78: %d


tool: D95: That's all, have a nice day!

assistant: ```c
int main(void) {
  int num, numl, n, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, sign;
  printf("\nEnter an integer > ");
  scanf("%d", &num);
  numl = num;
  n = 0;
  if (numl >= 0) {
    sign = 1;
    while (numl > 0) {
      n += 1;
      numl = numl / 10;
    }
  } else {
    sign = 0;
    while (numl < 0) {
      n += 1;
      numl = numl / 10;
    }
  }
  d0 = num % 10;
  num = (num - d0) / 10;
  d1 = num % 10;
  num = (num - d1) / 10;
  d2 = num % 10;
  num = (num - d2) / 10;
  d3 = num % 10;
  num = (num - d3) / 10;
  d4 = num % 10;
  num = (num - d4) / 10;
  d5 = num % 10;
  num = (num - d5) / 10;
  d6 = num % 10;
  num = (num - d6) / 10;
  d7 = num % 10;
  num = (num - d7) / 10;
  d8 = num % 10;
  num = (num - d8) / 10;
  d9 = num % 10;
  num = (num - d9) / 10;
  if (sign == 1) {
    printf("\n%d\n", d0);
    if (n > 1)
      printf("%d\n", d1);
    if (n > 2)
      printf("%d\n", d2);
    if (n > 3)
      printf("%d\n", d3);
    if (n > 4)
      printf("%d\n", d4);
    if (n > 5)
      printf("%d\n", d5);
    if (n > 6)
      printf("%d\n", d6);
    if (n > 7)
      printf("%d\n", d7);
    if (n > 8)
      printf("%d\n", d8);
    if (n > 9)
      printf("%d\n", d9);
  } else {
    if (n > 9) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
      d5 = d5 * -1;
      d6 = d6 * -1;
      d7 = d7 * -1;
      d8 = d8 * -1;
    } else if (n == 9) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
      d5 = d5 * -1;
      d6 = d6 * -1;
      d7 = d7 * -1;
    } else if (n == 8) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
      d5 = d5 * -1;
      d6 = d6 * -1;
    } else if (n == 7) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
      d5 = d5 * -1;
    } else if (n == 6) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
    } else if (n == 5) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
    } else if (n == 4) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
    } else if (n == 3) {
      d0 = d0 * -1;
      d1 = d1 * -1;
    } else if (n == 2) {
      d0 = d0 * -1;
    }
    printf("\n%d\n", d0);
    if (n > 1)
      printf("%d\n", d1);
    if (n > 2)
      printf("%d\n", d2);
    if (n > 3)
      printf("%d\n", d3);
    if (n > 4)
      printf("%d\n", d4);
    if (n > 5)
      printf("%d\n", d5);
    if (n > 6)
      printf("%d\n", d6);
    if (n > 7)
      printf("%d\n", d7);
    if (n > 8)
      printf("%d\n", d8);
    if (n > 9)
      printf("%d\n", d9);
  }
  printf("That's all, have a nice day!\n");
  return 0;
}
```