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

```asm
<main>:
  endbr64
  push   %r13
  lea    D70(%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    D62(%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     L44
  jne    L57
L19:
  lea    D10(%rip),%r12
  cmp    $0x9,%ebp
  jg     L6
  cmp    $0xfffffff7,%ebp
  jge    L79
  neg    %ebx
  lea    D10(%rip),%r12
  lea    D5(%rip),%r13
  jmp    L50
  nopl   0x0(%rax,%rax,1)
L135:
  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    L64
L50:
  test   %ebx,%ebx
  jg     L135
L79:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L127
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L43:
  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    L140
  mov    %ebp,%ebx
L6:
  test   %ebx,%ebx
  jg     L43
  jmp    L79
L44:
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L19
L140:
  mov    %ebp,%esi
  lea    D5(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L79
L64:
  neg    %ebx
  mov    %r13,%rdi
  xor    %eax,%eax
  mov    %ebx,%esi
  call   <printf@plt>
  jmp    L50
L57:
  neg    %esi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L19
L127:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D70
type: string
name: unpack_data
arguments: tag: D62
type: string
name: unpack_data
arguments: tag: D10
type: string
name: unpack_data
arguments: tag: D5
type: string
name: unpack_data
arguments: tag: D52
type: string

tool: D70: Enter an integer > 

tool: D62:  %d

tool: D10: %d


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


tool: D52: 
%d


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("\n%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;
}
```