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

```asm
<dij>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x100,%rsp
  mov    %rdi,-0xe8(%rbp)
  mov    %esi,-0xec(%rbp)
  mov    %edx,-0xf0(%rbp)
  mov    %ecx,-0xf4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xd4(%rbp)
  movl   $0x0,-0xd0(%rbp)
  mov    -0xf0(%rbp),%eax
  mov    %eax,-0xcc(%rbp)
  mov    -0xf4(%rbp),%eax
  mov    %eax,-0xc8(%rbp)
  movl   $0x0,-0xdc(%rbp)
  jmp    L112
L158:
  mov    -0xdc(%rbp),%eax
  cltq
  movl   $0x0,-0x90(%rbp,%rax,4)
  addl   $0x1,-0xdc(%rbp)
L112:
  mov    -0xdc(%rbp),%eax
  cmp    -0xec(%rbp),%eax
  jl     L158
  movl   $0x0,-0xdc(%rbp)
  jmp    L152
L149:
  mov    -0xcc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0xe8(%rbp),%rax
  add    %rax,%rdx
  mov    -0xdc(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  test   %eax,%eax
  jne    L104
  mov    -0xdc(%rbp),%eax
  cltq
  movl   $0x270f,-0xc0(%rbp,%rax,4)
  mov    -0xdc(%rbp),%eax
  cltq
  movl   $0x0,-0x60(%rbp,%rax,4)
  jmp    L39
L104:
  mov    -0xcc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0xe8(%rbp),%rax
  add    %rax,%rdx
  mov    -0xdc(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%edx
  mov    -0xdc(%rbp),%eax
  cltq
  mov    %edx,-0xc0(%rbp,%rax,4)
  mov    -0xdc(%rbp),%eax
  cltq
  mov    -0xcc(%rbp),%edx
  mov    %edx,-0x60(%rbp,%rax,4)
L39:
  addl   $0x1,-0xdc(%rbp)
L152:
  mov    -0xdc(%rbp),%eax
  cmp    -0xec(%rbp),%eax
  jl     L149
  mov    -0xcc(%rbp),%eax
  cltq
  movl   $0x1,-0x90(%rbp,%rax,4)
  mov    -0xcc(%rbp),%eax
  cltq
  movl   $0x0,-0xc0(%rbp,%rax,4)
  jmp    L99
L70:
  mov    -0xec(%rbp),%edx
  lea    -0x90(%rbp),%rcx
  lea    -0xc0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <srch_min@plt>
  mov    %eax,-0xd8(%rbp)
  mov    -0xd8(%rbp),%eax
  cltq
  movl   $0x1,-0x90(%rbp,%rax,4)
  movl   $0x0,-0xdc(%rbp)
  jmp    L181
L38:
  mov    -0xdc(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%eax
  cmp    $0x1,%eax
  je     L173
  mov    -0xdc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0xe8(%rbp),%rax
  add    %rax,%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  test   %eax,%eax
  je     L173
  mov    -0xd8(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%ecx
  mov    -0xdc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0xe8(%rbp),%rax
  add    %rax,%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0xdc(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jge    L173
  mov    -0xd8(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%ecx
  mov    -0xdc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0xe8(%rbp),%rax
  add    %rax,%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0xdc(%rbp),%eax
  cltq
  mov    %edx,-0xc0(%rbp,%rax,4)
  mov    -0xdc(%rbp),%eax
  cltq
  mov    -0xd8(%rbp),%edx
  mov    %edx,-0x60(%rbp,%rax,4)
L173:
  addl   $0x1,-0xdc(%rbp)
L181:
  mov    -0xdc(%rbp),%eax
  cmp    -0xec(%rbp),%eax
  jl     L38
L99:
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L70
  movl   $0x0,-0xd8(%rbp)
  mov    -0xc8(%rbp),%eax
  mov    %eax,-0xdc(%rbp)
  jmp    L138
L62:
  mov    -0xdc(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  mov    %eax,-0xc4(%rbp)
  mov    -0xd8(%rbp),%eax
  cltq
  mov    -0xc4(%rbp),%edx
  mov    %edx,-0x30(%rbp,%rax,4)
  mov    -0xc4(%rbp),%eax
  mov    %eax,-0xdc(%rbp)
  addl   $0x1,-0xd8(%rbp)
  addl   $0x1,-0xd4(%rbp)
L138:
  mov    -0xdc(%rbp),%eax
  cmp    -0xcc(%rbp),%eax
  jne    L62
  mov    -0xd4(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xd8(%rbp)
  jmp    L157
L176:
  mov    -0xd8(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0xd8(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  cmp    %eax,-0xc8(%rbp)
  jne    L177
  movl   $0x1,-0xd0(%rbp)
L177:
  subl   $0x1,-0xd8(%rbp)
L157:
  cmpl   $0x0,-0xd8(%rbp)
  jns    L176
  cmpl   $0x1,-0xd0(%rbp)
  je     L93
  mov    -0xc8(%rbp),%eax
  mov    %eax,%esi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L93:
  mov    $0x6e,%edi
  call   <putchar@plt>
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L18
  call   <__stack_chk_fail@plt>
L18:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D0
type: string
name: parse_data
arguments: data_label: D11
type: string

tool: D0: v%d->

tool: D11: v%d

assistant: ```c
int dij(int a[10][10], int n, int v1, int v2) {
  int length[10], set[10], path[10], i, j, s, z, tmp, temp[10], c = 0, f = 0;
  s = v1;
  z = v2;
  int srch_min(int[], int[], int);
  for (i = 0; i < n; i++)
    set[i] = 0;
  for (i = 0; i < n; i++) {
    if (a[s][i] == 0) {
      length[i] = 9999;
      path[i] = 0;
    } else {
      length[i] = a[s][i];
      path[i] = s;
    }
  }
  set[s] = 1;
  length[s] = 0;
  while (set[z] != 1) {
    j = srch_min(length, set, n);
    set[j] = 1;
    for (i = 0; i < n; i++) {
      if (set[i] != 1) {
        if (a[i][j] != 0) {
          if (length[j] + a[i][j] < length[i]) {
            length[i] = length[j] + a[i][j];
            path[i] = j;
          }
        }
      }
    }
  }
  j = 0;
  i = z;
  while (i != s) {
    tmp = path[i];
    temp[j] = tmp;
    i = tmp;
    j++;
    c++;
  }
  for (j = c - 1; j >= 0; j--) {
    printf("v%d->", temp[j]);
    if (temp[j] == z)
      f = 1;
  }
  if (f != 1)
    printf("v%d", z);
  printf("n");
  return length[z];
}
```