user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<minPathSum>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L92:
  cmp    %rdx,%rsp
  je     L82
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L92
L82:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L83
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L83:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L5
L60:
  mov    -0x50(%rbp),%eax
  add    $0x1,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,%rcx
  mov    -0x20(%rbp),%rax
  mov    -0x3c(%rbp),%edx
  movslq %edx,%rdx
  mov    %rcx,(%rax,%rdx,8)
  addl   $0x1,-0x3c(%rbp)
L5:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jge    L60
  movl   $0x0,-0x38(%rbp)
  jmp    L132
L12:
  mov    -0x20(%rbp),%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x7fffffff,(%rax)
  addl   $0x1,-0x38(%rbp)
L132:
  mov    -0x4c(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jge    L12
  jmp    L54
L27:
  mov    -0x20(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x34(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x7fffffff,(%rax)
  addl   $0x1,-0x34(%rbp)
L54:
  mov    -0x50(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jge    L27
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x20(%rbp),%rdx
  mov    -0x4c(%rbp),%ecx
  movslq %ecx,%rcx
  mov    (%rdx,%rcx,8),%rcx
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  sub    $0x4,%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x30(%rbp)
  jmp    L77
L126:
  mov    -0x50(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x2c(%rbp)
  jmp    L75
L42:
  mov    -0x20(%rbp),%rax
  mov    -0x30(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x30(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,%ecx
  jge    L136
  mov    -0x20(%rbp),%rax
  mov    -0x30(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  jmp    L7
L136:
  mov    -0x30(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
L7:
  mov    -0x20(%rbp),%rdx
  mov    -0x30(%rbp),%ecx
  movslq %ecx,%rcx
  mov    (%rdx,%rcx,8),%rcx
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  add    %rcx,%rdx
  mov    %eax,(%rdx)
  subl   $0x1,-0x2c(%rbp)
L75:
  cmpl   $0x0,-0x2c(%rbp)
  jns    L42
  subl   $0x1,-0x30(%rbp)
L77:
  cmpl   $0x0,-0x30(%rbp)
  jns    L126
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rax
  mov    (%rax),%eax
  mov    %rbx,%rsp
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L56
  call   <__stack_chk_fail@plt>
L56:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int minPathSum(int **grid, int m, int n) {
  int *p[m + 1];
  for (int i = 0; i < m + 1; i++)
    p[i] = (int *)malloc((n + 1) * sizeof(int));
  for (int i = 0; i < m + 1; i++)
    p[i][n] = 2147483647;
  for (int i = i; i < n + 1; i++)
    p[m][i] = 2147483647;
  p[m][n - 1] = p[m - 1][n] = 0;
  for (int i = m - 1; i >= 0; i--)
    for (int j = n - 1; j >= 0; j--) {
      p[i][j] = p[i][j + 1] < p[i + 1][j] ? p[i][j + 1] + grid[i][j] : p[i + 1][j] + grid[i][j];
    }
  return p[0][0];
}
```