user: What would the C source look like for the assembly code provided here:

```asm
<weightExpVec>:
  endbr64
  push   %r15
  mov    %esi,%eax
  push   %r14
  imul   %edi,%eax
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %r8,%rbp
  push   %rbx
  mov    %r9,%rbx
  sub    $0x38,%rsp
  mov    %edi,0x24(%rsp)
  mov    0x78(%rsp),%r9
  test   %eax,%eax
  jle    L2
  mov    0x70(%rsp),%r8
  sub    $0x1,%eax
  mov    %rbp,0x28(%rsp)
  mov    %rcx,%r10
  xor    %r13d,%r13d
  mov    %edx,%r14d
  lea    0x8(%r8,%rax,8),%rax
  mov    %rax,0x18(%rsp)
  lea    -0x1(%rdx),%eax
  mov    %eax,0x4(%rsp)
  mov    %edx,%eax
  shr    $0x2,%eax
  lea    -0x1(%rax),%r15d
  mov    %edx,%eax
  and    $0xfffffffc,%eax
  add    $0x1,%r15
  mov    %eax,0x20(%rsp)
  shl    $0x4,%r15
  mov    %r15,%r12
  mov    %r8,%r15
  nopl   0x0(%rax,%rax,1)
L1:
  test   %r14d,%r14d
  jle    L67
  movslq %r13d,%r11
  mov    0x4(%rsp),%ecx
  xor    %eax,%eax
  pxor   %xmm1,%xmm1
  lea    (%r10,%r11,4),%rbp
  nopw   0x0(%rax,%rax,1)
L159:
  pxor   %xmm0,%xmm0
  mov    %rax,%rdx
  cvtsi2sdl 0x0(%rbp,%rax,4),%xmm0
  mulsd  (%rbx,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %rcx,%rdx
  jne    L159
  xorpd  D1(%rip),%xmm1
  mov    %r9,0x78(%rsp)
  mov    %r10,0x8(%rsp)
  movapd %xmm1,%xmm0
  mov    %r11,0x10(%rsp)
  call   <exp@plt>
  cmpl   $0x2,0x4(%rsp)
  mov    0x8(%rsp),%r10
  mov    0x78(%rsp),%r9
  movapd %xmm0,%xmm2
  movsd  %xmm0,(%r15)
  jbe    L138
  mov    0x10(%rsp),%r11
  movapd %xmm0,%xmm1
  xor    %eax,%eax
  unpcklpd %xmm1,%xmm1
  lea    (%r9,%r11,8),%rdx
L108:
  cvtdq2pd 0x0(%rbp,%rax,1),%xmm0
  mulpd  %xmm1,%xmm0
  movdqu 0x0(%rbp,%rax,1),%xmm3
  movups %xmm0,(%rdx,%rax,2)
  pshufd $0xee,%xmm3,%xmm0
  cvtdq2pd %xmm0,%xmm0
  mulpd  %xmm1,%xmm0
  movups %xmm0,0x10(%rdx,%rax,2)
  add    $0x10,%rax
  cmp    %r12,%rax
  jne    L108
  mov    0x20(%rsp),%eax
  cmp    %r14d,%eax
  je     L121
L214:
  lea    0x0(%r13,%rax,1),%edx
  pxor   %xmm0,%xmm0
  movslq %edx,%rdx
  cvtsi2sdl (%r10,%rdx,4),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r9,%rdx,8)
  lea    0x1(%rax),%edx
  cmp    %edx,%r14d
  jle    L121
  add    %r13d,%edx
  pxor   %xmm0,%xmm0
  add    $0x2,%eax
  movslq %edx,%rdx
  cvtsi2sdl (%r10,%rdx,4),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r9,%rdx,8)
  cmp    %r14d,%eax
  jge    L121
  add    %r13d,%eax
  pxor   %xmm0,%xmm0
  cltq
  cvtsi2sdl (%r10,%rax,4),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r9,%rax,8)
L121:
  add    $0x8,%r15
  add    %r14d,%r13d
  cmp    0x18(%rsp),%r15
  jne    L1
  mov    0x28(%rsp),%rbp
  mov    %r14d,%r12d
L2:
  mov    0x24(%rsp),%eax
  test   %eax,%eax
  jle    L128
  mov    0x80(%rsp),%r13
  sub    $0x1,%eax
  xor    %r15d,%r15d
  mov    0x88(%rsp),%r9
  mov    %rbp,%r8
  lea    0x8(%r13,%rax,8),%rax
  mov    %r13,%rbp
  mov    %rax,0x18(%rsp)
  lea    -0x1(%r12),%eax
  mov    %eax,0x4(%rsp)
  mov    %r12d,%eax
  shr    $0x2,%eax
  lea    -0x1(%rax),%ecx
  mov    %r12d,%eax
  and    $0xfffffffc,%eax
  add    $0x1,%rcx
  mov    %eax,0x20(%rsp)
  shl    $0x4,%rcx
  mov    %rbx,%rax
  mov    %r12d,%ebx
  mov    %rax,%r14
  mov    %r15d,%r12d
  mov    %rcx,%r15
  cs nopw 0x0(%rax,%rax,1)
L112:
  test   %ebx,%ebx
  jle    L26
  movslq %r12d,%r10
  mov    0x4(%rsp),%r11d
  xor    %eax,%eax
  pxor   %xmm1,%xmm1
  lea    (%r8,%r10,4),%r13
  nopw   0x0(%rax,%rax,1)
L70:
  pxor   %xmm0,%xmm0
  mov    %rax,%rdx
  cvtsi2sdl 0x0(%r13,%rax,4),%xmm0
  mulsd  (%r14,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %rdx,%r11
  jne    L70
  xorpd  D1(%rip),%xmm1
  mov    %r9,0x88(%rsp)
  mov    %r8,0x8(%rsp)
  movapd %xmm1,%xmm0
  mov    %r10,0x10(%rsp)
  call   <exp@plt>
  cmpl   $0x2,0x4(%rsp)
  mov    0x8(%rsp),%r8
  mov    0x88(%rsp),%r9
  movapd %xmm0,%xmm2
  movsd  %xmm0,0x0(%rbp)
  jbe    L189
  mov    0x10(%rsp),%r10
  movapd %xmm0,%xmm1
  xor    %eax,%eax
  unpcklpd %xmm1,%xmm1
  lea    (%r9,%r10,8),%rdx
  nopl   0x0(%rax,%rax,1)
L31:
  cvtdq2pd 0x0(%r13,%rax,1),%xmm0
  mulpd  %xmm1,%xmm0
  movdqu 0x0(%r13,%rax,1),%xmm4
  movups %xmm0,(%rdx,%rax,2)
  pshufd $0xee,%xmm4,%xmm0
  cvtdq2pd %xmm0,%xmm0
  mulpd  %xmm1,%xmm0
  movups %xmm0,0x10(%rdx,%rax,2)
  add    $0x10,%rax
  cmp    %r15,%rax
  jne    L31
  mov    0x20(%rsp),%eax
  cmp    %eax,%ebx
  je     L47
L72:
  lea    (%r12,%rax,1),%edx
  pxor   %xmm0,%xmm0
  movslq %edx,%rdx
  cvtsi2sdl (%r8,%rdx,4),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r9,%rdx,8)
  lea    0x1(%rax),%edx
  cmp    %edx,%ebx
  jle    L47
  add    %r12d,%edx
  pxor   %xmm0,%xmm0
  add    $0x2,%eax
  movslq %edx,%rdx
  cvtsi2sdl (%r8,%rdx,4),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r9,%rdx,8)
  cmp    %eax,%ebx
  jle    L47
  add    %r12d,%eax
  pxor   %xmm0,%xmm0
  cltq
  cvtsi2sdl (%r8,%rax,4),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r9,%rax,8)
L47:
  add    $0x8,%rbp
  add    %ebx,%r12d
  cmp    %rbp,0x18(%rsp)
  jne    L112
L128:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L26:
  mov    D19(%rip),%rax
  mov    %rax,0x0(%rbp)
  jmp    L47
  nopl   (%rax)
L67:
  mov    D19(%rip),%rax
  mov    %rax,(%r15)
  jmp    L121
L189:
  xor    %eax,%eax
  jmp    L72
L138:
  xor    %eax,%eax
  jmp    L214
```

tool_calls: name: disassemble_data
arguments: tag: D1
datatype: f32[4]
name: disassemble_data
arguments: tag: D19
datatype: f32[2]

tool: {"D1": [0.0,-0.0,0.0,0.0]}

tool: {"D19": [0.0,1.875]}

assistant: ```c
void weightExpVec(const int16_t ns, const int16_t nc, const int16_t dims, const int16_t *restrict tcounts, const int16_t *restrict fcounts, const double *restrict weights, double *restrict tprob, double *restrict tvec, double *restrict fprob, double *restrict fvec) {
  for (int t = 0; t < ns * nc; ++t) {
    double lp = 0;
    for (int i = 0; i < dims; ++i)
      lp += tcounts[t * dims + i] * weights[i];
    double p = exp(-lp);
    tprob[t] = p;
    for (int i = 0; i < dims; ++i)
      tvec[t * dims + i] = p * tcounts[t * dims + i];
  }
  for (int t = 0; t < ns; ++t) {
    double lp = 0;
    for (int i = 0; i < dims; ++i)
      lp += fcounts[t * dims + i] * weights[i];
    double p = exp(-lp);
    fprob[t] = p;
    for (int i = 0; i < dims; ++i)
      fvec[t * dims + i] = p * fcounts[t * dims + i];
  }
}
```