user: What would the C source look like for the assembly code provided here:

```asm
<parameters_prepare>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x1,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jne    L365
  mov    $0x0,%eax
  jmp    L387
L365:
  mov    $0x1000,%edi
  call   <malloc@plt>
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L77
L245:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L347
  cmp    $0x5c,%eax
  jg     L9
  cmp    $0x22,%eax
  je     L130
  cmp    $0x22,%eax
  jg     L9
  cmp    $0x9,%eax
  je     L21
  cmp    $0x20,%eax
  je     L21
  jmp    L9
L347:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L247
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x74,%eax
  je     L131
  cmp    $0x74,%eax
  jg     L182
  cmp    $0x6e,%eax
  je     L6
  cmp    $0x6e,%eax
  jg     L182
  cmp    $0x5c,%eax
  je     L223
  cmp    $0x5c,%eax
  jg     L182
  cmp    $0x3f,%eax
  je     L223
  cmp    $0x3f,%eax
  jg     L182
  cmp    $0x22,%eax
  je     L223
  cmp    $0x27,%eax
  je     L223
  jmp    L182
L6:
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0xa,(%rax)
  addl   $0x1,-0x8(%rbp)
  addl   $0x1,-0x14(%rbp)
  jmp    L317
L131:
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x9,(%rax)
  addl   $0x1,-0x8(%rbp)
  addl   $0x1,-0x14(%rbp)
L223:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    -0x8(%rdx),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x8(%rbp),%edx
  movslq %edx,%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x8(%rbp)
  addl   $0x1,-0x14(%rbp)
  jmp    L317
L182:
  addl   $0x1,-0x14(%rbp)
  jmp    L247
L317:
  jmp    L247
L130:
  cmpl   $0x0,-0xc(%rbp)
  jne    L1
  movl   $0x1,-0xc(%rbp)
  jmp    L159
L1:
  movl   $0x0,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x10(%rbp)
  mov    $0x1000,%edi
  call   <malloc@plt>
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    -0x8(%rdx),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x0,(%rax)
  movl   $0x0,-0x8(%rbp)
  jmp    L159
L21:
  cmpl   $0x0,-0xc(%rbp)
  jne    L57
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L259
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L24
L259:
  cmpl   $0x0,-0x8(%rbp)
  je     L24
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x10(%rbp)
  mov    $0x1000,%edi
  call   <malloc@plt>
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    -0x8(%rdx),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x0,(%rax)
  movl   $0x0,-0x8(%rbp)
  jmp    L24
L57:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    -0x8(%rdx),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x8(%rbp),%edx
  movslq %edx,%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x8(%rbp)
  jmp    L24
L9:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x3,%rdx
  lea    -0x8(%rdx),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x8(%rbp),%edx
  movslq %edx,%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x8(%rbp)
  jmp    L159
L247:
  nop
  jmp    L159
L24:
  nop
L159:
  addl   $0x1,-0x14(%rbp)
L77:
  mov    -0x14(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L245
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L138
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  subl   $0x1,-0x10(%rbp)
L138:
  mov    -0x10(%rbp),%eax
L387:
  leave
  ret
```

assistant: ```c
int parameters_prepare(char *param, char *argv[]) {
  int i, param_len;
  int argc = 1;
  int quote = 0;
  int argv_len;
  param_len = strlen(param);
  if (param_len == 0)
    return 0;
  argv[0] = (char *)malloc(4096);
  argv_len = 0;
  for (i = 0; i < param_len; i++) {
    switch (param[i]) {
    case '\\':
      if (param[i + 1] != '\0') {
        switch (param[i + 1]) {
        case 'n':
          argv[argc - 1][argv_len] = '\n';
          argv_len++;
          i++;
          break;
        case 't':
          argv[argc - 1][argv_len] = '\t';
          argv_len++;
          i++;
        case '\\':
        case '\'':
        case '"':
        case '?':
          argv[argc - 1][argv_len] = param[i + 1];
          argv_len++;
          i++;
          break;
        default:
          i++;
        };
      }
      break;
    case '"':
      if (quote == 0)
        quote = 1;
      else {
        quote = 0;
        argv[argc - 1][argv_len] = '\0';
        argc++;
        argv[argc - 1] = (char *)malloc(4096);
        argv[argc - 1][argv_len] = '\0';
        argv_len = 0;
      }
      break;
    case 9:
    case 32:
      if (quote == 0) {
        if ((param[i + 1] != 32) || (param[i + 1] != 9)) {
          if (argv_len != 0) {
            argv[argc - 1][argv_len] = '\0';
            argc++;
            argv[argc - 1] = (char *)malloc(4096);
            argv[argc - 1][argv_len] = '\0';
            argv_len = 0;
          }
        }
      } else {
        argv[argc - 1][argv_len] = param[i];
        argv_len++;
      }
      break;
    default:
      argv[argc - 1][argv_len] = param[i];
      argv_len++;
      break;
    };
  }
  argv[argc - 1][argv_len] = '\0';
  if (strlen(argv[argc - 1]) == 0) {
    free(argv[argc - 1]);
    argc--;
  }
  return argc;
}
```