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

```asm
<parse_file_uri>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rdi,%rsi
  lea    D47(%rip),%rdi
  call   <alsaplayer_error@plt>
  test   %r12,%r12
  je     L97
  mov    $0x5,%edx
  lea    D19(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  mov    $0x0,%ebp
  test   %rax,%rax
  jne    L5
  mov    %r12,%rdi
  call   <is_uri@plt>
  test   %eax,%eax
  je     L5
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r13d
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  cmp    $0x5,%r13d
  jle    L151
  lea    0x5(%r12),%rbx
  lea    -0x6(%r13),%eax
  lea    0x6(%r12,%rax,1),%r14
  mov    $0x0,%edx
  mov    $0x0,%ecx
  mov    $0x0,%r12d
  lea    0x10(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    0x14(%rsp),%r15
  jmp    L84
L32:
  test   %ecx,%ecx
  je     L130
  movslq %r12d,%rax
  movb   $0x25,0x0(%rbp,%rax,1)
  lea    0x1(%r12),%r12d
  mov    $0x0,%ecx
  jmp    L123
L50:
  mov    %r15,%rsi
  lea    D22(%rip),%rdi
  call   <alsaplayer_error@plt>
  mov    %r13d,%edx
  mov    $0x0,%ecx
  jmp    L123
L94:
  movslq %r12d,%rsi
  mov    %al,0x0(%rbp,%rsi,1)
  lea    0x1(%r12),%r12d
L123:
  movslq %r12d,%rax
  movb   $0x0,0x0(%rbp,%rax,1)
  add    $0x1,%rbx
  cmp    %r14,%rbx
  je     L151
L84:
  movzbl (%rbx),%eax
  cmp    $0x25,%al
  je     L32
  test   %ecx,%ecx
  je     L94
  lea    0x1(%rdx),%r13d
  movslq %edx,%rdx
  mov    %al,0x14(%rsp,%rdx,1)
  movslq %r13d,%rax
  movb   $0x0,0x14(%rsp,%rax,1)
  mov    %r13d,%edx
  cmp    $0x2,%r13d
  jne    L123
  mov    0x8(%rsp),%rdx
  lea    D11(%rip),%rsi
  mov    %r15,%rdi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  jne    L50
  movslq %r12d,%rax
  mov    0x10(%rsp),%edx
  mov    %dl,0x0(%rbp,%rax,1)
  mov    %r13d,%edx
  lea    0x1(%r12),%r12d
  mov    $0x0,%ecx
  jmp    L123
L130:
  mov    %ecx,%edx
  mov    $0x1,%ecx
  jmp    L123
L151:
  mov    %rbp,%rsi
  lea    D25(%rip),%rdi
  call   <alsaplayer_error@plt>
L5:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L65
  mov    %rbp,%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L97:
  mov    %r12,%rbp
  jmp    L5
L65:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D47
type_infered: string
name: parse_data
arguments: tag: D19
type_infered: string
name: parse_data
arguments: tag: D22
type_infered: string
name: parse_data
arguments: tag: D11
type_infered: string
name: parse_data
arguments: tag: D25
type_infered: string

tool: D47: parsing: %s

tool: D19: file:

tool: D22: unandled percent escape (%s)

tool: D11: %x

tool: D25: parsed to: %s

assistant: ```c
char *parse_file_uri(const char *furi) {
  char *res;
  char escape[4];
  int r, w, t, percent, e, val;
  alsaplayer_error("parsing: %s", furi);
  if (!furi)
    return NULL;
  if ((strncmp(furi, "file:", 5) != 0) || !is_uri(furi)) {
    return NULL;
  }
  t = strlen(furi);
  res = malloc(t + 1);
  r = 5;
  w = 0;
  e = 0;
  percent = 0;
  while (r < t) {
    switch (furi[r]) {
    case '%':
      if (percent) {
        res[w++] = '%';
        percent = 0;
      } else {
        percent = 1;
        e = 0;
      }
      break;
    default:
      if (percent) {
        escape[e++] = furi[r];
        escape[e] = 0;
        if (e == 2) {
          if ((sscanf(escape, "%x", &val) == 1)) {
            res[w++] = val;
          } else {
            alsaplayer_error("unandled percent escape (%s)", escape);
          }
          percent = 0;
        }
      } else {
        res[w++] = furi[r];
      }
      break;
    }
    r++;
    res[w] = 0;
  }
  alsaplayer_error("parsed to: %s", res);
  return res;
}
```