user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jne    L31
  mov    %rsi,%rbx
  mov    0x8(%rsi),%rdi
  lea    D21(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L41
  mov    0x8(%rbx),%rsi
  lea    D71(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x4,%r15d
L78:
  mov    %rsp,%rbp
  lea    D29(%rip),%r14
  lea    D76(%rip),%r13
  lea    D5(%rip),%r12
L33:
  mov    %rbp,%rdi
  call   <getline_my@plt>
  test   %al,%al
  jne    L89
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r15d,%edi
  call   <entab@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movzbl (%rsp),%edx
  test   %dl,%dl
  je     L33
  mov    $0x0,%ebx
L23:
  movsbl %dl,%edx
  mov    %edx,%ecx
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  movzbl (%rbx,%rbp,1),%edx
  test   %dl,%dl
  jne    L23
  jmp    L33
L31:
  cmp    $0x3,%edi
  je     L89
  lea    D24(%rip),%rdi
  call   <puts@plt>
L89:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L74
  mov    $0x0,%eax
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L41:
  mov    0x10(%rbx),%rdi
  call   <isnumber@plt>
  cmp    $0x1,%eax
  je     L12
  lea    D3(%rip),%rdi
  call   <puts@plt>
  mov    $0x4,%r15d
  jmp    L78
L12:
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r15d
  mov    %eax,%esi
  lea    D79(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L78
L74:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D21
data_type: string
name: extract_symbolic_data
arguments: label: D71
data_type: string
name: extract_symbolic_data
arguments: label: D29
data_type: string
name: extract_symbolic_data
arguments: label: D76
data_type: string
name: extract_symbolic_data
arguments: label: D5
data_type: string
name: extract_symbolic_data
arguments: label: D24
data_type: string
name: extract_symbolic_data
arguments: label: D3
data_type: string
name: extract_symbolic_data
arguments: label: D79
data_type: string

tool: D21: -n

tool: D71: Wrong argument name. Needs -n instead %s.


tool: D29: getted line   = '%s';


tool: D76: entabbed line = '%s';


tool: D5: tmp_line [ %d ] = '%c' as char and %d as digit.


tool: D24: Usage: entab -n x (wheres x - count of blanks to replace by tabs)

tool: D3: Entered argument is not number.

tool: D79: in rezult getted offset_size of tab replacing is: %d.


assistant: ```c
int main(int argc, char *argv[]) {
  int i = 0;
  int offset_size = 0;
  char exit = 1;
  char rez = 0;
  char tmp_line[100];
  if (argc == 1) {
    offset_size = 4;
    exit = 0;
  } else {
    if (argc != 3) {
      printf("Usage: entab -n x (wheres x - count of blanks to replace by tabs)\n");
    }
  }
  if (exit != 1) {
    *argv++;
    if (strcmp(*argv, "-n") == 0) {
      *argv++;
      if (isnumber(*argv) == 1) {
        offset_size = atoi(*argv);
        exit = 0;
        printf("in rezult getted offset_size of tab replacing is: %d.\n", offset_size);
      } else {
        printf("Entered argument is not number.\n");
      }
    } else {
      printf("Wrong argument name. Needs -n instead %s.\n", *argv);
    }
  }
  while (exit != 1) {
    if ((rez = getline_my(tmp_line)) == 0) {
      printf("getted line   = '%s';\n", tmp_line);
      entab(offset_size, tmp_line);
      printf("entabbed line = '%s';\n", tmp_line);
      for (i = 0; tmp_line[i] != '\0'; i++) {
        printf("tmp_line [ %d ] = '%c' as char and %d as digit.\n", i, tmp_line[i], tmp_line[i]);
      }
    } else {
      exit = 1;
    }
  }
  return 0;
}
```