user: 请将以下的汇编代码转换成C语言代码：

```asm
<uniquePathsWithObstacles>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r13
  mov    %esi,%ebx
  mov    %esi,0xc(%rsp)
  mov    %edx,%ebp
  movslq %esi,%rax
  mov    %rax,(%rsp)
  lea    0x0(,%rsi,8),%edi
  call   <malloc@plt>
  mov    %rax,%r12
  test   %ebx,%ebx
  jle    L66
  mov    %ebx,%eax
  lea    0x0(,%rbp,4),%r15d
  mov    %r12,%rbx
  mov    %eax,%eax
  lea    (%r12,%rax,8),%r14
L106:
  mov    %r15d,%edi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  add    $0x8,%rbx
  cmp    %r14,%rbx
  jne    L106
L66:
  mov    0x0(%r13),%rax
  cmpl   $0x0,(%rax)
  jne    L91
  mov    (%r12),%rax
  movl   $0x1,(%rax)
L121:
  mov    %ebp,%ecx
  shl    $0x2,%rcx
  mov    $0x4,%eax
  cmp    $0x1,%ebp
  jg     L26
L63:
  mov    0xc(%rsp),%eax
  cmp    $0x1,%eax
  jle    L46
  lea    0x8(%r12),%r9
  lea    -0x2(%rax),%r8d
  shl    $0x3,%r8
  lea    0x10(%r12,%r8,1),%rsi
  mov    %r9,%rax
  mov    %r13,%rcx
  sub    %r12,%rcx
  jmp    L198
L91:
  mov    (%r12),%rax
  movl   $0x0,(%rax)
  jmp    L121
L0:
  mov    (%r12),%rdx
  movl   $0x0,(%rdx,%rax,1)
L169:
  add    $0x4,%rax
  cmp    %rcx,%rax
  je     L63
L26:
  mov    0x0(%r13),%rdx
  cmpl   $0x0,(%rdx,%rax,1)
  jne    L0
  mov    (%r12),%rdx
  mov    -0x4(%rdx,%rax,1),%esi
  mov    %esi,(%rdx,%rax,1)
  jmp    L169
L131:
  mov    (%rax),%rdx
  movl   $0x0,(%rdx)
L47:
  add    $0x8,%rax
  cmp    %rsi,%rax
  je     L105
L198:
  mov    (%rcx,%rax,1),%rdx
  cmpl   $0x0,(%rdx)
  jne    L131
  mov    (%rax),%rdx
  mov    -0x8(%rax),%rdi
  mov    (%rdi),%edi
  mov    %edi,(%rdx)
  jmp    L47
L105:
  lea    0x8(%r13),%rsi
  lea    0x10(%r13,%r8,1),%r11
  lea    -0x2(%rbp),%eax
  lea    0x8(,%rax,4),%r8
  jmp    L97
L39:
  mov    (%rdi),%rdx
  movl   $0x0,(%rdx,%rax,1)
L140:
  add    $0x4,%rax
  cmp    %rax,%r8
  je     L70
L108:
  mov    (%rsi),%rdx
  cmpl   $0x0,(%rdx,%rax,1)
  jne    L39
  mov    (%rdi),%rcx
  mov    (%r10),%rbx
  mov    -0x4(%rcx,%rax,1),%edx
  add    (%rbx,%rax,1),%edx
  mov    %edx,(%rcx,%rax,1)
  jmp    L140
L70:
  add    $0x8,%r9
  add    $0x8,%rsi
  cmp    %r11,%rsi
  je     L46
L97:
  mov    %r9,%rdi
  lea    -0x8(%r9),%r10
  mov    $0x4,%eax
  cmp    $0x1,%ebp
  jg     L108
  jmp    L70
L46:
  movslq %ebp,%rbp
  mov    (%rsp),%rax
  mov    -0x8(%r12,%rax,8),%rax
  mov    -0x4(%rax,%rbp,4),%eax
  add    $0x18,%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];
}
```