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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D38(%rip),%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D21(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%ebp
  movslq %ebp,%rbx
  imul   $0x66666667,%rbx,%rbx
  sar    $0x22,%rbx
  mov    %ebp,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebx
  lea    (%rbx,%rbx,4),%eax
  add    %eax,%eax
  mov    %ebp,%esi
  sub    %eax,%esi
  test   %esi,%esi
  jg     L15
  js     L129
L123:
  lea    D55(%rip),%r12
  cmp    $0x9,%ebp
  jg     L34
  cmp    $0xfffffff7,%ebp
  jge    L5
  neg    %ebx
  lea    D55(%rip),%r12
  lea    D75(%rip),%r13
L98:
  test   %ebx,%ebx
  jle    L5
  movslq %ebx,%rbp
  imul   $0x66666667,%rbp,%rbp
  sar    $0x22,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  mov    %ebx,%esi
  sub    %eax,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    $0x63,%ebx
  jle    L72
  mov    %ebp,%ebx
  jmp    L98
L15:
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L123
L129:
  neg    %esi
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L123
L49:
  mov    %ebp,%esi
  lea    D71(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L5:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L34:
  test   %ebx,%ebx
  jle    L5
  movslq %ebx,%rbp
  imul   $0x66666667,%rbp,%rbp
  sar    $0x22,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  mov    %ebx,%esi
  sub    %eax,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    $0x63,%ebx
  jle    L49
  mov    %ebp,%ebx
  jmp    L34
L72:
  mov    %ebp,%ebx
  neg    %ebx
  mov    %ebx,%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L98
L31:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D38
type: string
name: extract_symbolic_data
arguments: data_tag: D21
type: string
name: extract_symbolic_data
arguments: data_tag: D55
type: string
name: extract_symbolic_data
arguments: data_tag: D75
type: string
name: extract_symbolic_data
arguments: data_tag: D71
type: string

tool: D38: Enter an integer > 

tool: D21: %d

tool: D55: %d


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


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