user: 请将以下的汇编代码转换成C语言代码：

```asm
<matrix_chain_order>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  movl   $0x1,-0x18(%rbp)
  jmp    L68
L51:
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x18(%rbp)
L68:
  mov    -0x18(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L51
  movl   $0x2,-0x14(%rbp)
  jmp    L7
L79:
  movl   $0x1,-0x18(%rbp)
  jmp    L30
L63:
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  sub    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L75
L87:
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x10(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,%ecx
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x28(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%eax
  imul   %eax,%edx
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x28(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%eax
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0xc(%rbp)
  addl   $0x1,-0x10(%rbp)
L75:
  mov    -0x4(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jg     L87
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  cmp    %eax,%edx
  jbe    L25
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  mov    %eax,(%rdx)
L25:
  addl   $0x1,-0x18(%rbp)
L30:
  mov    -0x8(%rbp),%eax
  sub    -0x14(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x18(%rbp)
  jle    L63
  addl   $0x1,-0x14(%rbp)
L7:
  mov    -0x14(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L79
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void matrix_chain_order(int *p, int pl, unsigned int *m, int *s) {
  int i, j, l, k, q;
  int n = pl - 1;
  for (i = 1; i <= n; i++)
    *(m + i * 6 + i) = 0;
  for (l = 2; l <= n; l++)
    for (i = 1; i <= n - l + 1; i++) {
      j = i + l - 1;
      *(m + i * 6 + j) = -1;
      for (k = i; k <= j - 1; k++)
        q = *(m + i * 6 + k) + *(m + (k + 1) * 6 + j) + p[i - 1] * p[k] * p[j];
      if (q < *(m + i * 6 + j)) {
        *(m + i * 6 + j) = q;
        *(s + i * 6 + j) = k;
      }
    }
}
```