user: Demonstrate the C code that generates the assembly output below:

```asm
<_bucket_sort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %esi,%ebx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    (%rdi),%r11d
  movslq %esi,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L89:
  cmp    %rdx,%rsp
  je     L157
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L89
L157:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L65
  orq    $0x0,-0x8(%rsp,%rax,1)
L65:
  mov    %rsp,%rsi
  test   %ebx,%ebx
  jle    L54
  mov    %rdi,%rax
  lea    -0x1(%rbx),%edx
  lea    0x4(%rdi,%rdx,4),%rcx
L55:
  mov    (%rax),%edx
  cmp    %edx,%r11d
  cmovl  %edx,%r11d
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L55
L54:
  test   %r11d,%r11d
  jle    L111
  lea    -0x1(%rbx),%r9d
  lea    0x4(%rdi,%r9,4),%r10
  mov    $0x1,%ecx
  lea    -0x38(%rbp),%r8
  lea    -0x1(%rbx),%r12d
  jmp    L1
L3:
  lea    (%rcx,%rcx,4),%ecx
  add    %ecx,%ecx
  mov    %r11d,%eax
  cltd
  idiv   %ecx
  test   %eax,%eax
  jle    L111
L1:
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  test   %ebx,%ebx
  jle    L63
  mov    %rdi,%r13
L113:
  mov    0x0(%r13),%eax
  cltd
  idiv   %ecx
  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
  addl   $0x1,-0x60(%rbp,%rdx,4)
  add    $0x4,%r13
  cmp    %r10,%r13
  jne    L113
L63:
  lea    -0x5c(%rbp),%rax
L144:
  mov    -0x4(%rax),%edx
  add    %edx,(%rax)
  add    $0x4,%rax
  cmp    %r8,%rax
  jne    L144
  test   %r12d,%r12d
  js     L24
  movslq %r12d,%r13
L140:
  mov    (%rdi,%r13,4),%r14d
  mov    %r14d,%eax
  cltd
  idiv   %ecx
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  mov    %eax,%r15d
  sar    $0x1f,%r15d
  sub    %r15d,%edx
  lea    (%rdx,%rdx,4),%r15d
  add    %r15d,%r15d
  sub    %r15d,%eax
  movslq %eax,%rdx
  mov    -0x60(%rbp,%rdx,4),%eax
  sub    $0x1,%eax
  mov    %eax,-0x60(%rbp,%rdx,4)
  cltq
  mov    %r14d,(%rsi,%rax,4)
  sub    $0x1,%r13
  test   %r13d,%r13d
  jns    L140
L24:
  test   %ebx,%ebx
  jle    L3
  mov    $0x0,%eax
L20:
  mov    (%rsi,%rax,4),%edx
  mov    %edx,(%rdi,%rax,4)
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %r9,%rdx
  jne    L20
  jmp    L3
L111:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L48:
  call   <__stack_chk_fail@plt>
```

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