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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %edi,-0x84(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movb   $0x0,-0x7f(%rbp)
  movb   $0x0,-0x7e(%rbp)
  movb   $0x0,-0x7d(%rbp)
  movl   $0x0,-0x7c(%rbp)
  movl   $0x0,-0x78(%rbp)
  movl   $0x0,-0x74(%rbp)
  jmp    L56
L102:
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%esi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L147
L64:
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movzbl 0x1(%rax),%eax
  mov    %al,-0x7d(%rbp)
  movsbl -0x7d(%rbp),%eax
  cmp    $0x6e,%eax
  jne    L23
  movb   $0x1,-0x7f(%rbp)
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L2
L23:
  movsbl -0x7d(%rbp),%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L145
  lea    D110(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x78(%rbp)
  movl   $0x0,-0x74(%rbp)
  lea    -0x70(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <clear_line@plt>
  jmp    L21
L140:
  mov    -0x74(%rbp),%eax
  cltq
  movzbl -0x7d(%rbp),%edx
  mov    %dl,-0x70(%rbp,%rax,1)
  mov    -0x74(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  movsbl %al,%edx
  mov    -0x74(%rbp),%eax
  mov    %eax,%esi
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x74(%rbp)
  addl   $0x1,-0x78(%rbp)
L21:
  mov    -0x90(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x7d(%rbp)
  movsbl -0x7d(%rbp),%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L128
  cmpb   $0x0,-0x7d(%rbp)
  je     L128
  cmpb   $0xa,-0x7d(%rbp)
  jne    L140
L128:
  mov    -0x74(%rbp),%eax
  cltq
  movb   $0x0,-0x70(%rbp,%rax,1)
  lea    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %al,-0x7e(%rbp)
  movsbl -0x7e(%rbp),%eax
  mov    %eax,%esi
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L130
L145:
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x84(%rbp)
L130:
  nop
L2:
  addl   $0x1,-0x7c(%rbp)
  subl   $0x1,-0x84(%rbp)
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rsi
  mov    -0x7c(%rbp),%ecx
  mov    -0x84(%rbp),%edx
  mov    -0x7c(%rbp),%eax
  mov    %rsi,%r8
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L147:
  cmpl   $0x0,-0x84(%rbp)
  jle    L62
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  mov    %al,-0x7d(%rbp)
  cmpb   $0x2d,-0x7d(%rbp)
  je     L64
L62:
  mov    -0x7c(%rbp),%eax
  mov    %eax,%esi
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x84(%rbp),%eax
  mov    %eax,%esi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x90(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D96(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x84(%rbp)
  jle    L56
  addl   $0x1,-0x7c(%rbp)
  subl   $0x1,-0x84(%rbp)
L56:
  cmpl   $0x0,-0x84(%rbp)
  jg     L102
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L73
  call   <__stack_chk_fail@plt>
L73:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D15
type: string
name: unpack_data
arguments: label: D10
type: string
name: unpack_data
arguments: label: D99
type: string
name: unpack_data
arguments: label: D110
type: string
name: unpack_data
arguments: label: D58
type: string
name: unpack_data
arguments: label: D62
type: string
name: unpack_data
arguments: label: D51
type: string
name: unpack_data
arguments: label: D9
type: string
name: unpack_data
arguments: label: D53
type: string
name: unpack_data
arguments: label: D47
type: string
name: unpack_data
arguments: label: D33
type: string
name: unpack_data
arguments: label: D96
type: string

tool: D15: ============================================

tool: D10: * ( * ( argv + i ) ) = %c;


tool: D99: numeric = 1;

tool: D110: Yahooo!!! It's digit! ))

tool: D58: tmp_line [ %d ] = %c;


tool: D62: getted pos_1 = %d;


tool: D51: wrong parameter;

tool: D9: in second while i = %d; argc = %d; * ( argv + %d ) = %s;


tool: D53: ----------------------

tool: D47: after ( while c == '-' ) i = %d;

tool: D33:  argc = %d;

tool: D96:  * argv = %s;


assistant: ```c
int main(int argc, char *argv[]) {
  char numeric = 0;
  char pos_1 = 0;
  char c = 0;
  int i = 0;
  int j = 0;
  int k = 0;
  char tmp_line[100];
  while (argc > 0) {
    printf("============================================\n");
    printf("* ( * ( argv + i ) ) = %c;\n", *(*(argv + i)));
    while (argc > 0 && (c = *(*(argv + i))) == '-') {
      c = *(*(argv + i) + 1);
      switch (c) {
      case 'n':
        numeric = 1;
        printf("numeric = 1;\n");
        break;
      default:
        if (isdigit(c)) {
          printf("Yahooo!!! It's digit! ))\n");
          j = 0;
          k = 0;
          clear_line(tmp_line, 5);
          while (isdigit(c = *((*argv) + j)) && c != '\0' && c != '\n') {
            tmp_line[k] = c;
            printf("tmp_line [ %d ] = %c;\n", k, tmp_line[k]);
            k++;
            j++;
          }
          tmp_line[k] = '\0';
          pos_1 = atoi(tmp_line);
          printf("getted pos_1 = %d;\n", pos_1);
        } else {
          printf("wrong parameter;\n");
          argc = 0;
        }
        break;
      }
      i++;
      argc--;
      printf("in second while i = %d; argc = %d; * ( argv + %d ) = %s;\n", i, argc, i, *(argv + i));
      printf("----------------------\n");
    }
    printf("after ( while c == '-' ) i = %d;", i);
    printf(" argc = %d;", argc);
    printf(" * argv = %s;\n", *argv);
    if (argc > 0) {
      i++;
      argc--;
    }
  }
  return 0;
}
```