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

```asm
<Dijkstra>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rdi,%r13
  lea    0x0(,%rcx,4),%edi
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  mov    %ecx,0xc(%rsp)
  call   <malloc@plt>
  mov    0xc(%rsp),%r8d
  movl   $0x0,(%rbx)
  mov    %rax,%rbp
  movl   $0x0,(%r14)
  movl   $0x1,(%rax)
  cmp    $0x1,%r8d
  jle    L54
  lea    0x4(%r14),%rcx
  lea    0x4(%rax),%rdx
  lea    0x8(%r13),%rsi
  mov    %rcx,%rax
  lea    0x8(%rbx),%rdi
  sub    %rsi,%rax
  cmp    $0x8,%rax
  seta   %al
  cmp    $0x2,%r8d
  setne  %r9b
  sub    %rdi,%rcx
  and    %r9d,%eax
  cmp    $0x8,%rcx
  seta   %cl
  and    %ecx,%eax
  lea    0x4(%rbx),%rcx
  sub    %rsi,%rcx
  cmp    $0x8,%rcx
  seta   %cl
  and    %ecx,%eax
  mov    %rdx,%rcx
  sub    %rdi,%rcx
  lea    0x8(%r14),%rdi
  cmp    $0x8,%rcx
  seta   %cl
  and    %ecx,%eax
  mov    %rdx,%rcx
  sub    %rdi,%rcx
  cmp    $0x8,%rcx
  seta   %cl
  test   %cl,%al
  je     L90
  sub    %rsi,%rdx
  cmp    $0x8,%rdx
  jbe    L90
  lea    -0x2(%r8),%eax
  lea    -0x1(%r8),%ecx
  cmp    $0x2,%eax
  jbe    L123
  mov    %ecx,%eax
  pxor   %xmm0,%xmm0
  shr    $0x2,%eax
  lea    -0x1(%rax),%edx
  mov    $0x4,%eax
  shl    $0x4,%rdx
  add    $0x14,%rdx
  nopl   0x0(%rax,%rax,1)
L44:
  movdqu 0x0(%r13,%rax,1),%xmm1
  movups %xmm1,(%rbx,%rax,1)
  movups %xmm0,(%r14,%rax,1)
  movups %xmm0,0x0(%rbp,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L44
  mov    %ecx,%esi
  movslq %r8d,%r12
  and    $0xfffffffc,%esi
  lea    0x1(%rsi),%edx
  mov    %edx,%eax
  cmp    %esi,%ecx
  je     L80
  mov    %r8d,%edi
  sub    %esi,%edi
  lea    -0x1(%rdi),%ecx
  cmp    $0x2,%edi
  je     L29
L3:
  mov    0x0(%r13,%rdx,4),%rsi
  movslq %r8d,%r12
  mov    %rsi,(%rbx,%rdx,4)
  movq   $0x0,(%r14,%rdx,4)
  movq   $0x0,0x0(%rbp,%rdx,4)
  mov    %ecx,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %edx,%ecx
  je     L80
L29:
  cltq
  movslq %r8d,%r12
  mov    0x0(%r13,%rax,4),%edx
  mov    %edx,(%rbx,%rax,4)
  movl   $0x0,(%r14,%rax,4)
  movl   $0x0,0x0(%rbp,%rax,4)
L80:
  mov    $0x1,%r15d
  nop
L96:
  mov    %r8d,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %r8d,0xc(%rsp)
  call   <Find_min_dist@plt>
  mov    0xc(%rsp),%r8d
  mov    %eax,%esi
  cltq
  mov    %esi,%edi
  movl   $0x1,0x0(%rbp,%rax,4)
  lea    0x0(,%rax,4),%r9
  mov    $0x1,%eax
  imul   %r8d,%edi
  nopw   0x0(%rax,%rax,1)
L64:
  mov    0x0(%rbp,%rax,4),%edx
  test   %edx,%edx
  jne    L127
  lea    (%rdi,%rax,1),%ecx
  mov    (%rbx,%r9,1),%edx
  movslq %ecx,%rcx
  add    0x0(%r13,%rcx,4),%edx
  cmp    %edx,(%rbx,%rax,4)
  jle    L127
  mov    %edx,(%rbx,%rax,4)
  mov    %esi,(%r14,%rax,4)
L127:
  add    $0x1,%rax
  cmp    %r12,%rax
  jne    L64
  add    $0x1,%r15d
  cmp    %r15d,%r8d
  jne    L96
L54:
  add    $0x18,%rsp
  mov    %rbp,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <free@plt>
L90:
  movslq %r8d,%r12
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L27:
  mov    0x0(%r13,%rax,4),%edx
  mov    %edx,(%rbx,%rax,4)
  movl   $0x0,(%r14,%rax,4)
  movl   $0x0,0x0(%rbp,%rax,4)
  add    $0x1,%rax
  cmp    %r12,%rax
  jne    L27
  jmp    L80
L123:
  mov    $0x1,%eax
  mov    $0x1,%edx
  jmp    L3
```

assistant: ```c
void Dijkstra(int mat[], int dist[], int pred[], int n) {
  int i, u, v, *known, new_dist;
  known = malloc(n * sizeof(int));
  dist[0] = 0;
  pred[0] = 0;
  known[0] = 1;
  for (v = 1; v < n; v++) {
    dist[v] = mat[0 * n + v];
    pred[v] = 0;
    known[v] = 0;
  }
  for (i = 1; i < n; i++) {
    u = Find_min_dist(dist, known, n);
    known[u] = 1;
    for (v = 1; v < n; v++)
      if (!known[v]) {
        new_dist = dist[u] + mat[u * n + v];
        if (new_dist < dist[v]) {
          dist[v] = new_dist;
          pred[v] = u;
        }
      }
  }
  free(known);
}
```