user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x240,%rsp
  mov    %edi,-0x234(%rbp)
  mov    %rsi,-0x240(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x210(%rbp)
  movl   $0x3b9ac9ff,-0x204(%rbp)
  lea    -0x228(%rbp),%rdx
  lea    -0x22c(%rbp),%rax
  mov    %rax,%rsi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movl   $0x1,-0x218(%rbp)
  jmp    L2
L121:
  movl   $0x1,-0x214(%rbp)
  jmp    L133
L16:
  mov    -0x218(%rbp),%eax
  cmp    -0x214(%rbp),%eax
  jne    L131
  mov    -0x214(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x218(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movl   $0x0,-0x1a0(%rbp,%rax,4)
  jmp    L114
L131:
  mov    -0x214(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x218(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  lea    (%rax,%rcx,1),%rdx
  mov    -0x204(%rbp),%eax
  mov    %eax,-0x1a0(%rbp,%rdx,4)
L114:
  addl   $0x1,-0x214(%rbp)
L133:
  mov    -0x22c(%rbp),%eax
  cmp    %eax,-0x214(%rbp)
  jle    L16
  addl   $0x1,-0x218(%rbp)
L2:
  mov    -0x22c(%rbp),%eax
  cmp    %eax,-0x218(%rbp)
  jle    L121
  movl   $0x1,-0x218(%rbp)
  jmp    L154
L222:
  lea    -0x21c(%rbp),%rcx
  lea    -0x220(%rbp),%rdx
  lea    -0x224(%rbp),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x224(%rbp),%eax
  mov    -0x220(%rbp),%ecx
  mov    -0x21c(%rbp),%edx
  movslq %ecx,%rsi
  movslq %eax,%rcx
  mov    %rcx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  add    %rax,%rax
  add    %rsi,%rax
  mov    %edx,-0x1a0(%rbp,%rax,4)
  addl   $0x1,-0x218(%rbp)
L154:
  mov    -0x228(%rbp),%eax
  cmp    %eax,-0x218(%rbp)
  jle    L222
  movl   $0x1,-0x218(%rbp)
  jmp    L225
L147:
  mov    -0x218(%rbp),%eax
  cltq
  add    $0xa,%rax
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x218(%rbp),%eax
  cltq
  mov    %edx,-0x200(%rbp,%rax,4)
  addl   $0x1,-0x218(%rbp)
L225:
  mov    -0x22c(%rbp),%eax
  cmp    %eax,-0x218(%rbp)
  jle    L147
  movl   $0x1,-0x218(%rbp)
  jmp    L197
L186:
  mov    -0x218(%rbp),%eax
  cltq
  movl   $0x0,-0x1d0(%rbp,%rax,4)
  addl   $0x1,-0x218(%rbp)
L197:
  mov    -0x22c(%rbp),%eax
  cmp    %eax,-0x218(%rbp)
  jle    L186
  movl   $0x1,-0x1cc(%rbp)
  movl   $0x1,-0x218(%rbp)
  jmp    L235
L78:
  mov    -0x204(%rbp),%eax
  mov    %eax,-0x208(%rbp)
  movl   $0x1,-0x214(%rbp)
  jmp    L14
L171:
  mov    -0x214(%rbp),%eax
  cltq
  mov    -0x1d0(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L26
  mov    -0x214(%rbp),%eax
  cltq
  mov    -0x200(%rbp,%rax,4),%eax
  cmp    %eax,-0x208(%rbp)
  jle    L26
  mov    -0x214(%rbp),%eax
  cltq
  mov    -0x200(%rbp,%rax,4),%eax
  mov    %eax,-0x208(%rbp)
  mov    -0x214(%rbp),%eax
  mov    %eax,-0x210(%rbp)
L26:
  addl   $0x1,-0x214(%rbp)
L14:
  mov    -0x22c(%rbp),%eax
  cmp    %eax,-0x214(%rbp)
  jle    L171
  mov    -0x210(%rbp),%eax
  cltq
  movl   $0x1,-0x1d0(%rbp,%rax,4)
  movl   $0x1,-0x20c(%rbp)
  jmp    L44
L208:
  mov    -0x20c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x210(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  mov    -0x1a0(%rbp,%rax,4),%eax
  cmp    %eax,-0x204(%rbp)
  jle    L229
  mov    -0x20c(%rbp),%eax
  cltq
  mov    -0x200(%rbp,%rax,4),%ecx
  mov    -0x210(%rbp),%eax
  cltq
  mov    -0x200(%rbp,%rax,4),%esi
  mov    -0x20c(%rbp),%eax
  movslq %eax,%rdi
  mov    -0x210(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rdi,%rax
  mov    -0x1a0(%rbp,%rax,4),%eax
  add    %esi,%eax
  cmp    %eax,%ecx
  jle    L229
  mov    -0x210(%rbp),%eax
  cltq
  mov    -0x200(%rbp,%rax,4),%ecx
  mov    -0x20c(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x210(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rsi,%rax
  mov    -0x1a0(%rbp,%rax,4),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x20c(%rbp),%eax
  cltq
  mov    %edx,-0x200(%rbp,%rax,4)
L229:
  addl   $0x1,-0x20c(%rbp)
L44:
  mov    -0x22c(%rbp),%eax
  cmp    %eax,-0x20c(%rbp)
  jle    L208
  addl   $0x1,-0x218(%rbp)
L235:
  mov    -0x22c(%rbp),%eax
  cmp    %eax,-0x218(%rbp)
  jl     L78
  movl   $0x1,-0x218(%rbp)
  jmp    L219
L7:
  mov    -0x218(%rbp),%eax
  cltq
  mov    -0x200(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x218(%rbp)
L219:
  mov    -0x22c(%rbp),%eax
  cmp    %eax,-0x218(%rbp)
  jle    L7
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L40
  call   <__stack_chk_fail@plt>
L40:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D4
datatype: string
name: unpack_data
arguments: data_tag: D27
datatype: string
name: unpack_data
arguments: data_tag: D2
datatype: string

tool: D4: %d %d

tool: D27: %d %d %d

tool: D2: %d 

assistant: ```c
int main(int argc, const char *argv[]) {
  int e[10][10], dis[10], book[10], i, j, n, m, t1, t2, t3, u, v, min;
  u = 0;
  int inf = 999999999;
  scanf("%d %d", &n, &m);
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= n; j++) {
      if (i == j) {
        e[i][j] = 0;
      } else {
        e[i][j] = inf;
      }
    }
  }
  for (i = 1; i <= m; i++) {
    scanf("%d %d %d", &t1, &t2, &t3);
    e[t1][t2] = t3;
  }
  for (i = 1; i <= n; i++) {
    dis[i] = e[1][i];
  }
  for (i = 1; i <= n; i++) {
    book[i] = 0;
  }
  book[1] = 1;
  for (i = 1; i < n; i++) {
    min = inf;
    for (j = 1; j <= n; j++) {
      if (book[j] == 0 && dis[j] < min) {
        min = dis[j];
        u = j;
      }
    }
    book[u] = 1;
    for (v = 1; v <= n; v++) {
      if (e[u][v] < inf) {
        if (dis[v] > dis[u] + e[u][v]) {
          dis[v] = dis[u] + e[u][v];
        }
      }
    }
  }
  for (i = 1; i <= n; i++) {
    printf("%d ", dis[i]);
  }
  getchar();
  return 0;
}
```