user: 请将以下的汇编代码转换成C语言代码:

```asm
<evolve1D>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x3c(%rbp)
  mov    %r8d,-0x40(%rbp)
  movsd  %xmm0,-0x48(%rbp)
  movsd  %xmm1,-0x50(%rbp)
  mov    %r9d,-0x54(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L146
L15:
  movl   $0x0,-0x18(%rbp)
  jmp    L165
L198:
  cmpl   $0x0,0x10(%rbp)
  je     L337
  mov    -0x18(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L261
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L121
L261:
  mov    -0x18(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  D31(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L337
  movsd  D31(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jne    L337
L121:
  movl   $0x0,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%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    $0x1,%esi
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <rand_double@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  -0x50(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L17
  addl   $0x1,-0x14(%rbp)
L17:
  cmpl   $0x0,-0x18(%rbp)
  jle    L328
  mov    $0x1,%esi
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <rand_double@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  -0x48(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L328
  addl   $0x1,-0x14(%rbp)
L328:
  mov    -0x18(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jge    L7
  mov    $0x1,%esi
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <rand_double@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  -0x48(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L7
  addl   $0x1,-0x14(%rbp)
L7:
  mov    -0x14(%rbp),%eax
  cltd
  idivl  -0x54(%rbp)
  mov    %eax,%ecx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %ecx,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L186
L28:
  mov    $0x1,%esi
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <rand_double@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movsd  D31(%rip),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  -0x50(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L173
  addl   $0x1,-0x14(%rbp)
L173:
  cmpl   $0x0,-0x18(%rbp)
  jle    L189
  mov    $0x1,%esi
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <rand_double@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movsd  D31(%rip),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  -0x48(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L189
  addl   $0x1,-0x14(%rbp)
L189:
  mov    -0x18(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jge    L137
  mov    $0x1,%esi
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <rand_double@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movsd  D31(%rip),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  -0x48(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L137
  addl   $0x1,-0x14(%rbp)
L137:
  mov    -0x54(%rbp),%eax
  sub    -0x14(%rbp),%eax
  cltd
  idivl  -0x54(%rbp)
  mov    %eax,%ecx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %ecx,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L186
L337:
  cmpl   $0x0,-0x18(%rbp)
  jne    L109
  movsd  D31(%rip),%xmm0
  subsd  -0x48(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x50(%rbp),%xmm1
  mov    -0x18(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x50(%rbp),%xmm0
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L186
L109:
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x18(%rbp)
  jne    L293
  movsd  D31(%rip),%xmm0
  subsd  -0x48(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x50(%rbp),%xmm1
  mov    -0x18(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x50(%rbp),%xmm0
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L186
L293:
  movsd  D31(%rip),%xmm0
  subsd  -0x48(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x50(%rbp),%xmm1
  mov    -0x18(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x48(%rbp),%xmm2
  movsd  D105(%rip),%xmm0
  mulsd  %xmm0,%xmm2
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x50(%rbp),%xmm0
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L186:
  addl   $0x1,-0x18(%rbp)
L165:
  mov    -0x18(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L198
  movl   $0x0,-0x18(%rbp)
  jmp    L278
L27:
  cmpl   $0x0,0x10(%rbp)
  je     L217
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L80
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  D31(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L80
L217:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  D31(%rip),%xmm0
  subsd  -0x8(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
  mov    -0x54(%rbp),%eax
  add    %eax,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x8(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  mov    $0x2,%eax
  call   <rand_normal@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  movsd  D31(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L70
  movsd  D31(%rip),%xmm0
  movsd  %xmm0,-0x10(%rbp)
L70:
  pxor   %xmm0,%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L135
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
L135:
  mov    -0x18(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,(%rax)
L80:
  addl   $0x1,-0x18(%rbp)
L278:
  mov    -0x18(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L27
  addl   $0x1,-0x1c(%rbp)
L146:
  mov    -0x1c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L15
  nop
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D31
type: f64
name: unpack_data
arguments: label: D105
type: byte[8]

tool: D31: 1

tool: {"D105": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
void evolve1D(double *Pops, double *OutsidePop, double *AF, int npop, int nSNP, double m1, double minf, int Ne, int Loss) {
  int l, p, ret;
  double af, r_af;
  for (l = 0; l < nSNP; l++) {
    for (p = 0; p < npop; p++) {
      if (Loss && (Pops[p * nSNP + l] == .0 || Pops[p * nSNP + l] == 1.0)) {
        ret = 0;
        if (AF[p] == 0) {
          if (rand_double(0, 1) > minf * OutsidePop[l])
            ret++;
          if (p > 0)
            if (rand_double(0, 1) > m1 * Pops[p - 1])
              ret++;
          if (p < npop)
            if (rand_double(0, 1) > m1 * Pops[p + 1])
              ret++;
          AF[p] = ret / Ne;
        } else {
          if (rand_double(0, 1) > minf * (1 - OutsidePop[l]))
            ret++;
          if (p > 0)
            if (rand_double(0, 1) > m1 * (1 - Pops[p - 1]))
              ret++;
          if (p < npop)
            if (rand_double(0, 1) > m1 * (1 - Pops[p + 1]))
              ret++;
          AF[p] = (Ne - ret) / Ne;
        }
      } else {
        if (p == 0) {
          AF[p] = (1 - m1 - minf) * Pops[p * nSNP + l] + m1 * (Pops[(p + 1) * nSNP + l]) + minf * OutsidePop[l];
        } else if (p == (npop - 1)) {
          AF[p] = (1 - m1 - minf) * Pops[p * nSNP + l] + m1 * (Pops[(p - 1) * nSNP + l]) + minf * OutsidePop[l];
        } else {
          AF[p] = (1 - m1 - minf) * Pops[p * nSNP + l] + m1 * .5 * (Pops[(p - 1) * nSNP + l] + Pops[(p + 1) * nSNP + l]) + minf * OutsidePop[l];
        }
      }
    }
    for (p = 0; p < npop; p++) {
      if (!Loss || ((AF[p] > .0) && (AF[p] < 1.0))) {
        af = AF[p];
        r_af = (double)rand_normal(af, af * (1 - af) / (2 * Ne));
        if (r_af > 1)
          r_af = 1;
        if (r_af < 0)
          r_af = 0;
        Pops[p * nSNP + l] = r_af;
      }
    }
  }
}
```