user: Translate the below assembly code into C programming language:

```asm
<dp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %r8d,-0x28(%rbp)
  mov    %r9,-0x30(%rbp)
  mov    -0x28(%rbp),%eax
  imul   -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x24(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L44
  mov    -0x28(%rbp),%eax
  imul   -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x24(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  jmp    L22
L44:
  cmpl   $0x0,-0x24(%rbp)
  jne    L4
  cmpl   $0x0,-0x28(%rbp)
  jne    L4
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x28(%rbp),%edx
  imul   -0x20(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x24(%rbp),%edx
  movslq %edx,%rdx
  add    %rcx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  mov    (%rax),%eax
  jmp    L22
L4:
  movl   $0x1fffffff,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jle    L25
  mov    -0x24(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x30(%rbp),%r8
  mov    -0x28(%rbp),%edi
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %r8,%r9
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <dp>
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
L25:
  cmpl   $0x0,-0x28(%rbp)
  jle    L5
  mov    -0x28(%rbp),%eax
  lea    -0x1(%rax),%r8d
  mov    -0x30(%rbp),%rdi
  mov    -0x24(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rax
  mov    %rdi,%r9
  mov    %rax,%rdi
  call   <dp>
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
L5:
  mov    -0x8(%rbp),%edx
  mov    -0xc(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <min_my@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x28(%rbp),%eax
  imul   -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x24(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x4(%rbp),%eax
L22:
  leave
  ret
```

assistant: ```c
int dp(int **grid, int gridRowSize, int gridColSize, int x, int y, int *dp_grid) {
  int left, top;
  int min;
  if (*(dp_grid + y * gridColSize + x))
    return *(dp_grid + y * gridColSize + x);
  if (x == 0 && y == 0) {
    *(dp_grid + y * gridColSize + x) = *(*(grid + 0) + 0);
    return *(*(grid + 0) + 0);
  }
  left = top = 0x1fffffff;
  if (x > 0)
    left = dp(grid, gridRowSize, gridColSize, x - 1, y, dp_grid) + *(*(grid + y) + x);
  if (y > 0)
    top = dp(grid, gridRowSize, gridColSize, x, y - 1, dp_grid) + *(*(grid + y) + x);
  min = min_my(left, top);
  *(dp_grid + y * gridColSize + x) = min;
  return min;
}
```