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

```asm
<radix_sort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1e8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1d8(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jle    L25
  lea    -0x1(%rsi),%r12d
  mov    %rdi,%r14
  mov    %esi,%ebp
  cmp    $0x2,%r12d
  jbe    L92
  mov    %esi,%edx
  mov    %rdi,%rax
  pxor   %xmm2,%xmm2
  shr    $0x2,%edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rdi,%rdx,1),%rdx
  nopl   0x0(%rax,%rax,1)
L117:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rdx,%rax
  jne    L117
  movdqa %xmm2,%xmm1
  mov    %ebp,%eax
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%eax
  movdqa %xmm1,%xmm0
  pcmpgtd %xmm2,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,0x4(%rsp)
  test   $0x3,%bpl
  je     L18
L115:
  movslq %eax,%rdx
  mov    0x4(%rsp),%ebx
  lea    0x0(,%rdx,4),%rcx
  mov    (%r14,%rdx,4),%edx
  cmp    %edx,%ebx
  cmovge %ebx,%edx
  mov    %edx,0x4(%rsp)
  mov    %edx,%ebx
  lea    0x1(%rax),%edx
  cmp    %edx,%ebp
  jle    L18
  mov    0x4(%r14,%rcx,1),%edx
  cmp    %edx,%ebx
  cmovge %ebx,%edx
  add    $0x2,%eax
  mov    %edx,0x4(%rsp)
  cmp    %eax,%ebp
  jle    L18
  mov    0x8(%r14,%rcx,1),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,0x4(%rsp)
L18:
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  je     L25
  mov    %r12d,%eax
  mov    %ebp,%r13d
  mov    $0x1,%r12d
  lea    0x4(%r14,%rax,4),%rbx
  mov    %rax,0x8(%rsp)
  mov    %r14,%rax
  shl    $0x2,%r13
  mov    %r12d,%r14d
  lea    0x40(%rsp),%r15
  mov    %rax,%r12
  nopl   0x0(%rax)
L42:
  movq   $0x0,0x30(%rsp)
  pxor   %xmm0,%xmm0
  mov    %r12,%rsi
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  nopw   0x0(%rax,%rax,1)
L96:
  mov    (%rsi),%eax
  add    $0x4,%rsi
  cltd
  idiv   %r14d
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x22,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%eax
  movslq %eax,%rdx
  addl   $0x1,0x10(%rsp,%rdx,4)
  cmp    %rsi,%rbx
  jne    L96
  mov    0x18(%rsp),%eax
  mov    0x1c(%rsp),%r9d
  mov    0x10(%rsp),%edi
  add    0x14(%rsp),%edi
  add    %edi,%eax
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%r10d
  movd   %edi,%xmm7
  add    %eax,%r9d
  mov    0x28(%rsp),%edx
  mov    0x2c(%rsp),%r11d
  movd   %eax,%xmm2
  add    %r9d,%esi
  movdqu 0x24(%rsp),%xmm5
  movd   %r9d,%xmm6
  add    %esi,%r10d
  movd   %esi,%xmm0
  punpckldq %xmm6,%xmm2
  mov    0x8(%rsp),%rsi
  add    %r10d,%edx
  movd   %r10d,%xmm4
  add    %edx,%r11d
  movd   %edx,%xmm1
  punpckldq %xmm4,%xmm0
  movd   %r11d,%xmm3
  punpckldq %xmm3,%xmm1
  movdqu 0x14(%rsp),%xmm3
  punpcklqdq %xmm1,%xmm0
  movd   0x10(%rsp),%xmm1
  paddd  %xmm5,%xmm0
  movups %xmm0,0x24(%rsp)
  pshufd $0xff,%xmm0,%xmm0
  punpckldq %xmm7,%xmm1
  movd   %xmm0,%eax
  add    %eax,0x34(%rsp)
  punpcklqdq %xmm2,%xmm1
  paddd  %xmm3,%xmm1
  movups %xmm1,0x14(%rsp)
  nopl   0x0(%rax)
L41:
  mov    (%r12,%rsi,4),%ecx
  sub    $0x1,%rsi
  mov    %ecx,%eax
  cltd
  idiv   %r14d
  movslq %eax,%rdx
  mov    %eax,%edi
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%edi
  sar    $0x22,%rdx
  sub    %edi,%edx
  lea    (%rdx,%rdx,4),%edi
  add    %edi,%edi
  sub    %edi,%eax
  movslq %eax,%rdx
  mov    0x10(%rsp,%rdx,4),%eax
  sub    $0x1,%eax
  mov    %eax,0x10(%rsp,%rdx,4)
  cltq
  mov    %ecx,0x40(%rsp,%rax,4)
  test   %esi,%esi
  jns    L41
  mov    %r13,%rdx
  mov    %r15,%rsi
  lea    (%r14,%r14,4),%r14d
  mov    %r12,%rdi
  call   <memcpy@plt>
  lea    D3(%rip),%rdi
  add    %r14d,%r14d
  call   <printf@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <print@plt>
  mov    0x4(%rsp),%eax
  cltd
  idiv   %r14d
  test   %eax,%eax
  jne    L42
L25:
  mov    0x1d8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L44
  add    $0x1e8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L92:
  movl   $0x0,0x4(%rsp)
  xor    %eax,%eax
  jmp    L115
L44:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D3
type_infered: string

tool: D3: 

PASS   : 

assistant: ```c
void radix_sort(int *a, int n) {
  int i, b[100], m = 0, exp = 1;
  for (i = 0; i < n; i++) {
    if (a[i] > m)
      m = a[i];
  }
  while (m / exp > 0) {
    int box[10] = {0};
    for (i = 0; i < n; i++)
      box[a[i] / exp % 10]++;
    for (i = 1; i < 10; i++)
      box[i] += box[i - 1];
    for (i = n - 1; i >= 0; i--)
      b[--box[a[i] / exp % 10]] = a[i];
    for (i = 0; i < n; i++)
      a[i] = b[i];
    exp *= 10;
    printf("\n\nPASS   : ");
    print(a, n);
  }
}
```