user: Please show me the C implementation that matches the assembly code listed below:

```asm
<parseURL>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  mov    %r8,%r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  lea    0x6(%rdi),%rbx
  sub    $0x18,%rsp
  mov    0x50(%rsp),%eax
  mov    %rdi,0x8(%rsp)
  test   %eax,%eax
  jne    L29
  mov    $0x3a,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  mov    %rax,%r13
  cmp    %rax,%rbx
  je     L42
  mov    0x8(%rsp),%r10
  mov    %rax,%rsi
  sub    %r10,%rax
  lea    -0x6(%rax),%rcx
  xor    %eax,%eax
  nopl   0x0(%rax)
L58:
  movzbl 0x6(%r10,%rax,1),%edx
  mov    %dl,(%r15,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L58
  sub    %r10,%rsi
  lea    (%rbx,%rax,1),%r13
  lea    -0x6(%rsi),%eax
  cltq
  add    %rax,%r15
L42:
  movb   $0x0,(%r15)
  lea    0x1(%r13),%rbx
  mov    $0x40,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  cmp    %rax,%rbx
  je     L44
  lea    -0x1(%rax),%rcx
  mov    %rax,%rsi
  xor    %eax,%eax
  sub    %r13,%rcx
  nopl   0x0(%rax,%rax,1)
L61:
  movzbl 0x1(%r13,%rax,1),%edx
  mov    %dl,(%r14,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L61
  not    %r13d
  add    %rbx,%rax
  lea    0x0(%r13,%rsi,1),%edx
  movslq %edx,%rdx
  add    %rdx,%r14
L44:
  movb   $0x0,(%r14)
  lea    0x1(%rax),%rbx
L16:
  mov    $0x2f,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  cmp    %rax,%rbx
  je     L27
  mov    %rax,%rdi
  xor    %edx,%edx
  sub    %rbx,%rdi
  cs nopw 0x0(%rax,%rax,1)
L7:
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%r12,%rdx,1)
  add    $0x1,%rdx
  cmp    %rdi,%rdx
  jne    L7
  mov    %eax,%edx
  sub    %ebx,%edx
  movslq %edx,%rdx
  add    %rdx,%r12
L27:
  movb   $0x0,(%r12)
  add    $0x18,%rsp
  mov    %rbp,%rdi
  lea    0x1(%rax),%rsi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <strcpy@plt>
  nopw   0x0(%rax,%rax,1)
L29:
  mov    %rcx,%rdi
  mov    $0xa,%edx
  lea    D13(%rip),%rsi
  call   <strncpy@plt>
  lea    D15(%rip),%rdi
  call   <printf@plt>
  mov    %r14,%rsi
  lea    D7(%rip),%rdi
  call   <scanf@plt>
  jmp    L16
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D13
data_type: string
name: extract_symbolic_data
arguments: data_tag: D15
data_type: string
name: extract_symbolic_data
arguments: data_tag: D7
data_type: string

tool: D13: anonymous

tool: D15: Please specify your email address for authentication: 

tool: D7: %s

assistant: ```c
void parseURL(char *url, int size, char *host, char *user, char *password, char *path, int anon) {
  char *beg = url + 6;
  if (anon == 0) {
    char *end = strchr(beg, ':');
    int i = 0;
    while (beg != end) {
      user[i] = *beg;
      ++i;
      ++beg;
    }
    ++beg;
    user[i] = 0;
    end = strchr(beg, '@');
    i = 0;
    while (beg != end) {
      password[i] = *beg;
      ++i;
      ++beg;
    }
    ++beg;
    password[i] = 0;
  } else {
    strncpy(user, "anonymous", sizeof("anonymous"));
    printf("Please specify your email address for authentication: ");
    scanf("%s", password);
  }
  char *end = strchr(beg, '/');
  int i = 0;
  while (beg != end) {
    host[i] = *beg;
    ++i;
    ++beg;
  }
  ++beg;
  host[i] = 0;
  strcpy(path, beg);
}
```