user: What is the c source code of the assembly code below:

```asm
<parse_file_uri>:
  endbr64
  push   %r15
  mov    %rdi,%rsi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  lea    D12(%rip),%rdi
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <alsaplayer_error@plt>
  test   %rbp,%rbp
  je     L129
  mov    $0x5,%edx
  lea    D22(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L129
  mov    %rbp,%rdi
  call   <is_uri@plt>
  test   %eax,%eax
  je     L129
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  mov    %eax,%r13d
  call   <malloc@plt>
  mov    %rax,%r12
  cmp    $0x5,%r13d
  jle    L130
  lea    -0x6(%r13),%eax
  lea    0x5(%rbp),%rbx
  xor    %r13d,%r13d
  xor    %esi,%esi
  lea    0x6(%rbp,%rax,1),%r8
  xor    %r15d,%r15d
  lea    0x20(%rsp),%rdx
  xor    %ebp,%ebp
  lea    0x24(%rsp),%r9
  lea    D29(%rip),%r14
  jmp    L113
  nopl   0x0(%rax)
L80:
  test   %esi,%esi
  je     L160
  lea    0x1(%r13),%edi
  mov    %al,0x24(%rsp,%r13,1)
  movslq %edi,%rax
  movslq %edi,%r13
  movb   $0x0,0x24(%rsp,%rax,1)
  cmp    $0x2,%r13d
  je     L154
L76:
  add    $0x1,%rbx
  movb   $0x0,(%r12,%rbp,1)
  cmp    %rbx,%r8
  je     L130
L113:
  movzbl (%rbx),%eax
  lea    (%r12,%rbp,1),%rcx
  cmp    $0x25,%al
  jne    L80
  test   %esi,%esi
  je     L25
  add    $0x1,%r15d
  add    $0x1,%rbx
  movb   $0x25,(%rcx)
  xor    %esi,%esi
  movslq %r15d,%rbp
  movb   $0x0,(%r12,%rbp,1)
  cmp    %rbx,%r8
  jne    L113
  nopl   (%rax)
L130:
  mov    %r12,%rsi
  lea    D18(%rip),%rdi
  call   <alsaplayer_error@plt>
  jmp    L134
  nopl   0x0(%rax)
L129:
  xor    %r12d,%r12d
L134:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L171
  add    $0x38,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L160:
  add    $0x1,%r15d
  mov    %al,(%rcx)
  movslq %r15d,%rbp
  jmp    L76
  xchg   %ax,%ax
L25:
  xor    %r13d,%r13d
  mov    $0x1,%esi
  jmp    L76
  nopl   (%rax)
L154:
  mov    %r9,%rdi
  mov    %r14,%rsi
  mov    %r8,0x10(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %r9,(%rsp)
  mov    %rcx,0x18(%rsp)
  call   <sscanf@plt>
  mov    (%rsp),%r9
  mov    0x8(%rsp),%rdx
  cmp    $0x1,%eax
  mov    0x10(%rsp),%r8
  jne    L0
  mov    0x20(%rsp),%eax
  mov    0x18(%rsp),%rcx
  add    $0x1,%r15d
  xor    %esi,%esi
  movslq %r15d,%rbp
  mov    %al,(%rcx)
  jmp    L76
  nopw   0x0(%rax,%rax,1)
L0:
  mov    %r9,%rsi
  lea    D40(%rip),%rdi
  mov    %rdx,0x10(%rsp)
  mov    %r8,0x8(%rsp)
  mov    %r9,(%rsp)
  call   <alsaplayer_error@plt>
  mov    (%rsp),%r9
  mov    0x8(%rsp),%r8
  xor    %esi,%esi
  mov    0x10(%rsp),%rdx
  jmp    L76
L171:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D12
datatype: string
name: read_data
arguments: data_tag: D22
datatype: string
name: read_data
arguments: data_tag: D29
datatype: string
name: read_data
arguments: data_tag: D18
datatype: string
name: read_data
arguments: data_tag: D40
datatype: string

tool: D12: parsing: %s

tool: D22: file:

tool: D29: %x

tool: D18: parsed to: %s

tool: D40: unandled percent escape (%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;
}
```