user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <vfork@plt>
  endbr64
  mov    %eax,0x14(%rsp)
  cmp    $0xffffffff,%eax
  je     L204
  test   %eax,%eax
  je     L49
  lea    0x14(%rsp),%rsi
  xor    %edx,%edx
  mov    %eax,%edi
  xor    %ebx,%ebx
  call   <waitpid@plt>
  mov    0x8(%rsp),%rax
  mov    0x10(%rax),%rbp
  nopw   0x0(%rax,%rax,1)
L219:
  mov    %rbx,%r13
  add    $0x1,%rbx
  cmpb   $0x0,-0x1(%rbp,%rbx,1)
  jne    L219
  lea    0x5(%rbx),%edi
  call   <malloc@plt>
  movl   $0x79747473,(%rax)
  mov    %rax,%r12
  movb   $0x20,0x4(%rax)
  sub    %rbp,%rax
  add    $0x4,%rax
  cmp    $0xe,%rax
  jbe    L196
  cmp    $0x6,%r13
  jbe    L196
  cmp    $0xe,%r13
  jbe    L127
  mov    %rbx,%rdx
  xor    %eax,%eax
  and    $0xfffffffffffffff0,%rdx
  nopl   0x0(%rax)
L83:
  movdqu 0x0(%rbp,%rax,1),%xmm0
  movups %xmm0,0x5(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L83
  mov    %rbx,%rax
  and    $0xfffffffffffffff0,%rax
  test   $0xf,%bl
  je     L40
L1:
  mov    %rbx,%rdx
  sub    %rax,%rdx
  lea    -0x1(%rdx),%rcx
  cmp    $0x6,%rcx
  jbe    L189
  mov    0x0(%rbp,%rax,1),%rcx
  mov    %rcx,0x5(%r12,%rax,1)
  mov    %rdx,%rcx
  and    $0xfffffffffffffff8,%rcx
  add    %rcx,%rax
  cmp    %rcx,%rdx
  je     L40
L189:
  movzbl 0x0(%rbp,%rax,1),%ecx
  lea    0x5(%rax),%rdx
  mov    %cl,0x5(%r12,%rax,1)
  lea    0x1(%rax),%rcx
  cmp    %rcx,%rbx
  jbe    L40
  movzbl 0x1(%rbp,%rax,1),%ecx
  mov    %cl,0x6(%r12,%rax,1)
  lea    0x2(%rax),%rcx
  cmp    %rcx,%rbx
  jbe    L40
  movzbl 0x2(%rbp,%rax,1),%ecx
  mov    %cl,0x7(%r12,%rax,1)
  lea    0x3(%rax),%rcx
  cmp    %rcx,%rbx
  jbe    L40
  movzbl 0x3(%rbp,%rax,1),%ecx
  mov    %cl,0x8(%r12,%rax,1)
  lea    0x4(%rax),%rcx
  cmp    %rcx,%rbx
  jbe    L40
  movzbl 0x4(%rbp,%rax,1),%ecx
  mov    %cl,0x9(%r12,%rax,1)
  cmp    %rbx,%rdx
  jae    L40
  movzbl 0x5(%rbp,%rax,1),%edx
  mov    %dl,0xa(%r12,%rax,1)
  lea    0x6(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L40
  movzbl 0x6(%rbp,%rax,1),%edx
  mov    %dl,0xb(%r12,%rax,1)
L40:
  mov    %r12,%rdi
  call   <system@plt>
  mov    %r12,%rdi
  call   <free@plt>
L194:
  xor    %eax,%eax
L165:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L53
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L49:
  push   %rax
  lea    D30(%rip),%rdi
  lea    D25(%rip),%rcx
  push   $0x0
  mov    0x18(%rsp),%rax
  lea    D49(%rip),%rdx
  mov    %rdi,%rsi
  lea    D23(%rip),%r8
  mov    0x8(%rax),%r9
  call   <execlp@plt>
  pop    %rdx
  pop    %rcx
  jmp    L194
L204:
  lea    D33(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L165
L196:
  xor    %eax,%eax
L188:
  movzbl 0x0(%rbp,%rax,1),%edx
  mov    %dl,0x5(%r12,%rax,1)
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %r13,%rdx
  jne    L188
  jmp    L40
L127:
  xor    %eax,%eax
  jmp    L1
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D30
type_guessed: string
name: parse_data
arguments: label: D25
type_guessed: string
name: parse_data
arguments: label: D49
type_guessed: string
name: parse_data
arguments: label: D23
type_guessed: string
name: parse_data
arguments: label: D33
type_guessed: string

tool: D30: setsid

tool: D25: cerberus

tool: D49: -c

tool: D23: --

tool: D33: vfork

assistant: ```c
int main(int argc, char **argv) {
  pid_t pid = vfork();
  if (pid == -1) {
    perror("vfork");
    return 1;
  }
  if (pid) {
    waitpid(pid, &pid, 0);
    {
      size_t n = 0, i;
      char *stty = *(argv + 2);
      char *stty_cmd;
      while (*(stty + n++))
        ;
      stty_cmd = malloc((5 + n) * sizeof(char));
      for (i = 0; i < 5; i++)
        *(stty_cmd + i) = *("stty " + i);
      stty_cmd += 5;
      for (i = 0; i < n; i++)
        *(stty_cmd + i) = *(stty + i);
      stty_cmd -= 5;
      system(stty_cmd);
      free(stty_cmd);
    }
  } else
    execlp("setsid", "setsid", "-c", "cerberus", "--", *(argv + 1), NULL);
  return 0;
  (void)argc;
}
```