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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D128(%rip),%rdi
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  lea    D193(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edi
  test   %edi,%edi
  js     L41
  jle    L495
  mov    %edi,%edx
  mov    $0x0,%ebx
L258:
  add    $0x1,%ebx
  mov    %edx,%ecx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  cmp    $0x9,%ecx
  jg     L258
  mov    $0x1,%ecx
L504:
  movslq %edi,%rsi
  imul   $0x66666667,%rsi,%rsi
  sar    $0x22,%rsi
  mov    %edi,%eax
  sar    $0x1f,%eax
  sub    %eax,%esi
  lea    (%rsi,%rsi,4),%edx
  add    %edx,%edx
  sub    %edx,%edi
  mov    %edi,%esi
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%rbp
  imul   $0x66666667,%rbp,%rbp
  sar    $0x22,%rbp
  cltd
  sub    %edx,%ebp
  lea    0x0(%rbp,%rbp,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,%ebp
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%r12
  imul   $0x66666667,%r12,%r12
  sar    $0x22,%r12
  cltd
  sub    %edx,%r12d
  lea    (%r12,%r12,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,%r12d
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%r13
  imul   $0x66666667,%r13,%r13
  sar    $0x22,%r13
  cltd
  sub    %edx,%r13d
  lea    0x0(%r13,%r13,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,%r13d
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%r14
  imul   $0x66666667,%r14,%r14
  sar    $0x22,%r14
  cltd
  sub    %edx,%r14d
  lea    (%r14,%r14,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,%r14d
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%r15
  imul   $0x66666667,%r15,%r15
  sar    $0x22,%r15
  cltd
  sub    %edx,%r15d
  lea    (%r15,%r15,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,%r15d
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%edi
  sar    $0x1f,%edi
  sub    %edi,%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,(%rsp)
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%edi
  sar    $0x1f,%edi
  sub    %edi,%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,0x4(%rsp)
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%edi
  sar    $0x1f,%edi
  sub    %edi,%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,0x8(%rsp)
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%edi
  sar    $0x1f,%edi
  sub    %edi,%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,0xc(%rsp)
  movl   $0x0,0x14(%rsp)
  cmp    $0x1,%ecx
  je     L423
  cmp    $0x9,%ebx
  jle    L325
  neg    %esi
  neg    %ebp
  neg    %r12d
  neg    %r13d
  neg    %r14d
  neg    %r15d
  negl   (%rsp)
  negl   0x4(%rsp)
  negl   0x8(%rsp)
L1:
  lea    D119(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L171:
  mov    %ebp,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L281
L41:
  mov    %edi,%edx
  mov    $0x0,%ebx
L539:
  add    $0x1,%ebx
  mov    %edx,%ecx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  cmp    $0xfffffff7,%ecx
  jl     L539
  mov    $0x0,%ecx
  jmp    L504
L495:
  mov    $0x1,%ecx
  mov    $0x0,%ebx
  jmp    L504
L423:
  lea    D119(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    $0x1,%ebx
  jg     L102
L514:
  cmp    $0x2,%ebx
  jg     L59
L165:
  cmp    $0x3,%ebx
  jg     L265
L132:
  cmp    $0x4,%ebx
  jg     L4
L385:
  cmp    $0x5,%ebx
  jg     L184
L40:
  cmp    $0x6,%ebx
  jg     L536
L378:
  cmp    $0x7,%ebx
  jg     L105
L88:
  cmp    $0x8,%ebx
  jg     L49
L11:
  cmp    $0x9,%ebx
  jle    L269
  mov    0xc(%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L269
L102:
  mov    %ebp,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L514
L59:
  mov    %r12d,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L165
L265:
  mov    %r13d,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L132
L4:
  mov    %r14d,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L385
L184:
  mov    %r15d,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L40
L536:
  mov    (%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L378
L105:
  mov    0x4(%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L88
L49:
  mov    0x8(%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L11
L325:
  lea    -0x2(%rbx),%eax
  cmp    $0x7,%eax
  ja     L89
  mov    %eax,%eax
  lea    D230(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  neg    %esi
  neg    %ebp
  neg    %r12d
  neg    %r13d
  neg    %r14d
  neg    %r15d
  negl   (%rsp)
  negl   0x4(%rsp)
  jmp    L1
  neg    %esi
  neg    %ebp
  neg    %r12d
  neg    %r13d
  neg    %r14d
  neg    %r15d
  negl   (%rsp)
  jmp    L1
  neg    %esi
  neg    %ebp
  neg    %r12d
  neg    %r13d
  neg    %r14d
  neg    %r15d
  jmp    L1
  neg    %esi
  neg    %ebp
  neg    %r12d
  neg    %r13d
  neg    %r14d
  jmp    L1
  neg    %esi
  neg    %ebp
  neg    %r12d
  neg    %r13d
  jmp    L1
  neg    %esi
  neg    %ebp
  neg    %r12d
  jmp    L1
  neg    %esi
  neg    %ebp
  jmp    L1
  neg    %esi
  jmp    L1
L89:
  lea    D119(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    $0x1,%ebx
  jg     L171
L281:
  cmp    $0x2,%ebx
  jg     L447
L243:
  cmp    $0x3,%ebx
  jg     L501
L62:
  cmp    $0x4,%ebx
  jg     L444
L2:
  cmp    $0x5,%ebx
  jg     L334
L76:
  cmp    $0x6,%ebx
  jg     L358
L451:
  cmp    $0x7,%ebx
  jg     L215
L134:
  cmp    $0x8,%ebx
  jg     L365
L50:
  cmp    $0x9,%ebx
  jg     L522
L269:
  lea    D82(%rip),%rdi
  call   <puts@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L463
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L447:
  mov    %r12d,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L243
L501:
  mov    %r13d,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L62
L444:
  mov    %r14d,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L2
L334:
  mov    %r15d,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L76
L358:
  mov    (%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L451
L215:
  mov    0x4(%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L134
L365:
  mov    0x8(%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L50
L522:
  mov    0xc(%rsp),%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L269
L463:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D128
type: string
name: extract_symbolic_data
arguments: data_tag: D193
type: string
name: extract_symbolic_data
arguments: data_tag: D119
type: string
name: extract_symbolic_data
arguments: data_tag: D124
type: string
name: extract_symbolic_data
arguments: data_tag: D82
type: string

tool: D128: 
Enter an integer > 

tool: D193: %d

tool: D119: 
%d


tool: D124: %d


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

assistant: ```c
int main(void) {
  int num, numl, n, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, sign;
  printf("\nEnter an integer > ");
  scanf("%d", &num);
  numl = num;
  n = 0;
  if (numl >= 0) {
    sign = 1;
    while (numl > 0) {
      n += 1;
      numl = numl / 10;
    }
  } else {
    sign = 0;
    while (numl < 0) {
      n += 1;
      numl = numl / 10;
    }
  }
  d0 = num % 10;
  num = (num - d0) / 10;
  d1 = num % 10;
  num = (num - d1) / 10;
  d2 = num % 10;
  num = (num - d2) / 10;
  d3 = num % 10;
  num = (num - d3) / 10;
  d4 = num % 10;
  num = (num - d4) / 10;
  d5 = num % 10;
  num = (num - d5) / 10;
  d6 = num % 10;
  num = (num - d6) / 10;
  d7 = num % 10;
  num = (num - d7) / 10;
  d8 = num % 10;
  num = (num - d8) / 10;
  d9 = num % 10;
  num = (num - d9) / 10;
  if (sign == 1) {
    printf("\n%d\n", d0);
    if (n > 1)
      printf("%d\n", d1);
    if (n > 2)
      printf("%d\n", d2);
    if (n > 3)
      printf("%d\n", d3);
    if (n > 4)
      printf("%d\n", d4);
    if (n > 5)
      printf("%d\n", d5);
    if (n > 6)
      printf("%d\n", d6);
    if (n > 7)
      printf("%d\n", d7);
    if (n > 8)
      printf("%d\n", d8);
    if (n > 9)
      printf("%d\n", d9);
  } else {
    if (n > 9) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
      d5 = d5 * -1;
      d6 = d6 * -1;
      d7 = d7 * -1;
      d8 = d8 * -1;
    } else if (n == 9) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
      d5 = d5 * -1;
      d6 = d6 * -1;
      d7 = d7 * -1;
    } else if (n == 8) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
      d5 = d5 * -1;
      d6 = d6 * -1;
    } else if (n == 7) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
      d5 = d5 * -1;
    } else if (n == 6) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
      d4 = d4 * -1;
    } else if (n == 5) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
      d3 = d3 * -1;
    } else if (n == 4) {
      d0 = d0 * -1;
      d1 = d1 * -1;
      d2 = d2 * -1;
    } else if (n == 3) {
      d0 = d0 * -1;
      d1 = d1 * -1;
    } else if (n == 2) {
      d0 = d0 * -1;
    }
    printf("\n%d\n", d0);
    if (n > 1)
      printf("%d\n", d1);
    if (n > 2)
      printf("%d\n", d2);
    if (n > 3)
      printf("%d\n", d3);
    if (n > 4)
      printf("%d\n", d4);
    if (n > 5)
      printf("%d\n", d5);
    if (n > 6)
      printf("%d\n", d6);
    if (n > 7)
      printf("%d\n", d7);
    if (n > 8)
      printf("%d\n", d8);
    if (n > 9)
      printf("%d\n", d9);
  }
  printf("That's all, have a nice day!\n");
  return 0;
}
```