user: Please show me the C implementation that matches the assembly code listed below:

```asm
<computeResidualAtIdx_CFP32_INT64>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8,-0x38(%rbp)
  mov    %r9,-0x40(%rbp)
  movq   $0x0,-0x10(%rbp)
  jmp    L0
L41:
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rcx
  mov    0x10(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm1
  movss  0x4(%rdx),%xmm0
  movss  %xmm1,(%rax)
  movss  %xmm0,0x4(%rax)
  addq   $0x1,-0x10(%rbp)
L0:
  mov    -0x10(%rbp),%rax
  cmp    0x18(%rbp),%rax
  jl     L41
  movq   $0x0,-0x10(%rbp)
  jmp    L29
L39:
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L11
L51:
  mov    -0x8(%rbp),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  0x4(%rax),%xmm0
  pxor   %xmm4,%xmm4
  cvtss2sd %xmm1,%xmm4
  movq   %xmm4,%rdx
  cvtss2sd %xmm0,%xmm0
  movq   D6(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  mov    -0x8(%rbp),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movss  (%rax),%xmm1
  movss  0x4(%rax),%xmm2
  cvtss2sd %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm2
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  call   <__muldc3>
  movq   %xmm0,%rax
  movapd %xmm1,%xmm0
  mov    %rax,%rdx
  movq   %xmm0,%rax
  movq   %rdx,%xmm3
  movq   %rax,%xmm2
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  0x4(%rax),%xmm0
  cvtss2sd %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm0
  subsd  %xmm3,%xmm1
  subsd  %xmm2,%xmm0
  cvtsd2ss %xmm1,%xmm1
  cvtsd2ss %xmm0,%xmm0
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movss  %xmm1,(%rax)
  movss  %xmm0,0x4(%rax)
  addq   $0x1,-0x8(%rbp)
L11:
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x8(%rbp)
  jl     L51
  addq   $0x1,-0x10(%rbp)
L29:
  mov    -0x10(%rbp),%rax
  cmp    0x18(%rbp),%rax
  jl     L39
  nop
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D6
type: byte[8]

tool: {"D6": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
void computeResidualAtIdx_CFP32_INT64(long long *rowptr, float _Complex *valA, long long *colA, float _Complex *b, float _Complex *x, long long *Idxs, float _Complex *local_r, long long blockSize) {
  long long i, tt;
  for (i = 0; i < blockSize; ++i) {
    local_r[i] = b[Idxs[i] - 1];
  }
  for (i = 0; i < blockSize; ++i) {
    for (tt = rowptr[Idxs[i] - 1]; tt <= rowptr[Idxs[i]] - 1; ++tt) {
      local_r[i] -= conj(valA[tt - 1]) * x[colA[tt - 1] - 1];
    }
  }
}
```