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     L4
  mov    %rdi,%r12
  xor    %ebx,%ebx
  xor    %esi,%esi
  xor    %r14d,%r14d
  lea    0x10(%rsp),%rbp
  jmp    L185
  nopl   0x0(%rax)
L24:
  cmp    $0xa,%al
  je     L82
  add    $0x1,%rbx
  movzbl (%r12,%rbx,1),%eax
  test   %al,%al
  je     L153
L185:
  mov    %ebx,%edx
  lea    0x1(%rbx),%r13d
  cmp    $0x20,%al
  jne    L24
L82:
  cmp    %ebx,%esi
  jge    L11
  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
L146:
  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    L185
L153:
  sub    $0x1,%r14d
L93:
  lea    D56(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L113
  mov    %rbp,%rsi
  mov    %r14d,%edi
  call   <shell_command_test@plt>
L6:
  xor    %eax,%eax
  call   <shell_clear@plt>
  mov    0x418(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0x428,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L113:
  lea    D57(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L17
  mov    %rbp,%rsi
  mov    %r14d,%edi
  call   <shell_command_help@plt>
  jmp    L6
  nopl   0x0(%rax)
L17:
  lea    D26(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L207
  lea    D32(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L134
  call   <shell_command_clear@plt>
  jmp    L6
  nopw   0x0(%rax,%rax,1)
L11:
  xor    %edx,%edx
  movslq %r14d,%r15
  jmp    L146
L207:
  mov    %rbp,%rsi
  mov    %r14d,%edi
  call   <shell_command_color@plt>
  jmp    L6
L4:
  mov    $0xffffffff,%r14d
  lea    0x10(%rsp),%rbp
  jmp    L93
L134:
  lea    D48(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L116
  lea    D3(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L6
  mov    %rbp,%rdi
  call   <terminal_writestring@plt>
  lea    D68(%rip),%rdi
  call   <terminal_writestring@plt>
  jmp    L6
L116:
  call   <shell_command_exit@plt>
  jmp    L6
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D56
data_type: string
name: extract_symbolic_data
arguments: data_tag: D57
data_type: string
name: extract_symbolic_data
arguments: data_tag: D26
data_type: string
name: extract_symbolic_data
arguments: data_tag: D32
data_type: string
name: extract_symbolic_data
arguments: data_tag: D48
data_type: string
name: extract_symbolic_data
arguments: data_tag: D3
data_type: string
name: extract_symbolic_data
arguments: data_tag: D68
data_type: string

tool: D56: test

tool: D57: help

tool: D26: color

tool: D32: clear

tool: D48: 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();
}
```