user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<uniquePathsWithObstacles>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  test   %esi,%esi
  jle    L96
  mov    %edx,%r10d
  test   %edx,%edx
  jle    L96
  mov    %esi,%ebx
  mov    (%rdi),%rsi
  mov    %rdi,%r12
  mov    (%rsi),%r9d
  test   %r9d,%r9d
  jne    L128
  movslq %edx,%r14
  movslq %ebx,%rax
  mov    %rsp,%rcx
  imul   %r14,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L150
L0:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L0
L150:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L48
  orq    $0x0,-0x8(%rsp,%rdx,1)
L48:
  lea    0x3(%rsp),%rdi
  mov    %rdi,%rax
  and    $0xfffffffffffffffc,%rdi
  shr    $0x2,%rax
  movl   $0x1,0x0(,%rax,4)
  cmp    $0x1,%ebx
  je     L201
  mov    $0x1,%edx
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L34:
  movzwl %dx,%ecx
  mov    (%r12,%rcx,8),%r8
  xor    %ecx,%ecx
  mov    (%r8),%r8d
  test   %r8d,%r8d
  jne    L101
  lea    -0x1(%rax),%ecx
  movslq %ecx,%rcx
  imul   %r14,%rcx
  mov    (%rdi,%rcx,4),%ecx
L101:
  imul   %r14,%rax
  add    $0x1,%edx
  mov    %ecx,(%rdi,%rax,4)
  movzwl %dx,%eax
  cmp    %ebx,%eax
  jl     L34
L201:
  cmp    $0x1,%r10d
  je     L22
  mov    $0x1,%edx
  mov    $0x1,%eax
  nop
L131:
  movzwl %dx,%ecx
  xor    %r8d,%r8d
  mov    (%rsi,%rcx,4),%ecx
  test   %ecx,%ecx
  jne    L137
  lea    -0x1(%rax),%ecx
  movslq %ecx,%rcx
  mov    (%rdi,%rcx,4),%r8d
L137:
  add    $0x1,%edx
  mov    %r8d,(%rdi,%rax,4)
  movzwl %dx,%eax
  cmp    %r10d,%eax
  jl     L131
L22:
  mov    $0x1,%r13d
  mov    $0x1,%r9d
  cmp    $0x1,%ebx
  je     L18
  nopl   0x0(%rax,%rax,1)
L86:
  cmp    $0x1,%r10d
  je     L5
  movslq %r9d,%r8
  sub    $0x1,%r9d
  movzwl %r13w,%eax
  mov    $0x1,%esi
  movslq %r9d,%r9
  mov    (%r12,%rax,8),%r11
  imul   %r14,%r8
  mov    $0x1,%eax
  imul   %r14,%r9
  jmp    L138
  nopl   0x0(%rax)
L152:
  lea    -0x1(%rax),%edx
  movslq %eax,%rcx
  movslq %edx,%rdx
  lea    (%rcx,%r9,1),%r15
  add    %r8,%rdx
  mov    (%rdi,%rdx,4),%edx
  add    (%rdi,%r15,4),%edx
L107:
  lea    (%rcx,%r8,1),%rax
  add    $0x1,%esi
  mov    %edx,(%rdi,%rax,4)
  movzwl %si,%eax
  cmp    %r10d,%eax
  jge    L5
L138:
  movzwl %si,%edx
  mov    (%r11,%rdx,4),%edx
  test   %edx,%edx
  je     L152
  xor    %edx,%edx
  movslq %eax,%rcx
  jmp    L107
  nopl   0x0(%rax,%rax,1)
L5:
  add    $0x1,%r13d
  movzwl %r13w,%r9d
  cmp    %ebx,%r9d
  jl     L86
L18:
  lea    -0x1(%rbx),%edx
  lea    -0x1(%r10),%eax
  movslq %edx,%rdx
  cltq
  imul   %r14,%rdx
  add    %rdx,%rax
  mov    (%rdi,%rax,4),%eax
L128:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L205
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L96:
  xor    %eax,%eax
  jmp    L128
L205:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int uniquePathsWithObstacles(int **obstacleGrid, int obstacleGridRowSize, int obstacleGridColSize) {
  if (obstacleGridRowSize <= 0 || obstacleGridColSize <= 0 || obstacleGrid[0][0]) {
    return 0;
  }
  int grid[obstacleGridRowSize][obstacleGridColSize];
  unsigned short i, j;
  grid[0][0] = 1 - obstacleGrid[0][0];
  for (i = 1; i < obstacleGridRowSize; i++) {
    grid[i][0] = obstacleGrid[i][0] ? 0 : grid[i - 1][0];
  }
  for (j = 1; j < obstacleGridColSize; j++) {
    grid[0][j] = obstacleGrid[0][j] ? 0 : grid[0][j - 1];
  }
  for (i = 1; i < obstacleGridRowSize; i++) {
    for (j = 1; j < obstacleGridColSize; j++) {
      if (obstacleGrid[i][j]) {
        grid[i][j] = 0;
        continue;
      }
      grid[i][j] = grid[i - 1][j] + grid[i][j - 1];
    }
  }
  return grid[obstacleGridRowSize - 1][obstacleGridColSize - 1];
}
```