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

```asm
<get_binomial_cofficient>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %edi,%edi
  setle  %al
  cmp    %esi,%edi
  setl   %dl
  or     %dl,%al
  jne    L58
  mov    %esi,%ebp
  test   %esi,%esi
  jns    L86
L58:
  xor    %r12d,%r12d
L120:
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L86:
  lea    0x1(%rdi),%r13d
  mov    %edi,%ebx
  movslq %r13d,%r13
  lea    0x0(,%r13,8),%rax
  mov    %rax,%rdi
  mov    %rax,(%rsp)
  call   <malloc@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L58
  lea    0x1(%rbp),%eax
  xor    %r15d,%r15d
  mov    %eax,0xc(%rsp)
  movslq %eax,%r12
  shl    $0x2,%r12
  cs nopw 0x0(%rax,%rax,1)
L25:
  mov    %r12,%rdi
  call   <malloc@plt>
  mov    %rax,0x0(%r13,%r15,8)
  test   %rax,%rax
  je     L82
  add    $0x1,%r15
  cmp    %r15d,%ebx
  jge    L25
  mov    $0x1,%eax
  nopl   0x0(%rax)
L139:
  mov    0x0(%r13,%rax,8),%rdx
  add    $0x1,%rax
  movl   $0x1,(%rdx)
  cmp    %eax,%ebx
  jge    L139
  test   %ebp,%ebp
  je     L98
  mov    0xc(%rsp),%ecx
  mov    $0x4,%eax
  shl    $0x2,%rcx
  nopl   0x0(%rax)
L29:
  mov    0x0(%r13,%rax,2),%rdx
  movl   $0x1,(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L29
L98:
  cmp    $0x1,%ebx
  jle    L66
  lea    0x8(%r13),%r10
  mov    $0x2,%r11d
  nopl   0x0(%rax,%rax,1)
L95:
  cmp    %ebp,%r11d
  mov    %ebp,%eax
  mov    $0x1,%esi
  cmovle %r11d,%eax
  xor    %ecx,%ecx
  lea    0x1(%rax),%r9d
  test   %eax,%eax
  je     L162
  nopl   0x0(%rax)
L158:
  lea    0x4(%rcx),%rdi
  cmp    %esi,%r11d
  je     L73
  mov    (%r10),%r14
  mov    0x8(%r10),%r8
  lea    0x4(%rcx),%rdi
  movslq (%r14,%rcx,1),%rdx
  mov    %rdx,%rax
  imul   $0xffffffffa490c717,%rdx,%rdx
  mov    %eax,%r15d
  sar    $0x1f,%r15d
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x1a,%edx
  sub    %r15d,%edx
  imul   $0x638f227,%edx,%edx
  sub    %edx,%eax
  movslq 0x4(%r14,%rcx,1),%rdx
  mov    %rdx,%r14
  imul   $0xffffffffa490c717,%rdx,%rdx
  mov    %r14d,%r15d
  sar    $0x1f,%r15d
  shr    $0x20,%rdx
  add    %r14d,%edx
  sar    $0x1a,%edx
  sub    %r15d,%edx
  imul   $0x638f227,%edx,%edx
  sub    %edx,%r14d
  add    %r14d,%eax
  movslq %eax,%rdx
  mov    %eax,%r14d
  imul   $0xffffffffa490c717,%rdx,%rdx
  sar    $0x1f,%r14d
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x1a,%edx
  sub    %r14d,%edx
  imul   $0x638f227,%edx,%edx
  sub    %edx,%eax
  mov    %eax,0x4(%r8,%rcx,1)
L73:
  add    $0x1,%esi
  mov    %rdi,%rcx
  cmp    %esi,%r9d
  jne    L158
L162:
  lea    0x1(%r11),%eax
  add    $0x8,%r10
  cmp    %ebx,%r11d
  je     L66
  mov    %eax,%r11d
  jmp    L95
  xchg   %ax,%ax
L66:
  mov    (%rsp),%rax
  xor    %ebp,%ebp
  mov    -0x8(%r13,%rax,1),%rax
  mov    -0x4(%rax,%r12,1),%r12d
L119:
  mov    0x0(%r13,%rbp,8),%rdi
  add    $0x1,%rbp
  call   <free@plt>
  cmp    %ebp,%ebx
  jge    L119
  mov    %r13,%rdi
  call   <free@plt>
  jmp    L120
L82:
  test   %r15d,%r15d
  je     L85
  lea    -0x1(%r15),%eax
  mov    %r13,%rbx
  lea    0x8(%r13,%rax,8),%rbp
L121:
  mov    (%rbx),%rdi
  add    $0x8,%rbx
  call   <free@plt>
  cmp    %rbx,%rbp
  jne    L121
L85:
  mov    %r13,%rdi
  call   <free@plt>
  jmp    L58
```

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);
}
```