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

```asm
<uniquePathsWithObstacles>:
  endbr64
  push   %r15
  movslq %esi,%rax
  push   %r14
  mov    %rax,%r15
  push   %r13
  push   %r12
  push   %rbp
  movslq %edx,%rbp
  push   %rbx
  mov    %rbp,%rbx
  sub    $0x28,%rsp
  mov    %rdi,0x10(%rsp)
  lea    0x0(,%rax,8),%edi
  mov    %eax,0xc(%rsp)
  mov    %rax,0x18(%rsp)
  call   <malloc@plt>
  mov    %rax,%r12
  test   %r15d,%r15d
  jle    L100
  mov    %rax,%r15
  mov    0xc(%rsp),%eax
  lea    0x0(,%rbp,4),%r14d
  lea    (%r12,%rax,8),%r13
  nopl   0x0(%rax,%rax,1)
L54:
  mov    %r14d,%edi
  add    $0x8,%r15
  call   <malloc@plt>
  mov    %rax,-0x8(%r15)
  cmp    %r13,%r15
  jne    L54
L100:
  mov    0x10(%rsp),%rax
  mov    (%r12),%rcx
  mov    (%rax),%rsi
  xor    %eax,%eax
  mov    (%rsi),%r8d
  test   %r8d,%r8d
  sete   %al
  mov    %eax,(%rcx)
  mov    $0x1,%eax
  cmp    $0x1,%ebx
  jle    L17
L65:
  mov    (%rsi,%rax,4),%edi
  xor    %edx,%edx
  test   %edi,%edi
  jne    L118
  mov    -0x4(%rcx,%rax,4),%edx
L118:
  mov    %edx,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %rbp,%rax
  jne    L65
L17:
  cmpl   $0x1,0xc(%rsp)
  jle    L75
  mov    0xc(%rsp),%eax
  mov    0x10(%rsp),%r13
  lea    0x8(%r12),%r9
  sub    $0x2,%eax
  sub    %r12,%r13
  lea    0x10(%r12,%rax,8),%r11
  mov    %r9,%rax
L46:
  mov    0x0(%r13,%rax,1),%rsi
  mov    (%rax),%rcx
  xor    %edx,%edx
  mov    (%rsi),%r15d
  test   %r15d,%r15d
  jne    L111
  mov    -0x8(%rax),%rdx
  mov    (%rdx),%edx
L111:
  add    $0x8,%rax
  mov    %edx,(%rcx)
  cmp    %rax,%r11
  jne    L46
  lea    -0x2(%rbx),%eax
  lea    0x8(,%rax,4),%r8
  xchg   %ax,%ax
L77:
  cmp    $0x1,%ebx
  jle    L14
  mov    0x0(%r13,%r9,1),%rdi
  mov    (%r9),%rsi
  lea    -0x8(%r9),%r10
  mov    $0x4,%eax
  cs nopw 0x0(%rax,%rax,1)
L31:
  mov    (%rdi,%rax,1),%r14d
  lea    (%rsi,%rax,1),%rcx
  xor    %edx,%edx
  test   %r14d,%r14d
  jne    L15
  mov    (%r10),%r14
  mov    -0x4(%rsi,%rax,1),%edx
  add    (%r14,%rax,1),%edx
L15:
  add    $0x4,%rax
  mov    %edx,(%rcx)
  cmp    %rax,%r8
  jne    L31
L14:
  add    $0x8,%r9
  cmp    %r9,%r11
  jne    L77
L75:
  mov    0x18(%rsp),%rax
  mov    -0x8(%r12,%rax,8),%rax
  mov    -0x4(%rax,%rbp,4),%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int uniquePathsWithObstacles(int **obstacleGrid, int obstacleGridRowSize, int obstacleGridColSize) {
  int **ret;
  int i;
  int j;
  ret = (int **)malloc(sizeof(int *) * obstacleGridRowSize);
  for (i = 0; i < obstacleGridRowSize; i++) {
    ret[i] = (int *)malloc(sizeof(int) * obstacleGridColSize);
  }
  if (obstacleGrid[0][0] == 0) {
    ret[0][0] = 1;
  } else {
    ret[0][0] = 0;
  }
  for (j = 1; j < obstacleGridColSize; j++) {
    if (obstacleGrid[0][j] == 0) {
      ret[0][j] = ret[0][j - 1];
    } else {
      ret[0][j] = 0;
    }
  }
  for (i = 1; i < obstacleGridRowSize; i++) {
    if (obstacleGrid[i][0] == 0) {
      ret[i][0] = ret[i - 1][0];
    } else {
      ret[i][0] = 0;
    }
  }
  for (i = 1; i < obstacleGridRowSize; i++) {
    for (j = 1; j < obstacleGridColSize; j++) {
      if (obstacleGrid[i][j] == 0) {
        ret[i][j] = ret[i - 1][j] + ret[i][j - 1];
      } else {
        ret[i][j] = 0;
      }
    }
  }
  return ret[obstacleGridRowSize - 1][obstacleGridColSize - 1];
}
```