user: Translate the below assembly code into C programming language:

```asm
<ls_costN_nm4_f0>:
  endbr64
  mov    (%rdi),%rdx
  test   %rdx,%rdx
  je     L37
  mov    (%rsi),%rax
  movsd  (%rdx),%xmm0
  test   %rax,%rax
  je     L21
  movsd  %xmm0,(%rax)
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  movsd  0x20(%rdx),%xmm0
  movsd  %xmm0,0x20(%rax)
  movsd  0x28(%rdx),%xmm0
  movsd  %xmm0,0x28(%rax)
  movsd  0x30(%rdx),%xmm0
  movsd  %xmm0,0x30(%rax)
  movsd  0x38(%rdx),%xmm0
  movsd  %xmm0,0x38(%rax)
  movsd  0x40(%rdx),%xmm0
  movsd  %xmm0,0x40(%rax)
  movsd  0x48(%rdx),%xmm0
  movsd  %xmm0,0x48(%rax)
  movsd  0x50(%rdx),%xmm0
  movsd  %xmm0,0x50(%rax)
  movsd  0x58(%rdx),%xmm0
  movsd  %xmm0,0x58(%rax)
  movsd  0x60(%rdx),%xmm0
  movsd  %xmm0,0x60(%rax)
  movsd  0x68(%rdx),%xmm0
  movsd  %xmm0,0x68(%rax)
  movsd  0x70(%rdx),%xmm0
  movsd  %xmm0,0x70(%rax)
  movsd  0x78(%rdx),%xmm0
  movsd  %xmm0,0x78(%rax)
  movsd  0x80(%rdx),%xmm0
  movsd  %xmm0,0x80(%rax)
  movsd  0x88(%rdx),%xmm0
L46:
  movsd  %xmm0,0x88(%rax)
L21:
  mov    0x8(%rsi),%rax
  test   %rax,%rax
  je     L12
  movapd D7(%rip),%xmm0
  movups %xmm0,(%rax)
  movups %xmm0,0x10(%rax)
  movups %xmm0,0x20(%rax)
  movups %xmm0,0x30(%rax)
  movups %xmm0,0x40(%rax)
  movups %xmm0,0x50(%rax)
  movups %xmm0,0x60(%rax)
  movups %xmm0,0x70(%rax)
  movups %xmm0,0x80(%rax)
L12:
  xor    %eax,%eax
  ret
  nopl   0x0(%rax)
L37:
  mov    (%rsi),%rax
  test   %rax,%rax
  je     L21
  movq   $0x0,(%rax)
  pxor   %xmm0,%xmm0
  movq   $0x0,0x8(%rax)
  movq   $0x0,0x10(%rax)
  movq   $0x0,0x18(%rax)
  movq   $0x0,0x20(%rax)
  movq   $0x0,0x28(%rax)
  movq   $0x0,0x30(%rax)
  movq   $0x0,0x38(%rax)
  movq   $0x0,0x40(%rax)
  movq   $0x0,0x48(%rax)
  movq   $0x0,0x50(%rax)
  movq   $0x0,0x58(%rax)
  movq   $0x0,0x60(%rax)
  movq   $0x0,0x68(%rax)
  movq   $0x0,0x70(%rax)
  movq   $0x0,0x78(%rax)
  movq   $0x0,0x80(%rax)
  jmp    L46
```

tool_calls: name: unpack_data
arguments: data_tag: D7
type_infered: f64[2]

tool: {"D7": [1.0,1.0]}

assistant: ```c
int ls_costN_nm4_f0(const double **arg, double **res, int *iw, double *w, int mem) {
  double a0 = arg[0] ? arg[0][0] : 0;
  if (res[0] != 0)
    res[0][0] = a0;
  a0 = arg[0] ? arg[0][1] : 0;
  if (res[0] != 0)
    res[0][1] = a0;
  a0 = arg[0] ? arg[0][2] : 0;
  if (res[0] != 0)
    res[0][2] = a0;
  a0 = arg[0] ? arg[0][3] : 0;
  if (res[0] != 0)
    res[0][3] = a0;
  a0 = arg[0] ? arg[0][4] : 0;
  if (res[0] != 0)
    res[0][4] = a0;
  a0 = arg[0] ? arg[0][5] : 0;
  if (res[0] != 0)
    res[0][5] = a0;
  a0 = arg[0] ? arg[0][6] : 0;
  if (res[0] != 0)
    res[0][6] = a0;
  a0 = arg[0] ? arg[0][7] : 0;
  if (res[0] != 0)
    res[0][7] = a0;
  a0 = arg[0] ? arg[0][8] : 0;
  if (res[0] != 0)
    res[0][8] = a0;
  a0 = arg[0] ? arg[0][9] : 0;
  if (res[0] != 0)
    res[0][9] = a0;
  a0 = arg[0] ? arg[0][10] : 0;
  if (res[0] != 0)
    res[0][10] = a0;
  a0 = arg[0] ? arg[0][11] : 0;
  if (res[0] != 0)
    res[0][11] = a0;
  a0 = arg[0] ? arg[0][12] : 0;
  if (res[0] != 0)
    res[0][12] = a0;
  a0 = arg[0] ? arg[0][13] : 0;
  if (res[0] != 0)
    res[0][13] = a0;
  a0 = arg[0] ? arg[0][14] : 0;
  if (res[0] != 0)
    res[0][14] = a0;
  a0 = arg[0] ? arg[0][15] : 0;
  if (res[0] != 0)
    res[0][15] = a0;
  a0 = arg[0] ? arg[0][16] : 0;
  if (res[0] != 0)
    res[0][16] = a0;
  a0 = arg[0] ? arg[0][17] : 0;
  if (res[0] != 0)
    res[0][17] = a0;
  a0 = 1.;
  if (res[1] != 0)
    res[1][0] = a0;
  if (res[1] != 0)
    res[1][1] = a0;
  if (res[1] != 0)
    res[1][2] = a0;
  if (res[1] != 0)
    res[1][3] = a0;
  if (res[1] != 0)
    res[1][4] = a0;
  if (res[1] != 0)
    res[1][5] = a0;
  if (res[1] != 0)
    res[1][6] = a0;
  if (res[1] != 0)
    res[1][7] = a0;
  if (res[1] != 0)
    res[1][8] = a0;
  if (res[1] != 0)
    res[1][9] = a0;
  if (res[1] != 0)
    res[1][10] = a0;
  if (res[1] != 0)
    res[1][11] = a0;
  if (res[1] != 0)
    res[1][12] = a0;
  if (res[1] != 0)
    res[1][13] = a0;
  if (res[1] != 0)
    res[1][14] = a0;
  if (res[1] != 0)
    res[1][15] = a0;
  if (res[1] != 0)
    res[1][16] = a0;
  if (res[1] != 0)
    res[1][17] = a0;
  return 0;
}
```