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

```asm
<_parse_prop_value>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  movq   $0x4,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L288
  mov    $0x0,%eax
  jmp    L261
L288:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x1c(%rbp)
  mov    D5(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x1c(%rbp)
  jne    L50
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L261
L50:
  cmpl   $0x5d,-0x1c(%rbp)
  je     L33
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L16
  cmpl   $0xd,-0x1c(%rbp)
  jne    L251
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x1c(%rbp)
  cmpl   $0xd,-0x1c(%rbp)
  jne    L223
  mov    -0x28(%rbp),%rdx
  mov    -0x1c(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <ungetc@plt>
L223:
  movl   $0xa,-0x1c(%rbp)
  jmp    L16
L251:
  cmpl   $0xa,-0x1c(%rbp)
  jne    L128
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x1c(%rbp)
  cmpl   $0xa,-0x1c(%rbp)
  jne    L36
  mov    -0x28(%rbp),%rdx
  mov    -0x1c(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <ungetc@plt>
L36:
  movl   $0xa,-0x1c(%rbp)
  jmp    L16
L128:
  movl   $0x20,-0x1c(%rbp)
L16:
  cmpl   $0x5c,-0x1c(%rbp)
  jne    L244
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x1c(%rbp)
  mov    D5(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x1c(%rbp)
  jne    L68
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L261
L68:
  cmpl   $0xd,-0x1c(%rbp)
  jne    L204
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x1c(%rbp)
  cmpl   $0xd,-0x1c(%rbp)
  jne    L243
  mov    -0x28(%rbp),%rdx
  mov    -0x1c(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <ungetc@plt>
  jmp    L243
L204:
  cmpl   $0xa,-0x1c(%rbp)
  jne    L244
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %eax,-0x1c(%rbp)
  cmpl   $0xa,-0x1c(%rbp)
  jne    L59
  mov    -0x28(%rbp),%rdx
  mov    -0x1c(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <ungetc@plt>
  jmp    L59
L244:
  mov    -0x10(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jne    L8
  shlq   $0x2,-0x18(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <realloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L8
  mov    $0x0,%eax
  jmp    L261
L8:
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x1c(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x1,-0x10(%rbp)
  jmp    L288
L243:
  nop
  jmp    L288
L59:
  nop
  jmp    L288
L33:
  nop
  mov    -0x10(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jne    L80
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <realloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L80
  mov    $0x0,%eax
  jmp    L261
L80:
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
L261:
  leave
  ret
```

assistant: ```c
char *_parse_prop_value(FILE *stream) {
  int c;
  size_t cap_buffer = 4;
  size_t len_buffer = 0;
  char *buffer = malloc(cap_buffer);
  if (!buffer) {
    return NULL;
  }
  while (1) {
    c = fgetc(stream);
    if (c == EOF) {
      free(buffer);
      return NULL;
    }
    if (c == ']') {
      break;
    }
    if (isspace(c)) {
      if (c == '\r') {
        c = fgetc(stream);
        if (c == '\r') {
          ungetc(c, stream);
        }
        c = '\n';
      } else if (c == '\n') {
        c = fgetc(stream);
        if (c == '\n') {
          ungetc(c, stream);
        }
        c = '\n';
      } else {
        c = ' ';
      }
    }
    if (c == '\\') {
      c = fgetc(stream);
      if (c == EOF) {
        free(buffer);
        return NULL;
      }
      if (c == '\r') {
        c = fgetc(stream);
        if (c == '\r') {
          ungetc(c, stream);
        }
        continue;
      }
      if (c == '\n') {
        c = fgetc(stream);
        if (c == '\n') {
          ungetc(c, stream);
        }
        continue;
      }
    }
    if (len_buffer == cap_buffer) {
      cap_buffer *= 4;
      buffer = realloc(buffer, cap_buffer);
      if (!buffer) {
        return NULL;
      }
    }
    buffer[len_buffer] = c;
    len_buffer++;
  }
  if (len_buffer == cap_buffer) {
    cap_buffer += 1;
    buffer = realloc(buffer, cap_buffer);
    if (!buffer) {
      return NULL;
    }
  }
  buffer[len_buffer] = '\0';
  return buffer;
}
```