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

```asm
<compute>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x240,%rsp
  mov    %edi,-0x224(%rbp)
  mov    %rsi,-0x230(%rbp)
  mov    %rdx,-0x238(%rbp)
  mov    %rcx,-0x240(%rbp)
  mov    %r8d,-0x228(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x0,-0x224(%rbp)
  je     L72
  movl   $0x0,-0x218(%rbp)
  jmp    L21
L134:
  movl   $0x0,-0x21c(%rbp)
  jmp    L153
L53:
  mov    -0x218(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x21c(%rbp),%eax
  cltq
  shl    $0x5,%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x210(%rbp,%rax,8)
  addl   $0x1,-0x21c(%rbp)
L153:
  cmpl   $0x1,-0x21c(%rbp)
  jle    L53
  addl   $0x1,-0x218(%rbp)
L21:
  cmpl   $0x1f,-0x218(%rbp)
  jle    L134
  movl   $0x0,-0x218(%rbp)
  jmp    L12
L36:
  movl   $0x0,-0x214(%rbp)
  jmp    L108
L113:
  movl   $0x0,-0x21c(%rbp)
  jmp    L9
L128:
  mov    -0x214(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x21c(%rbp),%eax
  cltq
  shl    $0x5,%rax
  add    %rdx,%rax
  movsd  -0x210(%rbp,%rax,8),%xmm1
  mov    -0x21c(%rbp),%eax
  cltq
  shl    $0xd,%rax
  mov    %rax,%rdx
  mov    -0x230(%rbp),%rax
  add    %rax,%rdx
  mov    -0x218(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm2
  mov    -0x218(%rbp),%eax
  cltq
  shl    $0x8,%rax
  mov    %rax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rax,%rdx
  mov    -0x214(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x214(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x21c(%rbp),%eax
  cltq
  shl    $0x5,%rax
  add    %rdx,%rax
  movsd  %xmm0,-0x210(%rbp,%rax,8)
  addl   $0x1,-0x21c(%rbp)
L9:
  cmpl   $0x1,-0x21c(%rbp)
  jle    L128
  addl   $0x1,-0x214(%rbp)
L108:
  cmpl   $0x1f,-0x214(%rbp)
  jle    L113
  addl   $0x1,-0x218(%rbp)
L12:
  cmpl   $0x3ff,-0x218(%rbp)
  jle    L36
  movl   $0x0,-0x21c(%rbp)
  jmp    L89
L15:
  movl   $0x0,-0x218(%rbp)
  jmp    L83
L152:
  mov    -0x21c(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    -0x218(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x240(%rbp),%rax
  add    %rdx,%rax
  mov    -0x218(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x21c(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x5,%rdx
  add    %rcx,%rdx
  movsd  -0x210(%rbp,%rdx,8),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x218(%rbp)
L83:
  cmpl   $0x1f,-0x218(%rbp)
  jle    L152
  addl   $0x1,-0x21c(%rbp)
L89:
  cmpl   $0x1,-0x21c(%rbp)
  jle    L15
L72:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L68
  call   <__stack_chk_fail@plt>
L68:
  leave
  ret
```

assistant: ```c
void compute(int flag, double rows[2][1024], double col[1024][32], double *prod, int num_rows) {
#pragma HLS inline off
  if (flag) {
    double local_prod[2][32];
#pragma HLS array_partition variable = local_prod dim = 1 complete
    int i, j, k;
    for (j = 0; j < 32; j++) {
#pragma HLS pipeline
      for (i = 0; i < 2; i++) {
#pragma HLS unroll
        local_prod[i][j] = 0.0;
      }
    }
    for (j = 0; j < 1024; j++) {
      for (k = 0; k < 32; k++) {
#pragma HLS pipeline
#pragma HLS dependence variable = local_prod inter false
        for (i = 0; i < 2; i++) {
#pragma HLS unroll
          local_prod[i][k] += rows[i][j] * col[j][k];
        }
      }
    }
    for (i = 0; i < 2; i++) {
      for (j = 0; j < 32; j++) {
#pragma HLS pipeline
        prod[i * 1024 + j] = local_prod[i][j];
      }
    }
  }
}
```