user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x10(%rbp)
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x18(%rbp),%eax
  test   %eax,%eax
  js     L54
  movl   $0x1,-0xc(%rbp)
  jmp    L93
L100:
  mov    -0xc(%rbp),%edx
  mov    D66(%rip),%rax
  mov    %edx,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%eax
  cltd
  idivl  -0x10(%rbp)
  mov    %edx,%ecx
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %edx,%esi
  sub    %eax,%esi
  mov    %ecx,%eax
  cltd
  idiv   %esi
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0xc(%rbp)
L93:
  cmpl   $0xa,-0xc(%rbp)
  jg     L105
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x10(%rbp)
  jle    L100
  jmp    L105
L54:
  mov    -0x18(%rbp),%eax
  test   %eax,%eax
  jns    L105
  movl   $0x1,-0xc(%rbp)
  jmp    L97
L10:
  mov    -0xc(%rbp),%edx
  mov    D66(%rip),%rax
  mov    %edx,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%eax
  cltd
  idivl  -0x10(%rbp)
  mov    %edx,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jle    L83
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x14(%rbp)
L83:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    -0x14(%rbp),%eax
  cltd
  idiv   %ecx
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0xc(%rbp)
L97:
  cmpl   $0xa,-0xc(%rbp)
  jg     L105
  mov    -0x18(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  cmp    %eax,-0x10(%rbp)
  jle    L10
L105:
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L94
  call   <__stack_chk_fail@plt>
L94:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D15
datatype: string
name: retrieve_data
arguments: tag: D64
datatype: string
name: retrieve_data
arguments: tag: D66
datatype: f64
name: retrieve_data
arguments: tag: D13
datatype: string
name: retrieve_data
arguments: tag: D28
datatype: string

tool: D15: 
Enter an integer > 

tool: D64: %d

tool: D66: 10

tool: D13: %d


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

assistant: ```c
int main() {
  int digit, n, power = 0, i;
  printf("\nEnter an integer > ");
  scanf("%d", &digit);
  printf("\n");
  if (digit >= 0) {
    for (i = 1; i <= 10 && power <= digit; i++) {
      power = pow(10.0, i);
      n = (digit % power) / (power / 10);
      printf("%d\n", n);
    }
  } else if (digit < 0) {
    for (i = 1; i <= 10 && power <= abs(digit); i++) {
      power = pow(10.0, i);
      n = (digit % power);
      if (n <= digit) {
        n = n;
      } else {
        n = abs(n);
      }
      n = n / (power / 10);
      printf("%d\n", n);
    }
  }
  printf("That's all, have a nice day!\n");
  return 0;
}
```