user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<getUserCommand>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x248,%rsp
  mov    %rdi,-0x248(%rbp)
  mov    %rsi,-0x250(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movb   $0x0,-0x235(%rbp)
  movl   $0x0,-0x234(%rbp)
L113:
  cmpl   $0x200,-0x234(%rbp)
  jg     L86
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %al,-0x235(%rbp)
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x235(%rbp),%edx
  mov    %dl,-0x220(%rbp,%rax,1)
  addl   $0x1,-0x234(%rbp)
  mov    D0(%rip),%rax
  movzbl (%rax),%eax
  cmp    %al,-0x235(%rbp)
  je     L134
  cmpb   $0xa,-0x235(%rbp)
  jne    L113
  jmp    L134
L86:
  nop
L134:
  mov    -0x234(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x228(%rbp)
  mov    -0x228(%rbp),%eax
  cltq
  movb   $0x0,-0x220(%rbp,%rax,1)
  movl   $0x0,-0x234(%rbp)
  jmp    L62
L115:
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x220(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  je     L46
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x220(%rbp,%rax,1),%eax
  cmp    $0xa,%al
  je     L46
  addl   $0x1,-0x234(%rbp)
L62:
  mov    -0x234(%rbp),%eax
  cmp    -0x228(%rbp),%eax
  jl     L115
L46:
  mov    -0x234(%rbp),%eax
  mov    %eax,-0x224(%rbp)
  mov    -0x224(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    -0x248(%rbp),%rdx
  mov    %rax,(%rdx)
  mov    -0x224(%rbp),%eax
  cltq
  movb   $0x0,-0x220(%rbp,%rax,1)
  mov    -0x248(%rbp),%rax
  mov    (%rax),%rax
  lea    -0x220(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x224(%rbp),%eax
  cmp    -0x228(%rbp),%eax
  jne    L141
  mov    $0x1,%eax
  jmp    L12
L141:
  addl   $0x1,-0x234(%rbp)
  movl   $0x0,-0x230(%rbp)
  mov    -0x224(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x22c(%rbp)
  jmp    L26
L51:
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x220(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  je     L104
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x220(%rbp,%rax,1),%eax
  cmp    $0xa,%al
  je     L104
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x220(%rbp,%rax,1),%eax
  test   %al,%al
  jne    L24
L104:
  mov    -0x234(%rbp),%eax
  sub    -0x22c(%rbp),%eax
  add    $0x1,%eax
  mov    -0x230(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x250(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  mov    -0x234(%rbp),%eax
  cltq
  movb   $0x0,-0x220(%rbp,%rax,1)
  lea    -0x220(%rbp),%rdx
  mov    -0x22c(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x230(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x250(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  addl   $0x1,-0x230(%rbp)
  mov    -0x234(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x22c(%rbp)
L24:
  addl   $0x1,-0x234(%rbp)
L26:
  mov    -0x234(%rbp),%eax
  cmp    -0x228(%rbp),%eax
  jle    L51
  mov    -0x248(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L92
  mov    -0x250(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L92
  mov    $0x0,%eax
  jmp    L12
L92:
  mov    $0x1,%eax
L12:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L154
  call   <__stack_chk_fail@plt>
L154:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

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;
}
```