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

```asm
<utils_reverse_hex>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  movslq %esi,%r12
  push   %rbx
  mov    %r12,%r14
  mov    %rdi,%rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  lea    0xf(%r12),%rax
  mov    %rsp,%rcx
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L106
L130:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L130
L106:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L39
L132:
  mov    %r14d,%edx
  mov    %rbx,%rsi
  mov    %rsp,%rdi
  mov    %rsp,%r13
  call   <strncpy@plt>
  test   %r14d,%r14d
  jle    L10
  lea    -0x1(%r14),%eax
  mov    %eax,%esi
  shr    %esi
  lea    0x1(%rsi),%edi
  cmp    $0xd,%eax
  jbe    L6
  mov    %edi,%edx
  lea    -0x2(%rsp,%r12,1),%rax
  mov    %rbx,%rcx
  shr    $0x3,%edx
  mov    %rax,%r8
  sub    $0x1,%edx
  shl    $0x4,%rdx
  sub    %rdx,%r8
  sub    $0x10,%r8
  nopl   0x0(%rax,%rax,1)
L88:
  movzwl (%rax),%edx
  sub    $0x10,%rax
  add    $0x10,%rcx
  movd   %edx,%xmm0
  movzwl 0xc(%rax),%edx
  pinsrw $0x1,0xe(%rax),%xmm0
  movd   %edx,%xmm3
  movzwl 0x8(%rax),%edx
  pinsrw $0x1,0xa(%rax),%xmm3
  movd   %edx,%xmm1
  movzwl 0x4(%rax),%edx
  pinsrw $0x1,0x6(%rax),%xmm1
  punpckldq %xmm3,%xmm0
  movd   %edx,%xmm2
  pinsrw $0x1,0x2(%rax),%xmm2
  punpckldq %xmm2,%xmm1
  punpcklqdq %xmm1,%xmm0
  movups %xmm0,-0x10(%rcx)
  cmp    %r8,%rax
  jne    L88
  mov    %edi,%eax
  and    $0xfffffff8,%eax
  lea    (%rax,%rax,1),%edx
  cmp    %eax,%edi
  je     L10
L31:
  sub    %eax,%esi
  lea    0x1(%rsi),%ecx
  cmp    $0x2,%esi
  jbe    L82
  neg    %rax
  add    %r13,%r12
  mov    %rbx,%rsi
  add    %rax,%rax
  movq   -0x8(%rax,%r12,1),%xmm0
  sub    %rax,%rsi
  mov    %ecx,%eax
  and    $0xfffffffc,%eax
  pshuflw $0x1b,%xmm0,%xmm0
  lea    (%rdx,%rax,2),%edx
  movq   %xmm0,(%rsi)
  cmp    %eax,%ecx
  je     L10
L82:
  mov    %r14d,%eax
  movslq %edx,%rsi
  sub    %edx,%eax
  lea    -0x2(%rax),%ecx
  sub    $0x1,%eax
  cltq
  movslq %ecx,%rcx
  movzbl 0x0(%r13,%rax,1),%eax
  movzbl 0x0(%r13,%rcx,1),%ecx
  mov    %al,0x1(%rbx,%rsi,1)
  lea    0x2(%rdx),%eax
  mov    %cl,(%rbx,%rsi,1)
  cmp    %eax,%r14d
  jle    L10
  mov    %r14d,%ecx
  add    $0x4,%edx
  sub    %eax,%ecx
  cltq
  lea    -0x2(%rcx),%esi
  sub    $0x1,%ecx
  movslq %esi,%rsi
  movslq %ecx,%rcx
  movzbl 0x0(%r13,%rsi,1),%esi
  movzbl 0x0(%r13,%rcx,1),%ecx
  mov    %sil,(%rbx,%rax,1)
  mov    %cl,0x1(%rbx,%rax,1)
  cmp    %r14d,%edx
  jge    L10
  sub    %edx,%r14d
  movslq %edx,%rdx
  lea    -0x2(%r14),%eax
  sub    $0x1,%r14d
  cltq
  movslq %r14d,%r14
  movzbl 0x0(%r13,%rax,1),%eax
  mov    %al,(%rbx,%rdx,1)
  movzbl 0x0(%r13,%r14,1),%eax
  mov    %al,0x1(%rbx,%rdx,1)
L10:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
  nopl   0x0(%rax)
L39:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L132
L6:
  xor    %eax,%eax
  xor    %edx,%edx
  jmp    L31
L42:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void utils_reverse_hex(char *h, int len) {
  char copy[len];
  strncpy(copy, h, len);
  int i;
  for (i = 0; i < len; i += 2) {
    h[i] = copy[len - i - 2];
    h[i + 1] = copy[len - i - 1];
  }
}
```