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

```asm
<minCost>:
  endbr64
  push   %rbp
  movslq %edx,%r9
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x68,%rsp
  mov    %edx,-0x7c(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0x0(,%r9,4),%rax
  mov    %rax,-0x68(%rbp)
  movslq %esi,%rax
  imul   %r9,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L74
L27:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L27
L74:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L95
L120:
  mov    -0x68(%rbp),%rax
  lea    0x3(%rsp),%r14
  mov    $0x1,%edx
  lea    0x190(%rdi),%r8
  mov    %r14,%r10
  and    $0xfffffffffffffffc,%r14
  shr    $0x2,%rax
  shr    $0x2,%r10
  mov    %r14,-0x88(%rbp)
  mov    %r14,%rbx
  mov    %rax,-0x60(%rbp)
  mov    (%rdi),%eax
  mov    -0x60(%rbp),%r11
  mov    %eax,0x0(,%r10,4)
  cmp    $0x1,%esi
  jle    L93
  nopl   0x0(%rax)
L47:
  lea    -0x1(%rdx),%eax
  movslq %edx,%rcx
  mov    (%r8),%r12d
  add    $0x1,%edx
  cltq
  imul   %r11,%rcx
  add    $0x190,%r8
  imul   %r11,%rax
  add    (%rbx,%rax,4),%r12d
  mov    %r12d,(%rbx,%rcx,4)
  cmp    %edx,%esi
  jne    L47
L93:
  cmpl   $0x1,-0x7c(%rbp)
  jle    L100
  mov    0x0(,%r10,4),%edx
  mov    -0x88(%rbp),%rcx
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L39:
  add    (%rdi,%rax,4),%edx
  mov    %edx,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %r9,%rax
  jne    L39
  cmp    $0x1,%esi
  jle    L100
  mov    -0x88(%rbp),%rax
  mov    $0xfffffffffffffffc,%rdx
  lea    -0x1(%rsi),%ecx
  movq   $0x1,-0x58(%rbp)
  mov    %ecx,-0x80(%rbp)
  mov    %rax,-0x50(%rbp)
  mov    -0x7c(%rbp),%eax
  mov    %rcx,-0x70(%rbp)
  sub    $0x2,%eax
  movq   $0x0,-0x48(%rbp)
  shl    $0x2,%rax
  sub    %rax,%rdx
  lea    0x198(%rdi,%rax,1),%r12
  mov    %rdx,-0x78(%rbp)
  nopl   (%rax)
L50:
  mov    -0x58(%rbp),%r9
  sub    -0x48(%rbp),%r9
  imul   -0x60(%rbp),%r9
  mov    -0x78(%rbp),%rax
  mov    -0x50(%rbp),%r14
  lea    (%rax,%r12,1),%r13
  mov    %r9,%r15
  nopl   0x0(%rax)
L1:
  mov    (%r14,%r15,4),%esi
  mov    0x4(%r14),%edi
  add    $0x4,%r13
  mov    (%r14),%edx
  mov    -0x4(%r13),%ebx
  call   <min@plt>
  add    %eax,%ebx
  mov    %ebx,0x4(%r14,%r15,4)
  add    $0x4,%r14
  cmp    %r12,%r13
  jne    L1
  addq   $0x1,-0x48(%rbp)
  mov    -0x68(%rbp),%rdx
  add    $0x190,%r12
  add    %rdx,-0x50(%rbp)
  mov    -0x48(%rbp),%rax
  addq   $0x1,-0x58(%rbp)
  cmp    -0x70(%rbp),%rax
  jne    L50
L55:
  mov    -0x7c(%rbp),%eax
  movslq -0x80(%rbp),%rdx
  imul   -0x60(%rbp),%rdx
  mov    -0x88(%rbp),%rcx
  sub    $0x1,%eax
  cltq
  add    %rdx,%rax
  mov    (%rcx,%rax,4),%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L82
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L100:
  lea    -0x1(%rsi),%eax
  mov    %eax,-0x80(%rbp)
  jmp    L55
L95:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L120
L82:
  call   <__stack_chk_fail@plt>
```

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