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

```asm
<_bucket_sort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %esi,-0x6c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%r8
  mov    -0x68(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x58(%rbp)
  movl   $0x1,-0x54(%rbp)
  mov    -0x6c(%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
L54:
  cmp    %rdx,%rsp
  je     L3
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L54
L3:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L18
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L18:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x48(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L153
L30:
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x58(%rbp)
  jge    L168
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x58(%rbp)
L168:
  addl   $0x1,-0x5c(%rbp)
L153:
  mov    -0x5c(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L30
  jmp    L150
L40:
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L8
L140:
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltd
  idivl  -0x54(%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,-0x5c(%rbp)
L8:
  mov    -0x5c(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L140
  movl   $0x1,-0x5c(%rbp)
  jmp    L39
L78:
  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)
L39:
  cmpl   $0x9,-0x5c(%rbp)
  jle    L78
  mov    -0x6c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x5c(%rbp)
  jmp    L134
L34:
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltd
  idivl  -0x54(%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),%ecx
  movslq %edx,%rax
  mov    %ecx,-0x40(%rbp,%rax,4)
  movslq %edx,%rax
  mov    -0x40(%rbp,%rax,4),%edx
  mov    (%rsi),%ecx
  mov    -0x48(%rbp),%rax
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  subl   $0x1,-0x5c(%rbp)
L134:
  cmpl   $0x0,-0x5c(%rbp)
  jns    L34
  movl   $0x0,-0x5c(%rbp)
  jmp    L64
L121:
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x48(%rbp),%rax
  mov    -0x5c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x5c(%rbp)
L64:
  mov    -0x5c(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L121
  mov    -0x54(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0x54(%rbp)
L150:
  mov    -0x58(%rbp),%eax
  cltd
  idivl  -0x54(%rbp)
  test   %eax,%eax
  jg     L40
  mov    %r8,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L120
  call   <__stack_chk_fail@plt>
L120:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void _bucket_sort(int *vet, int s) {
  int i;
  int max = vet[0];
  int exp = 1;
  int sorted[s];
  for (i = 0; i < s; i++)
    if (vet[i] > max)
      max = vet[i];
  while (max / exp > 0) {
    int buckets[10] = {0};
    for (i = 0; i < s; i++)
      buckets[(vet[i] / exp) % 10]++;
    for (i = 1; i < 10; i++)
      buckets[i] += buckets[i - 1];
    for (i = s - 1; i >= 0; i--)
      sorted[--buckets[(vet[i] / exp) % 10]] = vet[i];
    for (i = 0; i < s; i++)
      vet[i] = sorted[i];
    exp *= 10;
  }
}
```