user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ece391_execute>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x440,%rsp
  mov    %rdi,-0x2438(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x2438(%rbp),%rax
  mov    %rax,%rdi
  call   <ece391_strlen@plt>
  cmp    $0x3ff,%eax
  jle    L72
  mov    $0xffffffff,%eax
  jmp    L147
L72:
  movb   $0x2e,-0x410(%rbp)
  movb   $0x2f,-0x40f(%rbp)
  lea    -0x410(%rbp),%rax
  add    $0x2,%rax
  mov    -0x2438(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <ece391_strcpy@plt>
  lea    -0x410(%rbp),%rax
  add    $0x2,%rax
  mov    %rax,-0x2420(%rbp)
  jmp    L36
L40:
  addq   $0x1,-0x2420(%rbp)
L36:
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L140
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L140
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L40
L140:
  lea    -0x410(%rbp),%rax
  mov    %rax,-0x2410(%rbp)
  movq   $0x1,-0x2418(%rbp)
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L97
  mov    -0x2420(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x2420(%rbp)
  movb   $0x0,(%rax)
  jmp    L131
L224:
  addq   $0x1,-0x2420(%rbp)
L131:
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L224
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L206
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L195
L206:
  mov    -0x2420(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L97
L195:
  mov    -0x2418(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x2418(%rbp)
  mov    -0x2420(%rbp),%rdx
  mov    %rdx,-0x2410(%rbp,%rax,8)
  jmp    L103
L93:
  addq   $0x1,-0x2420(%rbp)
L103:
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L20
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L20
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L93
L20:
  mov    -0x2420(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L131
  mov    -0x2420(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x2420(%rbp)
  movb   $0x0,(%rax)
  jmp    L131
L97:
  mov    -0x2418(%rbp),%rax
  movq   $0x0,-0x2410(%rbp,%rax,8)
  mov    $0x0,%eax
  call   <fork@plt>
  test   %rax,%rax
  jne    L179
  lea    -0x2410(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <execv@plt>
  mov    $0x0,%eax
  call   <getpid@plt>
  mov    $0x9,%esi
  mov    %eax,%edi
  call   <kill@plt>
L179:
  lea    -0x2424(%rbp),%rax
  mov    %rax,%rdi
  call   <wait@plt>
  mov    -0x2424(%rbp),%eax
  mov    %eax,%edi
  call   <WIFEXITED@plt>
  test   %rax,%rax
  je     L26
  mov    -0x2424(%rbp),%eax
  mov    %eax,%edi
  call   <WEXITSTATUS@plt>
  jmp    L147
L26:
  mov    -0x2424(%rbp),%eax
  mov    %eax,%edi
  call   <WTERMSIG@plt>
  cmp    $0x9,%eax
  jne    L3
  mov    $0xffffffff,%eax
  jmp    L147
L3:
  mov    $0x100,%eax
L147:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L158
  call   <__stack_chk_fail@plt>
L158:
  leave
  ret
```

assistant: ```c
int32_t ece391_execute(const uint8_t *command) {
  int status;
  uint8_t buf[1026];
  char *args[1024];
  uint8_t *scan;
  uint32_t n_arg;
  if (1023 < ece391_strlen(command))
    return -1;
  buf[0] = '.';
  buf[1] = '/';
  ece391_strcpy(buf + 2, command);
  for (scan = buf + 2; '\0' != *scan && ' ' != *scan && '\n' != *scan; scan++)
    ;
  args[0] = (char *)buf;
  n_arg = 1;
  if ('\0' != *scan) {
    *scan++ = '\0';
    while (1) {
      while (' ' == *scan)
        scan++;
      if ('\0' == *scan || '\n' == *scan) {
        *scan = '\0';
        break;
      }
      args[n_arg++] = (char *)scan;
      while ('\0' != *scan && ' ' != *scan && '\n' != *scan)
        scan++;
      if ('\0' != *scan)
        *scan++ = '\0';
    }
  }
  args[n_arg] = NULL;
  if (0 == fork()) {
    execv((char *)buf, args);
    kill(getpid(), 9);
  }
  (void)wait(&status);
  if (WIFEXITED(status))
    return WEXITSTATUS(status);
  if (9 == WTERMSIG(status))
    return -1;
  return 256;
}
```