user: 请将以下的汇编代码转换成C语言代码:

```asm
<ClientCleanName>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L90
L129:
  addq   $0x1,-0x18(%rbp)
L90:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L129
  jmp    L84
L168:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L59
  cmpl   $0x2,-0x4(%rbp)
  jg     L22
  addl   $0x1,-0x4(%rbp)
  jmp    L58
L59:
  cmpl   $0x0,-0xc(%rbp)
  jle    L87
  mov    -0xc(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5e,%al
  jne    L87
  mov    -0xc(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  test   %rax,%rax
  je     L206
  mov    -0xc(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5e,%al
  jne    L206
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L206
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  je     L206
  subl   $0x1,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  and    $0x1f,%eax
  test   %eax,%eax
  jne    L166
  subl   $0x1,-0xc(%rbp)
  jmp    L179
L206:
  movl   $0x0,-0x4(%rbp)
  addl   $0x1,-0x8(%rbp)
  jmp    L58
L166:
  jmp    L58
L87:
  movl   $0x0,-0x4(%rbp)
  addl   $0x1,-0x8(%rbp)
L58:
  addl   $0x1,-0xc(%rbp)
  jmp    L179
L22:
  nop
L179:
  addq   $0x1,-0x18(%rbp)
L84:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L144
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xc(%rbp)
  jl     L168
L144:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L53
  cmpl   $0x0,-0x8(%rbp)
  jne    L64
L53:
  mov    -0x24(%rbp),%edx
  mov    -0x20(%rbp),%rax
  lea    D6(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <Q_strncpyz@plt>
L64:
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D6
data_type: string

tool: D6: UnnamedPlayer

assistant: ```c
void ClientCleanName(const char *in, char *out, int outSize) {
  int outpos = 0, colorlessLen = 0, spaces = 0;
  for (; *in == ' '; in++)
    ;
  for (; *in && outpos < outSize - 1; in++) {
    out[outpos] = *in;
    if (*in == ' ') {
      if (spaces > 2)
        continue;
      spaces++;
    } else if (outpos > 0 && out[outpos - 1] == '^') {
      if (((&out[outpos - 1]) && *(&out[outpos - 1]) == '^' && *((&out[outpos - 1]) + 1) && isalnum(*((&out[outpos - 1]) + 1)))) {
        colorlessLen--;
        if ((((*in) - '0') & 31) == 0) {
          outpos--;
          continue;
        }
      } else {
        spaces = 0;
        colorlessLen++;
      }
    } else {
      spaces = 0;
      colorlessLen++;
    }
    outpos++;
  }
  out[outpos] = '\0';
  if (*out == '\0' || colorlessLen == 0)
    Q_strncpyz(out, "UnnamedPlayer", outSize);
}
```