user: 这段汇编代码用C语言表示是什么样的：

```asm
<shell_interpreter>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x428,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x418(%rsp)
  xor    %eax,%eax
  movzbl (%rdi),%eax
  test   %al,%al
  je     L147
  mov    %rdi,%r12
  xor    %ebx,%ebx
  xor    %esi,%esi
  xor    %r14d,%r14d
  lea    0x10(%rsp),%rbp
  jmp    L84
  nopl   0x0(%rax)
L6:
  cmp    $0xa,%al
  je     L192
  add    $0x1,%rbx
  movzbl (%r12,%rbx,1),%eax
  test   %al,%al
  je     L158
L84:
  mov    %ebx,%edx
  lea    0x1(%rbx),%r13d
  cmp    $0x20,%al
  jne    L6
L192:
  cmp    %ebx,%esi
  jge    L32
  mov    %edx,%ecx
  movslq %r14d,%r15
  sub    %esi,%ecx
  mov    %r15,%rdi
  add    %r12,%rsi
  lea    -0x1(%rcx),%edx
  shl    $0x5,%rdi
  mov    %ecx,0xc(%rsp)
  add    $0x1,%rdx
  add    %rbp,%rdi
  call   <memcpy@plt>
  mov    0xc(%rsp),%ecx
  movslq %ecx,%rdx
L39:
  mov    %r15,%rax
  add    $0x1,%rbx
  add    $0x1,%r14d
  movslq %r13d,%rsi
  shl    $0x5,%rax
  add    $0x420,%rax
  add    %rsp,%rax
  movb   $0x0,-0x410(%rdx,%rax,1)
  movzbl (%r12,%rbx,1),%eax
  test   %al,%al
  jne    L84
L158:
  sub    $0x1,%r14d
L93:
  lea    D46(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L184
  mov    %rbp,%rsi
  mov    %r14d,%edi
  call   <shell_command_test@plt>
L9:
  xor    %eax,%eax
  call   <shell_clear@plt>
  mov    0x418(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L74
  add    $0x428,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L184:
  lea    D28(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L202
  mov    %rbp,%rsi
  mov    %r14d,%edi
  call   <shell_command_help@plt>
  jmp    L9
  nopl   0x0(%rax)
L202:
  lea    D22(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L205
  lea    D43(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L56
  call   <shell_command_clear@plt>
  jmp    L9
  nopw   0x0(%rax,%rax,1)
L32:
  xor    %edx,%edx
  movslq %r14d,%r15
  jmp    L39
L205:
  mov    %rbp,%rsi
  mov    %r14d,%edi
  call   <shell_command_color@plt>
  jmp    L9
L147:
  mov    $0xffffffff,%r14d
  lea    0x10(%rsp),%rbp
  jmp    L93
L56:
  lea    D30(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L161
  lea    D62(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L9
  mov    %rbp,%rdi
  call   <terminal_writestring@plt>
  lea    D68(%rip),%rdi
  call   <terminal_writestring@plt>
  jmp    L9
L161:
  call   <shell_command_exit@plt>
  jmp    L9
L74:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D46
data_type: string
name: extract_symbolic_data
arguments: data_label: D28
data_type: string
name: extract_symbolic_data
arguments: data_label: D22
data_type: string
name: extract_symbolic_data
arguments: data_label: D43
data_type: string
name: extract_symbolic_data
arguments: data_label: D30
data_type: string
name: extract_symbolic_data
arguments: data_label: D62
data_type: string
name: extract_symbolic_data
arguments: data_label: D68
data_type: string

tool: D46: test

tool: D28: help

tool: D22: color

tool: D43: clear

tool: D30: exit

tool: 

tool: D68: : Prikaz nebol najdeny


assistant: ```c
void shell_interpreter(char *command) {
  int argc = 0;
  char argv[32][32];
  int start = 0;
  int current = 0;
  int i;
  int j = 0;
  while (command[current] != '\0') {
    if (command[current] == ' ' || command[current] == '\n') {
      j = 0;
      for (i = start; i < current; i++) {
        argv[argc][j] = command[i];
        j++;
      }
      argv[argc][j] = '\0';
      argc++;
      start = current + 1;
    }
    current++;
  }
  argc--;
  if (strcmp(argv[0], "test") == 0) {
    shell_command_test(argc, argv);
  } else if (strcmp(argv[0], "help") == 0) {
    shell_command_help(argc, argv);
  } else if (strcmp(argv[0], "color") == 0) {
    shell_command_color(argc, argv);
  } else if (strcmp(argv[0], "clear") == 0) {
    shell_command_clear();
  } else if (strcmp(argv[0], "exit") == 0) {
    shell_command_exit();
  } else if (strcmp(argv[0], "") == 0) {
  } else {
    terminal_writestring(argv[0]);
    terminal_writestring(": Prikaz nebol najdeny\n");
  }
  shell_clear();
}
```