user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<ParallelLinearSystem>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    0xb0(%rsp),%rax
  mov    %esi,0x18(%rsp)
  mov    %r8d,(%rsp)
  mov    0xd8(%rsp),%ebx
  mov    %rax,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  mov    0xa0(%rsp),%eax
  cmp    %ebx,%eax
  jle    L16
  pxor   %xmm0,%xmm0
  mov    %edx,%r12d
  mov    %ecx,%r13d
  cvtsi2sd %eax,%xmm0
  mulsd  D15(%rip),%xmm0
  call   <ceil@plt>
  mov    $0x2,%esi
  mov    %eax,%edi
  call   <pow@plt>
  mov    $0x8,%esi
  lea    (%rax,%rax,1),%edi
  call   <calloc@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0xa0(%rsp),%xmm0
  mov    %rax,0x10(%rsp)
  mulsd  D15(%rip),%xmm0
  call   <ceil@plt>
  mov    $0x2,%esi
  mov    %eax,%edi
  call   <pow@plt>
  cltd
  idiv   %ebx
  mov    %eax,0x1c(%rsp)
  test   %ebx,%ebx
  jle    L36
  xor    %r14d,%r14d
  mov    %rbp,%r9
  mov    %r14d,%ebp
  mov    %r12d,%r14d
  mov    %r15,%r12
  mov    %r13d,%r15d
  mov    (%rsp),%r13d
  nopl   (%rax)
L1:
  mov    0x1c(%rsp),%eax
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %r12,%rdi
  push   %rax
  push   0x18(%rsp)
  push   $0x0
  push   %rbp
  add    $0x1,%ebp
  push   %rbx
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  push   0x50(%rsp)
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0x98(%rsp),%esi
  mov    %r9,0x80(%rsp)
  call   <LinearSystem@plt>
  sub    $0xffffffffffffff80,%rsp
  cmp    %ebp,%ebx
  mov    (%rsp),%r9
  jne    L1
L36:
  mov    0x10(%rsp),%rdi
  call   <free@plt>
L17:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L41
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L16:
  lea    0xa0(%rsp),%r12
  lea    0x2f(%rsp),%r13
  mov    %rdi,%rdx
  movb   $0x4c,0x2f(%rsp)
  lea    0x30(%rsp),%rbx
  mov    %r12,%rcx
  mov    %r12,%rsi
  mov    %r13,%rdi
  mov    %rbx,%r8
  movl   $0x1,0x34(%rsp)
  call   <dpotrf_@plt>
  mov    0x8(%rsp),%r14
  mov    0xa0(%rsp),%eax
  mov    %rbp,%rsi
  lea    0x0(,%rax,8),%edx
  mov    %r14,%rdi
  call   <memcpy@plt>
  lea    0x34(%rsp),%rdx
  push   %rbx
  mov    %r14,%r9
  push   %r12
  mov    %r12,%r8
  mov    %r15,%rcx
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <dpotrs_@plt>
  pop    %rax
  pop    %rdx
  jmp    L17
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D15
type_guessed: f64

tool: D15: 0.5

assistant: ```c
void ParallelLinearSystem(double *matrix1, int r1, int c1, int ro1, int co1, double *matrix2, int r2, int c2, int ro2, int co2, int n, int m, double *result, int rr, int cr, int ror, int cor, int nCores) {
  if (n > nCores) {
    double *memaux = (double *)calloc(2 * pow(ceil(0.5 * n), 2), sizeof(double));
    int blockSize = pow(ceil(0.5 * n), 2) / nCores;
    int i;
#pragma omp parallel default(shared) private(i)
    {
#pragma omp for schedule(static)
      for (i = 0; i < nCores; i++) {
        LinearSystem(matrix1, r1, c1, ro1, co1, matrix2, r2, c2, ro2, co2, n, m, result, rr, cr, ror, cor, nCores, i, 0, memaux, blockSize);
      }
    }
    free(memaux);
  } else {
    int info;
    char s = 'L';
    int cols = 1;
    dpotrf_(&s, &n, matrix1, &n, &info);
    memcpy(result, matrix2, n * sizeof(double));
    dpotrs_(&s, &n, &cols, matrix1, &n, result, &n, &info);
  }
}
```