user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D59(%rip),%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D12(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%edi
  mov    %edi,%esi
  call   <createMatrix@plt>
  mov    %rax,%rbx
  lea    D85(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  mov    %esi,%edx
  mov    %rbx,%rdi
  call   <inputMatrix@plt>
  lea    D146(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  mov    %esi,%edx
  mov    %rbx,%rdi
  call   <displayMatrix@plt>
  lea    D104(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  mov    %rbx,%rdi
  call   <isUpperTriangular@plt>
  test   %rax,%rax
  je     L91
  lea    D149(%rip),%rdi
  call   <printf@plt>
L78:
  mov    0x4(%rsp),%esi
  mov    %rbx,%rdi
  call   <isLowerTriangular@plt>
  test   %rax,%rax
  je     L37
  lea    D98(%rip),%rdi
  call   <printf@plt>
L85:
  mov    0x4(%rsp),%esi
  mov    %rbx,%rdi
  call   <isIdentity@plt>
  test   %rax,%rax
  je     L4
  lea    D44(%rip),%rdi
  call   <printf@plt>
L107:
  mov    0x4(%rsp),%esi
  mov    %rbx,%rdi
  call   <isDiagonal@plt>
  test   %rax,%rax
  je     L24
  lea    D65(%rip),%rdi
  call   <printf@plt>
L10:
  mov    0x4(%rsp),%esi
  mov    %rbx,%rdi
  call   <isTriDiagonal@plt>
  test   %rax,%rax
  je     L19
  lea    D92(%rip),%rdi
  call   <printf@plt>
L8:
  lea    D104(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  mov    %rbx,%rdi
  call   <delMatrix@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  mov    $0x0,%eax
  add    $0x10,%rsp
  pop    %rbx
  ret
L91:
  lea    D102(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L37:
  lea    D86(%rip),%rdi
  call   <printf@plt>
  jmp    L85
L4:
  lea    D24(%rip),%rdi
  call   <printf@plt>
  jmp    L107
L24:
  lea    D90(%rip),%rdi
  call   <printf@plt>
  jmp    L10
L19:
  lea    D133(%rip),%rdi
  call   <printf@plt>
  jmp    L8
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D59
datatype: string
name: extract_symbolic_data
arguments: data_tag: D12
datatype: string
name: extract_symbolic_data
arguments: data_tag: D85
datatype: string
name: extract_symbolic_data
arguments: data_tag: D146
datatype: string
name: extract_symbolic_data
arguments: data_tag: D104
datatype: string
name: extract_symbolic_data
arguments: data_tag: D149
datatype: string
name: extract_symbolic_data
arguments: data_tag: D98
datatype: string
name: extract_symbolic_data
arguments: data_tag: D44
datatype: string
name: extract_symbolic_data
arguments: data_tag: D65
datatype: string
name: extract_symbolic_data
arguments: data_tag: D92
datatype: string
name: extract_symbolic_data
arguments: data_tag: D102
datatype: string
name: extract_symbolic_data
arguments: data_tag: D86
datatype: string
name: extract_symbolic_data
arguments: data_tag: D24
datatype: string
name: extract_symbolic_data
arguments: data_tag: D90
datatype: string
name: extract_symbolic_data
arguments: data_tag: D133
datatype: string

tool: D59: Please enter the order for a 2D square matrix.


tool: D12: %d

tool: D85: Please enter the elements for the matrix.


tool: D146: The matrix you have entered is:



tool: D104: 



tool: D149: The matrix is an Upper Triangular matrix.


tool: D98: The matrix is a Lower Triangular matrix.


tool: D44: The matrix is an Identity matrix.


tool: D65: The matrix is a Diagonal matrix.


tool: D92: The matrix is a Tridiagonal matrix.


tool: D102: The matrix is not an Upper Triangular matrix.


tool: D86: The matrix is not a Lower Triangular matrix.


tool: D24: The matrix is not an Identity matrix.


tool: D90: The matrix is not a Diagonal matrix.


tool: D133: The matrix is not a Tridiagonal matrix.


assistant: ```c
int main() {
  int **mat, size;
  printf("Please enter the order for a 2D square matrix.\n");
  scanf("%d", &size);
  mat = createMatrix(size, size);
  printf("Please enter the elements for the matrix.\n");
  inputMatrix(mat, size, size);
  printf("The matrix you have entered is:\n\n");
  displayMatrix(mat, size, size);
  printf("\n\n");
  if (isUpperTriangular(mat, size))
    printf("The matrix is an Upper Triangular matrix.\n");
  else
    printf("The matrix is not an Upper Triangular matrix.\n");
  if (isLowerTriangular(mat, size))
    printf("The matrix is a Lower Triangular matrix.\n");
  else
    printf("The matrix is not a Lower Triangular matrix.\n");
  if (isIdentity(mat, size))
    printf("The matrix is an Identity matrix.\n");
  else
    printf("The matrix is not an Identity matrix.\n");
  if (isDiagonal(mat, size))
    printf("The matrix is a Diagonal matrix.\n");
  else
    printf("The matrix is not a Diagonal matrix.\n");
  if (isTriDiagonal(mat, size))
    printf("The matrix is a Tridiagonal matrix.\n");
  else
    printf("The matrix is not a Tridiagonal matrix.\n");
  printf("\n\n");
  delMatrix(mat, size);
  return 0;
}
```