user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<prim>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1d0,%rsp
  mov    %rdi,-0x1c8(%rbp)
  mov    %esi,-0x1cc(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x1a0(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x32,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  movl   $0x0,-0x1b0(%rbp)
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L78
L66:
  movl   $0x270f,-0x1ac(%rbp)
  movl   $0xffffffff,-0x1a8(%rbp)
  movl   $0xffffffff,-0x1a4(%rbp)
  movl   $0x0,-0x1b8(%rbp)
  jmp    L18
L12:
  movl   $0x0,-0x1b4(%rbp)
  jmp    L43
L106:
  mov    -0x1b8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x1c8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1b4(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    %eax,-0x1ac(%rbp)
  jle    L52
  mov    -0x1b8(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L52
  mov    -0x1b8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x1c8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1b4(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  mov    %eax,-0x1ac(%rbp)
  mov    -0x1b8(%rbp),%eax
  mov    %eax,-0x1a8(%rbp)
  mov    -0x1b4(%rbp),%eax
  mov    %eax,-0x1a4(%rbp)
L52:
  addl   $0x1,-0x1b4(%rbp)
L43:
  mov    -0x1b4(%rbp),%eax
  cmp    -0x1cc(%rbp),%eax
  jl     L106
  addl   $0x1,-0x1b8(%rbp)
L18:
  mov    -0x1b8(%rbp),%eax
  cmp    -0x1cc(%rbp),%eax
  jl     L12
  mov    -0x1a8(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L8
  mov    -0x1a4(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L58
L8:
  mov    -0x1a4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1a8(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1a8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x1c8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1a4(%rbp),%eax
  cltq
  movl   $0x270f,(%rdx,%rax,4)
  mov    -0x1a4(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x1c8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1a8(%rbp),%eax
  cltq
  movl   $0x270f,(%rdx,%rax,4)
  mov    -0x1a4(%rbp),%eax
  cltq
  movl   $0x1,-0x1a0(%rbp,%rax,4)
L58:
  addl   $0x1,-0x1b0(%rbp)
L78:
  mov    -0x1cc(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x1b0(%rbp)
  jl     L66
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D8
datatype: string
name: retrieve_data
arguments: label: D1
datatype: string

tool: D8: Minimum Spanning Tree : 

tool: D1: %d - %d


assistant: ```c
void prim(int adj[100][100], int N) {
  int visited[100] = {0};
  int i, j, count = 0;
  printf("Minimum Spanning Tree : \n");
  while (count < N - 1) {
    int min = 9999, u = -1, v = -1;
    for (i = 0; i < N; i++) {
      for (j = 0; j < N; j++) {
        if (adj[i][j] < min && !visited[i]) {
          min = adj[i][j];
          u = i;
          v = j;
        }
      }
    }
    if (visited[u] == 0 || visited[v] == 0) {
      printf("%d - %d\n", (u + 1), (v + 1));
      adj[u][v] = 9999;
      adj[v][u] = 9999;
      visited[v] = 1;
    }
    count++;
  }
}
```