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

```asm
<parseURL>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdx,%r12
  mov    %rcx,%r15
  mov    %r8,%r14
  mov    %r9,0x8(%rsp)
  lea    0x6(%rdi),%rbx
  cmpl   $0x0,0x50(%rsp)
  jne    L73
  mov    %rdi,%r13
  mov    $0x3a,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  mov    %rax,%rbp
  cmp    %rax,%rbx
  je     L60
  mov    %rax,%rcx
  sub    %r13,%rbp
  lea    -0x6(%rbp),%rbp
  mov    $0x0,%eax
L45:
  movzbl 0x6(%r13,%rax,1),%edx
  mov    %dl,(%r15,%rax,1)
  add    $0x1,%rax
  cmp    %rbp,%rax
  jne    L45
  mov    %rcx,%rax
  sub    %r13,%rax
  sub    $0x6,%eax
  add    %rbx,%rbp
L14:
  lea    0x1(%rbp),%r13
  cltq
  movb   $0x0,(%r15,%rax,1)
  mov    $0x40,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  mov    %rax,%rbx
  cmp    %rax,%r13
  je     L49
  mov    %rax,%rsi
  mov    %rbp,%rcx
  sub    $0x1,%rbx
  sub    %rbp,%rbx
  mov    $0x0,%eax
L5:
  movzbl 0x1(%rbp,%rax,1),%edx
  mov    %dl,(%r14,%rax,1)
  add    $0x1,%rax
  cmp    %rbx,%rax
  jne    L5
  mov    %ecx,%eax
  not    %eax
  lea    (%rax,%rsi,1),%eax
  mov    %eax,0x50(%rsp)
  add    %r13,%rbx
L49:
  add    $0x1,%rbx
  movslq 0x50(%rsp),%rax
  movb   $0x0,(%r14,%rax,1)
L52:
  mov    $0x2f,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  cmp    %rax,%rbx
  je     L32
  mov    %rbx,%rsi
  mov    %rax,%rdi
  sub    %rbx,%rdi
  mov    $0x0,%edx
L47:
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%r12,%rdx,1)
  add    $0x1,%rdx
  cmp    %rdi,%rdx
  jne    L47
  mov    %eax,%edx
  sub    %esi,%edx
L83:
  movslq %edx,%rdx
  movb   $0x0,(%r12,%rdx,1)
  lea    0x1(%rax),%rsi
  mov    0x8(%rsp),%rdi
  call   <strcpy@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L60:
  mov    0x50(%rsp),%eax
  jmp    L14
L73:
  mov    $0xa,%edx
  lea    D26(%rip),%rsi
  mov    %rcx,%rdi
  call   <strncpy@plt>
  lea    D29(%rip),%rdi
  call   <printf@plt>
  mov    %r14,%rsi
  lea    D15(%rip),%rdi
  call   <scanf@plt>
  jmp    L52
L32:
  mov    $0x0,%edx
  jmp    L83
```

tool_calls: name: unpack_data
arguments: data_tag: D26
type_guessed: string
name: unpack_data
arguments: data_tag: D29
type_guessed: string
name: unpack_data
arguments: data_tag: D15
type_guessed: string

tool: D26: anonymous

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

tool: D15: %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);
}
```