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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x10(%rbp),%eax
  test   %eax,%eax
  jns    L74
  mov    -0x10(%rbp),%eax
  neg    %eax
  mov    %eax,-0x10(%rbp)
  jmp    L53
L36:
  mov    -0x10(%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    -0x10(%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,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L53:
  mov    -0x10(%rbp),%eax
  cmp    $0x9,%eax
  jg     L36
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L21
L74:
  mov    -0x10(%rbp),%eax
  test   %eax,%eax
  jne    L19
  mov    $0x30,%edi
  call   <putchar@plt>
L19:
  mov    -0x10(%rbp),%eax
  test   %eax,%eax
  jle    L60
  jmp    L65
L22:
  mov    -0x10(%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    -0x10(%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,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L65:
  mov    -0x10(%rbp),%eax
  test   %eax,%eax
  jne    L22
L60:
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
L21:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L86
  call   <__stack_chk_fail@plt>
L86:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D58
type_infered: string
name: read_data
arguments: tag: D53
type_infered: string
name: read_data
arguments: tag: D42
type_infered: string
name: read_data
arguments: tag: D66
type_infered: string
name: read_data
arguments: tag: D29
type_infered: string

tool: D58: Enter an integer > 

tool: D53: %d

tool: D42: %d


tool: D66: -%d


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

assistant: ```c
int main(void) {
  int n, d;
  printf("Enter an integer > ");
  scanf("%d", &n);
  printf("\n");
  if (n < 0) {
    n = -n;
    while (n >= 10) {
      d = n % 10;
      n = n / 10;
      printf("%d\n", d);
    }
    printf("-%d\n", n);
    printf("That's all, have a nice day!\n");
    return 0;
    ;
  }
  if (n == 0)
    printf("0");
  if (n > 0) {
    while (n != 0) {
      d = n % 10;
      n = n / 10;
      printf("%d\n", d);
    }
  }
  printf("That's all, have a nice day!\n");
  return (0);
}
```