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

```asm
<radixSort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%r10
  mov    %esi,-0x74(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %esi,%eax
  cltq
  lea    0x0(,%rax,4),%r11
  add    %r11,%rax
  lea    0xf(,%rax,8),%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffffff0,%rax
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rcx
  sub    %rdx,%rcx
L2:
  cmp    %rcx,%rsp
  je     L45
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L2
L45:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L59
  orq    $0x0,-0x8(%rsp,%rdx,1)
L59:
  mov    %rsp,%rbx
  mov    (%r10),%eax
  mov    -0x74(%rbp),%ecx
  test   %ecx,%ecx
  jle    L39
  mov    %r10,%rdx
  lea    -0x1(%rcx),%ecx
  lea    0x4(%r10,%rcx,4),%rsi
L169:
  mov    (%rdx),%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  add    $0x4,%rdx
  cmp    %rsi,%rdx
  jne    L169
L39:
  test   %eax,%eax
  jle    L120
  mov    $0x0,%ecx
L125:
  mov    %ecx,-0x6c(%rbp)
  add    $0x1,%ecx
  mov    %eax,%esi
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  sar    $0x1f,%eax
  mov    %eax,%edi
  mov    %edx,%eax
  sub    %edi,%eax
  cmp    $0x9,%esi
  jg     L125
  test   %ecx,%ecx
  jle    L120
  mov    %r11,%r13
  shr    $0x2,%r13
  mov    -0x74(%rbp),%eax
  lea    -0x1(%rax),%eax
  lea    0x4(%r10,%rax,4),%r12
  movl   $0x0,-0x70(%rbp)
  mov    $0x1,%r8d
  lea    -0x38(%rbp),%r9
  jmp    L111
L91:
  mov    %r14d,%esi
  movslq %r15d,%rax
  lea    (%r10,%rax,4),%rcx
  mov    $0x0,%eax
  mov    %rdi,-0x68(%rbp)
L181:
  mov    (%rdx,%rax,4),%edi
  mov    %edi,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L181
  mov    -0x68(%rbp),%rdi
  add    %r14d,%r15d
L13:
  add    $0x4,%rdi
  add    %r11,%rdx
  cmp    %r9,%rdi
  je     L21
L170:
  mov    (%rdi),%r14d
  test   %r14d,%r14d
  jg     L91
  jmp    L13
L21:
  lea    (%r8,%r8,4),%r8d
  add    %r8d,%r8d
  mov    -0x70(%rbp),%esi
  lea    0x1(%rsi),%eax
  cmp    %esi,-0x6c(%rbp)
  jle    L120
  mov    %eax,-0x70(%rbp)
L111:
  lea    -0x60(%rbp),%rdi
  mov    %rdi,%rax
L131:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %r9,%rax
  jne    L131
  cmpl   $0x0,-0x74(%rbp)
  jle    L156
  mov    %r10,%rcx
L74:
  mov    (%rcx),%esi
  mov    %esi,%eax
  cltd
  idiv   %r8d
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%r14d
  sar    $0x1f,%r14d
  sub    %r14d,%edx
  lea    (%rdx,%rdx,4),%r14d
  add    %r14d,%r14d
  sub    %r14d,%eax
  movslq %eax,%rdx
  mov    -0x60(%rbp,%rdx,4),%eax
  lea    0x1(%rax),%r14d
  mov    %r14d,-0x60(%rbp,%rdx,4)
  cltq
  imul   %r13,%rdx
  add    %rdx,%rax
  mov    %esi,(%rbx,%rax,4)
  add    $0x4,%rcx
  cmp    %r12,%rcx
  jne    L74
L156:
  mov    %rbx,%rdx
  mov    $0x0,%r15d
  jmp    L170
L120:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L60:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void radixSort(int A[], int n) {
  int bucket[10][n], app[10];
  int maxn = A[0];
  int i;
  for (i = 0; i < n; i++)
    if (A[i] > maxn)
      maxn = A[i];
  int sizen = 0;
  while (maxn > 0) {
    sizen++;
    maxn = maxn / 10;
  }
  int div = 1;
  int count;
  for (count = 0; count < sizen; count++) {
    for (i = 0; i < 10; i++)
      app[i] = 0;
    for (i = 0; i < n; i++) {
      int digit = (A[i] / div) % 10;
      bucket[digit][app[digit]++] = A[i];
    }
    i = 0;
    int j, k;
    for (k = 0; k < 10; k++)
      for (j = 0; j < app[k]; j++)
        A[i++] = bucket[k][j];
    div *= 10;
  }
}
```