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

```asm
<main>:
  endbr64
  push   %r12
  lea    D134(%rip),%rdi
  push   %rbp
  push   %rbx
  lea    D42(%rip),%rbx
  sub    $0x360,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x358(%rsp)
  xor    %eax,%eax
  lea    0x1b0(%rsp),%rbp
  call   <puts@plt>
  lea    D51(%rip),%rdi
  call   <puts@plt>
  lea    D30(%rip),%rdi
  call   <puts@plt>
  lea    D147(%rip),%rdi
  call   <puts@plt>
  lea    D148(%rip),%rdi
  call   <puts@plt>
  lea    D114(%rip),%rdi
  call   <puts@plt>
  lea    D118(%rip),%rdi
  call   <puts@plt>
L101:
  mov    %rbp,%rdi
  call   <getline_my@plt>
  movzbl 0x1b0(%rsp),%eax
  cmp    $0x33,%al
  je     L116
  jg     L26
  cmp    $0x31,%al
  je     L30
  cmp    $0x32,%al
  jne    L9
  mov    %rsp,%rbx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <getarray_sort@plt>
  mov    %rbx,%rdi
  mov    %eax,%esi
  mov    %eax,%ebp
  call   <shellsort@plt>
  xor    %eax,%eax
  lea    D68(%rip),%rdi
  call   <printf@plt>
  test   %ebp,%ebp
  jle    L82
  lea    -0x1(%rbp),%eax
  lea    D113(%rip),%rbp
  lea    0x4(%rsp,%rax,4),%r12
  nopw   0x0(%rax,%rax,1)
L43:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L43
L82:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L111
  nopl   0x0(%rax)
L26:
  cmp    $0x34,%al
  je     L75
  cmp    $0x71,%al
  jne    L9
L111:
  mov    0x358(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L110
  add    $0x360,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L75:
  lea    0x190(%rsp),%r12
  lea    D140(%rip),%rdi
  call   <puts@plt>
  lea    0x220(%rsp),%rbp
  mov    %r12,%rdi
  mov    $0x1e,%esi
  call   <clean_text@plt>
  mov    $0x12c,%esi
  mov    %rbp,%rdi
  call   <clean_text@plt>
  mov    %r12,%rdi
  call   <getline_my@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <expand_my@plt>
  mov    %rbp,%rsi
  lea    D158(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L111
L116:
  lea    D80(%rip),%rdi
  call   <puts@plt>
  mov    $0x64,%esi
  mov    %rbp,%rdi
  call   <clean_text@plt>
  mov    %rbp,%rdi
  call   <getline_my@plt>
  mov    %rbp,%rdi
  call   <reverse_string@plt>
  mov    %rbp,%rsi
  lea    D67(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L111
L30:
  mov    $0x64,%esi
  mov    %rbp,%rdi
  call   <clean_text@plt>
  lea    D83(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <getline_my@plt>
  mov    %rbp,%rdi
  call   <atoi_2@plt>
  lea    D130(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L111
L9:
  mov    %rbx,%rdi
  call   <puts@plt>
  jmp    L101
L110:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D134
type_guessed: string
name: read_data
arguments: label: D42
type_guessed: string
name: read_data
arguments: label: D51
type_guessed: string
name: read_data
arguments: label: D30
type_guessed: string
name: read_data
arguments: label: D147
type_guessed: string
name: read_data
arguments: label: D148
type_guessed: string
name: read_data
arguments: label: D114
type_guessed: string
name: read_data
arguments: label: D118
type_guessed: string
name: read_data
arguments: label: D68
type_guessed: string
name: read_data
arguments: label: D113
type_guessed: string
name: read_data
arguments: label: D140
type_guessed: string
name: read_data
arguments: label: D158
type_guessed: string
name: read_data
arguments: label: D80
type_guessed: string
name: read_data
arguments: label: D67
type_guessed: string
name: read_data
arguments: label: D83
type_guessed: string
name: read_data
arguments: label: D130
type_guessed: string

tool: D134: 



















































tool: D42: Wrong input, try again.

tool: D51: Choose please what you want to do (press q to exit):

tool: D30: Variants :

tool: D147: 1. Convert from char to integer.

tool: D148: 2. Shellsorting.

tool: D114: 3. Reverse string.

tool: D118: 4. Expand string.

tool: D68: After sorting array seems so:

tool: D113: %d,

tool: D140: Enter please string:

tool: D158: After expand line seems so:%s


tool: D80: Enter please line to reverse:

tool: D67: After reverse string seens so:
%s


tool: D83: Input please chars to convert to integer:

tool: D130: Getted digit from char = %d;


assistant: ```c
void main() {
  char line[100];
  char short_line[30];
  char long_line[300];
  int sort[100];
  int digit = 0;
  int len = 0;
  int i = 0;
  char choise = 0;
  char exit = 0;
  printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
  printf("Choose please what you want to do (press q to exit):\n");
  printf("Variants :\n");
  printf("1. Convert from char to integer.\n");
  printf("2. Shellsorting.\n");
  printf("3. Reverse string.\n");
  printf("4. Expand string.\n");
  exit = 0;
  while (exit == 0) {
    getline_my(line);
    choise = line[0];
    switch (choise) {
    case '1':
      clean_text(line, 100);
      printf("Input please chars to convert to integer:\n");
      getline_my(line);
      digit = atoi_2(line);
      printf("Getted digit from char = %d;\n", digit);
      exit = 1;
      break;
    case '2':
      len = getarray_sort(sort, line);
      shellsort(sort, len);
      printf("After sorting array seems so:");
      for (i = 0; i < len; ++i) {
        printf("%d,", sort[i]);
      };
      printf("\n");
      exit = 1;
      break;
    case '3':
      printf("Enter please line to reverse:\n");
      clean_text(line, 100);
      getline_my(line);
      reverse_string(line);
      printf("After reverse string seens so:\n%s\n", line);
      exit = 1;
      break;
    case '4':
      printf("Enter please string:\n");
      clean_text(short_line, 30);
      clean_text(long_line, 300);
      getline_my(short_line);
      expand_my(short_line, long_line);
      printf("After expand line seems so:%s\n", long_line);
      exit = 1;
      break;
    case 'q':
      exit = 1;
      break;
    default:
      printf("Wrong input, try again.\n");
      break;
    };
  }
}
```