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

```asm
<translate>:
  endbr64
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %rsi,%rbx
  lea    D1(%rip),%rsi
  sub    $0x8,%rsp
  call   <strcpy@plt>
  test   %ebp,%ebp
  je     L50
  lea    0x1(%rbx),%rcx
  mov    %r12,%rdx
  lea    -0x1(%rbp),%eax
  sub    %rcx,%rdx
  cmp    $0xe,%rdx
  jbe    L59
  cmp    $0x6,%eax
  jbe    L59
  cmp    $0xe,%eax
  jbe    L217
  mov    %ebp,%edx
  xor    %eax,%eax
  shr    $0x4,%edx
  shl    $0x4,%rdx
  nopl   0x0(%rax)
L0:
  movdqu (%rbx,%rax,1),%xmm0
  movups %xmm0,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L0
  mov    %ebp,%edx
  and    $0xfffffff0,%edx
  mov    %edx,%eax
  cmp    %edx,%ebp
  je     L50
  mov    %ebp,%ecx
  sub    %edx,%ecx
  lea    -0x1(%rcx),%esi
  cmp    $0x6,%esi
  jbe    L234
L93:
  mov    (%rbx,%rdx,1),%rsi
  mov    %rsi,(%r12,%rdx,1)
  mov    %ecx,%edx
  and    $0xfffffff8,%edx
  add    %edx,%eax
  cmp    %edx,%ecx
  je     L50
L234:
  movslq %eax,%rdx
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%r12,%rdx,1)
  lea    0x1(%rax),%edx
  cmp    %ebp,%edx
  jae    L50
  movslq %edx,%rdx
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%r12,%rdx,1)
  lea    0x2(%rax),%edx
  cmp    %ebp,%edx
  jae    L50
  movslq %edx,%rdx
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%r12,%rdx,1)
  lea    0x3(%rax),%edx
  cmp    %edx,%ebp
  jbe    L50
  movslq %edx,%rdx
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%r12,%rdx,1)
  lea    0x4(%rax),%edx
  cmp    %edx,%ebp
  jbe    L50
  movslq %edx,%rdx
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%r12,%rdx,1)
  lea    0x5(%rax),%edx
  cmp    %edx,%ebp
  jbe    L50
  movslq %edx,%rdx
  add    $0x6,%eax
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%r12,%rdx,1)
  cmp    %eax,%ebp
  jbe    L50
  cltq
  movzbl (%rbx,%rax,1),%edx
  mov    %dl,(%r12,%rax,1)
L50:
  xor    %ecx,%ecx
  mov    %ebp,%edi
  jmp    L10
  nopl   (%rax)
L13:
  add    $0xff,%eax
  cmp    %ecx,%eax
  jne    L129
L274:
  add    $0x1,%rcx
  cmp    $0x100,%rcx
  je     L82
L10:
  movsbl 0x0(%r13,%rcx,1),%eax
  mov    %ecx,%esi
  cmp    %ecx,%eax
  je     L274
  test   %al,%al
  jle    L13
L129:
  xor    %eax,%eax
  test   %ebp,%ebp
  jne    L99
  jmp    L274
  cs nopw 0x0(%rax,%rax,1)
L80:
  add    $0x100,%edx
  cmp    %esi,%edx
  je     L121
L270:
  add    $0x1,%rax
  cmp    %rdi,%rax
  je     L274
L99:
  movsbl (%rbx,%rax,1),%edx
  cmp    %esi,%edx
  jne    L80
L121:
  movzbl 0x0(%r13,%rcx,1),%edx
  mov    %dl,(%r12,%rax,1)
  jmp    L270
L82:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L59:
  mov    %ebp,%ecx
  xor    %eax,%eax
L132:
  movzbl (%rbx,%rax,1),%edx
  mov    %dl,(%r12,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L132
  jmp    L50
L217:
  mov    %ebp,%ecx
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L93
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D1
type_infered: string

tool: 

assistant: ```c
char *translate(char *dst, const char *target, const unsigned int size, const char *table) {
  char hxtostrTemp[8192];
  char output[8192];
  char *ret = dst;
  strcpy(ret, "");
  char temp[3];
  int i, j;
  for (i = 0; i < size; i++) {
    ret[i] = target[i];
  }
  for (i = 0; i < 256; i++) {
    if ((int)(table[i]) != i && ((int)(table[i]) > 0 || (255 + (int)(table[i])) != i)) {
      for (j = 0; j < size; j++) {
        if ((int)target[j] == i || (256 + (int)target[j]) == i) {
          ret[j] = table[i];
        }
      }
    }
  }
  return ret;
}
```