user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x9000(%rsp),%r11
L11:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L11
  sub    $0xf90,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x9de0(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x32,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x9f84(%rbp),%rax
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x9f7c(%rbp),%rax
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x9f7c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movl   $0x1,-0x9de0(%rbp,%rax,4)
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x9f78(%rbp)
  jmp    L182
L18:
  movl   $0x0,-0x9f80(%rbp)
  jmp    L16
L156:
  mov    -0x9f80(%rbp),%eax
  lea    -0x9c50(%rbp),%rcx
  movslq %eax,%rsi
  mov    -0x9f78(%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    D1(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x9f80(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x9f78(%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    L0
  mov    -0x9f80(%rbp),%eax
  cmp    %eax,-0x9f78(%rbp)
  je     L0
  mov    -0x9f80(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x9f78(%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)
L0:
  mov    -0x9f7c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x9f78(%rbp)
  jne    L151
  mov    -0x9f80(%rbp),%eax
  mov    -0x9f80(%rbp),%ecx
  movslq %eax,%rsi
  mov    -0x9f78(%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,-0x9f70(%rbp,%rax,4)
L151:
  mov    -0x9f80(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x9f80(%rbp)
L16:
  mov    -0x9f80(%rbp),%edx
  mov    -0x9f84(%rbp),%eax
  cmp    %eax,%edx
  jl     L156
  addl   $0x1,-0x9f78(%rbp)
L182:
  mov    -0x9f84(%rbp),%eax
  cmp    %eax,-0x9f78(%rbp)
  jl     L18
  movl   $0x1,-0x9f78(%rbp)
  jmp    L179
L61:
  movl   $0x0,-0x9f74(%rbp)
  movl   $0x0,-0x9f80(%rbp)
  jmp    L91
L14:
  mov    -0x9f80(%rbp),%eax
  cltq
  mov    -0x9de0(%rbp,%rax,4),%eax
  cmp    $0x1,%eax
  je     L70
  mov    -0x9f80(%rbp),%eax
  cltq
  mov    -0x9f70(%rbp,%rax,4),%edx
  mov    -0x9f74(%rbp),%eax
  cltq
  mov    -0x9f70(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jge    L70
  mov    -0x9f80(%rbp),%eax
  mov    %eax,-0x9f74(%rbp)
L70:
  mov    -0x9f80(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x9f80(%rbp)
L91:
  mov    -0x9f80(%rbp),%edx
  mov    -0x9f84(%rbp),%eax
  cmp    %eax,%edx
  jl     L14
  mov    -0x9f74(%rbp),%eax
  cltq
  movl   $0x1,-0x9de0(%rbp,%rax,4)
  movl   $0x0,-0x9f80(%rbp)
  jmp    L159
L96:
  mov    -0x9f80(%rbp),%eax
  cltq
  mov    -0x9de0(%rbp,%rax,4),%eax
  cmp    $0x1,%eax
  je     L75
  mov    -0x9f80(%rbp),%eax
  cltq
  mov    -0x9f70(%rbp,%rax,4),%ecx
  mov    -0x9f74(%rbp),%eax
  cltq
  mov    -0x9f70(%rbp,%rax,4),%esi
  mov    -0x9f80(%rbp),%eax
  movslq %eax,%rdi
  mov    -0x9f74(%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    L75
  mov    -0x9f74(%rbp),%eax
  cltq
  mov    -0x9f70(%rbp,%rax,4),%ecx
  mov    -0x9f80(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x9f74(%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    -0x9f80(%rbp),%eax
  add    %ecx,%edx
  cltq
  mov    %edx,-0x9f70(%rbp,%rax,4)
L75:
  mov    -0x9f80(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x9f80(%rbp)
L159:
  mov    -0x9f80(%rbp),%edx
  mov    -0x9f84(%rbp),%eax
  cmp    %eax,%edx
  jl     L96
  addl   $0x1,-0x9f78(%rbp)
L179:
  mov    -0x9f84(%rbp),%eax
  cmp    %eax,-0x9f78(%rbp)
  jl     L61
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x9f80(%rbp),%rax
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x9f80(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x9f70(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L180
  call   <__stack_chk_fail@plt>
L180:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D7
datatype: string
name: parse_data
arguments: data_label: D1
datatype: string
name: parse_data
arguments: data_label: D55
datatype: string
name: parse_data
arguments: data_label: D44
datatype: string
name: parse_data
arguments: data_label: D17
datatype: string
name: parse_data
arguments: data_label: D65
datatype: string

tool: D7: 
Enter the no. of vertices 

tool: D1: %d

tool: D55: 
Enter the source vertex 

tool: D44: 
Enter the cost matrix 

tool: D17: 
Enter the final vertex 

tool: D65: 
The shortest distance is %d 

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