user: Converte this assembly snippet into its equivalent C code:

```asm
<computeResidualAtIdx_CFP32_INT64>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rsi,0x50(%rsp)
  mov    0xa8(%rsp),%rsi
  mov    %rdi,0x38(%rsp)
  mov    0xa0(%rsp),%rbx
  mov    %rdx,0x48(%rsp)
  test   %rsi,%rsi
  jle    L57
  mov    %r8,%r12
  mov    %r9,%r13
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L13:
  mov    0x0(%r13,%rax,8),%rdx
  mov    -0x8(%rcx,%rdx,8),%rdx
  mov    %rdx,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L13
  lea    (%rbx,%rsi,8),%rax
  mov    %rax,0x40(%rsp)
  mov    0x48(%rsp),%rax
  sub    $0x8,%rax
  mov    %rax,0x58(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L26:
  mov    0x0(%r13),%rdx
  mov    0x38(%rsp),%rdi
  mov    -0x8(%rdi,%rdx,8),%rax
  mov    (%rdi,%rdx,8),%rcx
  cmp    %rcx,%rax
  jge    L14
  mov    0x48(%rsp),%rsi
  shl    $0x3,%rax
  lea    -0x8(%rsi,%rax,1),%r14
  mov    0x50(%rsp),%rsi
  lea    -0x4(%rsi,%rax,1),%r15
  mov    0x58(%rsp),%rax
  lea    (%rax,%rcx,8),%rbp
  mov    (%rbx),%rax
  mov    %rax,0x30(%rsp)
  jmp    L24
  cs nopw 0x0(%rax,%rax,1)
L50:
  movlps %xmm1,0x30(%rsp)
L24:
  pxor   %xmm1,%xmm1
  mov    (%r14),%rax
  pxor   %xmm8,%xmm8
  pxor   %xmm6,%xmm6
  cvtss2sd (%r15),%xmm1
  pxor   %xmm3,%xmm3
  add    $0x8,%r14
  add    $0x8,%r15
  xorpd  D9(%rip),%xmm1
  cvtss2sd -0xc(%r15),%xmm8
  lea    -0x8(%r12,%rax,8),%rax
  movapd %xmm8,%xmm5
  cvtss2sd (%rax),%xmm6
  cvtss2sd 0x4(%rax),%xmm3
  mulsd  %xmm6,%xmm5
  movq   (%rax),%xmm2
  movapd %xmm1,%xmm9
  movapd %xmm1,%xmm4
  movapd %xmm8,%xmm7
  mulsd  %xmm3,%xmm9
  unpcklpd %xmm7,%xmm7
  unpcklpd %xmm4,%xmm4
  cvtps2pd %xmm2,%xmm2
  mulsd  %xmm8,%xmm3
  movapd %xmm8,%xmm0
  mulsd  %xmm1,%xmm6
  mulpd  %xmm2,%xmm7
  mulpd  %xmm2,%xmm4
  subsd  %xmm9,%xmm5
  addsd  %xmm3,%xmm6
  movsd  %xmm5,0x8(%rsp)
  movapd %xmm2,%xmm5
  unpckhpd %xmm5,%xmm5
  shufpd $0x1,%xmm4,%xmm4
  movaps %xmm7,0x20(%rsp)
  movapd %xmm5,%xmm3
  movaps %xmm4,0x10(%rsp)
  movsd  %xmm6,(%rsp)
  call   <__muldc3>
  movsd  0x8(%rsp),%xmm5
  movsd  (%rsp),%xmm6
  movapd 0x20(%rsp),%xmm7
  movapd 0x10(%rsp),%xmm4
  movapd %xmm0,%xmm2
  movapd %xmm6,%xmm3
  movapd %xmm5,%xmm0
  unpcklpd %xmm1,%xmm2
  movq   0x30(%rsp),%xmm6
  movapd %xmm7,%xmm5
  unpcklpd %xmm0,%xmm0
  unpcklpd %xmm3,%xmm3
  subpd  %xmm4,%xmm5
  addpd  %xmm7,%xmm4
  cmpordpd %xmm3,%xmm0
  cvtps2pd %xmm6,%xmm1
  movsd  %xmm5,%xmm4
  andpd  %xmm0,%xmm4
  andnpd %xmm2,%xmm0
  orpd   %xmm4,%xmm0
  subpd  %xmm0,%xmm1
  cvtpd2ps %xmm1,%xmm1
  movlps %xmm1,(%rbx)
  cmp    %rbp,%r14
  jne    L50
L14:
  add    $0x8,%r13
  add    $0x8,%rbx
  cmp    %rbx,0x40(%rsp)
  jne    L26
L57:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D9
data_type: byte[16]

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

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];
    }
  }
}
```