user: Please show me the C implementation that matches the assembly code listed below:

```asm
<bucketSort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  sub    $0x70,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %esi,-0x7c(%rbp)
  mov    %fs:0x28,%rcx
  mov    %rcx,-0x18(%rbp)
  xor    %ecx,%ecx
  mov    %rsp,%rcx
  mov    %rcx,%r10
  cmpl   $0x1,-0x7c(%rbp)
  jg     L165
  mov    %r10,%rsp
  jmp    L146
L165:
  mov    -0x7c(%rbp),%ecx
  movslq %ecx,%rsi
  sub    $0x1,%rsi
  mov    %rsi,-0x50(%rbp)
  movslq %ecx,%rsi
  mov    %rsi,%r12
  mov    $0x0,%r13d
  movslq %ecx,%rsi
  shl    $0x2,%rsi
  movslq %ecx,%rdi
  mov    %rdi,%rax
  mov    $0x0,%edx
  imul   $0x140,%rdx,%r11
  imul   $0x0,%rax,%rdi
  add    %r11,%rdi
  mov    $0x140,%r11d
  mul    %r11
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  movslq %ecx,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  imul   $0x140,%r9,%rdx
  imul   $0x0,%r8,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    $0x140,%eax
  mul    %r8
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L44:
  cmp    %rdx,%rsp
  je     L61
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L44
L61:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L1
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L1:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  mov    -0x78(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x68(%rbp)
  movl   $0xa,-0x54(%rbp)
  movl   $0x1,-0x58(%rbp)
  movl   $0x1,-0x64(%rbp)
  jmp    L171
L47:
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x68(%rbp)
  jge    L106
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x68(%rbp)
L106:
  addl   $0x1,-0x64(%rbp)
L171:
  mov    -0x64(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L47
  jmp    L169
L150:
  movl   $0x0,-0x64(%rbp)
  jmp    L95
L14:
  mov    -0x64(%rbp),%eax
  cltq
  movl   $0x0,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x64(%rbp)
L95:
  mov    -0x64(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L14
  movl   $0x0,-0x64(%rbp)
  jmp    L135
L93:
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltd
  idivl  -0x58(%rbp)
  cltd
  idivl  -0x54(%rbp)
  mov    %edx,-0x5c(%rbp)
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    %rsi,%rdi
  shr    $0x2,%rdi
  mov    -0x5c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%ecx
  mov    (%rdx),%edx
  mov    -0x48(%rbp),%rax
  movslq %ecx,%r8
  mov    -0x5c(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rdi,%rcx
  add    %r8,%rcx
  mov    %edx,(%rax,%rcx,4)
  mov    -0x5c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  lea    0x1(%rax),%edx
  mov    -0x5c(%rbp),%eax
  cltq
  mov    %edx,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x64(%rbp)
L135:
  mov    -0x64(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L93
  movl   $0x0,-0x5c(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L60
L121:
  movl   $0x0,-0x60(%rbp)
  jmp    L33
L123:
  mov    %rsi,%rdi
  shr    $0x2,%rdi
  mov    -0x5c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x5c(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x48(%rbp),%rax
  mov    -0x60(%rbp),%ecx
  movslq %ecx,%r8
  mov    -0x64(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rdi,%rcx
  add    %r8,%rcx
  mov    (%rax,%rcx,4),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x60(%rbp)
L33:
  mov    -0x64(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  cmp    %eax,-0x60(%rbp)
  jl     L123
  addl   $0x1,-0x64(%rbp)
L60:
  mov    -0x64(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L121
  mov    -0x58(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0x58(%rbp)
L169:
  mov    -0x58(%rbp),%eax
  cmp    -0x68(%rbp),%eax
  jl     L150
  mov    %r10,%rsp
L146:
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L152
  call   <__stack_chk_fail@plt>
L152:
  lea    -0x10(%rbp),%rsp
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

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;
  }
}
```