user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<parse_syslogng_items>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x150,%rsp
  mov    %rdi,-0x138(%rbp)
  mov    %rsi,-0x140(%rbp)
  mov    %rdx,-0x148(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x148(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x128(%rbp)
L126:
  lea    -0x110(%rbp),%rax
  mov    %rax,-0x120(%rbp)
  jmp    L100
L29:
  mov    -0x128(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x128(%rbp)
  mov    -0x120(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x120(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L100:
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L186
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L29
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  je     L29
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L29
L186:
  mov    -0x120(%rbp),%rax
  movb   $0x0,(%rax)
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <create_cnfnode@plt>
  mov    %rax,-0x118(%rbp)
  mov    -0x118(%rbp),%rdx
  mov    -0x138(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <append_node@plt>
  lea    -0x128(%rbp),%rdx
  mov    -0x140(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_skip_spaces@plt>
  mov    %rax,-0x140(%rbp)
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L40
  mov    -0x128(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x128(%rbp)
  lea    -0x128(%rbp),%rdx
  mov    -0x140(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_skip_spaces@plt>
  mov    %rax,-0x140(%rbp)
  lea    -0x110(%rbp),%rax
  mov    %rax,-0x120(%rbp)
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  je     L24
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  jne    L47
L24:
  mov    -0x128(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  je     L47
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x129(%rbp)
  mov    -0x128(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x128(%rbp)
  mov    -0x120(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x120(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L157
L168:
  mov    -0x128(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x120(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x128(%rbp),%rdx
  mov    -0x140(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <next_char@plt>
  mov    %rax,-0x140(%rbp)
L157:
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L49
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,-0x129(%rbp)
  jne    L91
  mov    -0x128(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L49
L91:
  lea    -0x110(%rbp),%rax
  add    $0xff,%rax
  cmp    %rax,-0x120(%rbp)
  jb     L168
L49:
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,-0x129(%rbp)
  jne    L231
  mov    -0x128(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x128(%rbp)
  mov    -0x120(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x120(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L231
L222:
  mov    -0x128(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x120(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x128(%rbp),%rdx
  mov    -0x140(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <next_char@plt>
  mov    %rax,-0x140(%rbp)
L47:
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L124
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L124
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  je     L124
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  je     L124
  lea    -0x110(%rbp),%rax
  add    $0xff,%rax
  cmp    %rax,-0x120(%rbp)
  jb     L222
  jmp    L124
L231:
  nop
L124:
  mov    -0x120(%rbp),%rax
  movb   $0x0,(%rax)
  lea    -0x128(%rbp),%rdx
  mov    -0x140(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_skip_spaces@plt>
  mov    %rax,-0x140(%rbp)
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  jne    L22
  mov    -0x128(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x128(%rbp)
L22:
  lea    -0x110(%rbp),%rdx
  mov    -0x118(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <cnfnode_setval@plt>
  lea    -0x128(%rbp),%rdx
  mov    -0x140(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_skip_spaces@plt>
  mov    %rax,-0x140(%rbp)
L40:
  mov    -0x128(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  jne    L126
  mov    -0x128(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x128(%rbp)
  nop
  mov    -0x128(%rbp),%rdx
  mov    -0x148(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x140(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L205
  call   <__stack_chk_fail@plt>
L205:
  leave
  ret
```

assistant: ```c
struct confline *parse_syslogng_items(struct cnfnode *cn_top, struct confline *cl, const char **pp) {
  struct cnfnode *cn;
  char buf[256], *q;
  const char *p = *pp;
  while (1) {
    q = buf;
    while (*p && (isalnum(*p) || (*p == '_') || (*p == '-')))
      *q++ = *p++;
    *q = 0;
    append_node(cn_top, cn = create_cnfnode(buf));
    cl = _skip_spaces(cl, &p);
    if (*p == '(') {
      p++;
      cl = _skip_spaces(cl, &p);
      q = buf;
      if ((*p == '\"' || *p == '\'') && (p[-1] != '\\')) {
        char qc = *p;
        *q++ = *p++;
        while (*p && ((*p != qc) || (p[-1] == '\\')) && q < buf + sizeof(buf) - 1) {
          *q++ = *p;
          cl = next_char(cl, &p);
        }
        if (*p == qc)
          *q++ = *p++;
      } else {
        while (*p && !isspace(*p) && *p != '(' && *p != ')' && q < buf + sizeof(buf) - 1) {
          *q++ = *p;
          cl = next_char(cl, &p);
        }
      }
      *q = 0;
      cl = _skip_spaces(cl, &p);
      if (*p == ')')
        p++;
      cnfnode_setval(cn, buf);
      cl = _skip_spaces(cl, &p);
    }
    if (*p == ')') {
      p++;
      break;
    }
  }
  *pp = p;
  return cl;
}
```