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

```asm
<evolve1D>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %ecx,0x14(%rsp)
  mov    %r9d,0x34(%rsp)
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,0x20(%rsp)
  test   %r8d,%r8d
  jle    L60
  mov    %rsi,%rax
  mov    %r9d,%esi
  mov    %rdi,%rbx
  mov    %rdx,%r13
  mov    %rax,0x18(%rsp)
  movslq %r8d,%rax
  add    %esi,%esi
  mov    %r8d,%ebp
  mov    %rax,0x50(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x68(%rsp)
  lea    -0x1(%rcx),%eax
  mov    %eax,0x30(%rsp)
  lea    0x8(%rdx,%rax,8),%rax
  mov    %esi,0x5c(%rsp)
  mov    %rax,0x60(%rsp)
  movq   $0x0,0x28(%rsp)
  nopl   (%rax)
L164:
  mov    0x14(%rsp),%eax
  mov    0x28(%rsp),%r12d
  test   %eax,%eax
  jle    L234
  mov    0x28(%rsp),%rcx
  xor    %r15d,%r15d
  mov    %r12d,0x58(%rsp)
  mov    %r15,%r14
  mov    0xb0(%rsp),%r15d
  mov    %ecx,%eax
  mov    %ecx,%r12d
  add    %ebp,%eax
  cltq
  lea    (%rbx,%rax,8),%rax
  mov    %rax,0x48(%rsp)
  lea    0x0(%rbp,%rbp,1),%eax
  mov    %eax,0x38(%rsp)
  jmp    L92
L174:
  movslq %r12d,%rax
  mov    $0x0,%edx
  pxor   %xmm1,%xmm1
  movsd  (%rbx,%rax,8),%xmm0
  ucomisd D38(%rip),%xmm0
  setnp  %al
  cmovne %edx,%eax
  test   %al,%al
  jne    L221
  pxor   %xmm4,%xmm4
  ucomisd %xmm4,%xmm0
  setnp  %dl
  cmove  %edx,%eax
  test   %al,%al
  je     L214
L221:
  mov    $0x1,%esi
  mov    $0x0,%edi
  mov    $0x0,%eax
  ucomisd 0x0(%r13,%r14,8),%xmm1
  jp     L151
  jne    L151
  call   <rand_double@plt>
  pxor   %xmm1,%xmm1
  movsd  0x20(%rsp),%xmm0
  xor    %edx,%edx
  cvtsi2sd %eax,%xmm1
  mov    0x18(%rsp),%rax
  mulsd  (%rax),%xmm0
  comisd %xmm0,%xmm1
  seta   %dl
  test   %r14,%r14
  je     L204
  xor    %edi,%edi
  xor    %eax,%eax
  mov    $0x1,%esi
  mov    %edx,0x40(%rsp)
  call   <rand_double@plt>
  movsd  0x8(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  mov    0x40(%rsp),%edx
  mulsd  -0x8(%rbx,%r14,8),%xmm0
  cvtsi2sd %eax,%xmm1
  xor    %eax,%eax
  comisd %xmm0,%xmm1
  seta   %al
  add    %eax,%edx
L204:
  xor    %edi,%edi
  xor    %eax,%eax
  mov    $0x1,%esi
  mov    %edx,0x40(%rsp)
  call   <rand_double@plt>
  movsd  0x8(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  mov    0x40(%rsp),%edx
  mulsd  0x8(%rbx,%r14,8),%xmm0
  cvtsi2sd %eax,%xmm1
  xor    %eax,%eax
  comisd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  seta   %al
  add    %eax,%edx
  mov    %edx,%eax
  cltd
  idivl  0x34(%rsp)
  lea    0x1(%r14),%edx
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,0x0(%r13,%r14,8)
L21:
  add    $0x1,%r14
  add    %ebp,%r12d
  cmp    %edx,0x14(%rsp)
  jle    L24
L92:
  test   %r15d,%r15d
  jne    L174
L214:
  mov    0x18(%rsp),%rax
  lea    0x1(%r14),%edx
  movsd  (%rax),%xmm1
  test   %r14,%r14
  je     L141
  movsd  D38(%rip),%xmm2
  subsd  0x8(%rsp),%xmm2
  movslq %r12d,%rax
  movsd  0x20(%rsp),%xmm5
  subsd  %xmm5,%xmm2
  mulsd  (%rbx,%rax,8),%xmm2
  mov    %r12d,%eax
  mulsd  %xmm5,%xmm1
  sub    %ebp,%eax
  movslq %eax,%rsi
  movsd  (%rbx,%rsi,8),%xmm0
  cmp    %r14d,0x30(%rsp)
  je     L22
  movsd  D62(%rip),%xmm3
  add    0x38(%rsp),%eax
  add    %ebp,%r12d
  mulsd  0x8(%rsp),%xmm3
  cltq
  addsd  (%rbx,%rax,8),%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%r13,%r14,8)
  add    $0x1,%r14
  cmp    %edx,0x14(%rsp)
  jg     L92
L24:
  mov    0xb0(%rsp),%edx
  mov    0x58(%rsp),%r12d
  test   %edx,%edx
  je     L222
  mov    %r13,0x38(%rsp)
  mov    %r13,%r14
  mov    0x60(%rsp),%r15
  mov    %ebp,%r13d
  mov    %rbx,%rbp
  mov    0x5c(%rsp),%ebx
  jmp    L296
  nopl   0x0(%rax)
L314:
  add    $0x8,%r14
  add    %r13d,%r12d
  cmp    %r14,%r15
  je     L251
L296:
  movsd  (%r14),%xmm0
  pxor   %xmm4,%xmm4
  comisd %xmm4,%xmm0
  jbe    L314
  movsd  D38(%rip),%xmm4
  comisd %xmm0,%xmm4
  jbe    L314
  movapd %xmm4,%xmm1
  pxor   %xmm2,%xmm2
  mov    $0x2,%eax
  cvtsi2sd %ebx,%xmm2
  subsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  call   <rand_normal@plt>
  cmp    $0x1,%eax
  jle    L15
  mov    D38(%rip),%rax
  movq   %rax,%xmm0
L226:
  movslq %r12d,%rax
  add    $0x8,%r14
  add    %r13d,%r12d
  movsd  %xmm0,0x0(%rbp,%rax,8)
  cmp    %r14,%r15
  jne    L296
L251:
  mov    %rbp,%rbx
  mov    %r13d,%ebp
  mov    0x38(%rsp),%r13
L234:
  addq   $0x1,0x28(%rsp)
  mov    0x28(%rsp),%rax
  addq   $0x8,0x18(%rsp)
  cmp    0x50(%rsp),%rax
  jne    L164
L60:
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L141:
  movsd  0x8(%rsp),%xmm6
  movsd  D38(%rip),%xmm0
  movsd  0x20(%rsp),%xmm7
  mov    0x28(%rsp),%rax
  subsd  %xmm6,%xmm0
  mulsd  %xmm7,%xmm1
  subsd  %xmm7,%xmm0
  mulsd  (%rbx,%rax,8),%xmm0
  mov    0x48(%rsp),%rax
  mulsd  (%rax),%xmm6
  addsd  %xmm6,%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x0(%r13)
  jmp    L21
  xchg   %ax,%ax
L151:
  call   <rand_double@plt>
  pxor   %xmm1,%xmm1
  movsd  D38(%rip),%xmm0
  xor    %edx,%edx
  cvtsi2sd %eax,%xmm1
  mov    0x18(%rsp),%rax
  subsd  (%rax),%xmm0
  mulsd  0x20(%rsp),%xmm0
  comisd %xmm0,%xmm1
  seta   %dl
  test   %r14,%r14
  je     L246
  xor    %edi,%edi
  xor    %eax,%eax
  mov    $0x1,%esi
  mov    %edx,0x40(%rsp)
  call   <rand_double@plt>
  pxor   %xmm1,%xmm1
  mov    0x40(%rsp),%edx
  movsd  D38(%rip),%xmm0
  cvtsi2sd %eax,%xmm1
  subsd  -0x8(%rbx,%r14,8),%xmm0
  xor    %eax,%eax
  mulsd  0x8(%rsp),%xmm0
  comisd %xmm0,%xmm1
  seta   %al
  add    %eax,%edx
L246:
  xor    %edi,%edi
  xor    %eax,%eax
  mov    $0x1,%esi
  mov    %edx,0x40(%rsp)
  call   <rand_double@plt>
  pxor   %xmm1,%xmm1
  mov    0x34(%rsp),%ecx
  movsd  D38(%rip),%xmm0
  cvtsi2sd %eax,%xmm1
  subsd  0x8(%rbx,%r14,8),%xmm0
  mulsd  0x8(%rsp),%xmm0
  xor    %eax,%eax
  mov    0x40(%rsp),%edx
  comisd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  seta   %al
  add    %eax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  cltd
  idiv   %ecx
  lea    0x1(%r14),%edx
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,0x0(%r13,%r14,8)
  jmp    L21
  nopl   0x0(%rax)
L22:
  mulsd  0x8(%rsp),%xmm0
  addsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%r13,%r14,8)
  jmp    L21
  nopw   0x0(%rax,%rax,1)
L15:
  test   %eax,%eax
  jns    L271
  pxor   %xmm0,%xmm0
  jmp    L226
  nopl   0x0(%rax)
L222:
  pxor   %xmm4,%xmm4
  mov    0x28(%rsp),%rax
  mov    %rbx,0x40(%rsp)
  mov    %r13,%r12
  cvtsi2sdl 0x5c(%rsp),%xmm4
  mov    0x60(%rsp),%r14
  mov    0x68(%rsp),%r15
  lea    (%rbx,%rax,8),%rdx
  mov    %rdx,%rbx
  movsd  %xmm4,0x38(%rsp)
  jmp    L216
L281:
  add    $0x8,%r12
  movsd  %xmm0,(%rbx)
  add    %r15,%rbx
  cmp    %r12,%r14
  je     L5
L216:
  movsd  (%r12),%xmm0
  movsd  D38(%rip),%xmm1
  mov    $0x2,%eax
  subsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  divsd  0x38(%rsp),%xmm1
  call   <rand_normal@plt>
  mov    D38(%rip),%rdi
  movq   %rdi,%xmm0
  cmp    $0x1,%eax
  jg     L281
  test   %eax,%eax
  jns    L210
  pxor   %xmm0,%xmm0
  add    $0x8,%r12
  movsd  %xmm0,(%rbx)
  add    %r15,%rbx
  cmp    %r12,%r14
  jne    L216
L5:
  mov    0x40(%rsp),%rbx
  jmp    L234
L271:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  jmp    L226
L210:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  jmp    L281
```

tool_calls: name: unpack_data
arguments: data_tag: D38
datatype: f64
name: unpack_data
arguments: data_tag: D62
datatype: byte[8]

tool: D38: 1

tool: {"D62": [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;
      }
    }
  }
}
```