user: Please show me the C implementation that matches the assembly code listed below:

```asm
<llib_led_tw_dup_backslashes>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  test   %esi,%esi
  je     L260
  lea    -0x1(%rsi),%ebp
  mov    %rdi,%rbx
  mov    %esi,%edi
  cmp    $0xe,%ebp
  jbe    L109
  mov    %esi,%edx
  pxor   %xmm1,%xmm1
  pxor   %xmm5,%xmm5
  mov    %rbx,%rax
  shr    $0x4,%edx
  movdqa D4(%rip),%xmm7
  movdqa D12(%rip),%xmm6
  pxor   %xmm4,%xmm4
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rbx,%rdx,1),%rdx
  nopl   0x0(%rax,%rax,1)
L31:
  movdqu (%rax),%xmm0
  movdqa %xmm5,%xmm3
  add    $0x10,%rax
  pcmpeqb %xmm7,%xmm0
  pand   %xmm6,%xmm0
  pcmpgtb %xmm0,%xmm3
  movdqa %xmm0,%xmm2
  punpcklbw %xmm3,%xmm2
  punpckhbw %xmm3,%xmm0
  movdqa %xmm4,%xmm3
  pcmpgtw %xmm2,%xmm3
  movdqa %xmm2,%xmm8
  punpcklwd %xmm3,%xmm8
  punpckhwd %xmm3,%xmm2
  movdqa %xmm0,%xmm3
  paddd  %xmm8,%xmm1
  paddd  %xmm2,%xmm1
  movdqa %xmm4,%xmm2
  pcmpgtw %xmm0,%xmm2
  punpcklwd %xmm2,%xmm3
  punpckhwd %xmm2,%xmm0
  paddd  %xmm3,%xmm1
  paddd  %xmm0,%xmm1
  cmp    %rdx,%rax
  jne    L31
  movdqa %xmm1,%xmm0
  mov    %edi,%edx
  psrldq $0x8,%xmm0
  and    $0xfffffff0,%edx
  paddd  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm1
  movd   %xmm1,%eax
  test   $0xf,%dil
  je     L225
L174:
  movslq %edx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x1(%rdx),%ecx
  cmp    %edi,%ecx
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x2(%rdx),%ecx
  cmp    %edi,%ecx
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x3(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x4(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x5(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x6(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x7(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x8(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0x9(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0xa(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0xb(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0xc(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%eax
  lea    0xd(%rdx),%ecx
  cmp    %ecx,%edi
  je     L225
  movslq %ecx,%rcx
  cmpb   $0x5c,(%rbx,%rcx,1)
  sete   %cl
  add    $0xe,%edx
  movzbl %cl,%ecx
  add    %ecx,%eax
  cmp    %edx,%edi
  je     L225
  movslq %edx,%rdx
  cmpb   $0x5c,(%rbx,%rdx,1)
  sete   %dl
  movzbl %dl,%edx
  add    %edx,%eax
L225:
  add    %eax,%edi
  xor    %eax,%eax
  lea    0x1(%rbx,%rbp,1),%rbp
  call   <vsmk@plt>
  movslq %eax,%rdi
  jmp    L196
  nopl   0x0(%rax,%rax,1)
L181:
  movslq -0x4(%rdi),%rsi
  cmp    -0x8(%rdi),%esi
  je     L134
  movb   $0x0,0x1(%rdi,%rsi,1)
  movslq -0x4(%rdi),%rax
  movzbl (%rbx),%edx
  mov    %dl,(%rdi,%rax,1)
  mov    -0x4(%rdi),%eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rdi)
  cmpb   $0x5c,(%rbx)
  je     L178
L130:
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  je     L210
L196:
  test   %rdi,%rdi
  jne    L181
  movzbl (%rbx),%edx
  xor    %esi,%esi
L246:
  xor    %eax,%eax
  call   <_vsset@plt>
  cmpb   $0x5c,(%rbx)
  movslq %eax,%rdi
  jne    L130
  test   %eax,%eax
  jne    L171
  xor    %edi,%edi
L28:
  mov    %eax,%esi
  mov    $0x5c,%edx
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <_vsset@plt>
  movslq %eax,%rdi
  cmp    %rbx,%rbp
  jne    L196
L210:
  add    $0x8,%rsp
  mov    %rdi,%rax
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L134:
  movzbl (%rbx),%edx
  jmp    L246
  nopl   (%rax)
L171:
  mov    -0x4(%rdi),%eax
L178:
  cmp    %eax,-0x8(%rdi)
  je     L28
  movslq %eax,%rsi
  movb   $0x0,0x1(%rdi,%rsi,1)
  movslq -0x4(%rdi),%rax
  movb   $0x5c,(%rdi,%rax,1)
  addl   $0x1,-0x4(%rdi)
  jmp    L130
  cs nopw 0x0(%rax,%rax,1)
L260:
  xor    %edi,%edi
  xor    %eax,%eax
  call   <vsmk@plt>
  add    $0x8,%rsp
  movslq %eax,%rdi
  pop    %rbx
  pop    %rbp
  mov    %rdi,%rax
  ret
L109:
  xor    %eax,%eax
  xor    %edx,%edx
  jmp    L174
```

tool_calls: name: retrieve_data
arguments: label: D4
type_infered: byte[16]
name: retrieve_data
arguments: label: D12
type_infered: byte[16]

tool: {"D4": [0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c]}

tool: {"D12": [0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01]}

assistant: ```c
unsigned char *llib_led_tw_dup_backslashes(unsigned char *s, int len) {
  unsigned char *m;
  int x, count;
  for (x = count = 0; x != len; ++x) {
    if (s[x] == '\\')
      ++count;
  }
  m = vsmk(len + count);
  for (x = 0; x != len; ++x) {
    m = (!(m) || (*((int *)(m)-1)) == (*((int *)(m)-2)) ? _vsset((m), ((m) ? *((int *)(m)-1) : 0), (s[x])) : ((m)[(*((int *)(m)-1)) + 1] = 0, (m)[(*((int *)(m)-1))] = (s[x]), (*((int *)(m)-1)) = (*((int *)(m)-1)) + 1, (m)));
    if (s[x] == '\\')
      m = (!(m) || (*((int *)(m)-1)) == (*((int *)(m)-2)) ? _vsset((m), ((m) ? *((int *)(m)-1) : 0), ('\\')) : ((m)[(*((int *)(m)-1)) + 1] = 0, (m)[(*((int *)(m)-1))] = ('\\'), (*((int *)(m)-1)) = (*((int *)(m)-1)) + 1, (m)));
  }
  return m;
}
```