user: Translate the below assembly code into C programming language:

```asm
<threeSumClosestQSort>:
  endbr64
  push   %r15
  mov    %edx,%eax
  push   %r14
  sub    $0x1,%eax
  mov    %esi,%r14d
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %edx,0x58(%rsp)
  mov    %eax,0x54(%rsp)
L259:
  mov    0x58(%rsp),%edx
  mov    %r14d,%esi
  mov    %r12,%rdi
  lea    0x1(%r14),%r13d
  call   <threeSumClosestPartition@plt>
  mov    %eax,0x48(%rsp)
  cmp    %eax,%r13d
  jl     L27
L273:
  mov    0x48(%rsp),%eax
  cmp    %eax,0x54(%rsp)
  jle    L122
  add    $0x1,%eax
  mov    %eax,%r14d
  jmp    L259
  nopw   0x0(%rax,%rax,1)
L27:
  lea    -0x1(%rax),%ecx
  sub    $0x2,%eax
  mov    %ecx,0x4c(%rsp)
  mov    %eax,0x50(%rsp)
  mov    %r13d,%eax
  mov    %r14d,%r13d
  mov    %eax,%r14d
L196:
  mov    0x4c(%rsp),%edx
  mov    %r13d,%esi
  mov    %r12,%rdi
  call   <threeSumClosestPartition@plt>
  mov    %eax,0x3c(%rsp)
  cmp    %r14d,%eax
  jg     L161
L66:
  mov    0x3c(%rsp),%eax
  mov    0x50(%rsp),%ecx
  cmp    %ecx,%eax
  jge    L273
  lea    0x1(%rax),%r13d
  lea    0x2(%rax),%r14d
  jmp    L196
  nopl   (%rax)
L161:
  lea    -0x1(%rax),%ecx
  sub    $0x2,%eax
  mov    %ecx,0x40(%rsp)
  mov    %eax,0x44(%rsp)
  mov    %r14d,%eax
  mov    %r13d,%r14d
  mov    %eax,%r13d
L77:
  mov    0x40(%rsp),%edx
  mov    %r14d,%esi
  mov    %r12,%rdi
  call   <threeSumClosestPartition@plt>
  mov    %eax,0x30(%rsp)
  cmp    %r13d,%eax
  jg     L141
L294:
  mov    0x30(%rsp),%eax
  mov    0x44(%rsp),%ecx
  cmp    %ecx,%eax
  jge    L66
  lea    0x1(%rax),%r14d
  lea    0x2(%rax),%r13d
  jmp    L77
  nopl   (%rax)
L141:
  lea    -0x1(%rax),%ecx
  sub    $0x2,%eax
  mov    %ecx,0x34(%rsp)
  mov    %eax,0x38(%rsp)
  mov    %r13d,%eax
  mov    %r14d,%r13d
  mov    %eax,%r14d
L249:
  mov    0x34(%rsp),%edx
  mov    %r13d,%esi
  mov    %r12,%rdi
  call   <threeSumClosestPartition@plt>
  mov    %eax,0x20(%rsp)
  cmp    %r14d,%eax
  jg     L119
L104:
  mov    0x20(%rsp),%eax
  mov    0x38(%rsp),%ecx
  cmp    %ecx,%eax
  jge    L294
  lea    0x1(%rax),%r13d
  lea    0x2(%rax),%r14d
  jmp    L249
  nopl   (%rax)
L119:
  lea    -0x1(%rax),%ecx
  sub    $0x2,%eax
  mov    %r14d,%r15d
  mov    %ecx,0x28(%rsp)
  mov    %eax,0x2c(%rsp)
  mov    %r13d,%eax
  mov    %r12,%r13
  mov    %eax,%r12d
L199:
  mov    0x28(%rsp),%edx
  mov    %r12d,%esi
  mov    %r13,%rdi
  call   <threeSumClosestPartition@plt>
  mov    %eax,0x14(%rsp)
  cmp    %r15d,%eax
  jg     L50
  mov    0x14(%rsp),%eax
  mov    0x2c(%rsp),%ecx
  cmp    %ecx,%eax
  jge    L182
L190:
  lea    0x1(%rax),%r12d
  lea    0x2(%rax),%r15d
  jmp    L199
  nopl   0x0(%rax)
L50:
  lea    -0x1(%rax),%ecx
  sub    $0x2,%eax
  mov    %r13,%r14
  mov    %r12d,%ebp
  mov    %ecx,0x18(%rsp)
  mov    %eax,0x1c(%rsp)
L187:
  mov    0x18(%rsp),%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <threeSumClosestPartition@plt>
  mov    %eax,0x8(%rsp)
  cmp    %r15d,%eax
  jg     L221
L59:
  mov    0x8(%rsp),%eax
  mov    0x1c(%rsp),%ecx
  cmp    %ecx,%eax
  jge    L167
  lea    0x1(%rax),%ebp
  lea    0x2(%rax),%r15d
  jmp    L187
  nopl   0x0(%rax)
L221:
  lea    -0x1(%rax),%ecx
  sub    $0x2,%eax
  mov    %ebp,%r12d
  mov    %ecx,0xc(%rsp)
  mov    %eax,0x10(%rsp)
L302:
  mov    0xc(%rsp),%edx
  mov    %r12d,%esi
  mov    %r14,%rdi
  call   <threeSumClosestPartition@plt>
  mov    %eax,%ebx
  cmp    %r15d,%eax
  jg     L34
L251:
  cmp    0x10(%rsp),%ebx
  jge    L59
  lea    0x1(%rbx),%r12d
  lea    0x2(%rbx),%r15d
  jmp    L302
  nopw   0x0(%rax,%rax,1)
L34:
  lea    -0x1(%rax),%eax
  mov    %ebx,0x24(%rsp)
  mov    %eax,(%rsp)
  lea    -0x2(%rbx),%eax
  mov    %eax,0x4(%rsp)
L11:
  mov    (%rsp),%edx
  mov    %r12d,%esi
  mov    %r14,%rdi
  call   <threeSumClosestPartition@plt>
  mov    %eax,%ebx
  cmp    %r15d,%eax
  jg     L100
L165:
  cmp    0x4(%rsp),%ebx
  jge    L253
  lea    0x1(%rbx),%r12d
  lea    0x2(%rbx),%r15d
  jmp    L11
  cs nopw 0x0(%rax,%rax,1)
L100:
  lea    -0x1(%rax),%r13d
  lea    -0x2(%rax),%ebp
L169:
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r14,%rdi
  call   <threeSumClosestPartition@plt>
  cmp    %r15d,%eax
  jg     L44
L263:
  cmp    %ebp,%eax
  jge    L165
  lea    0x1(%rax),%r12d
  lea    0x2(%rax),%r15d
  jmp    L169
  nopl   0x0(%rax,%rax,1)
L253:
  mov    0x24(%rsp),%ebx
  jmp    L251
  nopl   0x0(%rax)
L167:
  mov    0x14(%rsp),%eax
  mov    0x2c(%rsp),%ecx
  mov    %r14,%r13
  cmp    %ecx,%eax
  jl     L190
L182:
  mov    %r13,%r12
  jmp    L104
L122:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L44:
  lea    -0x1(%rax),%edx
  mov    %r12d,%esi
  mov    %r14,%rdi
  mov    %eax,0x5c(%rsp)
  call   <threeSumClosestQSort>
  mov    0x5c(%rsp),%eax
  jmp    L263
```

assistant: ```c
void threeSumClosestQSort(int *nums, int start, int end) {
  int p = threeSumClosestPartition(nums, start, end);
  if (p > start + 1) {
    threeSumClosestQSort(nums, start, p - 1);
  }
  if (p < end - 1) {
    threeSumClosestQSort(nums, p + 1, end);
  }
}
```