user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r12
  lea    D186(%rip),%rdi
  push   %rbp
  push   %rbx
  lea    D163(%rip),%rbx
  sub    $0x360,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x358(%rsp)
  xor    %eax,%eax
  lea    0x1b0(%rsp),%rbp
  call   <puts@plt>
  lea    D13(%rip),%rdi
  call   <puts@plt>
  lea    D179(%rip),%rdi
  call   <puts@plt>
  lea    D62(%rip),%rdi
  call   <puts@plt>
  lea    D111(%rip),%rdi
  call   <puts@plt>
  lea    D166(%rip),%rdi
  call   <puts@plt>
  lea    D11(%rip),%rdi
  call   <puts@plt>
  lea    D47(%rip),%rdi
  call   <puts@plt>
L47:
  mov    %rbp,%rdi
  call   <getline_my@plt>
  movzbl 0x1b0(%rsp),%eax
  cmp    $0x35,%al
  jg     L51
  cmp    $0x30,%al
  jle    L15
  sub    $0x32,%eax
  cmp    $0x3,%al
  ja     L81
  lea    D194(%rip),%rdx
  movzbl %al,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
L51:
  cmp    $0x71,%al
  jne    L15
L119:
  mov    0x358(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  add    $0x360,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  lea    D121(%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    D140(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L119
  lea    D191(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <getline_my@plt>
  mov    %rbp,%rdi
  lea    0x220(%rsp),%rbp
  call   <atoi_2@plt>
  mov    %rbp,%rdi
  mov    $0x12c,%esi
  mov    %rax,%rbx
  call   <clean_text@plt>
  movswl %bx,%edi
  mov    %rbp,%rsi
  call   <itoa_dw@plt>
  mov    %rbp,%rsi
  lea    D168(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L119
  lea    0x190(%rsp),%r12
  lea    D56(%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    D109(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L119
  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    D177(%rip),%rdi
  call   <printf@plt>
  test   %ebp,%ebp
  jle    L84
  lea    -0x1(%rbp),%eax
  lea    D27(%rip),%rbp
  lea    0x4(%rsp,%rax,4),%r12
  cs nopw 0x0(%rax,%rax,1)
L95:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L95
L84:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L119
L81:
  mov    $0x64,%esi
  mov    %rbp,%rdi
  call   <clean_text@plt>
  lea    D150(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <getline_my@plt>
  mov    %rbp,%rdi
  call   <atoi_2@plt>
  lea    D133(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L119
L15:
  mov    %rbx,%rdi
  call   <puts@plt>
  jmp    L47
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D186
datatype: string
name: unpack_data
arguments: label: D163
datatype: string
name: unpack_data
arguments: label: D13
datatype: string
name: unpack_data
arguments: label: D179
datatype: string
name: unpack_data
arguments: label: D62
datatype: string
name: unpack_data
arguments: label: D111
datatype: string
name: unpack_data
arguments: label: D166
datatype: string
name: unpack_data
arguments: label: D11
datatype: string
name: unpack_data
arguments: label: D47
datatype: string
name: unpack_data
arguments: label: D121
datatype: string
name: unpack_data
arguments: label: D140
datatype: string
name: unpack_data
arguments: label: D191
datatype: string
name: unpack_data
arguments: label: D168
datatype: string
name: unpack_data
arguments: label: D56
datatype: string
name: unpack_data
arguments: label: D109
datatype: string
name: unpack_data
arguments: label: D177
datatype: string
name: unpack_data
arguments: label: D27
datatype: string
name: unpack_data
arguments: label: D150
datatype: string
name: unpack_data
arguments: label: D133
datatype: string

tool: D186: 



















































tool: D163: Wrong input, try again.

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

tool: D179: Variants :

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

tool: D111: 2. Shellsorting.

tool: D166: 3. Reverse string.

tool: D11: 4. Expand string.

tool: D47: 5. Convert digit to string.

tool: D121: Enter please line to reverse:

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


tool: D191: Input please digit which you want to convert to string:

tool: D168: Getted string is:
%s;


tool: D56: Enter please string:

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


tool: D177: After sorting array seems so:

tool: D27: %d,

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

tool: D133: 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;
  short int converted;
  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");
  printf("5. Convert digit to 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 '5':
      printf("Input please digit which you want to convert to string:\n");
      getline_my(line);
      converted = atoi_2(line);
      clean_text(long_line, 300);
      itoa_dw(converted, long_line);
      printf("Getted string is:\n%s;\n", long_line);
      exit = 1;
      break;
    case 'q':
      exit = 1;
      break;
    default:
      printf("Wrong input, try again.\n");
      break;
    };
  }
}
```