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

```asm
<bucketSort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %esi,-0x7c(%rbp)
  mov    %edx,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%r8
  mov    -0x7c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x50(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%rcx
  mov    $0x0,%ebx
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L139:
  cmp    %rdx,%rsp
  je     L100
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L139
L100:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L132
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L132:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x48(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L52
L45:
  mov    -0x64(%rbp),%eax
  cltq
  movl   $0x0,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x64(%rbp)
L52:
  cmpl   $0x9,-0x64(%rbp)
  jle    L45
  movl   $0x0,-0x60(%rbp)
  jmp    L131
L120:
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltd
  idivl  -0x80(%rbp)
  mov    %eax,%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  mov    -0x40(%rbp,%rax,4),%eax
  lea    0x1(%rax),%ecx
  movslq %edx,%rax
  mov    %ecx,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x60(%rbp)
L131:
  mov    -0x60(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L120
  movl   $0x1,-0x5c(%rbp)
  jmp    L93
L80:
  mov    -0x5c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%edx
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  add    %eax,%edx
  mov    -0x5c(%rbp),%eax
  cltq
  mov    %edx,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x5c(%rbp)
L93:
  cmpl   $0x9,-0x5c(%rbp)
  jle    L80
  mov    -0x7c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x58(%rbp)
  jmp    L96
L107:
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltd
  idivl  -0x80(%rbp)
  mov    %eax,%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%edi
  sar    $0x1f,%edi
  sub    %edi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  mov    -0x40(%rbp,%rax,4),%eax
  lea    -0x1(%rax),%edx
  mov    (%rsi),%ecx
  mov    -0x48(%rbp),%rax
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltd
  idivl  -0x80(%rbp)
  mov    %eax,%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  movslq %edx,%rax
  mov    -0x40(%rbp,%rax,4),%eax
  lea    -0x1(%rax),%ecx
  movslq %edx,%rax
  mov    %ecx,-0x40(%rbp,%rax,4)
  subl   $0x1,-0x58(%rbp)
L96:
  cmpl   $0x0,-0x58(%rbp)
  jns    L107
  movl   $0x0,-0x54(%rbp)
  jmp    L127
L44:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x48(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x54(%rbp)
L127:
  mov    -0x54(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L44
  mov    %r8,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L94
  call   <__stack_chk_fail@plt>
L94:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void bucketSort(int a[], int size, int ex) {
  int count[10];
  int output[size];
  for (int i = 0; i < 10; i++) {
    count[i] = 0;
  }
  for (int i = 0; i < size; i++) {
    count[(a[i] / ex) % 10]++;
  }
  for (int i = 1; i < 10; i++) {
    count[i] = count[i] + count[i - 1];
  }
  for (int i = size - 1; i >= 0; i--) {
    output[count[(a[i] / ex) % 10] - 1] = a[i];
    count[(a[i] / ex) % 10]--;
  }
  for (int i = 0; i < size; i++) {
    a[i] = output[i];
  }
}
```