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

```asm
<FindMedian>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L23
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%ecx
  mov    -0x18(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <PivotChoose2@plt>
  mov    %eax,-0x4(%rbp)
  jmp    L20
L54:
  addl   $0x1,-0xc(%rbp)
L20:
  mov    -0xc(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L57
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L54
  jmp    L57
L28:
  subl   $0x1,-0x8(%rbp)
L57:
  mov    -0x8(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jle    L53
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jg     L28
L53:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Swap@plt>
  mov    -0xc(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L20
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Swap@plt>
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Swap@plt>
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  sub    $0x1,%eax
  cmp    %eax,-0x4(%rbp)
  jne    L95
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L23
L95:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x4(%rbp)
  jl     L35
  mov    -0x4(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %edx,%ecx
  mov    %edi,%edx
  mov    %rax,%rdi
  call   <FindMedian>
  jmp    L23
L35:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  sub    $0x1,%eax
  cmp    %eax,-0x4(%rbp)
  jge    L23
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    -0x24(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <FindMedian>
L23:
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D1
data_type: string
name: extract_symbolic_data
arguments: data_tag: D29
data_type: string
name: extract_symbolic_data
arguments: data_tag: D9
data_type: string

tool: D1: 


tool: D29: Medyan: %d 


tool: D9: Medyan adresi: %d


assistant: ```c
void FindMedian(int dizi[], int l, int r, int elemanSayisi) {
  int pivotAddress;
  int i = l;
  int j = r;
  if (l < r) {
    pivotAddress = PivotChoose2(dizi, l, r);
    do {
      while ((i < r) && (dizi[i] <= dizi[pivotAddress]))
        i++;
      while ((j > l) && (dizi[j] > dizi[pivotAddress]))
        j--;
      Swap(&dizi[i], &dizi[j]);
    } while (i < j);
    Swap(&dizi[i], &dizi[j]);
    Swap(&dizi[pivotAddress], &dizi[j]);
    pivotAddress = j;
    if (pivotAddress == elemanSayisi / 2 - 1) {
      printf("\n\n");
      printf("Medyan: %d \n", dizi[pivotAddress]);
      printf("Medyan adresi: %d\n", pivotAddress);
    } else if (pivotAddress > elemanSayisi / 2 - 1) {
      FindMedian(dizi, l, pivotAddress - 1, elemanSayisi);
    } else if (pivotAddress < elemanSayisi / 2 - 1) {
      FindMedian(dizi, pivotAddress + 1, r, elemanSayisi);
    }
  }
}
```