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

```asm
<evolution>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  lea    D50(%rip),%rax
  mov    %rax,%rsi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x20,%edx
  mov    $0x1,%esi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L96
L43:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  comisd %xmm1,%xmm0
  jbe    L33
  subl   $0x1,-0x10(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  cvttsd2si %xmm0,%rax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%ecx
  mov    -0xc(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    D53(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0x14(%rbp)
  jmp    L96
L33:
  addl   $0x1,-0x10(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  cvttsd2si %xmm0,%rax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%ecx
  mov    -0xc(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    D53(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0x18(%rbp)
L96:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L28
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jne    L28
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L28
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L18
L28:
  mov    -0xc(%rbp),%eax
  test   %rax,%rax
  js     L40
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L73
L40:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L73:
  comisd -0x38(%rbp),%xmm0
  jae    L43
L18:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x5,%edx
  mov    $0x1,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D50
datatype: string
name: retrieve_data
arguments: tag: D11
datatype: string
name: retrieve_data
arguments: tag: D56
datatype: string
name: retrieve_data
arguments: tag: D53
datatype: string
name: retrieve_data
arguments: tag: D7
datatype: string

tool: D50: w

tool: D11: output/evolValue.m

tool: D56: function [x] = evolValue()
x = [

tool: D53:  %f %d;

tool: D7: ]
end

assistant: ```c
void evolution(double *Arrivee, double *Depart, double D) {
  int a = 0, d = 0;
  int currentClientNumber = 0;
  unsigned int currentTime = 0;
  FILE *evolFile = fopen("output/evolValue.m", "w");
  fprintf(evolFile, "function [x] = evolValue()\nx = [");
  while ((Arrivee[a] != 0.0 || Depart[d] != 0.0) && currentTime >= D) {
    if (Arrivee[a] > Depart[d]) {
      currentClientNumber--;
      currentTime = Depart[d];
      fprintf(evolFile, " %f %d;", currentTime, currentClientNumber);
      d++;
    } else {
      currentClientNumber++;
      currentTime = Arrivee[a];
      fprintf(evolFile, " %f %d;", currentTime, currentClientNumber);
      a++;
    }
  }
  fprintf(evolFile, "]\nend");
}
```