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

```asm
<bucketSort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,-0x80(%rbp)
  cmp    $0x1,%esi
  jle    L89
  mov    %rdi,%r11
  movslq %esi,%rbx
  lea    (%rbx,%rbx,4),%rax
  lea    0xf(,%rax,8),%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffffff0,%rax
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rcx
  sub    %rdx,%rcx
L157:
  cmp    %rcx,%rsp
  je     L85
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L157
L89:
  mov    -0x80(%rbp),%rsp
  jmp    L165
L85:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L124
  orq    $0x0,-0x8(%rsp,%rdx,1)
L124:
  mov    %rsp,%r10
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  mov    (%r11),%r13d
  lea    0x4(%r11),%rax
  lea    -0x2(%rsi),%edx
  lea    0x8(%r11,%rdx,4),%rcx
L15:
  mov    (%rax),%edx
  cmp    %edx,%r13d
  cmovl  %edx,%r13d
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L15
  cmp    $0x1,%r13d
  jle    L137
  lea    -0x60(%rbp),%rcx
  lea    -0x1(%rsi),%eax
  shl    $0x2,%rax
  lea    -0x5c(%rbp,%rax,1),%r9
  lea    0x4(%r11,%rax,1),%r12
  lea    0x0(,%rbx,4),%rax
  mov    %rax,-0x70(%rbp)
  mov    $0x1,%r8d
  mov    %r13d,-0x74(%rbp)
  mov    %rcx,%r13
  jmp    L6
L103:
  mov    %r14d,%esi
  movslq %r15d,%rax
  lea    (%r11,%rax,4),%rcx
  mov    $0x0,%eax
  mov    %rdi,-0x68(%rbp)
L86:
  mov    (%rdx,%rax,4),%edi
  mov    %edi,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L86
  mov    -0x68(%rbp),%rdi
  add    %r14d,%r15d
L92:
  add    $0x4,%rdi
  add    -0x70(%rbp),%rdx
  cmp    %r9,%rdi
  je     L149
L158:
  mov    (%rdi),%r14d
  test   %r14d,%r14d
  jg     L103
  jmp    L92
L149:
  lea    (%r8,%r8,4),%eax
  add    %eax,%eax
  mov    %eax,%r8d
  cmp    %eax,-0x74(%rbp)
  jle    L137
L6:
  mov    %r13,%rax
L76:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %r9,%rax
  jne    L76
  mov    %r11,%rcx
L141:
  mov    (%rcx),%esi
  mov    %esi,%eax
  cltd
  idiv   %r8d
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%edi
  sar    $0x1f,%edi
  sub    %edi,%edx
  lea    (%rdx,%rdx,4),%edi
  add    %edi,%edi
  sub    %edi,%eax
  movslq %eax,%rdx
  mov    -0x60(%rbp,%rdx,4),%eax
  movslq %eax,%rdi
  mov    %rdx,%r14
  imul   %rbx,%r14
  add    %r14,%rdi
  mov    %esi,(%r10,%rdi,4)
  add    $0x1,%eax
  mov    %eax,-0x60(%rbp,%rdx,4)
  add    $0x4,%rcx
  cmp    %r12,%rcx
  jne    L141
  mov    %r10,%rdx
  mov    %r13,%rdi
  mov    $0x0,%r15d
  jmp    L158
L137:
  mov    -0x80(%rbp),%rsp
L165:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L55
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L55:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void bucketSort(int toSort[], int arrLen) {
  if (arrLen <= 1)
    return;
  int bucket[10][arrLen];
  int indexes[10] = {0};
  int max = toSort[0];
  int i, j, row;
  int modBy = 10;
  int divBy = 1;
  for (i = 1; i < arrLen; i++)
    if (toSort[i] > max) {
      max = toSort[i];
    }
  while (divBy < max) {
    for (i = 0; i < arrLen; i++) {
      indexes[i] = 0;
    }
    for (i = 0; i < arrLen; i++) {
      row = (toSort[i] / divBy) % modBy;
      bucket[row][indexes[row]] = toSort[i];
      ++indexes[row];
    }
    row = 0;
    for (i = 0; i < arrLen; i++) {
      for (j = 0; j < indexes[i]; j++)
        toSort[row++] = bucket[i][j];
    }
    divBy *= 10;
  }
}
```