user: What is the c source code of the assembly code below:

```asm
<partition>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L131
L15:
  movl   $0x0,-0xc(%rbp)
  jmp    L137
L72:
  addl   $0x1,-0x14(%rbp)
L137:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x8(%rbp)
  jle    L52
  mov    -0x14(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L72
  jmp    L52
L119:
  subl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jge    L52
  movl   $0x1,-0xc(%rbp)
  jmp    L34
L52:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x8(%rbp)
  jge    L34
  mov    -0x10(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jg     L119
L34:
  cmpl   $0x0,-0xc(%rbp)
  jne    L107
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L107
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
L107:
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L77
L131:
  mov    -0x14(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jle    L15
  jmp    L62
L77:
  nop
L62:
  mov    -0x2c(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  je     L117
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
L117:
  mov    -0x10(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int partition(int *a, int l, int r) {
  int piviot, i, j, temp, flag = 0;
  piviot = *(a + l);
  i = l + 1;
  j = r;
  while (i <= j) {
    flag = 0;
    while (*(a + i) < piviot && i < r) {
      i++;
    }
    while (*(a + j) > piviot && j > l) {
      j--;
      if (j < i) {
        flag = 1;
        break;
      }
    }
    if (flag == 0 && j != i) {
      temp = *(a + i);
      *(a + i) = *(a + j);
      *(a + j) = temp;
    }
    if (j == i)
      break;
  }
  if (l != j) {
    temp = *(a + l);
    *(a + l) = *(a + j);
    *(a + j) = temp;
  }
  return j;
}
```