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

```asm
<unescape_line>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  lea    D3(%rip),%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %rdx,0x8(%rsp)
  lea    0x14(%rsp),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  jmp    L111
  nopl   0x0(%rax)
L14:
  mov    %rbx,%rdx
L124:
  mov    %al,(%r14)
  add    $0x1,%r14
  cmpb   $0x0,(%rdx)
  lea    0x1(%rdx),%rbx
  je     L173
L111:
  movzbl (%rbx),%eax
  lea    0x1(%rbx),%rdx
  cmp    %r12b,%al
  je     L194
  cmp    $0x5c,%al
  jne    L14
  movzbl 0x1(%rbx),%eax
  cmp    $0x78,%al
  jg     L189
  cmp    $0x5b,%al
  jle    L184
  lea    -0x5c(%rax),%ecx
  cmp    $0x1c,%cl
  ja     L189
  movzbl %cl,%ecx
  movslq 0x0(%rbp,%rcx,4),%rcx
  add    %rbp,%rcx
  notrack jmp *%rcx
  nopl   (%rax)
L184:
  cmp    $0x30,%al
  je     L177
  jg     L189
  cmp    $0x22,%al
  je     L124
  cmp    $0x27,%al
  je     L124
  cs nopw 0x0(%rax,%rax,1)
L189:
  mov    $0xffffffff,%eax
L215:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L156
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L177:
  xor    %eax,%eax
  add    $0x1,%r14
  lea    0x1(%rdx),%rbx
  mov    %al,-0x1(%r14)
  cmpb   $0x0,(%rdx)
  jne    L111
  nopw   0x0(%rax,%rax,1)
L173:
  mov    0x8(%rsp),%rax
  sub    %r15,%r14
  mov    %rbx,(%rax)
  lea    -0x1(%r14),%eax
  jmp    L215
  nopl   0x0(%rax)
  mov    $0xb,%eax
  jmp    L124
  nopw   0x0(%rax,%rax,1)
  mov    $0x9,%eax
  jmp    L124
  nopw   0x0(%rax,%rax,1)
  mov    $0xd,%eax
  jmp    L124
  nopw   0x0(%rax,%rax,1)
  movsbl 0x2(%rbx),%edi
  call   <isxdigit@plt>
  test   %eax,%eax
  je     L189
  movsbl 0x3(%rbx),%edi
  call   <isxdigit@plt>
  test   %eax,%eax
  je     L189
  mov    %r13,%rdx
  lea    0x2(%rbx),%rdi
  lea    D14(%rip),%rsi
  call   <sscanf@plt>
  movzbl 0x14(%rsp),%eax
  lea    0x3(%rbx),%rdx
  jmp    L124
  nopl   0x0(%rax,%rax,1)
L194:
  mov    0x8(%rsp),%rax
  mov    %rdx,(%rax)
  mov    %r14d,%eax
  sub    %r15d,%eax
  jmp    L215
  nopl   0x0(%rax,%rax,1)
  mov    $0xa,%eax
  jmp    L124
L156:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D14
type: string

tool: D14: %2x

assistant: ```c
int unescape_line(char *line, char delim, char **tail) {
  char *p, *q;
  unsigned int x;
  p = q = line;
  do {
    if (*p == delim) {
      *tail = p + 1;
      return (int)(q - line);
    } else if (*p == '\\')
      switch (*++p) {
      case '\\':
        *q = '\\';
        break;
      case 'n':
        *q = '\n';
        break;
      case 'r':
        *q = '\r';
        break;
      case 't':
        *q = '\t';
        break;
      case 'v':
        *q = '\v';
        break;
      case '0':
        *q = '\0';
        break;
      case 'x':
        if (!isxdigit(p[1]) || !isxdigit(p[2]))
          return -1;
        sscanf(p + 1, "%2x", &x);
        *q = x;
        p += 2;
        break;
      case '\"':
      case '\'':
      case '`':
        *q = *p;
        break;
      default:
        return -1;
      }
    else
      *q = *p;
    q++;
  } while (*p++ != '\0');
  *tail = p;
  return (int)(q - line - 1);
}
```