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

```asm
<main>:
  endbr64
  push   %r13
  lea    D46(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D21(%rip),%rdi
  call   <scanf@plt>
  movslq 0x4(%rsp),%rbx
  mov    %rbx,%rbp
  imul   $0x66666667,%rbx,%rbx
  mov    %ebp,%eax
  mov    %ebp,%esi
  sar    $0x1f,%eax
  sar    $0x22,%rbx
  sub    %eax,%ebx
  lea    (%rbx,%rbx,4),%eax
  add    %eax,%eax
  sub    %eax,%esi
  test   %esi,%esi
  jg     L86
  jne    L59
L70:
  lea    D28(%rip),%r12
  cmp    $0x9,%ebp
  jg     L95
  cmp    $0xfffffff7,%ebp
  jge    L96
  neg    %ebx
  lea    D28(%rip),%r12
  lea    D53(%rip),%r13
  jmp    L25
  nopl   0x0(%rax,%rax,1)
L58:
  movslq %ebx,%rbp
  mov    %ebx,%eax
  mov    %ebx,%esi
  mov    %r12,%rdi
  imul   $0x66666667,%rbp,%rbp
  sar    $0x1f,%eax
  sar    $0x22,%rbp
  sub    %eax,%ebp
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  sub    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x63,%ebx
  mov    %ebp,%ebx
  jle    L84
L25:
  test   %ebx,%ebx
  jg     L58
L96:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L65
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L72:
  movslq %ebx,%rbp
  mov    %ebx,%eax
  mov    %ebx,%esi
  mov    %r12,%rdi
  imul   $0x66666667,%rbp,%rbp
  sar    $0x1f,%eax
  sar    $0x22,%rbp
  sub    %eax,%ebp
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  sub    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x63,%ebx
  jle    L119
  mov    %ebp,%ebx
L95:
  test   %ebx,%ebx
  jg     L72
  jmp    L96
L59:
  neg    %esi
L86:
  lea    D28(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L70
L119:
  mov    %ebp,%esi
  lea    D62(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L96
L84:
  neg    %ebx
  mov    %r13,%rdi
  xor    %eax,%eax
  mov    %ebx,%esi
  call   <printf@plt>
  jmp    L25
L65:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D46
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D21
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D28
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D53
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D62
type_infered: string

tool: D46: Enter an integer > 

tool: D21: %d

tool: D28: %d


tool: D53: %d
THat's all, have a nice day~


tool: D62: %d
That's all, have a nice day!


assistant: ```c
int main() {
  int x, a, b, c, y;
  printf("Enter an integer > ");
  scanf("%d", &b);
  a = b / 10;
  c = b % 10;
  if (c > 0) {
    printf("%d\n", c);
  } else if (c < 0) {
    y = c * (-1);
    printf("%d\n", y);
  }
  if (a > 0) {
    while (a > 0) {
      x = a % 10;
      a = a / 10;
      printf("%d\n", x);
      if (a < 10) {
        printf("%d\nThat's all, have a nice day!\n", a);
        return 0;
      }
    }
  } else if (a < 0) {
    a = a * (-1);
    while (a > 0) {
      x = a % 10;
      a = a / 10;
      printf("%d\n", x);
      if (a < 10) {
        a = a * (-1);
        printf("%d\nTHat's all, have a nice day~\n", a);
      }
    }
  }
  return 0;
}
```