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

```asm
<get_binomial_cofficient>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jle    L32
  cmpl   $0x0,-0x38(%rbp)
  js     L32
  mov    -0x34(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jge    L97
L32:
  mov    $0x0,%eax
  jmp    L13
L97:
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L236
  mov    $0x0,%eax
  jmp    L13
L236:
  movl   $0x0,-0x24(%rbp)
  jmp    L189
L75:
  mov    -0x38(%rbp),%eax
  add    $0x1,%eax
  cltq
  shl    $0x2,%rax
  mov    -0x24(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L37
  movl   $0x0,-0x20(%rbp)
  jmp    L99
L80:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  addl   $0x1,-0x20(%rbp)
L99:
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L80
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L13
L37:
  addl   $0x1,-0x24(%rbp)
L189:
  mov    -0x24(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L75
  movl   $0x1,-0x24(%rbp)
  jmp    L12
L180:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movl   $0x1,(%rax)
  addl   $0x1,-0x24(%rbp)
L12:
  mov    -0x24(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L180
  movl   $0x1,-0x24(%rbp)
  jmp    L145
L204:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  addl   $0x1,-0x24(%rbp)
L145:
  mov    -0x24(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jle    L204
  movl   $0x2,-0x24(%rbp)
  jmp    L207
L196:
  movl   $0x1,-0x20(%rbp)
  jmp    L121
L59:
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  je     L38
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  sub    $0x4,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  imul   $0xffffffffa490c717,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x1a,%edx
  mov    %eax,%esi
  sar    $0x1f,%esi
  mov    %edx,%ecx
  sub    %esi,%ecx
  imul   $0x638f227,%ecx,%edx
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  imul   $0xffffffffa490c717,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x1a,%edx
  mov    %eax,%esi
  sar    $0x1f,%esi
  sub    %esi,%edx
  imul   $0x638f227,%edx,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  add    %ecx,%edx
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rcx
  movslq %edx,%rax
  imul   $0xffffffffa490c717,%rax,%rax
  shr    $0x20,%rax
  add    %edx,%eax
  sar    $0x1a,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  imul   $0x638f227,%eax,%esi
  mov    %edx,%eax
  sub    %esi,%eax
  mov    %eax,(%rcx)
  jmp    L67
L38:
  nop
L67:
  addl   $0x1,-0x20(%rbp)
L121:
  mov    -0x20(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jg     L142
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jle    L59
L142:
  addl   $0x1,-0x24(%rbp)
L207:
  mov    -0x24(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L196
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x38(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L23
L65:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  addl   $0x1,-0x24(%rbp)
L23:
  mov    -0x24(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L65
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x1c(%rbp),%eax
L13:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int get_binomial_cofficient(int n, int r) {
  int **matrix;
  int i, j, binomial_coff;
  if ((n <= 0) || (r < 0) || (n < r)) {
    return (0);
  }
  matrix = (int **)malloc(sizeof(int *) * (n + 1));
  if (!matrix) {
    return (0);
  }
  for (i = 0; i <= n; ++i) {
    matrix[i] = (int *)malloc(sizeof(int) * (r + 1));
    if (!matrix[i]) {
      for (j = 0; j < i; ++j) {
        free(matrix[j]);
      }
      free(matrix);
      return (0);
    }
  }
  for (i = 1; i <= n; ++i) {
    matrix[i][0] = 1;
  }
  for (i = 1; i <= r; ++i) {
    matrix[i][i] = 1;
  }
  for (i = 2; i <= n; ++i) {
    for (j = 1; ((j <= r) && (j <= i)); ++j) {
      if (j == i) {
        continue;
      }
      matrix[i][j] = ((matrix[i - 1][j - 1] % 104395303) + (matrix[i - 1][j] % 104395303)) % 104395303;
    }
  }
  binomial_coff = matrix[n][r];
  for (i = 0; i <= n; ++i) {
    free(matrix[i]);
  }
  free(matrix);
  return (binomial_coff);
}
```