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

```asm
<radix_sort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  mov    %edx,%r15d
  push   %r14
  mov    %ecx,%r14d
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %esi,-0x6c(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %esi,%rax
  mov    %rax,-0x78(%rbp)
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L28
L25:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L25
L28:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L135
L89:
  xor    %esi,%esi
  lea    -0x60(%rbp),%rdi
  mov    $0x28,%edx
  mov    %rsp,%r12
  call   <memset@plt>
  mov    -0x6c(%rbp),%ebx
  xor    %esi,%esi
  mov    %r12,%rdi
  lea    0x0(,%rbx,4),%edx
  call   <memset@plt>
  cmp    %r14d,%r15d
  jl     L106
  test   %ebx,%ebx
  jle    L124
  mov    -0x6c(%rbp),%eax
  mov    %r13,%rbx
  sub    $0x1,%eax
  mov    %eax,-0x70(%rbp)
  lea    0x4(%r13,%rax,4),%rax
  mov    %rax,-0x68(%rbp)
  nopl   0x0(%rax,%rax,1)
L60:
  mov    (%rbx),%edi
  mov    %r14d,%edx
  mov    %r15d,%esi
  add    $0x4,%rbx
  call   <get_index@plt>
  cltq
  addl   $0x1,-0x60(%rbp,%rax,4)
  cmp    -0x68(%rbp),%rbx
  jne    L60
L88:
  lea    -0x5c(%rbp),%rax
  lea    -0x38(%rbp),%rcx
  cs nopw 0x0(%rax,%rax,1)
L105:
  mov    -0x4(%rax),%edx
  add    %edx,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rcx
  jne    L105
  mov    -0x70(%rbp),%eax
  test   %eax,%eax
  js     L138
  movslq %eax,%rbx
  nopl   0x0(%rax,%rax,1)
L55:
  mov    0x0(%r13,%rbx,4),%edi
  mov    %r14d,%edx
  mov    %r15d,%esi
  call   <get_index@plt>
  cltq
  mov    -0x60(%rbp,%rax,4),%ecx
  lea    -0x1(%rcx),%edx
  mov    %edx,-0x60(%rbp,%rax,4)
  mov    0x0(%r13,%rbx,4),%eax
  movslq %edx,%rdx
  sub    $0x1,%rbx
  mov    %eax,(%r12,%rdx,4)
  test   %ebx,%ebx
  jns    L55
L138:
  mov    -0x6c(%rbp),%eax
  test   %eax,%eax
  jle    L1
  mov    -0x78(%rbp),%rdx
  mov    %r12,%rsi
  mov    %r13,%rdi
  shl    $0x2,%rdx
  call   <memcpy@plt>
L1:
  mov    %r14d,%esi
  lea    D5(%rip),%rdi
  xor    %eax,%eax
  mov    %r13,%r12
  call   <printf@plt>
  lea    0x78(%r13),%rax
  lea    D7(%rip),%rbx
  mov    %rax,-0x68(%rbp)
  xchg   %ax,%ax
L30:
  mov    (%r12),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x4,%r12
  call   <printf@plt>
  cmp    %r12,-0x68(%rbp)
  jne    L30
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x6c(%rbp),%esi
  lea    0x1(%r14),%ecx
  mov    %r15d,%edx
  mov    %r13,%rdi
  call   <radix_sort>
L106:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L101
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L135:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L89
L124:
  mov    -0x6c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x70(%rbp)
  jmp    L88
L101:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D5
datatype: string
name: extract_symbolic_data
arguments: label: D7
datatype: string

tool: D5: the %d time


tool: D7: %d  

assistant: ```c
void radix_sort(int array[], int len, int dec, int order) {
  int i, j;
  int index;
  int tmp[len];
  int num[10];
  memset(num, 0, 10 * sizeof(int));
  memset(tmp, 0, len * sizeof(int));
  if (dec < order)
    return;
  for (i = 0; i < len; i++) {
    index = get_index(array[i], dec, order);
    num[index]++;
  }
  for (i = 1; i < 10; i++)
    num[i] += num[i - 1];
  for (i = len - 1; i >= 0; i--) {
    index = get_index(array[i], dec, order);
    j = --num[index];
    tmp[j] = array[i];
  }
  for (i = 0; i < len; i++)
    array[i] = tmp[i];
  printf("the %d time\n", order);
  for (i = 0; i < 30; i++)
    printf("%d  ", array[i]);
  printf("\n");
  radix_sort(array, len, dec, order + 1);
  return;
}
```