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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  movl   $0x1,-0x2c(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L68
L53:
  mov    -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,-0x28(%rbp)
  addl   $0x1,-0x24(%rbp)
L68:
  cmpl   $0x0,-0x28(%rbp)
  jne    L53
  jmp    L101
L79:
  mov    -0x30(%rbp),%ebx
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %eax,%ecx
  mov    %ebx,%eax
  cltd
  idiv   %ecx
  mov    %edx,-0x20(%rbp)
  cmpl   $0x9,-0x20(%rbp)
  jg     L94
  cmpl   $0x1,-0x2c(%rbp)
  jne    L94
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L15
L94:
  cmpl   $0x9,-0x20(%rbp)
  jg     L97
  cmpl   $0x0,-0x20(%rbp)
  jne    L15
L97:
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xa,%edi
  call   <pow@plt>
  mov    %eax,%ebx
  mov    -0x20(%rbp),%eax
  cltd
  idiv   %ebx
  mov    %eax,-0x20(%rbp)
  mov    -0x2c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jne    L73
  cmpl   $0x0,-0x1c(%rbp)
  jns    L73
  negl   -0x20(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L15
L73:
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L15:
  mov    -0x30(%rbp),%eax
  sub    -0x20(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  addl   $0x1,-0x2c(%rbp)
L101:
  mov    -0x2c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jle    L79
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L26
  call   <__stack_chk_fail@plt>
L26:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D42
type: string
name: unpack_data
arguments: tag: D13
type: string
name: unpack_data
arguments: tag: D48
type: string
name: unpack_data
arguments: tag: D34
type: string
name: unpack_data
arguments: tag: D14
type: string

tool: D42: 
Enter an integer > 

tool: D13: %d

tool: D48: 
%d


tool: D34: %d


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

assistant: ```c
int main(void) {
  int n, a, nn, nnn, count, digit;
  printf("\nEnter an integer > ");
  scanf("%d", &n);
  nnn = n;
  n = abs(n);
  nn = n;
  a = 1;
  count = 0;
  while (nn != 0) {
    nn = nn / 10;
    count = count + 1;
  }
  while (a <= count) {
    digit = n % (int)pow(10, a);
    if ((digit < 10) && (a == 1))
      printf("\n%d\n", digit);
    else if ((digit >= 10) || (digit == 0)) {
      digit = digit / pow(10, a - 1);
      if ((((a) == count)) && (nnn < 0)) {
        digit = digit * -1;
        printf("%d\n", digit);
      } else
        printf("%d\n", digit);
    }
    n = n - digit;
    a = a + 1;
  }
  printf("That's all, have a nice day!\n");
  return (0);
}
```