user: Translate the below assembly code into C programming language:

```asm
<shell_interpreter>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x440,%rsp
  mov    %rdi,-0x438(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x424(%rbp)
  movl   $0x0,-0x420(%rbp)
  movl   $0x0,-0x41c(%rbp)
  movl   $0x0,-0x414(%rbp)
  jmp    L55
L45:
  mov    -0x41c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x438(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L17
  mov    -0x41c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x438(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L46
L17:
  movl   $0x0,-0x414(%rbp)
  mov    -0x420(%rbp),%eax
  mov    %eax,-0x418(%rbp)
  jmp    L163
L136:
  mov    -0x418(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x438(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    -0x414(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x424(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x5,%rdx
  add    %rbp,%rdx
  add    %rcx,%rdx
  sub    $0x410,%rdx
  mov    %al,(%rdx)
  addl   $0x1,-0x414(%rbp)
  addl   $0x1,-0x418(%rbp)
L163:
  mov    -0x418(%rbp),%eax
  cmp    -0x41c(%rbp),%eax
  jl     L136
  mov    -0x414(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x424(%rbp),%eax
  cltq
  shl    $0x5,%rax
  add    %rbp,%rax
  add    %rdx,%rax
  sub    $0x410,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x424(%rbp)
  mov    -0x41c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x420(%rbp)
L46:
  addl   $0x1,-0x41c(%rbp)
L55:
  mov    -0x41c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x438(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L45
  subl   $0x1,-0x424(%rbp)
  lea    -0x410(%rbp),%rax
  lea    D53(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L22
  lea    -0x410(%rbp),%rdx
  mov    -0x424(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shell_command_test@plt>
  jmp    L12
L22:
  lea    -0x410(%rbp),%rax
  lea    D20(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L140
  lea    -0x410(%rbp),%rdx
  mov    -0x424(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shell_command_help@plt>
  jmp    L12
L140:
  lea    -0x410(%rbp),%rax
  lea    D19(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L63
  lea    -0x410(%rbp),%rdx
  mov    -0x424(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shell_command_color@plt>
  jmp    L12
L63:
  lea    -0x410(%rbp),%rax
  lea    D5(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L156
  mov    $0x0,%eax
  call   <shell_command_clear@plt>
  jmp    L12
L156:
  lea    -0x410(%rbp),%rax
  lea    D3(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L6
  mov    $0x0,%eax
  call   <shell_command_exit@plt>
  jmp    L12
L6:
  lea    -0x410(%rbp),%rax
  lea    D67(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L12
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <terminal_writestring@plt>
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <terminal_writestring@plt>
L12:
  mov    $0x0,%eax
  call   <shell_clear@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L102
  call   <__stack_chk_fail@plt>
L102:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D53
datatype: string
name: read_data
arguments: tag: D20
datatype: string
name: read_data
arguments: tag: D19
datatype: string
name: read_data
arguments: tag: D5
datatype: string
name: read_data
arguments: tag: D3
datatype: string
name: read_data
arguments: tag: D67
datatype: string
name: read_data
arguments: tag: D17
datatype: string

tool: D53: test

tool: D20: help

tool: D19: color

tool: D5: clear

tool: D3: exit

tool: 

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