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

```asm
<unicodeToString>:
  endbr64
  push   %rbp
  lea    0x1(%rsi),%rax
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  xor    %edi,%edi
  sub    $0x8,%rsp
  cmp    $0x3ff,%rax
  setbe  %dil
  call   <assert@plt>
  test   %ebp,%ebp
  jle    L178
  mov    %ebp,%eax
  lea    D14(%rip),%r8
  lea    -0x1(%rbp),%edx
  movslq %ebp,%rsi
  lea    -0x1(%rbx,%rax,2),%rcx
  cmp    %r8,%rcx
  setbe  %cl
  add    %r8,%rax
  cmp    %rax,%rbx
  setae  %al
  or     %al,%cl
  je     L190
  cmp    $0xf,%edx
  jbe    L190
  mov    %edx,%ecx
  movdqa D21(%rip),%xmm2
  movdqa D7(%rip),%xmm3
  xor    %eax,%eax
  shr    $0x4,%ecx
  shl    $0x4,%rcx
  nopl   0x0(%rax)
L137:
  movdqu (%rbx,%rax,2),%xmm0
  movdqu 0x10(%rbx,%rax,2),%xmm1
  pand   %xmm2,%xmm0
  pand   %xmm2,%xmm1
  packuswb %xmm1,%xmm0
  pand   %xmm3,%xmm0
  movaps %xmm0,(%r8,%rax,1)
  add    $0x10,%rax
  cmp    %rcx,%rax
  jne    L137
  mov    %edx,%eax
  and    $0xfffffff0,%eax
  mov    %eax,%edx
  movslq %eax,%rdi
  lea    (%rbx,%rdx,2),%rdx
  movzbl (%rdx),%ecx
  and    $0x7f,%ecx
  mov    %cl,(%r8,%rdi,1)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x2(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0x2(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x4(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0x3(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x6(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0x4(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x8(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0x5(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0xa(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0x6(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0xc(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0x7(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0xe(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0x8(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x10(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0x9(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x12(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0xa(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x14(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0xb(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x16(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0xc(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x18(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0xd(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x1a(%rdx),%edi
  movslq %ecx,%rcx
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  lea    0xe(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L170
  movzbl 0x1c(%rdx),%edi
  movslq %ecx,%rcx
  add    $0xf,%eax
  and    $0x7f,%edi
  mov    %dil,(%r8,%rcx,1)
  cmp    %eax,%ebp
  jle    L170
  movzbl 0x1e(%rdx),%edx
  cltq
  and    $0x7f,%edx
  mov    %dl,(%r8,%rax,1)
L170:
  movb   $0x0,(%r8,%rsi,1)
  add    $0x8,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  ret
  xchg   %ax,%ax
L190:
  mov    %edx,%eax
  xor    %edx,%edx
  nopl   0x0(%rax)
L159:
  movzbl (%rbx,%rdx,2),%ecx
  and    $0x7f,%ecx
  mov    %cl,(%r8,%rdx,1)
  mov    %rdx,%rcx
  add    $0x1,%rdx
  cmp    %rax,%rcx
  jne    L159
  movb   $0x0,(%r8,%rsi,1)
  add    $0x8,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  ret
  xchg   %ax,%ax
L178:
  lea    D14(%rip),%r8
  xor    %esi,%esi
  movb   $0x0,(%r8,%rsi,1)
  add    $0x8,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D21
data_type: byte[16]
name: unpack_data
arguments: data_label: D7
data_type: byte[16]

tool: {"D21": [0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00]}

tool: {"D7": [0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f]}

assistant: ```c
char *unicodeToString(char *p, size_t len) {
  int i;
  static char buf[1024];
  assert(len + 1 < sizeof buf);
  for (i = 0; i < (signed int)len; ++i) {
    buf[i] = *p & 0x7f;
    p += 2;
  }
  buf[i] = '\0';
  return buf;
}
```