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

```asm
<MCParse>:
  endbr64
  push   %r15
  push   %r14
  lea    D24(%rip),%r14
  push   %r13
  lea    D26(%rip),%r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  sub    $0x8,%rsp
  nopl   (%rax)
L41:
  mov    %ebx,%edi
  call   <get_line@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L183
L13:
  movzbl (%r15),%edi
  cmp    $0x24,%dil
  je     L18
  test   %dil,%dil
  je     L41
  call   <isdigit@plt>
  test   %rax,%rax
  je     L121
  mov    %r15,%rdi
  call   <atoi@plt>
  mov    %r15,%rdi
  mov    %eax,%ebp
  call   <cskip@plt>
  mov    %rax,%rdi
  call   <wskip@plt>
  cmpb   $0x0,(%rax)
  mov    %rax,%rsi
  jne    L3
  mov    %ebp,%edi
  call   <MCDelMsg@plt>
  mov    %ebx,%edi
  call   <get_line@plt>
  mov    %rax,%r15
  test   %rax,%rax
  jne    L13
L183:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L18:
  lea    0x1(%r15),%rbp
  mov    $0x3,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L71
  lea    0x4(%r15),%rdi
  call   <wskip@plt>
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,%edi
  call   <MCAddSet@plt>
  jmp    L41
  cs nopw 0x0(%rax,%rax,1)
L3:
  mov    %ebx,%edi
  movsbl %r12b,%edx
  call   <getmsg@plt>
  mov    %ebp,%edi
  mov    %rax,%rsi
  call   <MCAddMsg@plt>
  jmp    L41
  nopw   0x0(%rax,%rax,1)
L121:
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <warning@plt>
  jmp    L41
L71:
  mov    $0x6,%edx
  lea    D21(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L158
  mov    $0x5,%edx
  lea    D41(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L187
  movzbl 0x6(%r15),%r12d
  test   %r12b,%r12b
  je     L41
  lea    0x6(%r15),%rdi
  call   <wskip@plt>
  movzbl (%rax),%r12d
  jmp    L41
  nopw   0x0(%rax,%rax,1)
L158:
  lea    0x7(%r15),%rdi
  call   <wskip@plt>
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,%edi
  call   <MCDelSet@plt>
  jmp    L41
  nopl   (%rax)
L187:
  movzbl 0x1(%r15),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L41
  cmpb   $0x0,0x1(%r15)
  je     L41
  mov    %rbp,%rdi
  call   <wskip@plt>
  cmpb   $0x0,(%rax)
  mov    %rax,%rdi
  je     L41
  lea    D3(%rip),%rsi
  call   <warning@plt>
  jmp    L41
```

tool_calls: name: read_data
arguments: data_tag: D24
type_guessed: string
name: read_data
arguments: data_tag: D26
type_guessed: string
name: read_data
arguments: data_tag: D21
type_guessed: string
name: read_data
arguments: data_tag: D41
type_guessed: string
name: read_data
arguments: data_tag: D3
type_guessed: string

tool: D24: neither blank line nor start of a message id

tool: D26: set

tool: D21: delset

tool: D41: quote

tool: D3: unrecognized line

assistant: ```c
void MCParse(int fd) {
  char *cptr, *str;
  int setid, msgid = 0;
  char quote = 0;
  while ((cptr = get_line(fd))) {
    if (*cptr == '$') {
      ++cptr;
      if (strncmp(cptr, "set", 3) == 0) {
        cptr += 3;
        cptr = wskip(cptr);
        setid = atoi(cptr);
        MCAddSet(setid);
        msgid = 0;
      } else if (strncmp(cptr, "delset", 6) == 0) {
        cptr += 6;
        cptr = wskip(cptr);
        setid = atoi(cptr);
        MCDelSet(setid);
      } else if (strncmp(cptr, "quote", 5) == 0) {
        cptr += 5;
        if (!*cptr)
          quote = 0;
        else {
          cptr = wskip(cptr);
          if (!*cptr)
            quote = 0;
          else
            quote = *cptr;
        }
      } else if (isspace((unsigned char)*cptr)) {
        ;
      } else {
        if (*cptr) {
          cptr = wskip(cptr);
          if (*cptr)
            warning(cptr, "unrecognized line");
        }
      }
    } else {
      if (!*cptr)
        continue;
      if (isdigit((unsigned char)*cptr)) {
        msgid = atoi(cptr);
        cptr = cskip(cptr);
        cptr = wskip(cptr);
      } else {
        warning(cptr, "neither blank line nor start of a message id");
        continue;
      }
      if (!*cptr) {
        MCDelMsg(msgid);
      } else {
        str = getmsg(fd, cptr, quote);
        MCAddMsg(msgid, str);
      }
    }
  }
}
```