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

```asm
<triNumber>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %esi,%esi
  jle    L21
  mov    %rdi,%r14
  mov    %esi,%ebx
  cmp    $0x1,%esi
  je     L148
  mov    $0x7d4,%edi
  call   <malloc@plt>
  mov    $0x7d4,%edi
  mov    %rax,%r12
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    %rax,%rdx
  mov    (%r14),%eax
  mov    %eax,(%r12)
  add    0x7d4(%r14),%eax
  mov    %eax,0x0(%rbp)
  mov    0x7d8(%r14),%eax
  add    (%r12),%eax
  mov    %eax,0x4(%rbp)
  cmp    $0x2,%ebx
  je     L108
  mov    %ebx,0xc(%rsp)
  mov    $0x1,%esi
  mov    $0x2,%edx
  lea    0xfa8(%r14),%rax
  movslq %ebx,%r14
  nopl   0x0(%rax,%rax,1)
L116:
  lea    -0x2(%rdx),%edi
  mov    (%rax),%ecx
  add    0x0(%rbp),%ecx
  cmp    $0x2,%edi
  mov    %r12,%rdi
  mov    %ecx,(%r12)
  movslq %edx,%rcx
  seta   %r8b
  sub    %rbp,%rdi
  cmp    $0xc,%rdi
  seta   %dil
  test   %dil,%r8b
  je     L83
  mov    %r12,%rdi
  sub    %rax,%rdi
  sub    $0x4,%rdi
  cmp    $0x8,%rdi
  jbe    L83
  mov    %esi,%r8d
  lea    0x4(%rax),%r9
  xor    %edi,%edi
  shr    $0x2,%r8d
  shl    $0x4,%r8
  nopw   0x0(%rax,%rax,1)
L209:
  movdqu 0x4(%rbp,%rdi,1),%xmm1
  movdqu 0x0(%rbp,%rdi,1),%xmm3
  movdqu (%r9,%rdi,1),%xmm5
  movdqa %xmm1,%xmm0
  pcmpgtd %xmm3,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm3,%xmm0
  por    %xmm1,%xmm0
  paddd  %xmm5,%xmm0
  movups %xmm0,0x4(%r12,%rdi,1)
  add    $0x10,%rdi
  cmp    %r8,%rdi
  jne    L209
  mov    %esi,%edi
  and    $0xfffffffc,%edi
  lea    0x1(%rdi),%r11d
  cmp    %edi,%esi
  je     L68
  mov    %edi,%r8d
  movslq %r11d,%r13
  lea    (%rax,%r8,4),%r10
  lea    0x0(,%r13,4),%r8
  lea    0x0(%rbp,%r8,1),%r15
  mov    -0x4(%rbp,%r8,1),%r9d
  mov    (%r15),%ebx
  cmp    %ebx,%r9d
  cmovl  %ebx,%r9d
  add    0x4(%r10),%r9d
  add    $0x2,%edi
  mov    %r9d,(%r12,%r13,4)
  cmp    %esi,%r11d
  jge    L68
  mov    0x4(%rbp,%r8,1),%r9d
  mov    (%r15),%r11d
  cmp    %r11d,%r9d
  cmovl  %r11d,%r9d
  add    0x8(%r10),%r9d
  mov    %r9d,0x4(%r12,%r8,1)
  cmp    %esi,%edi
  jge    L68
  mov    0x4(%rbp,%r8,1),%edi
  mov    0x8(%rbp,%r8,1),%r9d
  cmp    %r9d,%edi
  cmovl  %r9d,%edi
  add    0xc(%r10),%edi
  mov    %edi,0x8(%r12,%r8,1)
L68:
  mov    (%rax,%rcx,4),%edi
  add    $0x1,%rdx
  add    -0x4(%rbp,%rcx,4),%edi
  add    $0x1,%esi
  mov    %edi,(%r12,%rcx,4)
  add    $0x7d4,%rax
  cmp    %r14,%rdx
  je     L93
  mov    %r12,%rcx
  mov    %rbp,%r12
  mov    %rcx,%rbp
  jmp    L116
  nopl   (%rax)
L93:
  mov    0xc(%rsp),%ebx
L5:
  lea    -0x1(%rbx),%eax
  cmp    $0x2,%eax
  jbe    L39
  mov    %ebx,%edx
  mov    %r12,%rax
  pxor   %xmm2,%xmm2
  shr    $0x2,%edx
  shl    $0x4,%rdx
  add    %r12,%rdx
  nopl   0x0(%rax,%rax,1)
L1:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rax,%rdx
  jne    L1
  movdqa %xmm2,%xmm0
  mov    %ebx,%eax
  psrldq $0x8,%xmm0
  and    $0xfffffffc,%eax
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm0,%xmm1
  movdqa %xmm1,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm0
  pcmpgtd %xmm1,%xmm0
  pand   %xmm0,%xmm2
  pandn  %xmm1,%xmm0
  por    %xmm2,%xmm0
  movd   %xmm0,%r13d
  test   $0x3,%bl
  je     L57
  movslq %eax,%rcx
  lea    0x0(,%rcx,4),%rdx
  mov    (%r12,%rcx,4),%ecx
  cmp    %ecx,%r13d
  cmovl  %ecx,%r13d
  add    $0x1,%eax
  cmp    %eax,%ebx
  jle    L57
L23:
  mov    0x4(%r12,%rdx,1),%ecx
  cmp    %ecx,%r13d
  cmovl  %ecx,%r13d
  add    $0x1,%eax
  cmp    %ebx,%eax
  jge    L57
  mov    0x8(%r12,%rdx,1),%eax
  cmp    %eax,%r13d
  cmovl  %eax,%r13d
L57:
  mov    %r12,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
L21:
  add    $0x18,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L148:
  mov    (%rdi),%r13d
  jmp    L21
  nopl   0x0(%rax)
L83:
  mov    $0x1,%edi
  nopl   (%rax)
L130:
  mov    0x0(%rbp,%rdi,4),%r8d
  mov    -0x4(%rbp,%rdi,4),%r9d
  cmp    %r9d,%r8d
  cmovl  %r9d,%r8d
  add    (%rax,%rdi,4),%r8d
  mov    %r8d,(%r12,%rdi,4)
  add    $0x1,%rdi
  cmp    %rdi,%rdx
  jne    L130
  jmp    L68
L108:
  mov    %r12,%rbp
  mov    %rdx,%r12
  jmp    L5
L39:
  mov    (%r12),%r13d
  xor    %eax,%eax
  test   %r13d,%r13d
  cmovs  %eax,%r13d
  mov    $0x1,%eax
  xor    %edx,%edx
  jmp    L23
```

assistant: ```c
int triNumber(int value[][500 + 1], int level) {
  if (level <= 0)
    return 0;
  if (level == 1)
    return value[0][0];
  int *pre = (int *)malloc((500 + 1) * sizeof(int));
  int *cur = (int *)malloc((500 + 1) * sizeof(int));
  int *tmp, i, j;
  pre[0] = value[0][0];
  for (i = 1; i < level; i++) {
    cur[0] = pre[0] + value[i][0];
    for (j = 1; j < i; j++) {
      cur[j] = value[i][j] + (((pre[j - 1]) > (pre[j]) ? (pre[j - 1]) : (pre[j])));
    }
    cur[j] = value[i][j] + pre[j - 1];
    tmp = cur;
    cur = pre;
    pre = tmp;
  }
  i = 0;
  for (j = 0; j < level; j++) {
    if (pre[j] > i)
      i = pre[j];
  }
  free(pre);
  free(cur);
  return i;
}
```