user: 下面的汇编指令对应的C源代码是什么:

```asm
<parse_canframe>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x30(%rbp),%rax
  mov    $0x18,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  cmpl   $0x3,-0x4(%rbp)
  jg     L275
  mov    $0x1,%eax
  jmp    L127
L275:
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  je     L109
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  je     L109
  mov    $0x1,%eax
  jmp    L127
L109:
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  jne    L32
  movl   $0x9,-0xc(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L27
L150:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <asc2nibble@plt>
  mov    %al,-0x11(%rbp)
  cmpb   $0xf,-0x11(%rbp)
  jbe    L163
  mov    $0x1,%eax
  jmp    L127
L163:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  mov    %eax,%esi
  movzbl -0x11(%rbp),%edx
  mov    $0x7,%eax
  sub    -0x10(%rbp),%eax
  shl    $0x2,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %esi,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %dl,(%rax)
  addl   $0x1,-0x10(%rbp)
L27:
  cmpl   $0x7,-0x10(%rbp)
  jle    L150
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    D26(%rip),%rax
  mov    (%rax),%eax
  and    %edx,%eax
  test   %eax,%eax
  jne    L200
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    D16(%rip),%rax
  mov    (%rax),%eax
  or     %edx,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %dl,(%rax)
  jmp    L200
L32:
  movl   $0x4,-0xc(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L248
L152:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <asc2nibble@plt>
  mov    %al,-0x11(%rbp)
  cmpb   $0xf,-0x11(%rbp)
  jbe    L136
  mov    $0x1,%eax
  jmp    L127
L136:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  mov    %eax,%esi
  movzbl -0x11(%rbp),%edx
  mov    $0x2,%eax
  sub    -0x10(%rbp),%eax
  shl    $0x2,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %esi,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %dl,(%rax)
  addl   $0x1,-0x10(%rbp)
L248:
  cmpl   $0x2,-0x10(%rbp)
  jle    L152
L200:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x52,%al
  je     L260
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x72,%al
  jne    L9
L260:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%edx
  mov    D12(%rip),%rax
  movzbl (%rax),%eax
  or     %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %dl,(%rax)
  mov    $0x0,%eax
  jmp    L127
L9:
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L274
L112:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L214
  addl   $0x1,-0xc(%rbp)
L214:
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jge    L165
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <asc2nibble@plt>
  mov    %al,-0x11(%rbp)
  cmpb   $0xf,-0x11(%rbp)
  jbe    L74
  mov    $0x1,%eax
  jmp    L127
L74:
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x10(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl -0x11(%rbp),%edx
  shl    $0x4,%edx
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <asc2nibble@plt>
  mov    %al,-0x11(%rbp)
  cmpb   $0xf,-0x11(%rbp)
  jbe    L245
  mov    $0x1,%eax
  jmp    L127
L245:
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x10(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    -0x30(%rbp),%rdx
  mov    0x8(%rdx),%rcx
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  add    %rcx,%rdx
  or     -0x11(%rbp),%al
  mov    %al,(%rdx)
  addl   $0x1,-0x8(%rbp)
  addl   $0x1,-0x10(%rbp)
L274:
  cmpl   $0x7,-0x10(%rbp)
  jle    L112
  jmp    L182
L165:
  nop
L182:
  mov    -0x30(%rbp),%rax
  mov    -0x8(%rbp),%edx
  mov    %edx,0x10(%rax)
  mov    $0x0,%eax
L127:
  leave
  ret
```

assistant: ```c
int parse_canframe(char *cs, struct can_frame *cf) {
  int i, idx, dlc, len;
  unsigned char tmp;
  len = strlen(cs);
  memset(cf, 0, sizeof(*cf));
  if (len < 4)
    return 1;
  if (!((cs[3] == '#') || (cs[8] == '#')))
    return 1;
  if (cs[8] == '#') {
    idx = 9;
    for (i = 0; i < 8; i++) {
      if ((tmp = asc2nibble(cs[i])) > 0x0F)
        return 1;
      cf->can_id |= (tmp << (7 - i) * 4);
    }
    if (!(cf->can_id & CAN_ERR_FLAG))
      cf->can_id |= CAN_EFF_FLAG;
  } else {
    idx = 4;
    for (i = 0; i < 3; i++) {
      if ((tmp = asc2nibble(cs[i])) > 0x0F)
        return 1;
      cf->can_id |= (tmp << (2 - i) * 4);
    }
  }
  if ((cs[idx] == 'R') || (cs[idx] == 'r')) {
    cf->can_id |= CAN_RTR_FLAG;
    return 0;
  }
  for (i = 0, dlc = 0; i < 8; i++) {
    if (cs[idx] == '.')
      idx++;
    if (idx >= len)
      break;
    if ((tmp = asc2nibble(cs[idx++])) > 0x0F)
      return 1;
    cf->data[i] = (tmp << 4);
    if ((tmp = asc2nibble(cs[idx++])) > 0x0F)
      return 1;
    cf->data[i] |= tmp;
    dlc++;
  }
  cf->can_dlc = dlc;
  return 0;
}
```