user: 请将以下的汇编代码转换成C语言代码：

```asm
<getUserCommand>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x228,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,%r15
  mov    %fs:0x28,%rax
  mov    %rax,0x218(%rsp)
  xor    %eax,%eax
  mov    $0x0,%ebx
L142:
  mov    %ebx,%r12d
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %al,0x10(%rsp,%rbx,1)
  mov    D6(%rip),%rdx
  cmp    %al,(%rdx)
  je     L105
  cmp    $0xa,%al
  je     L105
  add    $0x1,%rbx
  cmp    $0x201,%rbx
  jne    L142
L105:
  movslq %r12d,%rax
  movb   $0x0,0x10(%rsp,%rax,1)
  test   %r12d,%r12d
  jle    L85
  lea    0x10(%rsp),%rax
  mov    $0x0,%ebx
L68:
  movzbl (%rax),%edx
  cmp    $0x20,%dl
  je     L72
  cmp    $0xa,%dl
  je     L72
  add    $0x1,%ebx
  add    $0x1,%rax
  cmp    %ebx,%r12d
  jne    L68
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    0x8(%rsp),%rax
  mov    %rdi,(%rax)
  movslq %ebx,%rbx
  movb   $0x0,0x10(%rsp,%rbx,1)
  lea    0x10(%rsp),%rsi
  call   <strcpy@plt>
  mov    $0x1,%eax
  jmp    L115
L85:
  mov    $0x0,%ebx
L72:
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    0x8(%rsp),%rax
  mov    %rdi,(%rax)
  movslq %ebx,%rax
  movb   $0x0,0x10(%rsp,%rax,1)
  lea    0x10(%rsp),%rsi
  call   <strcpy@plt>
  cmp    %ebx,%r12d
  je     L51
  add    $0x1,%ebx
  cmp    %ebx,%r12d
  jl     L135
  movslq %ebx,%rbp
  mov    $0x0,%r13d
  jmp    L90
L161:
  movslq %r13d,%rax
  lea    (%r15,%rax,8),%r14
  sub    %ebx,%edi
  add    $0x1,%edi
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    %rax,(%r14)
  movb   $0x0,0x10(%rsp,%rbp,1)
  movslq %ebx,%rbx
  lea    0x10(%rsp,%rbx,1),%rsi
  call   <strcpy@plt>
  add    $0x1,%r13d
  mov    0x4(%rsp),%ebx
  add    $0x1,%ebx
L67:
  add    $0x1,%rbp
  cmp    %ebp,%r12d
  jl     L135
L90:
  mov    %ebp,0x4(%rsp)
  mov    %ebp,%edi
  movzbl 0x10(%rsp,%rbp,1),%eax
  test   $0xdf,%al
  je     L161
  cmp    $0xa,%al
  jne    L67
  jmp    L161
L135:
  mov    $0x1,%eax
  mov    0x8(%rsp),%rcx
  cmpq   $0x0,(%rcx)
  je     L123
L115:
  mov    0x218(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L14
  add    $0x228,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L123:
  cmpq   $0x0,(%r15)
  setne  %al
  movzbl %al,%eax
  jmp    L115
L51:
  mov    $0x1,%eax
  jmp    L115
L14:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int getUserCommand(char **cmd, char **args) {
  char c = '\0';
  int i = 0;
  char buffer[512];
  do {
    if (i > 512)
      break;
    c = getchar();
    buffer[i] = c;
    i++;
  } while ((c != EOF) && (c != '\n'));
  int lineLen = (i - 1);
  buffer[lineLen] = '\0';
  i = 0;
  while (i < lineLen) {
    if ((buffer[i] == ' ') || (buffer[i] == '\n'))
      break;
    i++;
  }
  int cmdLen = i;
  *cmd = malloc(cmdLen);
  buffer[cmdLen] = '\0';
  strcpy(*cmd, buffer);
  if (cmdLen == lineLen)
    return 1;
  i++;
  int j = 0;
  int stringStart = (cmdLen + 1);
  while (i <= lineLen) {
    if ((buffer[i] == ' ') || (buffer[i] == '\n') || (buffer[i] == '\0')) {
      args[j] = malloc(((i - stringStart) + 1));
      buffer[i] = '\0';
      strcpy(args[j], &buffer[stringStart]);
      j++;
      stringStart = i + 1;
    }
    i++;
  }
  if ((*cmd == NULL) && (*args == NULL))
    return 0;
  else
    return 1;
}
```