user: Translate the below assembly code into C programming language:

```asm
<lis>:
  endbr64
  push   %r14
  push   %r13
  lea    0x0(,%rsi,4),%r13d
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  mov    %r13d,%edi
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,%r12
  call   <malloc@plt>
  mov    %rax,%r13
  test   %ebp,%ebp
  jle    L138
  lea    0x4(%r12),%rdx
  sub    %rdx,%rax
  cmp    $0x8,%rax
  jbe    L212
  lea    -0x1(%rbp),%eax
  cmp    $0x3,%eax
  jbe    L212
  mov    %ebp,%edx
  mov    %r13,%rcx
  movdqa D6(%rip),%xmm0
  mov    %r12,%rax
  shr    $0x2,%edx
  movdqa D14(%rip),%xmm3
  movdqa D26(%rip),%xmm2
  sub    %r12,%rcx
  shl    $0x4,%rdx
  add    %r12,%rdx
  nopw   0x0(%rax,%rax,1)
L139:
  movdqa %xmm0,%xmm1
  movups %xmm2,(%rax)
  paddd  %xmm3,%xmm0
  movups %xmm1,(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L139
  mov    %ebp,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%bpl
  je     L149
  mov    %eax,%ecx
  movl   $0x1,(%r12,%rcx,4)
  lea    0x0(,%rcx,4),%rdx
  mov    %eax,0x0(%r13,%rcx,4)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%ebp
  jle    L149
  movl   $0x1,0x4(%r12,%rdx,1)
  add    $0x2,%eax
  mov    %ecx,0x4(%r13,%rdx,1)
  cmp    %eax,%ebp
  jle    L149
  movl   $0x1,0x8(%r12,%rdx,1)
  mov    %eax,0x8(%r13,%rdx,1)
L149:
  cmp    $0x1,%ebp
  jle    L138
  mov    %r12,%r14
  mov    %r13,%r11
  lea    0x4(%rbx),%rsi
  mov    $0x1,%edi
  sub    %rbx,%r14
  sub    %rbx,%r11
  sub    %r12,%rbx
  mov    %rbx,%r8
L173:
  lea    (%r14,%rsi,1),%r9
  lea    (%r11,%rsi,1),%r10
  mov    %r12,%rax
  xor    %edx,%edx
  nopl   (%rax)
L128:
  mov    (%r8,%rax,1),%ebx
  cmp    %ebx,(%rsi)
  jle    L190
  mov    (%rax),%ecx
  cmp    (%r9),%ecx
  jl     L190
  add    $0x1,%ecx
  mov    %ecx,(%r9)
  mov    %edx,(%r10)
L190:
  add    $0x1,%edx
  add    $0x4,%rax
  cmp    %edi,%edx
  jne    L128
  lea    0x1(%rdx),%edi
  add    $0x4,%rsi
  cmp    %edi,%ebp
  jne    L173
  test   %ebp,%ebp
  mov    $0x1,%ecx
  cmovg  %ebp,%ecx
  cmp    $0x3,%ebp
  jle    L90
  mov    %ecx,%edx
  pxor   %xmm2,%xmm2
  mov    %r12,%rax
  shr    $0x2,%edx
  shl    $0x4,%rdx
  add    %r12,%rdx
  nopl   0x0(%rax)
L7:
  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    %rdx,%rax
  jne    L7
  movdqa %xmm2,%xmm0
  mov    %ecx,%eax
  psrldq $0x8,%xmm0
  and    $0xfffffffc,%eax
  and    $0x3,%ecx
  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,%r14d
  je     L60
  movslq %eax,%rcx
  lea    0x0(,%rcx,4),%rdx
  mov    (%r12,%rcx,4),%ecx
  cmp    %ecx,%r14d
  cmovl  %ecx,%r14d
  add    $0x1,%eax
  cmp    %eax,%ebp
  jle    L60
L83:
  mov    0x4(%r12,%rdx,1),%ecx
  cmp    %ecx,%r14d
  cmovl  %ecx,%r14d
  add    $0x1,%eax
  cmp    %eax,%ebp
  jle    L60
  mov    0x8(%r12,%rdx,1),%eax
  cmp    %eax,%r14d
  cmovl  %eax,%r14d
L60:
  mov    %r12,%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  pop    %rbx
  mov    %r14d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L212:
  mov    %r13,%rcx
  mov    %r12,%rdx
  xor    %eax,%eax
  sub    %r12,%rcx
  nopl   0x0(%rax)
L198:
  movl   $0x1,(%rdx)
  mov    %eax,(%rcx,%rdx,1)
  add    $0x1,%eax
  add    $0x4,%rdx
  cmp    %eax,%ebp
  jne    L198
  jmp    L149
L138:
  cmp    $0x1,%ebp
  je     L58
  xor    %r14d,%r14d
  jmp    L60
L90:
  mov    (%r12),%r14d
  xor    %eax,%eax
  test   %r14d,%r14d
  cmovs  %eax,%r14d
  mov    $0x1,%eax
  xor    %edx,%edx
  jmp    L83
L58:
  mov    (%r12),%r14d
  xor    %eax,%eax
  test   %r14d,%r14d
  cmovs  %eax,%r14d
  jmp    L60
```

tool_calls: name: disassemble_data
arguments: data_tag: D6
type: byte[16]
name: disassemble_data
arguments: data_tag: D14
type: byte[16]
name: disassemble_data
arguments: data_tag: D26
type: byte[16]

tool: {"D6": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: {"D14": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D26": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

assistant: ```c
int lis(int *a, int N) {
  int *best, *prev, i, j, max = 0;
  best = (int *)malloc(sizeof(int) * N);
  prev = (int *)malloc(sizeof(int) * N);
  for (i = 0; i < N; i++)
    best[i] = 1, prev[i] = i;
  for (i = 1; i < N; i++)
    for (j = 0; j < i; j++)
      if (a[i] > a[j] && best[i] < best[j] + 1)
        best[i] = best[j] + 1, prev[i] = j;
  for (i = 0; i < N; i++)
    if (max < best[i])
      max = best[i];
  free(best);
  free(prev);
  return max;
}
```