user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<init>:
  endbr64
  pxor   %xmm5,%xmm5
  cvtsi2sd %edi,%xmm5
  movapd %xmm5,%xmm7
  mulsd  %xmm0,%xmm7
  addsd  %xmm0,%xmm7
  test   %ecx,%ecx
  jle    L18
  push   %r15
  lea    -0x1(%rdx),%eax
  mov    %edx,%edi
  movapd %xmm7,%xmm4
  push   %r14
  movdqa D23(%rip),%xmm6
  unpcklpd %xmm4,%xmm4
  movsd  D16(%rip),%xmm8
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  and    $0xfffffffc,%r12d
  xor    %ebp,%ebp
  push   %rbx
  mov    %r8d,%ebx
  mov    %eax,-0x1c(%rsp)
  mov    %edx,%eax
  shr    $0x2,%eax
  test   %edx,%edx
  cmovns %edx,%ebp
  lea    -0x1(%rax),%r14d
  xor    %r9d,%r9d
  xor    %ecx,%ecx
  add    $0x1,%r14
  sub    %ebp,%ebx
  movslq %ebp,%r15
  shl    $0x5,%r14
  mov    %ebx,%eax
  shr    %eax
  lea    -0x1(%rax),%edx
  mov    %ebx,%eax
  add    $0x1,%rdx
  and    $0xfffffffe,%eax
  shl    $0x4,%rdx
  mov    %eax,-0x10(%rsp)
  add    %ebp,%eax
  mov    %rdx,-0x18(%rsp)
  mov    %eax,-0xc(%rsp)
  xor    %eax,%eax
L105:
  test   %edi,%edi
  jle    L109
  pxor   %xmm9,%xmm9
  cmpl   $0x2,-0x1c(%rsp)
  cvtsi2sd %r9d,%xmm9
  addsd  %xmm8,%xmm9
  jbe    L33
  movslq %eax,%rdx
  movapd %xmm9,%xmm3
  movdqa D6(%rip),%xmm2
  lea    (%rsi,%rdx,8),%rdx
  unpcklpd %xmm3,%xmm3
  lea    (%r14,%rdx,1),%r10
  xchg   %ax,%ax
L129:
  movdqa %xmm2,%xmm0
  add    $0x20,%rdx
  paddd  %xmm6,%xmm2
  cvtdq2pd %xmm0,%xmm1
  pshufd $0xee,%xmm0,%xmm0
  addpd  %xmm3,%xmm1
  cvtdq2pd %xmm0,%xmm0
  addpd  %xmm3,%xmm0
  mulpd  %xmm4,%xmm1
  mulpd  %xmm4,%xmm0
  movups %xmm1,-0x20(%rdx)
  movups %xmm0,-0x10(%rdx)
  cmp    %r10,%rdx
  jne    L129
  mov    %r12d,%edx
  cmp    %edi,%r12d
  je     L109
L41:
  pxor   %xmm0,%xmm0
  lea    (%rax,%rdx,1),%r10d
  cvtsi2sd %edx,%xmm0
  movslq %r10d,%r10
  addsd  %xmm9,%xmm0
  mulsd  %xmm7,%xmm0
  movsd  %xmm0,(%rsi,%r10,8)
  lea    0x1(%rdx),%r10d
  cmp    %r10d,%edi
  jle    L109
  pxor   %xmm0,%xmm0
  lea    (%rax,%r10,1),%r11d
  add    $0x2,%edx
  cvtsi2sd %r10d,%xmm0
  movslq %r11d,%r11
  addsd  %xmm9,%xmm0
  mulsd  %xmm7,%xmm0
  movsd  %xmm0,(%rsi,%r11,8)
  cmp    %edx,%edi
  jle    L109
  pxor   %xmm0,%xmm0
  lea    (%rax,%rdx,1),%r10d
  cvtsi2sd %edx,%xmm0
  movslq %r10d,%r10
  addsd  %xmm9,%xmm0
  mulsd  %xmm7,%xmm0
  movsd  %xmm0,(%rsi,%r10,8)
L109:
  cmp    %ebp,%r8d
  jle    L42
  cmp    $0x1,%ebx
  je     L3
  movslq %eax,%rdx
  mov    -0x18(%rsp),%r11
  movapd %xmm5,%xmm0
  add    %r15,%rdx
  unpcklpd %xmm0,%xmm0
  lea    (%rsi,%rdx,8),%rdx
  lea    (%r11,%rdx,1),%r10
  xchg   %ax,%ax
L16:
  movups %xmm0,(%rdx)
  add    $0x10,%rdx
  cmp    %rdx,%r10
  jne    L16
  cmp    %ebx,-0x10(%rsp)
  je     L42
  mov    -0xc(%rsp),%edx
L94:
  add    %eax,%edx
  movslq %edx,%rdx
  movsd  %xmm5,(%rsi,%rdx,8)
L42:
  add    $0x1,%ecx
  add    %r8d,%eax
  add    %edi,%r9d
  cmp    %ecx,%r13d
  jne    L105
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  mov    %ebp,%edx
  jmp    L94
L33:
  xor    %edx,%edx
  jmp    L41
L18:
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D23
datatype: byte[16]
name: extract_symbolic_data
arguments: data_tag: D16
datatype: f64
name: extract_symbolic_data
arguments: data_tag: D6
datatype: byte[16]

tool: {"D23": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: D16: 1

tool: {"D6": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

assistant: ```c
void init(int seed, double *dst, int nrows, int ncols, int ld, double scale) {
  const double seed1 = scale * seed + scale;
  int i, j;
  for (i = 0; i < ncols; ++i) {
    for (j = 0; j < nrows; ++j) {
      const int k = i * ld + j;
      dst[k] = (double)(seed1 * (1.0 + i * nrows + j));
    }
    for (; j < ld; ++j) {
      const int k = i * ld + j;
      dst[k] = (double)(seed);
    }
  }
}
```