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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  lea    D30(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  test   %edi,%edi
  jle    L21
  mov    $0x4,%ebx
  mov    $0x1,%ebp
  lea    D3(%rip),%r12
L52:
  lea    0xa0(%rsp,%rbx,1),%rcx
  lea    0x70(%rsp,%rbx,1),%rdx
  lea    0x40(%rsp,%rbx,1),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebp
  mov    0xc(%rsp),%edi
  add    $0x4,%rbx
  cmp    %ebp,%edi
  jge    L52
L21:
  mov    0x8(%rsp),%r9d
  test   %r9d,%r9d
  jle    L11
  lea    0x14(%rsp),%rax
  lea    -0x1(%r9),%edx
  lea    0x18(%rsp,%rdx,4),%rdx
L198:
  movl   $0xf423f,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L198
L11:
  movl   $0x0,0x14(%rsp)
  mov    $0x1,%r8d
  cmp    $0x1,%r9d
  jg     L23
  test   %edi,%edi
  jg     L116
  jmp    L90
L47:
  movslq %edx,%rdx
  mov    %ecx,0x10(%rsp,%rdx,4)
  add    $0x1,%rax
  cmp    %eax,%edi
  jl     L184
L193:
  mov    0x70(%rsp,%rax,4),%edx
  movslq 0x40(%rsp,%rax,4),%rsi
  mov    0xa0(%rsp,%rax,4),%ecx
  add    0x10(%rsp,%rsi,4),%ecx
  movslq %edx,%rsi
  cmp    %ecx,0x10(%rsp,%rsi,4)
  jg     L47
  mov    0x10(%rsp,%rsi,4),%ecx
  jmp    L47
L184:
  add    $0x1,%r8d
  cmp    %r9d,%r8d
  je     L2
L23:
  mov    $0x1,%eax
  test   %edi,%edi
  jg     L193
  jmp    L184
L156:
  lea    D12(%rip),%rdi
  call   <puts@plt>
  jmp    L90
L2:
  test   %edi,%edi
  jle    L36
L116:
  mov    $0x1,%eax
  mov    $0x0,%ecx
  mov    $0x1,%r9d
L130:
  movslq 0x70(%rsp,%rax,4),%rsi
  movslq 0x40(%rsp,%rax,4),%r8
  mov    0xa0(%rsp,%rax,4),%edx
  add    0x10(%rsp,%r8,4),%edx
  cmp    %edx,0x10(%rsp,%rsi,4)
  cmovg  %r9d,%ecx
  add    $0x1,%rax
  cmp    %eax,%edi
  jge    L130
  cmp    $0x1,%ecx
  je     L156
L90:
  cmpl   $0x0,0x8(%rsp)
  jle    L143
L36:
  mov    $0x1,%ebx
  lea    D4(%rip),%rbp
L100:
  mov    0x10(%rsp,%rbx,4),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,0x8(%rsp)
  jge    L100
L143:
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L111
  mov    $0x0,%eax
  add    $0xd0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L111:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D30
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D3
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D12
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D4
type_guessed: string

tool: D30: %d %d

tool: D3: %d %d %d

tool: D12: negtive circuit

tool: D4: %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;
}
```