user: 请将以下的汇编代码转换成C语言代码:

```asm
<radixsort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,%r15
  mov    %rdi,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  mov    %edx,%ebx
  sub    %esi,%ebx
  lea    0x1(%rbx),%eax
  mov    %eax,0x1c(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  mov    $0x50,%edi
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  mov    %ebx,%ebx
  lea    0x4(%r15,%rbx,4),%rax
  mov    %rax,0x28(%rsp)
  movl   $0x1,0x4(%rsp)
  lea    0x78(%rsp),%r15
  jmp    L164
L90:
  mov    0x20(%rsp),%rax
  jmp    L135
L93:
  mov    %r9,%rdi
  mov    %r8d,%ecx
  shl    $0x2,%rcx
  movslq %r10d,%rax
  lea    (%r11,%rax,4),%rsi
  mov    $0x0,%eax
L54:
  mov    (%rdi),%rdx
  mov    (%rdx,%rax,1),%edx
  mov    %edx,(%rsi,%rax,1)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L54
  add    %r8d,%r10d
L151:
  add    $0x4,%rbp
  add    $0x8,%r9
  cmp    %r15,%rbp
  je     L102
L69:
  mov    0x0(%rbp),%r8d
  test   %r8d,%r8d
  jg     L93
  jmp    L151
L102:
  mov    0x8(%rsp),%rax
  lea    0x50(%rax),%rbx
L46:
  mov    (%r14),%rdi
  call   <free@plt>
  add    $0x8,%r14
  cmp    %rbx,%r14
  jne    L46
  addl   $0x1,0x4(%rsp)
  mov    0x4(%rsp),%eax
  cmp    $0x11,%eax
  je     L117
L164:
  mov    0x4(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x18(%rsp)
  lea    0x50(%rsp),%rbp
  mov    %rbp,%rax
L112:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %r15,%rax
  jne    L112
  cmpl   $0x0,0x1c(%rsp)
  jle    L36
  mov    0x10(%rsp),%r12
  mov    %rbp,0x20(%rsp)
  mov    0x28(%rsp),%r13
  mov    0x4(%rsp),%ebp
  mov    0x18(%rsp),%r14d
L115:
  mov    (%r12),%ebx
  mov    %ebp,%esi
  mov    $0xa,%edi
  call   <power@plt>
  mov    %eax,%esi
  mov    %ebx,%eax
  cltd
  idiv   %esi
  mov    %edx,%ebx
  mov    %r14d,%esi
  mov    $0xa,%edi
  call   <power@plt>
  mov    %eax,%ecx
  mov    %ebx,%eax
  cltd
  idiv   %ecx
  cltq
  addl   $0x1,0x50(%rsp,%rax,4)
  add    $0x4,%r12
  cmp    %r13,%r12
  jne    L115
  mov    0x20(%rsp),%rbp
L36:
  mov    0x8(%rsp),%r12
  mov    %r12,%r14
  mov    %rbp,%rbx
L50:
  mov    (%rbx),%eax
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  mov    %rax,(%r12)
  add    $0x4,%rbx
  add    $0x8,%r12
  cmp    %r15,%rbx
  jne    L50
  lea    0x80(%rsp),%r12
  lea    0xa8(%rsp),%rdx
  mov    %rdx,0x20(%rsp)
  mov    %r12,%rax
L122:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L122
  cmpl   $0x0,0x1c(%rsp)
  jle    L90
  mov    0x10(%rsp),%r13
  mov    %rbp,0x30(%rsp)
  mov    0x8(%rsp),%rbp
  mov    %r14,0x38(%rsp)
  mov    %r12,0x40(%rsp)
  mov    0x28(%rsp),%r12
  mov    %r15,0x48(%rsp)
  mov    0x4(%rsp),%r15d
  mov    0x18(%rsp),%r14d
L126:
  mov    0x0(%r13),%ebx
  mov    %r15d,%esi
  mov    $0xa,%edi
  call   <power@plt>
  mov    %eax,%esi
  mov    %ebx,%eax
  cltd
  idiv   %esi
  mov    %edx,%ebx
  mov    %r14d,%esi
  mov    $0xa,%edi
  call   <power@plt>
  mov    %eax,%ecx
  mov    %ebx,%eax
  cltd
  idiv   %ecx
  cltq
  mov    0x0(%rbp,%rax,8),%rcx
  mov    0x80(%rsp,%rax,4),%edx
  lea    0x1(%rdx),%esi
  mov    %esi,0x80(%rsp,%rax,4)
  mov    0x0(%r13),%eax
  movslq %edx,%rdx
  mov    %eax,(%rcx,%rdx,4)
  add    $0x4,%r13
  cmp    %r12,%r13
  jne    L126
  mov    0x30(%rsp),%rbp
  mov    0x38(%rsp),%r14
  mov    0x40(%rsp),%r12
  mov    0x20(%rsp),%rax
  mov    0x48(%rsp),%r15
L135:
  movl   $0x0,(%r12)
  add    $0x4,%r12
  cmp    %rax,%r12
  jne    L135
  mov    0x8(%rsp),%r9
  mov    $0x0,%r10d
  mov    0x10(%rsp),%r11
  jmp    L69
L117:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L136
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L136:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void radixsort(int *l, int left, int right) {
  int i, j, k, d;
  int n = right - left + 1;
  int sizes[10] = {0};
  int counts[10];
  int **bucket;
  bucket = (int **)malloc(10 * sizeof(int *));
  for (k = 0; k < 16; k++) {
    for (d = 0; d < 10; d++) {
      sizes[d] = 0;
    }
    for (i = 0; i < n; i++) {
      d = (l[i] % power(10, k + 1)) / power(10, k);
      sizes[d]++;
    }
    for (d = 0; d < 10; d++) {
      bucket[d] = (int *)malloc(sizes[d] * sizeof(int));
    }
    for (j = 0; j < 10; j++)
      counts[j] = 0;
    for (i = 0; i < n; i++) {
      d = (l[i] % power(10, k + 1)) / power(10, k);
      bucket[d][counts[d]++] = l[i];
    }
    for (j = 0; j < 10; j++)
      counts[j] = 0;
    i = 0;
    for (d = 0; d < 10; d++) {
      for (j = 0; j < sizes[d]; j++) {
        l[i++] = bucket[d][j];
      }
    }
    for (d = 0; d < 10; d++) {
      free(bucket[d]);
    }
  }
}
```