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

```asm
<_quick>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %esi,0x38(%rsp)
  cmp    %edi,%esi
  jbe    L213
  mov    %edi,%r13d
L311:
  mov    0x38(%rsp),%esi
  mov    %r13d,%edi
  call   <_rearr@plt>
  mov    %eax,0x34(%rsp)
  test   %eax,%eax
  jne    L274
L140:
  mov    0x34(%rsp),%r13d
  add    $0x1,%r13d
  cmp    0x38(%rsp),%r13d
  jb     L311
L213:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L274:
  sub    $0x1,%eax
  mov    %eax,0x30(%rsp)
  cmp    %r13d,%eax
  jbe    L140
  mov    %r13d,%r12d
L196:
  mov    0x30(%rsp),%esi
  mov    %r12d,%edi
  call   <_rearr@plt>
  mov    %eax,0x2c(%rsp)
  test   %eax,%eax
  jne    L7
L284:
  mov    0x2c(%rsp),%r12d
  add    $0x1,%r12d
  cmp    %r12d,0x30(%rsp)
  ja     L196
  jmp    L140
  nopl   (%rax)
L7:
  sub    $0x1,%eax
  mov    %eax,0x28(%rsp)
  cmp    %r12d,%eax
  jbe    L284
  mov    %r12d,%r13d
L108:
  mov    0x28(%rsp),%esi
  mov    %r13d,%edi
  call   <_rearr@plt>
  mov    %eax,0x24(%rsp)
  test   %eax,%eax
  jne    L253
L343:
  mov    0x24(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x28(%rsp)
  ja     L108
  jmp    L284
  nopl   (%rax)
L253:
  sub    $0x1,%eax
  mov    %eax,0x20(%rsp)
  cmp    %r13d,%eax
  jbe    L343
  mov    %r13d,%r12d
L200:
  mov    0x20(%rsp),%esi
  mov    %r12d,%edi
  call   <_rearr@plt>
  mov    %eax,0x1c(%rsp)
  test   %eax,%eax
  jne    L329
L152:
  mov    0x1c(%rsp),%r12d
  add    $0x1,%r12d
  cmp    %r12d,0x20(%rsp)
  ja     L200
  jmp    L343
  nopl   (%rax)
L329:
  sub    $0x1,%eax
  mov    %eax,0x18(%rsp)
  cmp    %r12d,%eax
  jbe    L152
  mov    %r12d,%r13d
L100:
  mov    0x18(%rsp),%esi
  mov    %r13d,%edi
  call   <_rearr@plt>
  mov    %eax,0x14(%rsp)
  test   %eax,%eax
  jne    L260
L166:
  mov    0x14(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x18(%rsp)
  ja     L100
  jmp    L152
  nopl   (%rax)
L260:
  sub    $0x1,%eax
  mov    %eax,0x10(%rsp)
  cmp    %r13d,%eax
  jbe    L166
L209:
  mov    0x10(%rsp),%esi
  mov    %r13d,%edi
  call   <_rearr@plt>
  mov    %eax,0xc(%rsp)
  test   %eax,%eax
  jne    L334
L4:
  mov    0xc(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x10(%rsp)
  ja     L209
  jmp    L166
  nopw   0x0(%rax,%rax,1)
L334:
  lea    -0x1(%rax),%r14d
  cmp    %r13d,%r14d
  jbe    L4
  mov    %r14d,%ebx
  mov    %r13d,%edi
  mov    %ebx,%esi
  call   <_rearr@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jne    L57
  nopl   0x0(%rax)
L59:
  lea    0x1(%rbp),%r13d
  cmp    %r13d,%ebx
  jbe    L4
  mov    %ebx,%esi
  mov    %r13d,%edi
  call   <_rearr@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  je     L59
L57:
  lea    -0x1(%rax),%r12d
  cmp    %r13d,%r12d
  jbe    L59
  mov    %ebx,%r14d
L219:
  mov    %r12d,%esi
  mov    %r13d,%edi
  call   <_rearr@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  jne    L228
L297:
  lea    0x1(%r15),%r13d
  cmp    %r13d,%r12d
  ja     L219
  mov    %r14d,%ebx
  jmp    L59
  nopl   (%rax)
L228:
  lea    -0x1(%rax),%ebx
  cmp    %r13d,%ebx
  jbe    L297
  mov    %ebx,%esi
  mov    %r13d,%edi
  call   <_rearr@plt>
  test   %eax,%eax
  jne    L146
  cs nopw 0x0(%rax,%rax,1)
L185:
  lea    0x1(%rax),%r13d
  cmp    %r13d,%ebx
  jbe    L297
  mov    %ebx,%esi
  mov    %r13d,%edi
  call   <_rearr@plt>
  test   %eax,%eax
  je     L185
L146:
  lea    -0x1(%rax),%esi
  mov    %r13d,%edi
  mov    %eax,0x3c(%rsp)
  call   <_quick>
  mov    0x3c(%rsp),%eax
  jmp    L185
```

assistant: ```c
void _quick(unsigned lb, unsigned ub) {
  unsigned j;
  if (lb < ub) {
    if (j = _rearr(lb, ub))
      _quick(lb, j - 1);
    _quick(j + 1, ub);
  }
}
```