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

```asm
<main>:
  endbr64
  push   %r12
  lea    D145(%rip),%rdi
  push   %rbp
  push   %rbx
  lea    D149(%rip),%rbx
  sub    $0x360,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x358(%rsp)
  xor    %eax,%eax
  lea    0x1b0(%rsp),%rbp
  call   <puts@plt>
  lea    D105(%rip),%rdi
  call   <puts@plt>
  lea    D79(%rip),%rdi
  call   <puts@plt>
  lea    D39(%rip),%rdi
  call   <puts@plt>
  lea    D122(%rip),%rdi
  call   <puts@plt>
  lea    D101(%rip),%rdi
  call   <puts@plt>
  lea    D67(%rip),%rdi
  call   <puts@plt>
L51:
  mov    %rbp,%rdi
  call   <getline_my@plt>
  movzbl 0x1b0(%rsp),%eax
  cmp    $0x33,%al
  je     L79
  jg     L26
  cmp    $0x31,%al
  je     L76
  cmp    $0x32,%al
  jne    L48
  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    D147(%rip),%rdi
  call   <printf@plt>
  test   %ebp,%ebp
  jle    L119
  lea    -0x1(%rbp),%eax
  lea    D69(%rip),%rbp
  lea    0x4(%rsp,%rax,4),%r12
  nopw   0x0(%rax,%rax,1)
L11:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L11
L119:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L50
  nopl   0x0(%rax)
L26:
  cmp    $0x34,%al
  je     L0
  cmp    $0x71,%al
  jne    L48
L50:
  mov    0x358(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x360,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L0:
  lea    0x190(%rsp),%r12
  lea    D33(%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    D132(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L50
L79:
  lea    D138(%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    D143(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L50
L76:
  mov    $0x64,%esi
  mov    %rbp,%rdi
  call   <clean_text@plt>
  lea    D73(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <getline_my@plt>
  mov    %rbp,%rdi
  call   <atoi_2@plt>
  lea    D15(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L50
L48:
  mov    %rbx,%rdi
  call   <puts@plt>
  jmp    L51
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D145
data_type: string
name: extract_symbolic_data
arguments: data_label: D149
data_type: string
name: extract_symbolic_data
arguments: data_label: D105
data_type: string
name: extract_symbolic_data
arguments: data_label: D79
data_type: string
name: extract_symbolic_data
arguments: data_label: D39
data_type: string
name: extract_symbolic_data
arguments: data_label: D122
data_type: string
name: extract_symbolic_data
arguments: data_label: D101
data_type: string
name: extract_symbolic_data
arguments: data_label: D67
data_type: string
name: extract_symbolic_data
arguments: data_label: D147
data_type: string
name: extract_symbolic_data
arguments: data_label: D69
data_type: string
name: extract_symbolic_data
arguments: data_label: D33
data_type: string
name: extract_symbolic_data
arguments: data_label: D132
data_type: string
name: extract_symbolic_data
arguments: data_label: D138
data_type: string
name: extract_symbolic_data
arguments: data_label: D143
data_type: string
name: extract_symbolic_data
arguments: data_label: D73
data_type: string
name: extract_symbolic_data
arguments: data_label: D15
data_type: string

tool: D145: 



















































tool: D149: Wrong input, try again.

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

tool: D79: Variants :

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

tool: D122: 2. Shellsorting.

tool: D101: 3. Reverse string.

tool: D67: 4. Expand string.

tool: D147: After sorting array seems so:

tool: D69: %d,

tool: D33: Enter please string:

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


tool: D138: Enter please line to reverse:

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


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

tool: D15: 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;
    };
  }
}
```