user: 请从给定的汇编指令推导出C源代码：

```asm
<minCost>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %esi,-0x6c(%rbp)
  mov    %edx,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0x88(%rbp)
  mov    -0x70(%rbp),%ecx
  mov    -0x6c(%rbp),%esi
  movslq %ecx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %ecx,%rax
  mov    %rax,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %ecx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %esi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %esi,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    %r11,%rdx
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rdx
  movslq %esi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L79:
  cmp    %rdx,%rsp
  je     L1
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L79
L1:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L60
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L60:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x68(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  movl   $0x1,-0x58(%rbp)
  jmp    L0
L77:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  imul   %rcx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  add    %eax,%ecx
  mov    -0x40(%rbp),%rax
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  imul   %rsi,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x58(%rbp)
L0:
  mov    -0x58(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L77
  movl   $0x1,-0x58(%rbp)
  jmp    L50
L63:
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x68(%rbp),%rax
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  add    %eax,%ecx
  mov    -0x40(%rbp),%rax
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x58(%rbp)
L50:
  mov    -0x58(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L63
  movl   $0x1,-0x58(%rbp)
  jmp    L62
L32:
  movl   $0x1,-0x54(%rbp)
  jmp    L19
L65:
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    -0x54(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%r12d
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x54(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x40(%rbp),%rax
  movslq %esi,%rsi
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x54(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x40(%rbp),%rax
  movslq %ecx,%rdi
  mov    -0x58(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    (%rax,%rcx,4),%ecx
  mov    %rbx,%rdi
  shr    $0x2,%rdi
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%r8d
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%esi
  movslq %esi,%r9
  movslq %r8d,%rsi
  imul   %rdi,%rsi
  add    %r9,%rsi
  mov    (%rax,%rsi,4),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <min@plt>
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  lea    (%r12,%rax,1),%ecx
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdi
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  imul   %rsi,%rdx
  add    %rdi,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x54(%rbp)
L19:
  mov    -0x54(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L65
  addl   $0x1,-0x58(%rbp)
L62:
  mov    -0x58(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L32
  shr    $0x2,%rbx
  mov    %rbx,%rcx
  mov    -0x6c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x70(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x40(%rbp),%rax
  movslq %esi,%rsi
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    -0x88(%rbp),%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L88
  call   <__stack_chk_fail@plt>
L88:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int minCost(int cost[100][100], int m, int n) {
  int path[m][n], i, j;
  path[0][0] = cost[0][0];
  for (i = 1; i < m; ++i) {
    path[i][0] = path[i - 1][0] + cost[i][0];
  }
  for (i = 1; i < n; ++i) {
    path[0][i] = path[0][i - 1] + cost[0][i];
  }
  for (i = 1; i < m; ++i) {
    for (j = 1; j < n; ++j) {
      path[i][j] = cost[i][j] + min(path[i - 1][j], path[i][j - 1], path[i - 1][j - 1]);
    }
  }
  return path[m - 1][n - 1];
}
```