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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xf0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0xe0(%rbp),%rdx
  lea    -0xe4(%rbp),%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movl   $0x1,-0xdc(%rbp)
  jmp    L144
L33:
  lea    -0x30(%rbp),%rdx
  mov    -0xdc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0x60(%rbp),%rdx
  mov    -0xdc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  lea    -0x90(%rbp),%rsi
  mov    -0xdc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rsi,%rax
  mov    %rax,%rsi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0xdc(%rbp)
L144:
  mov    -0xe0(%rbp),%eax
  cmp    %eax,-0xdc(%rbp)
  jle    L33
  movl   $0x1,-0xd8(%rbp)
  jmp    L40
L110:
  mov    -0xd8(%rbp),%eax
  cltq
  movl   $0xf423f,-0xc0(%rbp,%rax,4)
  addl   $0x1,-0xd8(%rbp)
L40:
  mov    -0xe4(%rbp),%eax
  cmp    %eax,-0xd8(%rbp)
  jle    L110
  movl   $0x0,-0xbc(%rbp)
  movl   $0x1,-0xd4(%rbp)
  jmp    L97
L86:
  movl   $0x1,-0xd0(%rbp)
  jmp    L114
L58:
  mov    -0xd0(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%edx
  mov    -0xd0(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%ecx
  mov    -0xd0(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  add    %ecx,%eax
  cmp    %eax,%edx
  jle    L141
  mov    -0xd0(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%ecx
  mov    -0xd0(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%edx
  mov    -0xd0(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  add    %ecx,%edx
  cltq
  mov    %edx,-0xc0(%rbp,%rax,4)
L141:
  addl   $0x1,-0xd0(%rbp)
L114:
  mov    -0xe0(%rbp),%eax
  cmp    %eax,-0xd0(%rbp)
  jle    L58
  addl   $0x1,-0xd4(%rbp)
L97:
  mov    -0xe4(%rbp),%eax
  cmp    %eax,-0xd4(%rbp)
  jl     L86
  movl   $0x0,-0xcc(%rbp)
  movl   $0x1,-0xc8(%rbp)
  jmp    L82
L153:
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%edx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%ecx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  add    %ecx,%eax
  cmp    %eax,%edx
  jle    L84
  movl   $0x1,-0xcc(%rbp)
L84:
  addl   $0x1,-0xc8(%rbp)
L82:
  mov    -0xe0(%rbp),%eax
  cmp    %eax,-0xc8(%rbp)
  jle    L153
  cmpl   $0x1,-0xcc(%rbp)
  jne    L119
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L119:
  movl   $0x1,-0xc4(%rbp)
  jmp    L5
L150:
  mov    -0xc4(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0xc4(%rbp)
L5:
  mov    -0xe4(%rbp),%eax
  cmp    %eax,-0xc4(%rbp)
  jle    L150
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D29
type_infered: string
name: disassemble_data
arguments: data_tag: D31
type_infered: string
name: disassemble_data
arguments: data_tag: D1
type_infered: string
name: disassemble_data
arguments: data_tag: D3
type_infered: string

tool: D29: %d %d

tool: D31: %d %d %d

tool: D1: negtive circuit

tool: D3: %d

assistant: ```c
int main() {
  int dis[10], u[10], v[10], w[10];
  int n, m;
  scanf("%d %d", &n, &m);
  for (int i = 1; i <= m; i++)
    scanf("%d %d %d", &u[i], &v[i], &w[i]);
  for (int i = 1; i <= n; i++)
    dis[i] = 999999;
  dis[1] = 0;
  for (int k = 1; k <= n - 1; k++)
    for (int i = 1; i <= m; i++)
      if (dis[v[i]] > dis[u[i]] + w[i])
        dis[v[i]] = dis[u[i]] + w[i];
  int flag = 0;
  for (int i = 1; i <= m; i++)
    if (dis[v[i]] > dis[u[i]] + w[i])
      flag = 1;
  if (flag == 1)
    printf("negtive circuit\n");
  for (int i = 1; i <= n; i++)
    printf("%d", dis[i]);
  return 0;
}
```