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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x9000(%rsp),%r11
L165:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L165
  sub    $0xe00,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x9df4(%rbp),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x9dec(%rbp),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x9de8(%rbp)
  jmp    L73
L114:
  movl   $0x0,-0x9df0(%rbp)
  jmp    L141
L57:
  mov    -0x9df0(%rbp),%eax
  lea    -0x9c50(%rbp),%rcx
  movslq %eax,%rsi
  mov    -0x9de8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rsi,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x9df0(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x9de8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    -0x9c50(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L59
  mov    -0x9df0(%rbp),%eax
  cmp    %eax,-0x9de8(%rbp)
  je     L59
  mov    -0x9df0(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x9de8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  movl   $0x270f,-0x9c50(%rbp,%rax,4)
L59:
  mov    -0x9dec(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x9de8(%rbp)
  jne    L53
  mov    -0x9df0(%rbp),%eax
  mov    -0x9df0(%rbp),%ecx
  movslq %eax,%rsi
  mov    -0x9de8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rsi,%rax
  mov    -0x9c50(%rbp,%rax,4),%edx
  movslq %ecx,%rax
  mov    %edx,-0x9de0(%rbp,%rax,4)
L53:
  mov    -0x9df0(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x9df0(%rbp)
L141:
  mov    -0x9df0(%rbp),%edx
  mov    -0x9df4(%rbp),%eax
  cmp    %eax,%edx
  jl     L57
  addl   $0x1,-0x9de8(%rbp)
L73:
  mov    -0x9df4(%rbp),%eax
  cmp    %eax,-0x9de8(%rbp)
  jl     L114
  movl   $0x1,-0x9de8(%rbp)
  jmp    L126
L183:
  movl   $0x0,-0x9df0(%rbp)
  jmp    L55
L148:
  mov    -0x9dec(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x9df0(%rbp),%eax
  cmp    %eax,%edx
  je     L40
  movl   $0x0,-0x9de4(%rbp)
  jmp    L99
L124:
  mov    -0x9df0(%rbp),%eax
  mov    -0x9de4(%rbp),%edx
  movslq %edx,%rcx
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    -0x9c50(%rbp,%rax,4),%eax
  cmp    $0x270f,%eax
  jne    L120
  mov    -0x9df0(%rbp),%eax
  mov    -0x9de4(%rbp),%edx
  movslq %edx,%rcx
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    -0x9c50(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L7
L120:
  mov    -0x9df0(%rbp),%eax
  cltq
  mov    -0x9de0(%rbp,%rax,4),%ecx
  mov    -0x9de4(%rbp),%eax
  cltq
  mov    -0x9de0(%rbp,%rax,4),%esi
  mov    -0x9df0(%rbp),%eax
  movslq %eax,%rdi
  mov    -0x9de4(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rdi,%rax
  mov    -0x9c50(%rbp,%rax,4),%eax
  add    %esi,%eax
  cmp    %eax,%ecx
  jle    L7
  mov    -0x9de4(%rbp),%eax
  cltq
  mov    -0x9de0(%rbp,%rax,4),%ecx
  mov    -0x9df0(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x9de4(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rsi,%rax
  mov    -0x9c50(%rbp,%rax,4),%edx
  mov    -0x9df0(%rbp),%eax
  add    %ecx,%edx
  cltq
  mov    %edx,-0x9de0(%rbp,%rax,4)
L7:
  addl   $0x1,-0x9de4(%rbp)
L99:
  mov    -0x9df4(%rbp),%eax
  cmp    %eax,-0x9de4(%rbp)
  jl     L124
L40:
  mov    -0x9df0(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x9df0(%rbp)
L55:
  mov    -0x9df0(%rbp),%edx
  mov    -0x9df4(%rbp),%eax
  cmp    %eax,%edx
  jl     L148
  addl   $0x1,-0x9de8(%rbp)
L126:
  mov    -0x9df4(%rbp),%eax
  cmp    %eax,-0x9de8(%rbp)
  jl     L183
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x9df0(%rbp),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x9df0(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x9de0(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L97
  call   <__stack_chk_fail@plt>
L97:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D1
type: string
name: extract_symbolic_data
arguments: label: D21
type: string
name: extract_symbolic_data
arguments: label: D50
type: string
name: extract_symbolic_data
arguments: label: D84
type: string
name: extract_symbolic_data
arguments: label: D39
type: string
name: extract_symbolic_data
arguments: label: D44
type: string

tool: D1: 
Enter the no. of vertices 

tool: D21: %d

tool: D50: 
Enter the source vertex 

tool: D84: 
Enter the cost matrix 

tool: D39: 
Enter the final vertex 

tool: D44: 
The shortest distance is %d 

assistant: ```c
int main() {
  int n, i, j, a[100][100], dist[100], src, min, k;
  printf("\nEnter the no. of vertices ");
  scanf("%d", &n);
  printf("\nEnter the source vertex ");
  scanf("%d", &src);
  printf("\nEnter the cost matrix ");
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++) {
      scanf("%d", &a[i][j]);
      if (a[i][j] == 0 && i != j)
        a[i][j] = 9999;
      if (i == (src - 1))
        dist[j] = a[i][j];
    }
  for (i = 1; i < n; i++) {
    for (j = 0; j < n; j++) {
      if (j != (src - 1)) {
        for (k = 0; k < n; k++) {
          if ((a[j][k] != 9999 || a[j][k] != 0) && dist[j] > dist[k] + a[k][j])
            dist[j] = dist[k] + a[k][j];
        }
      }
    }
  }
  printf("\nEnter the final vertex ");
  scanf("%d", &j);
  printf("\nThe shortest distance is %d ", dist[j - 1]);
  return 0;
}
```