user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<cleanse_netbios_name>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,-0x2c(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L27
L34:
  mov    -0xc(%rbp),%edx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0xc(%rbp)
L27:
  cmpl   $0xf,-0xc(%rbp)
  jbe    L34
  mov    -0x8(%rbp),%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  cmpl   $0x0,-0x8(%rbp)
  je     L23
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isprint@plt>
  test   %eax,%eax
  jne    L23
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x4(%rbp)
  subl   $0x1,-0x8(%rbp)
  jmp    L32
L30:
  subl   $0x1,-0x8(%rbp)
L32:
  cmpl   $0x0,-0x8(%rbp)
  je     L2
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L30
L2:
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x3c,(%rax)
  mov    -0x4(%rbp),%eax
  shr    $0x4,%eax
  and    $0xf,%eax
  mov    %eax,%ecx
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    %ecx,%ecx
  lea    D16(%rip),%rax
  movzbl (%rcx,%rax,1),%eax
  mov    %al,(%rdx)
  mov    -0x4(%rbp),%eax
  and    $0xf,%eax
  mov    %eax,%ecx
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    %ecx,%ecx
  lea    D16(%rip),%rax
  movzbl (%rcx,%rax,1),%eax
  mov    %al,(%rdx)
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x8(%rbp)
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x3e,(%rax)
L23:
  mov    -0x8(%rbp),%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D16
data_type: string

tool: D16: 0123456789ABCDEF

assistant: ```c
void cleanse_netbios_name(struct NetFrame *frame, const char *name, char *netbios_name, unsigned sizeof_netbios_name) {
  unsigned j;
  unsigned k;
  frame;
  sizeof_netbios_name;
  k = 0;
  for (j = 0; j < 16; j++) {
    netbios_name[k++] = name[j];
  }
  netbios_name[k] = '\0';
  if (k && !isprint(netbios_name[k - 1])) {
    unsigned code = netbios_name[k - 1];
    k--;
    while (k && isspace(netbios_name[k - 1]))
      k--;
    netbios_name[k++] = '<';
    netbios_name[k++] = "0123456789ABCDEF"[(code >> 4) & 0x0f];
    netbios_name[k++] = "0123456789ABCDEF"[(code >> 0) & 0x0f];
    netbios_name[k++] = '>';
  }
  netbios_name[k] = '\0';
}
```