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

```asm
<i_nstrdup_conv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  movq   $0x0,-0x38(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,-0x20(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,-0x1f(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,-0x1e(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,-0x1d(%rbp)
  movzbl -0x1d(%rbp),%eax
  cmp    $0x3a,%al
  je     L15
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,-0x1c(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,-0x1b(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,-0x1a(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,-0x19(%rbp)
  movzbl -0x19(%rbp),%eax
  cmp    $0x3a,%al
  je     L28
  mov    $0xffffffff,%eax
  jmp    L12
L28:
  movb   $0x0,-0x19(%rbp)
  jmp    L94
L15:
  movb   $0x0,-0x1d(%rbp)
L94:
  lea    -0x20(%rbp),%rax
  mov    %rax,-0x40(%rbp)
  jmp    L100
L38:
  mov    -0x38(%rbp),%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cltq
  add    %rax,-0x38(%rbp)
  addq   $0x1,-0x40(%rbp)
L100:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L38
  mov    -0x38(%rbp),%rax
  add    $0x2,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L82
  mov    $0xffffffff,%eax
  jmp    L12
L82:
  movl   $0x0,-0x44(%rbp)
  jmp    L71
L109:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  lea    (%rdx,%rax,1),%rbx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <jelio_buffer_getc@plt>
  mov    %al,(%rbx)
  addl   $0x1,-0x44(%rbp)
L71:
  mov    -0x44(%rbp),%eax
  cltq
  cmp    %rax,-0x38(%rbp)
  jae    L109
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  je     L81
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x28(%rbp),%rax
  movq   $0x0,(%rax)
  mov    $0xffffffff,%eax
  jmp    L12
L81:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x38(%rbp),%rax
L12:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L27
  call   <__stack_chk_fail@plt>
L27:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int i_nstrdup_conv(void *value, int n, void *inbuf) {
  struct jelio_buf *jb = inbuf;
  char **sval = value;
  int i;
  char *p, buf[8];
  size_t len = 0;
  buf[0] = jelio_buffer_getc(jb);
  buf[1] = jelio_buffer_getc(jb);
  buf[2] = jelio_buffer_getc(jb);
  buf[3] = jelio_buffer_getc(jb);
  if (buf[3] != ':') {
    buf[4] = jelio_buffer_getc(jb);
    buf[5] = jelio_buffer_getc(jb);
    buf[6] = jelio_buffer_getc(jb);
    buf[7] = jelio_buffer_getc(jb);
    if (buf[7] != ':')
      return -1;
    buf[7] = 0;
  } else
    buf[3] = 0;
  for (p = buf; *p; p++) {
    len *= 10;
    len += *p - '0';
  }
  *sval = malloc(len + 2);
  if (!*sval)
    return -1;
  for (i = 0; i <= len; i++)
    *(*sval + i) = jelio_buffer_getc(jb);
  if (*(*sval + len) != ',') {
    free(*sval);
    *sval = NULL;
    return -1;
  }
  *(*sval + len) = 0;
  return len;
}
```