user: Translate the below assembly code into C programming language:

```asm
<ircproto_parse_prefix>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  mov    $0x21,%esi
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %r9,%r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    0x60(%rsp),%eax
  mov    %edx,0x4(%rsp)
  mov    %r8d,0x18(%rsp)
  mov    %eax,0x1c(%rsp)
  call   <strchr@plt>
  mov    $0x40,%esi
  mov    %rbx,%rdi
  mov    %rax,%rbp
  call   <strchr@plt>
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <strlen@plt>
  mov    %eax,0x14(%rsp)
  test   %r15,%r15
  je     L4
  mov    %rbp,%r8
  mov    0x4(%rsp),%ecx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  sub    %rbx,%r8
  test   %rbp,%rbp
  cmove  %eax,%r8d
  sub    $0x1,%ecx
  mov    %ecx,0x8(%rsp)
  cmp    %r8d,%ecx
  mov    %r8d,%edx
  mov    %r8d,0x10(%rsp)
  cmovle %ecx,%edx
  mov    %edx,0x4(%rsp)
  call   <strncpy@plt>
  movslq 0x4(%rsp),%rdx
  mov    0x8(%rsp),%ecx
  mov    0x10(%rsp),%r8d
  movb   $0x0,(%r15,%rdx,1)
  cmp    %r8d,%ecx
  jl     L1
L4:
  test   %r14,%r14
  je     L98
  test   %rbp,%rbp
  je     L26
  mov    0x18(%rsp),%ecx
  lea    0x1(%rbp),%rsi
  mov    %r12,%r8
  mov    %r14,%rdi
  sub    %rsi,%r8
  sub    $0x1,%ecx
  mov    %r8d,%ebp
  mov    %r8,0x8(%rsp)
  cmp    %r8d,%ecx
  mov    %ecx,0x4(%rsp)
  cmovle %ecx,%ebp
  mov    %ebp,%edx
  movslq %ebp,%rbp
  call   <strncpy@plt>
  mov    0x4(%rsp),%ecx
  mov    0x8(%rsp),%r8
  movb   $0x0,(%r14,%rbp,1)
  cmp    %r8d,%ecx
  jl     L12
L98:
  test   %r13,%r13
  je     L107
  test   %r12,%r12
  je     L84
  movslq 0x14(%rsp),%r15
  lea    0x1(%r12),%rsi
  mov    0x1c(%rsp),%r12d
  mov    %r13,%rdi
  add    %r15,%rbx
  sub    $0x1,%r12d
  sub    %rsi,%rbx
  cmp    %ebx,%r12d
  mov    %ebx,%ebp
  cmovle %r12d,%ebp
  mov    %ebp,%edx
  movslq %ebp,%rbp
  call   <strncpy@plt>
  movb   $0x0,0x0(%r13,%rbp,1)
  cmp    %ebx,%r12d
  jl     L68
L107:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L26:
  movb   $0x0,(%r14)
  jmp    L98
  cs nopw 0x0(%rax,%rax,1)
L84:
  movb   $0x0,0x0(%r13)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L1:
  mov    %r15,%rsi
  lea    D11(%rip),%rdi
  call   <info@plt>
  jmp    L4
  nopl   0x0(%rax)
L12:
  mov    %r14,%rsi
  lea    D21(%rip),%rdi
  call   <info@plt>
  jmp    L98
  nopl   0x0(%rax)
L68:
  add    $0x28,%rsp
  mov    %r13,%rsi
  lea    D18(%rip),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <info@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D11
datatype: string
name: retrieve_data
arguments: data_tag: D21
datatype: string
name: retrieve_data
arguments: data_tag: D18
datatype: string

tool: D11: parse_prefix: %s: nick overflow

tool: D21: parse_prefix: %s: uname overflow

tool: D18: parse_prefix: %s: host overflow

assistant: ```c
void ircproto_parse_prefix(char *prefix, char *nick, int nicksz, char *user, int usersz, char *host, int hostsz) {
  char *bang, *at, *end, *uidx, *hidx;
  int nlen, ulen, hlen;
  int ncpy, ucpy, hcpy;
  bang = strchr(prefix, '!');
  at = strchr(prefix, '@');
  end = prefix + strlen(prefix);
  if (nick) {
    nlen = bang ? bang - prefix : end - prefix;
    ncpy = ((nlen) < (nicksz - 1) ? (nlen) : (nicksz - 1));
    strncpy(nick, prefix, ncpy);
    nick[ncpy] = '\0';
    if (ncpy != nlen)
      info("parse_prefix: %s: nick overflow", nick);
  }
  if (user) {
    if (bang) {
      uidx = bang + 1;
      ulen = at - uidx;
      ucpy = ((ulen) < (usersz - 1) ? (ulen) : (usersz - 1));
      strncpy(user, uidx, ucpy);
      user[ucpy] = '\0';
      if (ucpy != ulen)
        info("parse_prefix: %s: uname overflow", user);
    } else
      user[0] = '\0';
  }
  if (host) {
    if (at) {
      hidx = at + 1;
      hlen = end - hidx;
      hcpy = ((hlen) < (hostsz - 1) ? (hlen) : (hostsz - 1));
      strncpy(host, hidx, hcpy);
      host[hcpy] = '\0';
      if (hcpy != hlen)
        info("parse_prefix: %s: host overflow", host);
    } else
      host[0] = '\0';
  }
}
```