user: What is the c source code of the assembly code below?

```asm
<longestIncreasingPath>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  movslq %esi,%rdi
  push   %r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  shl    $0x3,%rdi
  sub    $0x18,%rsp
  call   <malloc@plt>
  mov    %rax,%rbp
  test   %ebx,%ebx
  jle    L149
  movslq %r13d,%rax
  mov    $0x1,%r12d
  shl    $0x2,%rax
  mov    %rax,(%rsp)
  mov    %ebx,%eax
  xor    %ebx,%ebx
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax)
L43:
  mov    (%rsp),%rdi
  mov    %ebx,%r14d
  call   <malloc@plt>
  mov    %rax,0x0(%rbp,%rbx,8)
  mov    %rax,%rdi
  test   %r13d,%r13d
  jle    L90
  mov    $0xfffffffffffffffc,%rcx
  xor    %eax,%eax
  mov    %ebx,%r11d
  jmp    L41
  nopw   0x0(%rax,%rax,1)
L48:
  movl   $0x1,(%rdi)
  mov    0x4(%rdi,%rsi,1),%edx
L49:
  cmp    %edx,%r12d
  cmovl  %edx,%r12d
  add    $0x1,%eax
  cmp    %eax,%r13d
  je     L90
L41:
  mov    %eax,%edx
  mov    %rcx,%rsi
  add    $0x4,%rcx
  or     %r14d,%edx
  je     L48
  mov    (%r15),%r8
  test   %ebx,%ebx
  jne    L29
  test   %eax,%eax
  jle    L29
  mov    (%r8,%rsi,1),%r10d
  mov    $0x1,%edx
  cmp    %r10d,(%r8,%rcx,1)
  jle    L170
  mov    (%rdi,%rsi,1),%edx
  add    $0x1,%edx
L170:
  cmp    %edx,%r12d
  mov    %edx,0x4(%rdi,%rsi,1)
  cmovl  %edx,%r12d
  add    $0x1,%eax
  cmp    %eax,%r13d
  jne    L41
L90:
  add    $0x1,%rbx
  add    $0x8,%r15
  cmp    0x8(%rsp),%rbx
  jne    L43
  mov    %rbp,%r13
  lea    0x0(%rbp,%rbx,8),%rbx
  nopl   (%rax)
L111:
  mov    0x0(%r13),%rdi
  add    $0x8,%r13
  call   <free@plt>
  cmp    %r13,%rbx
  jne    L111
L103:
  mov    %rbp,%rdi
  call   <free@plt>
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L29:
  mov    -0x8(%r15),%r9
  test   %r11d,%r11d
  jle    L45
  test   %eax,%eax
  jne    L45
  mov    (%r9),%r10d
  mov    $0x1,%edx
  cmp    %r10d,(%r8)
  jle    L177
  mov    -0x8(%rbp,%rbx,8),%rdx
  mov    (%rdx),%edx
  add    $0x1,%edx
L177:
  mov    %edx,(%rdi)
  mov    0x4(%rdi,%rsi,1),%edx
  jmp    L49
  nopw   0x0(%rax,%rax,1)
L45:
  mov    (%r8,%rcx,1),%r10d
  mov    $0x1,%edx
  cmp    (%r9,%rcx,1),%r10d
  jle    L47
  mov    -0x8(%rbp,%rbx,8),%rdx
  mov    (%rdx,%rcx,1),%edx
  add    $0x1,%edx
L47:
  mov    $0x1,%r9d
  cmp    (%r8,%rsi,1),%r10d
  jle    L160
  mov    (%rdi,%rsi,1),%r9d
  add    $0x1,%r9d
L160:
  cmp    %r9d,%edx
  cmovl  %r9d,%edx
  jmp    L170
L149:
  mov    $0x1,%r12d
  jmp    L103
```

assistant: ```c
int longestIncreasingPath(int **matrix, int matrixRowSize, int matrixColSize) {
  int **lenMatrix = (int **)malloc(sizeof(int *) * matrixRowSize);
  int i = 0;
  int j = 0;
  int result = 1;
  for (; i < matrixRowSize; i++) {
    lenMatrix[i] = (int *)malloc(sizeof(int) * matrixColSize);
    for (j = 0; j < matrixColSize; j++) {
      if (i == 0 && j == 0) {
        lenMatrix[i][j] = 1;
      } else if (i == 0 && j > 0) {
        lenMatrix[i][j] = matrix[i][j] > matrix[i][j - 1] ? (lenMatrix[i][j - 1] + 1) : 1;
      } else if (i > 0 && j == 0) {
        lenMatrix[i][j] = matrix[i][j] > matrix[i - 1][j] ? (lenMatrix[i - 1][j] + 1) : 1;
      } else {
        int topDown = matrix[i][j] > matrix[i - 1][j] ? (lenMatrix[i - 1][j] + 1) : 1;
        int leftRight = matrix[i][j] > matrix[i][j - 1] ? (lenMatrix[i][j - 1] + 1) : 1;
        lenMatrix[i][j] = (topDown > leftRight) ? topDown : leftRight;
      }
      if (result < lenMatrix[i][j]) {
        result = lenMatrix[i][j];
      }
    }
  }
  for (i = 0; i < matrixRowSize; i++) {
    free(lenMatrix[i]);
  }
  free(lenMatrix);
  return result;
}
```