user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D211(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  movl   $0x0,-0x38(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  js     L311
  movl   $0x1,-0x10(%rbp)
  jmp    L430
L69:
  addl   $0x1,-0x38(%rbp)
  mov    -0x3c(%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,-0x3c(%rbp)
L430:
  cmpl   $0x0,-0x3c(%rbp)
  jg     L69
  jmp    L410
L311:
  movl   $0x0,-0x10(%rbp)
  jmp    L407
L3:
  addl   $0x1,-0x38(%rbp)
  mov    -0x3c(%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,-0x3c(%rbp)
L407:
  cmpl   $0x0,-0x3c(%rbp)
  js     L3
L410:
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x34(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x34(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x30(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x30(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x30(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x2c(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x2c(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x28(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x28(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x28(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x24(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x24(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x20(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x20(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x1c(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x1c(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x18(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x18(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x14(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x14(%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,-0x40(%rbp)
  mov    -0x40(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0xc(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0xc(%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,-0x40(%rbp)
  cmpl   $0x1,-0x10(%rbp)
  jne    L166
  mov    -0x34(%rbp),%eax
  mov    %eax,%esi
  lea    D97(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x1,-0x38(%rbp)
  jle    L218
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L218:
  cmpl   $0x2,-0x38(%rbp)
  jle    L51
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L51:
  cmpl   $0x3,-0x38(%rbp)
  jle    L133
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L133:
  cmpl   $0x4,-0x38(%rbp)
  jle    L201
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L201:
  cmpl   $0x5,-0x38(%rbp)
  jle    L77
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L77:
  cmpl   $0x6,-0x38(%rbp)
  jle    L326
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L326:
  cmpl   $0x7,-0x38(%rbp)
  jle    L127
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L127:
  cmpl   $0x8,-0x38(%rbp)
  jle    L436
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L436:
  cmpl   $0x9,-0x38(%rbp)
  jle    L208
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L208
L166:
  cmpl   $0x9,-0x38(%rbp)
  jle    L130
  negl   -0x34(%rbp)
  negl   -0x30(%rbp)
  negl   -0x2c(%rbp)
  negl   -0x28(%rbp)
  negl   -0x24(%rbp)
  negl   -0x20(%rbp)
  negl   -0x1c(%rbp)
  negl   -0x18(%rbp)
  negl   -0x14(%rbp)
  jmp    L249
L130:
  cmpl   $0x9,-0x38(%rbp)
  jne    L23
  negl   -0x34(%rbp)
  negl   -0x30(%rbp)
  negl   -0x2c(%rbp)
  negl   -0x28(%rbp)
  negl   -0x24(%rbp)
  negl   -0x20(%rbp)
  negl   -0x1c(%rbp)
  negl   -0x18(%rbp)
  jmp    L249
L23:
  cmpl   $0x8,-0x38(%rbp)
  jne    L59
  negl   -0x34(%rbp)
  negl   -0x30(%rbp)
  negl   -0x2c(%rbp)
  negl   -0x28(%rbp)
  negl   -0x24(%rbp)
  negl   -0x20(%rbp)
  negl   -0x1c(%rbp)
  jmp    L249
L59:
  cmpl   $0x7,-0x38(%rbp)
  jne    L225
  negl   -0x34(%rbp)
  negl   -0x30(%rbp)
  negl   -0x2c(%rbp)
  negl   -0x28(%rbp)
  negl   -0x24(%rbp)
  negl   -0x20(%rbp)
  jmp    L249
L225:
  cmpl   $0x6,-0x38(%rbp)
  jne    L325
  negl   -0x34(%rbp)
  negl   -0x30(%rbp)
  negl   -0x2c(%rbp)
  negl   -0x28(%rbp)
  negl   -0x24(%rbp)
  jmp    L249
L325:
  cmpl   $0x5,-0x38(%rbp)
  jne    L319
  negl   -0x34(%rbp)
  negl   -0x30(%rbp)
  negl   -0x2c(%rbp)
  negl   -0x28(%rbp)
  jmp    L249
L319:
  cmpl   $0x4,-0x38(%rbp)
  jne    L377
  negl   -0x34(%rbp)
  negl   -0x30(%rbp)
  negl   -0x2c(%rbp)
  jmp    L249
L377:
  cmpl   $0x3,-0x38(%rbp)
  jne    L363
  negl   -0x34(%rbp)
  negl   -0x30(%rbp)
  jmp    L249
L363:
  cmpl   $0x2,-0x38(%rbp)
  jne    L249
  negl   -0x34(%rbp)
L249:
  mov    -0x34(%rbp),%eax
  mov    %eax,%esi
  lea    D97(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x1,-0x38(%rbp)
  jle    L35
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L35:
  cmpl   $0x2,-0x38(%rbp)
  jle    L220
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L220:
  cmpl   $0x3,-0x38(%rbp)
  jle    L2
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L2:
  cmpl   $0x4,-0x38(%rbp)
  jle    L289
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L289:
  cmpl   $0x5,-0x38(%rbp)
  jle    L90
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L90:
  cmpl   $0x6,-0x38(%rbp)
  jle    L280
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L280:
  cmpl   $0x7,-0x38(%rbp)
  jle    L93
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L93:
  cmpl   $0x8,-0x38(%rbp)
  jle    L276
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L276:
  cmpl   $0x9,-0x38(%rbp)
  jle    L208
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L208:
  lea    D138(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L379
  call   <__stack_chk_fail@plt>
L379:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D211
type_infered: string
name: read_data
arguments: tag: D39
type_infered: string
name: read_data
arguments: tag: D97
type_infered: string
name: read_data
arguments: tag: D135
type_infered: string
name: read_data
arguments: tag: D138
type_infered: string

tool: D211: 
Enter an integer > 

tool: D39: %d

tool: D97: 
%d


tool: D135: %d


tool: D138: 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;
}
```