user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<FindMedian>:
  endbr64
  cmp    %edx,%esi
  jge    L15
  push   %r15
  mov    %ecx,%eax
  mov    %rdi,%r15
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  push   %rbp
  mov    %edx,%ebp
  mov    %ecx,%edx
  push   %rbx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  sub    $0x28,%rsp
  mov    %eax,0x1c(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x18(%rsp)
  nopl   0x0(%rax,%rax,1)
L109:
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %r15,%rdi
  mov    %ebp,%r13d
  call   <PivotChoose2@plt>
  mov    %r14d,%ecx
  cltq
  lea    (%r15,%rax,4),%rax
  mov    %rax,0x8(%rsp)
  movslq %r14d,%rax
  mov    %rax,0x10(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L135:
  mov    0x10(%rsp),%rax
  lea    (%r15,%rax,4),%r12
  cmp    %ebp,%ecx
  jge    L161
L145:
  mov    0x8(%rsp),%rax
  mov    (%rax),%eax
  cmp    %eax,(%r12)
  jg     L161
  add    $0x1,%ecx
  movslq %ecx,%rax
  mov    %rax,0x10(%rsp)
  mov    0x10(%rsp),%rax
  lea    (%r15,%rax,4),%r12
  cmp    %ebp,%ecx
  jl     L145
  nopw   0x0(%rax,%rax,1)
L161:
  cmp    %r14d,%r13d
  jle    L12
  mov    0x8(%rsp),%rax
  movslq %r13d,%rsi
  lea    (%r15,%rsi,4),%rbx
  mov    (%rax),%eax
  jmp    L91
  nopl   (%rax)
L81:
  sub    $0x1,%r13d
  sub    $0x4,%rbx
  cmp    %r14d,%r13d
  je     L12
L91:
  cmp    %eax,(%rbx)
  jg     L81
L113:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  mov    %ecx,0x4(%rsp)
  call   <Swap@plt>
  mov    0x4(%rsp),%ecx
  cmp    %r13d,%ecx
  jge    L21
  cmp    %ebp,%ecx
  jl     L135
  mov    0x10(%rsp),%rax
  lea    (%r15,%rax,4),%r12
  jmp    L99
  nopl   0x0(%rax,%rax,1)
L12:
  movslq %r13d,%rax
  lea    (%r15,%rax,4),%rbx
  jmp    L113
  nopl   0x0(%rax)
L21:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <Swap@plt>
  mov    0x8(%rsp),%rdi
  mov    %rbx,%rsi
  call   <Swap@plt>
  cmp    %r13d,0x18(%rsp)
  je     L166
  cmp    %r13d,0x1c(%rsp)
  jg     L13
  lea    -0x1(%r13),%ebp
L72:
  cmp    %r14d,%ebp
  jg     L109
L40:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L13:
  cmp    %r13d,0x18(%rsp)
  jle    L40
  lea    0x1(%r13),%r14d
  jmp    L72
L166:
  lea    D13(%rip),%rdi
  call   <puts@plt>
  mov    (%rbx),%esi
  lea    D7(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  lea    D24(%rip),%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <printf@plt>
L15:
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D13
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D7
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D24
type_infered: string

tool: D13: 


tool: D7: Medyan: %d 


tool: D24: 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);
    }
  }
}
```